OSDN Git Service

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