OSDN Git Service

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