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