OSDN Git Service

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