* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / libgomp / ChangeLog
blob881c5205f2a1bd50725d2390f03dd203acde56d1
1 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4         Remove tests for returning assumed character length arrays.
6 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
8         PR libgomp/25852
9         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10         libgomp_init.
12 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
14         PR libgomp/25884
15         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
16         * configure.ac (PERL): Don't set.
17         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20         * omp.h.in: Wrap the new configure substitutions with @ characters.
21         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
22         * aclocal.m4, configure, Makefile.in: Regenerate.
23         * mkomp_h.pl: Delete.
25 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
27         PR libgomp/25259
28         * configure.ac: Use GCC_HEADER_STDINT.
29         * libgomp.h: Include gstdint.h.
30         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
31         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
33 2006-01-24  Richard Henderson  <rth@redhat.com>
35         PR libgomp/25942
36         * configure.ac: Add AM_MAINTAINER_MODE.
37         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
39 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
41         * Makefile.in: Regenerate.
42         * testsuite/Makefile.in: Regenerate.
43         * aclocal.m4: Regenerate.
45 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
47         * config/posix/proc.c: Conditional include of sys/loadavg.h for
48         Solaris.
49         * configure.ac: Add check for loadavg.h.
50         (link_gomp): Adjust comment.
51         * configure: Regenerate.
52         * config.h.in: Regenerate.
54 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
56         PR libgomp/25877
57         * configure.ac: Remove check for alloca.h.
58         * configure: Regenerate.
59         * config.h.in: Regenerate.
60         * libgomp.h: define gomp_alloca to be __builtin_alloca.
61         * team.c: Remove use of alloca.h.
62         Call gomp_alloca instead of alloca.
64 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
66         PR libgomp/25877
67         * team.c: Add include of alloca.h.
68         * configure.ac: Add check for alloca.h.
69         * configure: Regenerate.
70         * config.h.in: Regenerate.
72 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
74         PR fortran/25219
75         * testsuite/libgomp.fortran/pr25219.f90: New test.
77 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
79         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
80         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
81         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
82         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
83         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
84         testsuite/libgomp.fortran/threadprivate1.f90,
85         testsuite/libgomp.fortran/threadprivate2.f90,
86         testsuite/libgomp.fortran/threadprivate3.f90,
87         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
88         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
89         testsuite/libgomp.fortran/omp_parse3.f90: Change required
90         effective-target to TLS runtime.
92         * testsuite/libgomp.fortran/pr25162.f: Require
93         effective-target TLS runtime.
95 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
97         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
98         * testsuite/libgomp.c/nestedfn-3.c: New test.
100 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
102         PR fortran/25162
103         * testsuite/libgomp.fortran/pr25162.f: New test.
105 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
107         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
108         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
110 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
112         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
113         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
114         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
115         single.c, team.c, work.c, config/linux/alpha/futex.h,
116         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
117         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
118         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
119         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
120         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
121         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
122         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
123         FSF address.
125 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
127         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
128         to nodist_noinst_HEADERS.
129         * Makefile.in: Rebuilt.
131         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
132         add integer count field.
133         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
134         omp_nest_lock_t type change.
135         (omp_init_nest_lock): Likewise.  Initialize count to 0.
136         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
137         Increment count.
138         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
139         Decrement count.
140         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
141         Increment count if successful and return the new nesting level.
142         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
143         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
144         * testsuite/libgomp.c/lib-1.c: New test.
145         * testsuite/libgomp.fortran/lib1.f90: New test.
146         * testsuite/libgomp.fortran/lib2.f: New test.
147         * testsuite/libgomp.fortran/lib3.f: New test.
149 2005-11-17  Richard Henderson  <rth@redhat.com>
151         PR 24845
152         * Makefile.am (nodist_toolexeclib_HEADERS): New.
153         * configure.ac (link_gomp): New.  Substitute it.
154         (AC_CONFIG_FILES): Add libgomp.spec.
155         * libgomp.spec.in: New file.
156         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
157         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
159 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
161         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
162         reduction(-:var) behaving the same as reduction(+:var).
163         * testsuite/libgomp.c/reduction-4.c: New test.
165 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
167         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
168         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
169         testsuite/libgomp.c/copyin-3.c,
170         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
171         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
172         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
173         testsuite/libgomp.c++/pr24455.C,
174         testsuite/libgomp.fortran/threadprivate1.f90,
175         testsuite/libgomp.fortran/threadprivate2.f90,
176         testsuite/libgomp.fortran/threadprivate3.f90,
177         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
178         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
179         testsuite/libgomp.fortran/omp_parse3.f90: Require
180         effective-target TLS.
182 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
184         * HEADER: Remove.
186 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
188         PR libgomp/24797
189         * team.c (initialize_team): Pass NULL rather than free as
190         pthread_key_create destructor.  Initialize thread specific data
191         pointer in initial thread to a static local variable rather than
192         malloced memory.
194 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
196         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
197         its location to ld_library_path.
199 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
201         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
203 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
205         * testsuite/libgomp.c: Rename from libgomp.dg.
207 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
209         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
210         threadprivate variable 'i'.
212 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
214         * config/linux/s390/futex.h: New file.
215         * configure.tgt: Use it.
217         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
218         before the parallel.
220 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
222         PR c++/24734
223         * testsuite/libgomp.c++/master-1.C: New test.
225 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
227         * testsuite/libgomp.dg/copyin-3.c: New test.
229 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
231         * testsuite/libgomp.fortran/retval1.f90: New test.
232         * testsuite/libgomp.fortran/vla7.f90: New test.
234 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
236         * testsuite/libgomp.fortran/vla2.f90: New test.
237         * testsuite/libgomp.fortran/vla3.f90: New test.
238         * testsuite/libgomp.fortran/vla4.f90: New test.
239         * testsuite/libgomp.fortran/vla5.f90: New test.
240         * testsuite/libgomp.fortran/vla6.f90: New test.
242 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
244         * config/linux/sparc/futex.h: New file.
245         * configure.tgt: Use it.
246         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
248         * critical.c: Include stdlib.h.
249         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
250         ignoring return value.
251         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
252         LIBGOMP_CHECK_SYNC_BUILTINS check.
253         * configure: Rebuilt.
255 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
257         * testsuite/libgomp.fortran/vla1.f90: New test.
259 2005-10-31  Richard Henderson  <rth@redhat.com>
261         * testsuite/libgomp.fortran/character2.f90: Fix race condition
262         setting 's' in different threads.
264 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
266         * libgomp.h (attribute_hidden, ialias): Define.
267         * config/posix/proc.c (omp_get_num_procs): Add ialias.
268         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
269         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
270         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
271         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
272         omp_test_lock, omp_test_nest_lock): Likewise.
273         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
274         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
275         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
276         omp_test_lock, omp_test_nest_lock): Likewise.
277         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
278         omp_get_dynamic, omp_get_nested): Likewise.
279         * parallel.c (omp_get_num_threads, omp_get_max_threads,
280         omp_get_thread_num, omp_in_parallel): Likewise.
281         * fortran.c (ialias_redirect): Define.
282         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
283         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
284         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
285         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
286         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
287         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
288         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
289         omp_get_wtime): Add ialias_redirect.
291 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
293         * fortran.c: Include stdlib.h.
295 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
297         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
298         * Makefile.in: Regenerated.
300 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
302         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
303         * libgomp_f.h.in (omp_check_defines): New function.
304         * env.c: Include libgomp_f.h.
305         (initialize_env): Call omp_check_defines.
307         * testsuite/libgomp.dg/copyin-2.c: New test.
308         * testsuite/libgomp.c++/copyin-2.C: New test.
309         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
311         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
312         * testsuite/libgomp.fortran/sharing2.f90: New test.
314         * testsuite/libgomp.dg/copyin-1.c: New test.
315         * testsuite/libgomp.c++/copyin-1.C: New test.
317 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
319         * testsuite/libgomp.fortran/crayptr1.f90: New test.
321         * testsuite/libgomp.fortran/workshare1.f90: New test.
323         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
324         only test.
325         * libgomp.fortran/sharing1.f90: New test.
327 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
329         PR c++/24502
330         * testsuite/libgomp.c++/loop-7.C: New test.
332         * testsuite/libgomp.dg/nestedfn-2.c: New test.
334         * testsuite/libgomp.dg/nestedfn-1.c: New test.
335         * testsuite/libgomp.fortran/reduction6.f90: New test.
336         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
338 2005-10-23  Richard Henderson  <rth@redhat.com>
340         * testsuite/libgomp.c++/ctor-1.C: New.
341         * testsuite/libgomp.c++/ctor-2.C: New.
342         * testsuite/libgomp.c++/ctor-3.C: New.
343         * testsuite/libgomp.c++/ctor-4.C: New.
344         * testsuite/libgomp.c++/ctor-5.C: New.
345         * testsuite/libgomp.c++/ctor-6.C: New.
346         * testsuite/libgomp.c++/ctor-7.C: New.
347         * testsuite/libgomp.c++/ctor-8.C: New.
348         * testsuite/libgomp.c++/ctor-9.C: New.
350 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
352         PR 24455
353         * testsuite/libgomp.c++/pr24455-1.C: New test.
354         * testsuite/libgomp.c++/pr24455.C: New test.
355         * testsuite/libgomp.dg/pr24455-1.c: New test.
356         * testsuite/libgomp.dg/pr24455.c: New test.
358 2005-10-20  Richard Henderson  <rth@redhat.com>
360         * testsuite/libgomp.c++/loop-6.C: New.
361         * testsuite/libgomp.dg/loop-3.c: New.
363 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
365         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
366         explicitly private.
367         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
368         explicitly shared.
370 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
372         * testsuite/libgomp.fortran/jacobi.f: New test.
374 2005-10-19  Richard Henderson  <rth@redhat.com>
376         * configure.tgt (i?86-linux): Default to with_arch instead of
377         CFLAGS.  Add -mtune to match target_cpu.
378         (x86_64-linux): Tune to i686.
380         * fortran.c (omp_test_nest_lock_): Fix typo.
382 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
384         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
385         gomp_ordered_sync): Do nothing if team->nthreads == 1.
386         * testsuite/libgomp.dg/ordered-3.c: New test.
388         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
389         Remove volatile keyword.
391         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
392         in COMMON block to avoid warnings on 64-bit targets.
394 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
396         * testsuite/libgomp.dg/shared-3.c: New test.
398 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
400         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
401         * testsuite/libgomp.fortran/reduction5.f90: New test.
403 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
405         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
406         dg-options.
407         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
408         flush loop now that __sync_synchronize has proper memory barrier.
409         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
410         Add -ffixed-form to dg-options.
412 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
414         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
415         from subdirectories.
416         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
417         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
418         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
419         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
420         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
421         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
422         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
423         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
424         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
425         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
426         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
427         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
428         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
429         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
430         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
431         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
432         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
433         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
434         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
435         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
436         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
437         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
438         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
439         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
440         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
442 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
444         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
445         lang_library_path exists.  Use find instead of glob to gather tests.
446         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
448 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
450         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
451         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
452         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
453         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
454         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
455         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
456         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
457         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
458         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
459         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
460         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
461         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
462         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
464 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
466         * testsuite/libgomp.dg/vla-1.c: New test.
468         * testsuite/libgomp.fortran/reference2.f90: New test.
470         * testsuite/libgomp.fortran/character2.f90: Remove explicit
471         declaration of omp_get_thread_num.
472         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
473         use omp_lib.
475         * testsuite/libgomp.fortran/reduction1.f90: New test.
476         * testsuite/libgomp.fortran/reduction2.f90: New test.
477         * testsuite/libgomp.fortran/reduction3.f90: New test.
478         * testsuite/libgomp.fortran/reduction4.f90: New test.
480 2005-10-13  Richard Henderson  <rth@redhat.com>
482         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
483         * Makefile.in: Regenerate.
484         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
485         * libgomp.h: Include bar.h.
486         (struct gomp_barrier): Remove.
487         (struct gomp_team): Add barrier.  Replace master_barrier with
488         master_release.  Replace threads with ordered_release.
489         (struct gomp_thread): Replace barrier with release.
490         * ordered.c (gomp_ordered_first): Update for ordered_release change.
491         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
492         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
493         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
494         (GOMP_single_copy_end): Likewise.
495         * team.c (gomp_threads_dock): New.
496         (gomp_barrier_init, gomp_barrier_destroy): Remove.
497         (gomp_thread_start): Use gomp_barrier_wait.
498         (new_team, free_team): Update for gomp_team changes.
499         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
500         (gomp_team_end): Use gomp_barrier_wait.
501         (initialize_team): Update for gomp_thread changes.
502         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
503         (gomp_work_share_end_nowait): Use atomic ops when available.
504         * config/linux/bar.c, config/linux/bar.h: New files.
505         * config/posix/bar.c, config/posix/bar.h: New files.
507 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
509         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
510         * testsuite/libgomp.dg/single-2.c: New test.
512         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
513         lang_link_flags): Unset, so that they aren't inherited from previously
514         sourced *.exp.
516         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
518 2005-10-12  Richard Henderson  <rth@redhat.com>
520         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
521         (libgomp_init): Use lang_test_file, lang_library_path, and
522         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
524         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
525         (lang_test_file, lang_link_flags): New.
526         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
528         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
529         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
530         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
531         testsuite/libgomp.c++/parallel-1.C,
532         testsuite/libgomp.c++/reduction-1.C,
533         testsuite/libgomp.c++/reduction-2.C,
534         testsuite/libgomp.c++/reduction-3.C,
535         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
536         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
537         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
538         New files, largely cribbed from the C testsuite.
540 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
542         * testsuite/libgomp.fortran/character1.f90: New test.
543         * testsuite/libgomp.fortran/character2.f90: New test.
545         * testsuite/libgomp.dg/nested-1.c: New test.
546         * testsuite/libgomp.dg/nested-2.c: New test.
547         * testsuite/libgomp.fortran/do1.f90: New test.
548         * testsuite/libgomp.fortran/do2.f90: New test.
550         * testsuite/libgomp.fortran/reference1.f90: New test.
552 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
554         * testsuite/libgomp.dg/reduction-1.c: New test.
555         * testsuite/libgomp.dg/reduction-2.c: New test.
556         * testsuite/libgomp.dg/reduction-3.c: New test.
558 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
560         * testsuite/libgomp.dg/atomic-1.c: New test.
561         * testsuite/libgomp.dg/atomic-2.c: New test.
563 2005-10-09  Richard Henderson  <rth@redhat.com>
565         * critical.c (atomic_lock): New.
566         (initialize_critical): Initialize it.
567         (GOMP_atomic_start, GOMP_atomic_end): New.
568         * libgomp.map: Export them.
569         * libgomp_g.h: Declare them.
571         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
573 2005-10-02  Richard Henderson  <rth@redhat.com>
575         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
576         to XCFLAGS instead of CFLAGS.
578 2005-09-30  Richard Henderson  <rth@redhat.com>
580         * configure.ac: Determine whether -pthread or -lpthread is needed.
581         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
582         * Makefine.in, configure: Rebuild.
584 2005-09-28  Richard Henderson  <rth@redhat.com>
586         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
587         * testsuite/libgomp.dg/omp-single-3.c: New test.
589 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
591         * testsuite/libgomp.dg/omp-single-2.c: New test.
592         * testsuite/libgomp.dg/shared-2.c: Fix return code.
594 2005-09-27  Richard Henderson  <rth@redhat.com>
596         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
597         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
599 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
601         * testsuite/libgomp.dg/omp-loop03.c: New test.
603 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
605         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
607 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
609         * testsuite/libgomp.dg/omp-single-1.c: New test.
610         * testsuite/libgomp.dg/shared-1.c: Return 0.
611         Add prototype for abort.
612         * testsuite/libgomp.dg/shared-2.c: Likewise.
614 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
616         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
617         constructs.
619 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
621         * testsuite/libgomp.dg/shared-1.c: New test.
622         * testsuite/libgomp.dg/shared-2.c: New test.
624 2005-09-24  Richard Henderson  <rth@redhat.com>
626         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
628 2005-09-24  Richard Henderson  <rth@redhat.com>
630         * iter.c (gomp_iter_static_next): Round up when computing number
631         of iterations.  Don't bother distributing a remainder equally.
633         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
634         Don't call srand.  Zero b before testing.
635         (main): New.
637 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
639         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
640         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
642 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
644         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
645         without !$omp end do, followed immediately by subroutine end.
647 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
649         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
651 2005-09-22  Richard Henderson  <rth@redhat.com>
653         * critical.c (GOMP_critical_name_start): Change argument to void**.
654         Reuse the pointer space if the mutex fits.
655         (GOMP_critical_name_end): Likewise.
656         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
657         * libgomp_g.h (GOMP_critical_name_start): Update decl.
658         (GOMP_critical_name_end): Likewise.
659         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
660         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
662 2005-09-20  Richard Henderson  <rth@redhat.com>
664         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
665         (create_lock_lock): New.
666         (initialize_critical): Initialize it.
667         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
668         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
670 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
672         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
674 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
676         * testsuite/libgomp.dg/omp-loop01.c: New test.
677         * testsuite/libgomp.dg/omp-loop02.c: New test.
679 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
681         * configure.ac (AC_PROG_FC): Add.
682         (USE_FORTRAN): New automake conditional.
683         * configure: Rebuilt.
684         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
685         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
686         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
687         Add rules to build them.
688         * Makefile.in: Rebuilt.
689         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
690         OMP_NEST_LOCK_KIND.
691         * libgomp.map: Add Fortran wrappers.
692         * libgomp_f.h.in: New file.
693         * omp_lib.h.in: New file.
694         * omp_lib.f90.in: New file.
695         * fortran.c: New file.
696         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
697         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
698         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
699         libgfortran has been built.
700         * testsuite/libgomp.fortran/fortran.exp: New file.
701         * testsuite/libgomp.fortran/omp_cond1.f: New test.
702         * testsuite/libgomp.fortran/omp_cond2.f: New test.
703         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
704         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
705         * testsuite/libgomp.fortran/omp_hello.f: New test.
706         * testsuite/libgomp.fortran/omp_orphan.f: New test.
707         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
708         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
709         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
710         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
711         * testsuite/libgomp.fortran/omp_reduction.f: New test.
712         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
713         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
715 2005-08-30  Richard Henderson  <rth@redhat.com>
717         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
718         function for when aliases are not usable.
719         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
720         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
721         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
722         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
723         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
724         GOMP_loop_ordered_guided_next): Likewise.
725         * ordered.c (GOMP_ordered_start): Likewise.
727 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
729         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
730         * testsuite/libgomp.dg/omp_hello.c: Fix return code
731         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
732         * testsuite/libgomp.dg/omp_orphan.c: Likewise
733         * testsuite/libgomp.dg/omp_reduction.c: Likewise
734         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
735         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
736         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
737         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
739 2005-07-07  Eric Christopher  <echristo@redhat.com>
740             Diego Novillo  <dnovillo@redhat.com>
742         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
743         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
744         up code.
745         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
746         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
747         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
748         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
749         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
750         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
751         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
753 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
755         * TOPLEVEL.patch: Remove.
757 2005-05-16  Richard Henderson  <rth@redhat.com>
759         * configure.ac: Test for clock_gettime.
760         * config.h.in, configure: Rebuild.
761         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
762         (omp_get_wtime): Use clock_gettime if available.
763         (omp_get_wtick): Use clock_getres if available.
765 2005-05-11  Richard Henderson  <rth@redhat.com>
767         * config/linux/ia64/futex.h: New file.
768         * configure.tgt: Use it.
770         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
772 2005-05-07  Richard Henderson  <rth@redhat.com>
774         * config/linux/powerpc/futex.h: New file.
775         * configure.tgt: Use it.
777         * config/linux/i486/futex.h: Merge ...
778         * config/linux/x86_64/futex.h: ... into ...
779         * config/linux/x86/futex.h: ... here.
780         * configure.tgt: Update to match.
782 2005-05-06  Richard Henderson  <rth@redhat.com>
784         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
785         * config/linux/i486/futex.h: Likewise.
786         * config/linux/x86_64/futex.h: Likewise.
788         * config/linux/lock.c: New file.
789         * config/linux/omp-lock.h: New file.
791         * critical.c, env.h: Don't include omp.h
792         * config/posix/lock.c: Include libgomp.h instead of omp.h.
793         * config/posix/time.c: Likewise.
794         * config/posix/omp-lock.h: New file.
795         * libgomp.h: Include omp-lock.h and omp.h.
796         * Makefile.am (nodist_include_HEADERS): New.
797         (omp.h): New rule.
798         * configure.ac (PERL): New.
799         * mkomp_h.pl: New file.
800         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
801         with templates.
802         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
804         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
805         build directory.  Re-add -march=i486 hack.
807         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
808         (libgomp_link_flags): Remove.
809         (libgomp_initialized): Remove.
810         (libgomp_init): Don't protect from reinitialization.  Copy code
811         from libstdc++ for getting the multilib set correctly.
813 2005-05-05  Richard Henderson  <rth@redhat.com>
815         * config/linux/alpha/futex.h: New file.
816         * configure.tgt (alpha*-*-linux*): Use it.
818         * config/posix/mutex.c: New file.
819         * config/posix/sem.c: Use libgomp.h.
821         * configure.tgt (x86_64-linux): Also test CC for -m32.
822         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
824         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add / 
825         after $gccpath.
827         * Makefile.am (SUBDIRS): New.
828         (libgomp_la_LDFLAGS): Add -lpthread.
829         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
830         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
832         * libgomp_g.h: New file.
833         * libgomp.h: Split out all public declarations to libgomp_g.h.
834         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
835         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
836         * config/linux/sem.h: Likewise.
837         * config/posix/sem.h: Likewise.
839         * Makefile.am (AM_LDFLAGS): New.
840         (libgomp_version_script): Split out from ...
841         (libgomp_la_LDFLAGS): ... here.
842         (libgomp_version_info): New.
843         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
844         (LIBGOMP_ENABLE): New.
845         (LIBGOMP_CHECK_LINKER_FEATURES): New.
846         (LIBGOMP_ENABLE_SYMVERS): New.
847         * configure.ac (AC_INIT): Version 1.0.
848         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
849         (enable-linux-futex): Likewise.  Rename from enable-futex.
850         (libtool_VERSION): New.
851         (LIBGOMP_ENABLE_SYMVERS): Use it.
852         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
853         * Makefile.in, aclocal.m4, configure: Rebuild.
855         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
856         (gomp_mutex_unlock_slow): Fix typo.
857         * config/linux/sem.c: Similarly.
858         (gomp_sem_post_slow): Fix typo.
859         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
860         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
861         [__PIC__] (sys_futex0): Don't use tmp output in asm.
863         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
864         (libgomp_la_LDFLAGS): Add top_srcdir to path.
865         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
866         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
867         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
868         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
869         LDFLAGS.  Pull enable_futex check to top-level.
870         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
871         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
873         First attempt at real configury.
874         * Makefile, config.h: Remove file.
875         * Makefile.am, Makefile.in: New file.
876         * acinclude.m4 aclocal.m4: New file.
877         * configure.ac, configure.tgt, configure: New file.
879         * config/posix/lock.c: Rename from sys-lock.c.
880         * config/posix/mutex.h: Rename from sys-mutex.h.
881         * config/posix/sem.c: Rename from sys-sem.c.
882         * config/posix/sem.h: Rename from sys-sem.h.
883         * config/posix/proc.c: Rename from sys-proc.c.
884         * config/posix/time.c: Rename from sys-proc.c.
886         * config/linux/mutex.c: New file.
887         * config/linux/mutex.h: New file.
888         * config/linux/sem.c: New file.
889         * config/linux/sem.h: New file.
890         * config/linux/i486/futex.h: New file.
891         * config/linux/x86_64/futex.h: New file.
893 2005-05-04  Richard Henderson  <rth@redhat.com>
895         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
896         * libgomp.h: Declare them.
897         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
898         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
900 2005-05-04  Richard Henderson  <rth@redhat.com>
902         * libgomp-1 code drop
904 2005-05-04  Richard Henderson  <rth@redhat.com>
906         * iter.c (gomp_iter_static_next): Return tri-state on 0.
907         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
908         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
909         (gomp_iter_static_next): Update.
910         (gomp_ordered_static_next): Update.
911         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
912         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
913         totally empty range.
914         (gomp_loop_ordered_static_next): Refine test for calling
915         gomp_ordered_static_next.
916         * testsuite/ordered-1.c: Add case for more threads than iterations.
918         * iter.c (gomp_iter_runtime_next_locked): Remove.
919         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
920         gomp_loop_guided_start, gomp_loop_ordered_static_start, 
921         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
922         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
923         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
924         gomp_loop_ordered_guided_next): Downcase name, make static, add
925         an external alias with the old name.
926         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
927         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
928         switch and call one of the above static functions.
929         * libgomp.h: Update.
931         * work.c (gomp_work_share_start): Lock the mutex for !first too.
932         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
933         GOMP_loop_guided_start, GOMP_loop_runtime_start,
934         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
935         GOMP_loop_ordered_guided_start): Update to match.
936         * sections.c (GOMP_sections_start): Likewise.
937         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
939         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
940         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
941         Use bounds check instead of modulus.
942         (gomp_ordered_sync): Split out of GOMP_ordered_start.
943         (gomp_ordered_last): Don't sync with ordered_owner here.
944         (gomp_ordered_next): Likewise.
945         (gomp_ordered_static_loop_next): Likewise.
946         * loop.c, libgomp.h: Update to match.
948         * libgomp.h (GOMP_barrier): Declare.
950         * testsuite/barrier-1.c: New file.
951         * testsuite/critical-1.c: New file.
952         * testsuite/ordered-2.c: New file.
953         * testsuite/ordered-1.c: New file.
954         * testsuite/sections-1.c: New file.
955         * testsuite/single-1.c: New file.
956         * testsuite/Makefile (TESTS): Add them.
958 2005-05-04  Richard Henderson  <rth@redhat.com>
960         * libgomp.h (struct gomp_work_share): Add ordered_owner.
961         * loop.c (GOMP_loop_static_start): If not the startup thread,
962         acquire the mutex to wait for initialization complete.
963         (GOMP_loop_ordered_static_start): Likewise.
964         (GOMP_loop_ordered_runtime_start): Likewise.
965         (GOMP_loop_ordered_static_first): Remove.
966         (GOMP_loop_ordered_dynamic_first): Remove.
967         (GOMP_loop_ordered_guided_first): Remove.
968         (GOMP_loop_ordered_runtime_first): Remove.
969         * ordered.c (gomp_ordered_loop_first): Post to own release when
970         we're the first thread.
971         (gomp_ordered_loop_last): Wait on release if not owner.
972         (gomp_ordered_loop_next): Likewise.
973         (gomp_ordered_static_loop_init): New.
974         (gomp_ordered_static_loop_next): Use ordered_owner.
975         (GOMP_ordered_start): Likewise.
976         * work.c (gomp_new_work_share): Initialize ordered_owner.
978 2005-05-03  Richard Henderson  <rth@redhat.com>
980         * Makefile (OPT): New.
981         (CFLAGS): Use it.
983         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
984         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
985         * libgomp.h, libgomp.map, NOTES: Update to match.
987         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
988         Add initialized and thr members.
989         (gomp_thread_start): Pause when initially spawned to wait for
990         the whole team to be created.
991         (gomp_team_start): Release team members at the end.
993         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
994         (f_foo_1): Use GOMP_loop_end.
995         (f_foo_2): Use GOMP_loop_end_nowait.
997         * testsuite/loop-2.c: New file.
998         * testsuite/Makefile (TESTS): Add it.
1000 2005-05-03  Richard Henderson  <rth@redhat.com>
1002         * iter.c (gomp_iter_static_next): Fix overflow check typo.
1003         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1004         * team.c (new_team): Initialize oldest_live_gen to 1 if no
1005         initial work_share.
1007         * testsuite/Makefile: New file.
1008         * testsuite/loop-1.c: New file.
1010 2005-05-03  Richard Henderson  <rth@redhat.com>
1012         Initial implementation and checkin.