OSDN Git Service

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