OSDN Git Service

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