OSDN Git Service

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