OSDN Git Service

aeaa83b8bb991b7934030c6316d27f47d2751675
[pf3gnuchains/gcc-fork.git] / libgomp / ChangeLog
1 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2
3         * Makefile.am: Add install-html target. Add install-html to .PHONY
4         * Makefile.in: Regenerate.
5
6 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7
8         PR libgomp/27612
9         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10         * testsuite/libgomp.c/critical-1.c: Likewise.
11         * testsuite/libgomp.c/loop-1.c: Likewise.
12         * testsuite/libgomp.c/loop-2.c: Likewise.
13         * testsuite/libgomp.c/single-1.c: Likewise.
14         * testsuite/libgomp.c/ordered-1.c: Likewise.
15         * testsuite/libgomp.c/ordered-2.c: Likewise.
16
17 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
18
19         PR middle-end/27416
20         * libgomp.fortran/pr27416-1.f90: New test.
21
22 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
23
24         PR fortran/27395
25         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
26         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
27
28 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
29
30         PR c++/26943
31         * testsuite/libgomp.c/pr26943-1.c: New test.
32         * testsuite/libgomp.c/pr26943-2.c: New test.
33         * testsuite/libgomp.c/pr26943-3.c: New test.
34         * testsuite/libgomp.c/pr26943-4.c: New test.
35         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
36         * testsuite/libgomp.c++/pr26943.C: New test.
37
38 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
39
40         PR middle-end/27337
41         * testsuite/libgomp.c++/pr27337.C: New test.
42
43 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
44
45         PR c/26171
46         * testsuite/libgomp.c/pr26171.c: New test.
47
48 2006-04-25  Richard Henderson  <rth@redhat.com>
49
50         PR libgomp/25865
51         * configure.ac: Use GCC_CHECK_TLS.
52         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
53         * Makefile.in, aclocal.m4, configure: Regenerate.
54
55 2006-04-10  Matthias Klose  <doko@debian.org>
56
57         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
58         directory names containing underscores.
59
60 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
61
62         PR c++/26691
63         * testsuite/libgomp.c++/pr26691.C: New test.
64
65 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
66
67         * testsuite/libgomp.fortran/retval2.f90: New test.
68
69 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
70
71         * testsuite/libgomp.c++: New directory.
72
73 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
74
75         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
76         * config/posix/sem.c: Implement the above.
77
78 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
79
80         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
81         define HAVE_BROKEN_POSIX_SEMAPHORES.
82         * configure: Rebuilt.
83         * config.h.in: Rebuilt.
84
85 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
86
87         PR bootstrap/26161
88         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
89         for the other pthread check.
90         * configure: Regenerate.
91         * config.h.in: Regenerate.
92
93 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
94
95         PR libgomp/25938
96         PR libgomp/25984
97         * Makefile.am (fincludedir): New variable.
98         (nodist_include_HEADERS): Remove Fortran files.
99         (nodist_finclude_HEADERS): New variable.
100         * Makefile.in: Regenerated.
101
102 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
103
104         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
105         Remove tests for returning assumed character length arrays.
106
107 2006-02-12  Roger Sayle  <roger@eyesopen.com>
108             John David Anglin  <dave@hiauly1.hia.nrc.ca>
109
110         PR libgomp/25936
111         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
112  
113 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
114
115         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
116
117 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
118
119         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
120         part of LD_LIBRARY_PATH manually.
121
122 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
123
124         PR libgomp/25852
125         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
126         libgomp_init.
127
128 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
129
130         PR libgomp/25884
131         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
132         * configure.ac (PERL): Don't set.
133         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
134         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
135         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
136         * omp.h.in: Wrap the new configure substitutions with @ characters.
137         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
138         * aclocal.m4, configure, Makefile.in: Regenerate.
139         * mkomp_h.pl: Delete.
140
141 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
142
143         PR libgomp/25259
144         * configure.ac: Use GCC_HEADER_STDINT.
145         * libgomp.h: Include gstdint.h.
146         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
147         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
148
149 2006-01-24  Richard Henderson  <rth@redhat.com>
150
151         PR libgomp/25942
152         * configure.ac: Add AM_MAINTAINER_MODE.
153         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
154
155 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
156
157         * Makefile.in: Regenerate.
158         * testsuite/Makefile.in: Regenerate.
159         * aclocal.m4: Regenerate.
160
161 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
162
163         * config/posix/proc.c: Conditional include of sys/loadavg.h for
164         Solaris.
165         * configure.ac: Add check for loadavg.h.
166         (link_gomp): Adjust comment.
167         * configure: Regenerate.
168         * config.h.in: Regenerate.
169
170 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
171
172         PR libgomp/25877
173         * configure.ac: Remove check for alloca.h.
174         * configure: Regenerate.
175         * config.h.in: Regenerate.
176         * libgomp.h: define gomp_alloca to be __builtin_alloca.
177         * team.c: Remove use of alloca.h.
178         Call gomp_alloca instead of alloca.
179
180 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
181
182         PR libgomp/25877
183         * team.c: Add include of alloca.h.
184         * configure.ac: Add check for alloca.h.
185         * configure: Regenerate.
186         * config.h.in: Regenerate.
187
188 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
189
190         PR fortran/25219
191         * testsuite/libgomp.fortran/pr25219.f90: New test.
192
193 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
194
195         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
196         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
197         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
198         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
199         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
200         testsuite/libgomp.fortran/threadprivate1.f90,
201         testsuite/libgomp.fortran/threadprivate2.f90,
202         testsuite/libgomp.fortran/threadprivate3.f90,
203         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
204         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
205         testsuite/libgomp.fortran/omp_parse3.f90: Change required
206         effective-target to TLS runtime.
207
208         * testsuite/libgomp.fortran/pr25162.f: Require
209         effective-target TLS runtime.
210
211 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
212
213         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
214         * testsuite/libgomp.c/nestedfn-3.c: New test.
215
216 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
217
218         PR fortran/25162
219         * testsuite/libgomp.fortran/pr25162.f: New test.
220
221 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
222
223         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
224         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
225
226 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
227
228         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
229         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
230         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
231         single.c, team.c, work.c, config/linux/alpha/futex.h,
232         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
233         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
234         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
235         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
236         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
237         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
238         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
239         FSF address.
240
241 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
242
243         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
244         to nodist_noinst_HEADERS.
245         * Makefile.in: Rebuilt.
246
247         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
248         add integer count field.
249         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
250         omp_nest_lock_t type change.
251         (omp_init_nest_lock): Likewise.  Initialize count to 0.
252         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
253         Increment count.
254         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
255         Decrement count.
256         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
257         Increment count if successful and return the new nesting level.
258         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
259         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
260         * testsuite/libgomp.c/lib-1.c: New test.
261         * testsuite/libgomp.fortran/lib1.f90: New test.
262         * testsuite/libgomp.fortran/lib2.f: New test.
263         * testsuite/libgomp.fortran/lib3.f: New test.
264
265 2005-11-17  Richard Henderson  <rth@redhat.com>
266
267         PR 24845
268         * Makefile.am (nodist_toolexeclib_HEADERS): New.
269         * configure.ac (link_gomp): New.  Substitute it.
270         (AC_CONFIG_FILES): Add libgomp.spec.
271         * libgomp.spec.in: New file.
272         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
273         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
274
275 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
276
277         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
278         reduction(-:var) behaving the same as reduction(+:var).
279         * testsuite/libgomp.c/reduction-4.c: New test.
280
281 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
282
283         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
284         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
285         testsuite/libgomp.c/copyin-3.c,
286         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
287         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
288         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
289         testsuite/libgomp.c++/pr24455.C,
290         testsuite/libgomp.fortran/threadprivate1.f90,
291         testsuite/libgomp.fortran/threadprivate2.f90,
292         testsuite/libgomp.fortran/threadprivate3.f90,
293         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
294         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
295         testsuite/libgomp.fortran/omp_parse3.f90: Require
296         effective-target TLS.
297
298 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
299
300         * HEADER: Remove.
301
302 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
303
304         PR libgomp/24797
305         * team.c (initialize_team): Pass NULL rather than free as
306         pthread_key_create destructor.  Initialize thread specific data
307         pointer in initial thread to a static local variable rather than
308         malloced memory.
309
310 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
311
312         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
313         its location to ld_library_path.
314
315 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
316
317         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
318
319 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
320
321         * testsuite/libgomp.c: Rename from libgomp.dg.
322
323 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
324
325         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
326         threadprivate variable 'i'.
327
328 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
329
330         * config/linux/s390/futex.h: New file.
331         * configure.tgt: Use it.
332
333         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
334         before the parallel.
335
336 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
337
338         PR c++/24734
339         * testsuite/libgomp.c++/master-1.C: New test.
340
341 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
342
343         * testsuite/libgomp.dg/copyin-3.c: New test.
344
345 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
346
347         * testsuite/libgomp.fortran/retval1.f90: New test.
348         * testsuite/libgomp.fortran/vla7.f90: New test.
349
350 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
351
352         * testsuite/libgomp.fortran/vla2.f90: New test.
353         * testsuite/libgomp.fortran/vla3.f90: New test.
354         * testsuite/libgomp.fortran/vla4.f90: New test.
355         * testsuite/libgomp.fortran/vla5.f90: New test.
356         * testsuite/libgomp.fortran/vla6.f90: New test.
357
358 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
359
360         * config/linux/sparc/futex.h: New file.
361         * configure.tgt: Use it.
362         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
363
364         * critical.c: Include stdlib.h.
365         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
366         ignoring return value.
367         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
368         LIBGOMP_CHECK_SYNC_BUILTINS check.
369         * configure: Rebuilt.
370
371 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
372
373         * testsuite/libgomp.fortran/vla1.f90: New test.
374
375 2005-10-31  Richard Henderson  <rth@redhat.com>
376
377         * testsuite/libgomp.fortran/character2.f90: Fix race condition
378         setting 's' in different threads.
379
380 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
381
382         * libgomp.h (attribute_hidden, ialias): Define.
383         * config/posix/proc.c (omp_get_num_procs): Add ialias.
384         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
385         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
386         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
387         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
388         omp_test_lock, omp_test_nest_lock): Likewise.
389         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
390         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
391         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
392         omp_test_lock, omp_test_nest_lock): Likewise.
393         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
394         omp_get_dynamic, omp_get_nested): Likewise.
395         * parallel.c (omp_get_num_threads, omp_get_max_threads,
396         omp_get_thread_num, omp_in_parallel): Likewise.
397         * fortran.c (ialias_redirect): Define.
398         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
399         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
400         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
401         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
402         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
403         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
404         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
405         omp_get_wtime): Add ialias_redirect.
406
407 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
408
409         * fortran.c: Include stdlib.h.
410
411 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
412
413         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
414         * Makefile.in: Regenerated.
415
416 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
417
418         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
419         * libgomp_f.h.in (omp_check_defines): New function.
420         * env.c: Include libgomp_f.h.
421         (initialize_env): Call omp_check_defines.
422
423         * testsuite/libgomp.dg/copyin-2.c: New test.
424         * testsuite/libgomp.c++/copyin-2.C: New test.
425         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
426
427         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
428         * testsuite/libgomp.fortran/sharing2.f90: New test.
429
430         * testsuite/libgomp.dg/copyin-1.c: New test.
431         * testsuite/libgomp.c++/copyin-1.C: New test.
432
433 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
434
435         * testsuite/libgomp.fortran/crayptr1.f90: New test.
436
437         * testsuite/libgomp.fortran/workshare1.f90: New test.
438
439         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
440         only test.
441         * libgomp.fortran/sharing1.f90: New test.
442
443 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
444
445         PR c++/24502
446         * testsuite/libgomp.c++/loop-7.C: New test.
447
448         * testsuite/libgomp.dg/nestedfn-2.c: New test.
449
450         * testsuite/libgomp.dg/nestedfn-1.c: New test.
451         * testsuite/libgomp.fortran/reduction6.f90: New test.
452         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
453
454 2005-10-23  Richard Henderson  <rth@redhat.com>
455
456         * testsuite/libgomp.c++/ctor-1.C: New.
457         * testsuite/libgomp.c++/ctor-2.C: New.
458         * testsuite/libgomp.c++/ctor-3.C: New.
459         * testsuite/libgomp.c++/ctor-4.C: New.
460         * testsuite/libgomp.c++/ctor-5.C: New.
461         * testsuite/libgomp.c++/ctor-6.C: New.
462         * testsuite/libgomp.c++/ctor-7.C: New.
463         * testsuite/libgomp.c++/ctor-8.C: New.
464         * testsuite/libgomp.c++/ctor-9.C: New.
465
466 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
467
468         PR 24455
469         * testsuite/libgomp.c++/pr24455-1.C: New test.
470         * testsuite/libgomp.c++/pr24455.C: New test.
471         * testsuite/libgomp.dg/pr24455-1.c: New test.
472         * testsuite/libgomp.dg/pr24455.c: New test.
473
474 2005-10-20  Richard Henderson  <rth@redhat.com>
475
476         * testsuite/libgomp.c++/loop-6.C: New.
477         * testsuite/libgomp.dg/loop-3.c: New.
478
479 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
480
481         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
482         explicitly private.
483         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
484         explicitly shared.
485
486 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
487
488         * testsuite/libgomp.fortran/jacobi.f: New test.
489
490 2005-10-19  Richard Henderson  <rth@redhat.com>
491
492         * configure.tgt (i?86-linux): Default to with_arch instead of
493         CFLAGS.  Add -mtune to match target_cpu.
494         (x86_64-linux): Tune to i686.
495
496         * fortran.c (omp_test_nest_lock_): Fix typo.
497
498 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
499
500         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
501         gomp_ordered_sync): Do nothing if team->nthreads == 1.
502         * testsuite/libgomp.dg/ordered-3.c: New test.
503
504         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
505         Remove volatile keyword.
506
507         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
508         in COMMON block to avoid warnings on 64-bit targets.
509
510 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
511
512         * testsuite/libgomp.dg/shared-3.c: New test.
513
514 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
515
516         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
517         * testsuite/libgomp.fortran/reduction5.f90: New test.
518
519 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
520
521         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
522         dg-options.
523         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
524         flush loop now that __sync_synchronize has proper memory barrier.
525         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
526         Add -ffixed-form to dg-options.
527
528 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
529
530         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
531         from subdirectories.
532         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
533         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
534         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
535         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
536         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
537         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
538         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
539         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
540         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
541         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
542         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
543         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
544         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
545         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
546         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
547         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
548         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
549         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
550         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
551         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
552         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
553         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
554         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
555         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
556         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
557
558 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
559
560         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
561         lang_library_path exists.  Use find instead of glob to gather tests.
562         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
563
564 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
565
566         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
567         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
568         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
569         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
570         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
571         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
572         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
573         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
574         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
575         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
576         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
577         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
578         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
579
580 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
581
582         * testsuite/libgomp.dg/vla-1.c: New test.
583
584         * testsuite/libgomp.fortran/reference2.f90: New test.
585
586         * testsuite/libgomp.fortran/character2.f90: Remove explicit
587         declaration of omp_get_thread_num.
588         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
589         use omp_lib.
590
591         * testsuite/libgomp.fortran/reduction1.f90: New test.
592         * testsuite/libgomp.fortran/reduction2.f90: New test.
593         * testsuite/libgomp.fortran/reduction3.f90: New test.
594         * testsuite/libgomp.fortran/reduction4.f90: New test.
595
596 2005-10-13  Richard Henderson  <rth@redhat.com>
597
598         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
599         * Makefile.in: Regenerate.
600         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
601         * libgomp.h: Include bar.h.
602         (struct gomp_barrier): Remove.
603         (struct gomp_team): Add barrier.  Replace master_barrier with
604         master_release.  Replace threads with ordered_release.
605         (struct gomp_thread): Replace barrier with release.
606         * ordered.c (gomp_ordered_first): Update for ordered_release change.
607         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
608         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
609         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
610         (GOMP_single_copy_end): Likewise.
611         * team.c (gomp_threads_dock): New.
612         (gomp_barrier_init, gomp_barrier_destroy): Remove.
613         (gomp_thread_start): Use gomp_barrier_wait.
614         (new_team, free_team): Update for gomp_team changes.
615         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
616         (gomp_team_end): Use gomp_barrier_wait.
617         (initialize_team): Update for gomp_thread changes.
618         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
619         (gomp_work_share_end_nowait): Use atomic ops when available.
620         * config/linux/bar.c, config/linux/bar.h: New files.
621         * config/posix/bar.c, config/posix/bar.h: New files.
622
623 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
624
625         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
626         * testsuite/libgomp.dg/single-2.c: New test.
627
628         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
629         lang_link_flags): Unset, so that they aren't inherited from previously
630         sourced *.exp.
631
632         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
633
634 2005-10-12  Richard Henderson  <rth@redhat.com>
635
636         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
637         (libgomp_init): Use lang_test_file, lang_library_path, and
638         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
639
640         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
641         (lang_test_file, lang_link_flags): New.
642         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
643
644         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
645         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
646         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
647         testsuite/libgomp.c++/parallel-1.C,
648         testsuite/libgomp.c++/reduction-1.C,
649         testsuite/libgomp.c++/reduction-2.C,
650         testsuite/libgomp.c++/reduction-3.C,
651         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
652         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
653         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
654         New files, largely cribbed from the C testsuite.
655
656 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
657
658         * testsuite/libgomp.fortran/character1.f90: New test.
659         * testsuite/libgomp.fortran/character2.f90: New test.
660
661         * testsuite/libgomp.dg/nested-1.c: New test.
662         * testsuite/libgomp.dg/nested-2.c: New test.
663         * testsuite/libgomp.fortran/do1.f90: New test.
664         * testsuite/libgomp.fortran/do2.f90: New test.
665
666         * testsuite/libgomp.fortran/reference1.f90: New test.
667
668 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
669
670         * testsuite/libgomp.dg/reduction-1.c: New test.
671         * testsuite/libgomp.dg/reduction-2.c: New test.
672         * testsuite/libgomp.dg/reduction-3.c: New test.
673
674 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
675
676         * testsuite/libgomp.dg/atomic-1.c: New test.
677         * testsuite/libgomp.dg/atomic-2.c: New test.
678
679 2005-10-09  Richard Henderson  <rth@redhat.com>
680
681         * critical.c (atomic_lock): New.
682         (initialize_critical): Initialize it.
683         (GOMP_atomic_start, GOMP_atomic_end): New.
684         * libgomp.map: Export them.
685         * libgomp_g.h: Declare them.
686
687         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
688
689 2005-10-02  Richard Henderson  <rth@redhat.com>
690
691         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
692         to XCFLAGS instead of CFLAGS.
693
694 2005-09-30  Richard Henderson  <rth@redhat.com>
695
696         * configure.ac: Determine whether -pthread or -lpthread is needed.
697         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
698         * Makefine.in, configure: Rebuild.
699
700 2005-09-28  Richard Henderson  <rth@redhat.com>
701
702         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
703         * testsuite/libgomp.dg/omp-single-3.c: New test.
704
705 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
706
707         * testsuite/libgomp.dg/omp-single-2.c: New test.
708         * testsuite/libgomp.dg/shared-2.c: Fix return code.
709
710 2005-09-27  Richard Henderson  <rth@redhat.com>
711
712         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
713         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
714
715 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
716
717         * testsuite/libgomp.dg/omp-loop03.c: New test.
718
719 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
720
721         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
722
723 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
724
725         * testsuite/libgomp.dg/omp-single-1.c: New test.
726         * testsuite/libgomp.dg/shared-1.c: Return 0.
727         Add prototype for abort.
728         * testsuite/libgomp.dg/shared-2.c: Likewise.
729
730 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
731
732         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
733         constructs.
734
735 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
736
737         * testsuite/libgomp.dg/shared-1.c: New test.
738         * testsuite/libgomp.dg/shared-2.c: New test.
739
740 2005-09-24  Richard Henderson  <rth@redhat.com>
741
742         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
743
744 2005-09-24  Richard Henderson  <rth@redhat.com>
745
746         * iter.c (gomp_iter_static_next): Round up when computing number
747         of iterations.  Don't bother distributing a remainder equally.
748
749         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
750         Don't call srand.  Zero b before testing.
751         (main): New.
752
753 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
754
755         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
756         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
757
758 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
759
760         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
761         without !$omp end do, followed immediately by subroutine end.
762
763 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
764
765         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
766
767 2005-09-22  Richard Henderson  <rth@redhat.com>
768
769         * critical.c (GOMP_critical_name_start): Change argument to void**.
770         Reuse the pointer space if the mutex fits.
771         (GOMP_critical_name_end): Likewise.
772         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
773         * libgomp_g.h (GOMP_critical_name_start): Update decl.
774         (GOMP_critical_name_end): Likewise.
775         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
776         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
777
778 2005-09-20  Richard Henderson  <rth@redhat.com>
779
780         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
781         (create_lock_lock): New.
782         (initialize_critical): Initialize it.
783         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
784         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
785
786 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
787
788         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
789
790 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
791
792         * testsuite/libgomp.dg/omp-loop01.c: New test.
793         * testsuite/libgomp.dg/omp-loop02.c: New test.
794
795 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
796
797         * configure.ac (AC_PROG_FC): Add.
798         (USE_FORTRAN): New automake conditional.
799         * configure: Rebuilt.
800         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
801         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
802         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
803         Add rules to build them.
804         * Makefile.in: Rebuilt.
805         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
806         OMP_NEST_LOCK_KIND.
807         * libgomp.map: Add Fortran wrappers.
808         * libgomp_f.h.in: New file.
809         * omp_lib.h.in: New file.
810         * omp_lib.f90.in: New file.
811         * fortran.c: New file.
812         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
813         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
814         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
815         libgfortran has been built.
816         * testsuite/libgomp.fortran/fortran.exp: New file.
817         * testsuite/libgomp.fortran/omp_cond1.f: New test.
818         * testsuite/libgomp.fortran/omp_cond2.f: New test.
819         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
820         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
821         * testsuite/libgomp.fortran/omp_hello.f: New test.
822         * testsuite/libgomp.fortran/omp_orphan.f: New test.
823         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
824         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
825         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
826         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
827         * testsuite/libgomp.fortran/omp_reduction.f: New test.
828         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
829         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
830
831 2005-08-30  Richard Henderson  <rth@redhat.com>
832
833         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
834         function for when aliases are not usable.
835         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
836         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
837         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
838         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
839         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
840         GOMP_loop_ordered_guided_next): Likewise.
841         * ordered.c (GOMP_ordered_start): Likewise.
842
843 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
844
845         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
846         * testsuite/libgomp.dg/omp_hello.c: Fix return code
847         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
848         * testsuite/libgomp.dg/omp_orphan.c: Likewise
849         * testsuite/libgomp.dg/omp_reduction.c: Likewise
850         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
851         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
852         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
853         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
854
855 2005-07-07  Eric Christopher  <echristo@redhat.com>
856             Diego Novillo  <dnovillo@redhat.com>
857
858         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
859         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
860         up code.
861         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
862         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
863         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
864         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
865         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
866         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
867         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
868
869 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
870
871         * TOPLEVEL.patch: Remove.
872
873 2005-05-16  Richard Henderson  <rth@redhat.com>
874
875         * configure.ac: Test for clock_gettime.
876         * config.h.in, configure: Rebuild.
877         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
878         (omp_get_wtime): Use clock_gettime if available.
879         (omp_get_wtick): Use clock_getres if available.
880
881 2005-05-11  Richard Henderson  <rth@redhat.com>
882
883         * config/linux/ia64/futex.h: New file.
884         * configure.tgt: Use it.
885
886         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
887
888 2005-05-07  Richard Henderson  <rth@redhat.com>
889
890         * config/linux/powerpc/futex.h: New file.
891         * configure.tgt: Use it.
892
893         * config/linux/i486/futex.h: Merge ...
894         * config/linux/x86_64/futex.h: ... into ...
895         * config/linux/x86/futex.h: ... here.
896         * configure.tgt: Update to match.
897
898 2005-05-06  Richard Henderson  <rth@redhat.com>
899
900         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
901         * config/linux/i486/futex.h: Likewise.
902         * config/linux/x86_64/futex.h: Likewise.
903
904         * config/linux/lock.c: New file.
905         * config/linux/omp-lock.h: New file.
906
907         * critical.c, env.h: Don't include omp.h
908         * config/posix/lock.c: Include libgomp.h instead of omp.h.
909         * config/posix/time.c: Likewise.
910         * config/posix/omp-lock.h: New file.
911         * libgomp.h: Include omp-lock.h and omp.h.
912         * Makefile.am (nodist_include_HEADERS): New.
913         (omp.h): New rule.
914         * configure.ac (PERL): New.
915         * mkomp_h.pl: New file.
916         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
917         with templates.
918         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
919
920         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
921         build directory.  Re-add -march=i486 hack.
922
923         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
924         (libgomp_link_flags): Remove.
925         (libgomp_initialized): Remove.
926         (libgomp_init): Don't protect from reinitialization.  Copy code
927         from libstdc++ for getting the multilib set correctly.
928
929 2005-05-05  Richard Henderson  <rth@redhat.com>
930
931         * config/linux/alpha/futex.h: New file.
932         * configure.tgt (alpha*-*-linux*): Use it.
933
934         * config/posix/mutex.c: New file.
935         * config/posix/sem.c: Use libgomp.h.
936
937         * configure.tgt (x86_64-linux): Also test CC for -m32.
938         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
939
940         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add / 
941         after $gccpath.
942
943         * Makefile.am (SUBDIRS): New.
944         (libgomp_la_LDFLAGS): Add -lpthread.
945         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
946         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
947
948         * libgomp_g.h: New file.
949         * libgomp.h: Split out all public declarations to libgomp_g.h.
950         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
951         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
952         * config/linux/sem.h: Likewise.
953         * config/posix/sem.h: Likewise.
954
955         * Makefile.am (AM_LDFLAGS): New.
956         (libgomp_version_script): Split out from ...
957         (libgomp_la_LDFLAGS): ... here.
958         (libgomp_version_info): New.
959         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
960         (LIBGOMP_ENABLE): New.
961         (LIBGOMP_CHECK_LINKER_FEATURES): New.
962         (LIBGOMP_ENABLE_SYMVERS): New.
963         * configure.ac (AC_INIT): Version 1.0.
964         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
965         (enable-linux-futex): Likewise.  Rename from enable-futex.
966         (libtool_VERSION): New.
967         (LIBGOMP_ENABLE_SYMVERS): Use it.
968         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
969         * Makefile.in, aclocal.m4, configure: Rebuild.
970
971         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
972         (gomp_mutex_unlock_slow): Fix typo.
973         * config/linux/sem.c: Similarly.
974         (gomp_sem_post_slow): Fix typo.
975         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
976         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
977         [__PIC__] (sys_futex0): Don't use tmp output in asm.
978
979         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
980         (libgomp_la_LDFLAGS): Add top_srcdir to path.
981         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
982         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
983         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
984         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
985         LDFLAGS.  Pull enable_futex check to top-level.
986         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
987         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
988
989         First attempt at real configury.
990         * Makefile, config.h: Remove file.
991         * Makefile.am, Makefile.in: New file.
992         * acinclude.m4 aclocal.m4: New file.
993         * configure.ac, configure.tgt, configure: New file.
994
995         * config/posix/lock.c: Rename from sys-lock.c.
996         * config/posix/mutex.h: Rename from sys-mutex.h.
997         * config/posix/sem.c: Rename from sys-sem.c.
998         * config/posix/sem.h: Rename from sys-sem.h.
999         * config/posix/proc.c: Rename from sys-proc.c.
1000         * config/posix/time.c: Rename from sys-proc.c.
1001
1002         * config/linux/mutex.c: New file.
1003         * config/linux/mutex.h: New file.
1004         * config/linux/sem.c: New file.
1005         * config/linux/sem.h: New file.
1006         * config/linux/i486/futex.h: New file.
1007         * config/linux/x86_64/futex.h: New file.
1008
1009 2005-05-04  Richard Henderson  <rth@redhat.com>
1010
1011         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1012         * libgomp.h: Declare them.
1013         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1014         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1015
1016 2005-05-04  Richard Henderson  <rth@redhat.com>
1017
1018         * libgomp-1 code drop
1019
1020 2005-05-04  Richard Henderson  <rth@redhat.com>
1021
1022         * iter.c (gomp_iter_static_next): Return tri-state on 0.
1023         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1024         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1025         (gomp_iter_static_next): Update.
1026         (gomp_ordered_static_next): Update.
1027         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1028         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
1029         totally empty range.
1030         (gomp_loop_ordered_static_next): Refine test for calling
1031         gomp_ordered_static_next.
1032         * testsuite/ordered-1.c: Add case for more threads than iterations.
1033
1034         * iter.c (gomp_iter_runtime_next_locked): Remove.
1035         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1036         gomp_loop_guided_start, gomp_loop_ordered_static_start, 
1037         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1038         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1039         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1040         gomp_loop_ordered_guided_next): Downcase name, make static, add
1041         an external alias with the old name.
1042         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1043         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1044         switch and call one of the above static functions.
1045         * libgomp.h: Update.
1046
1047         * work.c (gomp_work_share_start): Lock the mutex for !first too.
1048         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1049         GOMP_loop_guided_start, GOMP_loop_runtime_start,
1050         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1051         GOMP_loop_ordered_guided_start): Update to match.
1052         * sections.c (GOMP_sections_start): Likewise.
1053         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1054
1055         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1056         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1057         Use bounds check instead of modulus.
1058         (gomp_ordered_sync): Split out of GOMP_ordered_start.
1059         (gomp_ordered_last): Don't sync with ordered_owner here.
1060         (gomp_ordered_next): Likewise.
1061         (gomp_ordered_static_loop_next): Likewise.
1062         * loop.c, libgomp.h: Update to match.
1063
1064         * libgomp.h (GOMP_barrier): Declare.
1065
1066         * testsuite/barrier-1.c: New file.
1067         * testsuite/critical-1.c: New file.
1068         * testsuite/ordered-2.c: New file.
1069         * testsuite/ordered-1.c: New file.
1070         * testsuite/sections-1.c: New file.
1071         * testsuite/single-1.c: New file.
1072         * testsuite/Makefile (TESTS): Add them.
1073
1074 2005-05-04  Richard Henderson  <rth@redhat.com>
1075
1076         * libgomp.h (struct gomp_work_share): Add ordered_owner.
1077         * loop.c (GOMP_loop_static_start): If not the startup thread,
1078         acquire the mutex to wait for initialization complete.
1079         (GOMP_loop_ordered_static_start): Likewise.
1080         (GOMP_loop_ordered_runtime_start): Likewise.
1081         (GOMP_loop_ordered_static_first): Remove.
1082         (GOMP_loop_ordered_dynamic_first): Remove.
1083         (GOMP_loop_ordered_guided_first): Remove.
1084         (GOMP_loop_ordered_runtime_first): Remove.
1085         * ordered.c (gomp_ordered_loop_first): Post to own release when
1086         we're the first thread.
1087         (gomp_ordered_loop_last): Wait on release if not owner.
1088         (gomp_ordered_loop_next): Likewise.
1089         (gomp_ordered_static_loop_init): New.
1090         (gomp_ordered_static_loop_next): Use ordered_owner.
1091         (GOMP_ordered_start): Likewise.
1092         * work.c (gomp_new_work_share): Initialize ordered_owner.
1093
1094 2005-05-03  Richard Henderson  <rth@redhat.com>
1095
1096         * Makefile (OPT): New.
1097         (CFLAGS): Use it.
1098
1099         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1100         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1101         * libgomp.h, libgomp.map, NOTES: Update to match.
1102
1103         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1104         Add initialized and thr members.
1105         (gomp_thread_start): Pause when initially spawned to wait for
1106         the whole team to be created.
1107         (gomp_team_start): Release team members at the end.
1108
1109         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
1110         (f_foo_1): Use GOMP_loop_end.
1111         (f_foo_2): Use GOMP_loop_end_nowait.
1112
1113         * testsuite/loop-2.c: New file.
1114         * testsuite/Makefile (TESTS): Add it.
1115
1116 2005-05-03  Richard Henderson  <rth@redhat.com>
1117
1118         * iter.c (gomp_iter_static_next): Fix overflow check typo.
1119         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1120         * team.c (new_team): Initialize oldest_live_gen to 1 if no
1121         initial work_share.
1122
1123         * testsuite/Makefile: New file.
1124         * testsuite/loop-1.c: New file.
1125
1126 2005-05-03  Richard Henderson  <rth@redhat.com>
1127
1128         Initial implementation and checkin.