OSDN Git Service

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