OSDN Git Service

b11a5a0510411d1f8ab7631d1739aa3edcdc792b
[pf3gnuchains/gcc-fork.git] / libgomp / ChangeLog
1 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2
3         * testsuite/libgomp.fortran/stack.f90: New test.
4
5 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
6
7         * config/mingw32/proc.c: New file.
8
9 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
10
11         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
12         (main): Use __get_cpuid to get i386 target fetaures.
13         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14         (main): Use __get_cpuid to get x86_64 target fetaures.
15
16 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
17
18         PR target/32765
19         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
20         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
21
22 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
23
24         PR fortran/32550
25         * testsuite/libgomp.fortran/pr32550.f90: New test.
26         * testsuite/libgomp.fortran/crayptr2.f90: New test.
27
28 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
29
30         * aclocal.m4: Regenerated.
31
32 2007-07-05  Tobias Burnus  <burnus@net-b.de>
33
34         PR fortran/32359
35         * testsuite/libgomp.fortran/pr32359.f90: New.
36
37 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
38
39         PR libgomp/32468
40         * sections.c (GOMP_parallel_sections_start): Only decrease
41         number of threads to COUNT if dyn_var is true.
42         * testsuite/libgomp.c/pr32468.c: New test.
43
44 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
45
46         PR libgomp/26308
47         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
48
49 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
50
51         PR middle-end/32362
52         * testsuite/libgomp.c/pr32362-1.c: New test.
53         * testsuite/libgomp.c/pr32362-2.c: New test.
54         * testsuite/libgomp.c/pr32362-3.c: New test.
55
56 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
57
58         * team.c (gomp_team_start): Fix setting up thread_attr
59         stack size.
60
61 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
62
63         * configure: Regenerate.
64
65 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
66
67         * Makefile.in: Regenerate.
68         * configure: Regenerate.
69         * aclocal.m4: Regenerate.
70         * testsuite/Makefile.in: Regenerate.
71
72 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
73
74         * config/linux/proc.c: New file.
75
76         PR libgomp/28482
77         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
78
79 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
80
81         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
82
83 2007-04-16  Matthias Klose  <doko@debian.org>
84
85         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
86         flags if not building with -m64.
87         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
88         flag for i?86-*-* targets, if current target matches -m64.
89
90 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
91
92         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
93         * Makefile.in: Regenerate.
94
95 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
96
97         PR testsuite/31369
98         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
99         ld_library_path.
100         * testsuite/libgomp.fortran/fortran.exp: Likewise.
101
102 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
103
104         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
105         decls.
106         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
107         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
108         (parse_affinity): New function.
109         (initialize_env): Call it and gomp_init_affinity.
110         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
111         create new pthread_attr_t and call gomp_init_thread_affinity
112         on it for each thread before passing the attribute to pthread_create.
113         * config/linux/affinity.c: New file.
114         * config/posix/affinity.c: New file.
115         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
116         * configure: Rebuilt.
117         * config.h.in: Rebuilt.
118         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
119         * Makefile.in: Rebuilt.
120
121 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
122
123         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
124         *-*-darwin*.
125         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
126         and use it if found.
127
128 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
129
130         * testsuite/config/default.exp: New file.
131         * testsuite/lib/libgomp.exp: New file.
132         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
133         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
134         load_lib *, load_gcc_lib *): Move to libgomp.exp.
135         (libgomp_load): Remove.
136         * testsuite/lib/libgomp.exp (libgomp_init): Compute
137         always_ld_library_path, not ld_library_path.  Set additional_flags
138         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
139         (target_compile): Do not call libgomp_init.  Append lang_library_path
140         and lang_link_flags to options.
141         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
142         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
143         here.
144         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
145         always_ld_library_path.  Set LD_LIBRARY_PATH here.
146         * testsuite/libgomp.fortran/fortran.exp: Ditto.
147         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
148         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
149         CX8 flag.
150         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
151         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
152         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
153         * testsuite/libgomp.c/pr29947-1.c: Ditto.
154         * testsuite/libgomp.c/atomic-10.c: Ditto.
155
156 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
157
158         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
159         dg-final cleanup-modules line.
160         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
161         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
162         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
163         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
164         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
165         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
166         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
167
168 2007-03-18  Andreas Schwab  <schwab@suse.de>
169
170         * acinclude.m4: Adjust regular expression for ld version
171         extraction.
172         * configure: Regenerate.
173
174 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
175
176         * Makefile.am: Add install-pdf target as copied from
177         automake v1.10 rules.
178         * Makefile.in: Regenerate
179
180 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
181
182         PR libgomp/28486
183         * configure: Regenerate.
184
185         PR c++/30703
186         * testsuite/libgomp.c++/pr30703.C: New test.
187
188 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
189
190         Revert:
191         2006-07-05  Eric Christopher  <echristo@apple.com>
192         * configure.ac: Depend addition of -pthread on host OS.
193         * configure: Regenerate.
194
195 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
196
197         * libgomp.texi: Fix spacing after abbreviations.
198
199 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
200
201         PR libgomp/30546
202         * configure.ac: Add check for makeinfo
203         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
204         if an appropiate version of makeinfo is found.
205         * aclocal.m4: Regenerated.
206         * configure: Regenerated.
207         * Makefile.in: Regenerated.
208         * testsuite/Makefile.in: Regenerated.
209
210 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
211
212         PR libgomp/30540
213         * libgomp.texi: More about implementation-dependent settings.
214
215 2007-01-26  Tobias Burnus  <burnus@net-b.de>
216
217         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
218
219 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
220
221         PR middle-end/30494
222         * testsuite/libgomp.c/pr30494.c: New test.
223
224 2007-01-15  Tom Tromey  <tromey@redhat.com>
225
226         * configure: Rebuilt.
227         * configure.ac: Fixed comment.
228
229 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
230
231         * libgomp.texi: Document implementation specific default values of
232         environment variables.
233
234 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
235
236         PR libgomp/28209
237         * libgomp.texi: New file.
238         * configure.ac: Add --enable-generated-files-in-srcdir option.
239         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
240         files to srcdir.
241         * Makefile.in: Regenerated.
242         * config.h.in: Regenerated.
243         * testsuite/Makefile.in: Regenerated.
244         * NOTES: Removed.
245
246 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
247
248         PR libgomp/29949
249         * env.c (omp_set_num_threads): Set illegal thread count to 1.
250
251 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
252
253         * configure: Regenerate.
254
255 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
256
257         PR libgomp/29947
258         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
259         start if there shouldn't be any loop iterations.
260         (gomp_loop_ordered_static_start): Remove start == end test.
261         * testsuite/libgomp.c/pr29947-1.c: New test.
262         * testsuite/libgomp.c/pr29947-2.c: New test.
263
264 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
265
266         * configure.tgt: Force initial-exec TLS model on Linux only.
267
268 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
269
270         * configure: Regenerated.
271
272 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
273
274         * env.c (parse_schedule): Reject out of range values.
275         (parse_unsigned_long): Reject out of range, negative or zero values.
276
277 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
278
279         PR fortran/29629
280         * testsuite/libgomp.fortran/pr29629.f90: New test.
281
282 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
283
284         PR libgomp/29494
285         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
286         * config/posix95: New directory.
287         * config/posix95/omp-lock.h: New file.
288         * config/posix95/lock.c: Likewise.
289
290 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
291
292         * aclocal.m4: Regenerate.
293         * configure: Regenerate.
294
295 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
296
297         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
298         '<' to '<='.
299
300 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
301
302         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
303         test.
304         * configure: Regenerate.
305         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
306
307 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
308
309         PR middle-end/25261
310         PR middle-end/28790
311         * testsuite/libgomp.c/nestedfn-4.c: New test.
312         * testsuite/libgomp.c/nestedfn-5.c: New test.
313         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
314
315         PR fortran/29097
316         * testsuite/libgomp.fortran/condinc1.f: New test.
317         * testsuite/libgomp.fortran/condinc2.f: New test.
318         * testsuite/libgomp.fortran/condinc3.f90: New test.
319         * testsuite/libgomp.fortran/condinc4.f90: New test.
320         * testsuite/libgomp.fortran/condinc1.inc: New file.
321
322 2006-09-18  Tom Tromey  <tromey@redhat.com>
323
324         * configure: Rebuilt.
325
326 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
327
328         PR c/28768
329         PR preprocessor/14634
330         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
331         to AC_DEFINE.
332         * configure: Regenerate.
333
334 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
335
336         * testsuite/libgomp.fortran/reduction3.f90: Change
337         -2147483648 to -huge(i)-1 to avoid overflow.
338         * testsuite/libgomp.fortran/reduction4.f90: Change
339         Z'ffffffff' to not(0) to avoid overflow.
340
341 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
342
343         PR libgomp/25938
344         * Makefile.am (libsubincludedir): New.
345         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
346         * Makefile.in: Regenerate.
347
348 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
349
350         PR libgomp/28725
351         * env.c: Include ctype.h.
352         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
353         leading and/or trailing whitespace and compare strings case
354         insensitively.
355
356 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
357
358         PR fortran/28390
359         * testsuite/libgomp.fortran/pr28390.f: New test.
360
361 2006-07-05  Eric Christopher  <echristo@apple.com>
362
363         * configure.ac: Depend addition of -pthread on host OS.
364         * configure: Regenerate.
365
366 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
367
368         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
369         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
370         defined.
371
372 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
373
374         PR libgomp/26175
375         PR libgomp/26477
376         * configure.ac: If neither --enable-linux-futex nor
377         --disable-linux-futex is passed, determine the default by checking
378         for compiling and/or running against NPTL.  With --enable-linux-futex,
379         check if SYS_gettid and SYS_futex are defined.
380         * configure: Rebuilt.
381
382 2006-06-14  Richard Henderson  <rth@redhat.com>
383
384         PR libgomp/28008
385         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
386         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
387
388 2006-06-09  Richard Henderson  <rth@redhat.com>
389
390         * env.c (gomp_nthreads_var): Change to unsigned long.
391         (gomp_run_sched_chunk): Likewise.
392         (parse_unsigned_long): Rename from parse_num_threads and generalize.
393         (initialize_env): Initialize gomp_thread_attr.
394         * libgomp.h (gomp_nthreads_var): Update decl.
395         (gomp_run_sched_chunk): Likewise.
396         (gomp_thread_attr): Declare.
397         * team.c (gomp_thread_attr): Export.
398         (initialize_team): Don't initialize it.
399
400 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
401
402         PR fortran/27916
403         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
404         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
405
406 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
407
408         * config/mingw32/time.c: New file.
409         * configure.tgt: Use it.
410
411 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
412
413         * Makefile.am: Add install-html target. Add install-html to .PHONY
414         * Makefile.in: Regenerate.
415
416 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
417
418         PR libgomp/27612
419         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
420         * testsuite/libgomp.c/critical-1.c: Likewise.
421         * testsuite/libgomp.c/loop-1.c: Likewise.
422         * testsuite/libgomp.c/loop-2.c: Likewise.
423         * testsuite/libgomp.c/single-1.c: Likewise.
424         * testsuite/libgomp.c/ordered-1.c: Likewise.
425         * testsuite/libgomp.c/ordered-2.c: Likewise.
426
427 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
428
429         PR middle-end/27416
430         * libgomp.fortran/pr27416-1.f90: New test.
431
432 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
433
434         PR fortran/27395
435         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
436         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
437
438 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
439
440         PR c++/26943
441         * testsuite/libgomp.c/pr26943-1.c: New test.
442         * testsuite/libgomp.c/pr26943-2.c: New test.
443         * testsuite/libgomp.c/pr26943-3.c: New test.
444         * testsuite/libgomp.c/pr26943-4.c: New test.
445         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
446         * testsuite/libgomp.c++/pr26943.C: New test.
447
448 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
449
450         PR middle-end/27337
451         * testsuite/libgomp.c++/pr27337.C: New test.
452
453 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
454
455         PR c/26171
456         * testsuite/libgomp.c/pr26171.c: New test.
457
458 2006-04-25  Richard Henderson  <rth@redhat.com>
459
460         PR libgomp/25865
461         * configure.ac: Use GCC_CHECK_TLS.
462         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
463         * Makefile.in, aclocal.m4, configure: Regenerate.
464
465 2006-04-10  Matthias Klose  <doko@debian.org>
466
467         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
468         directory names containing underscores.
469
470 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
471
472         PR c++/26691
473         * testsuite/libgomp.c++/pr26691.C: New test.
474
475 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
476
477         * testsuite/libgomp.fortran/retval2.f90: New test.
478
479 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
480
481         * testsuite/libgomp.c++: New directory.
482
483 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
484
485         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
486         * config/posix/sem.c: Implement the above.
487
488 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
489
490         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
491         define HAVE_BROKEN_POSIX_SEMAPHORES.
492         * configure: Rebuilt.
493         * config.h.in: Rebuilt.
494
495 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
496
497         PR bootstrap/26161
498         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
499         for the other pthread check.
500         * configure: Regenerate.
501         * config.h.in: Regenerate.
502
503 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
504
505         PR libgomp/25938
506         PR libgomp/25984
507         * Makefile.am (fincludedir): New variable.
508         (nodist_include_HEADERS): Remove Fortran files.
509         (nodist_finclude_HEADERS): New variable.
510         * Makefile.in: Regenerated.
511
512 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
513
514         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
515         Remove tests for returning assumed character length arrays.
516
517 2006-02-12  Roger Sayle  <roger@eyesopen.com>
518             John David Anglin  <dave@hiauly1.hia.nrc.ca>
519
520         PR libgomp/25936
521         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
522
523 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
524
525         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
526
527 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
528
529         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
530         part of LD_LIBRARY_PATH manually.
531
532 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
533
534         PR libgomp/25852
535         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
536         libgomp_init.
537
538 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
539
540         PR libgomp/25884
541         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
542         * configure.ac (PERL): Don't set.
543         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
544         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
545         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
546         * omp.h.in: Wrap the new configure substitutions with @ characters.
547         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
548         * aclocal.m4, configure, Makefile.in: Regenerate.
549         * mkomp_h.pl: Delete.
550
551 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
552
553         PR libgomp/25259
554         * configure.ac: Use GCC_HEADER_STDINT.
555         * libgomp.h: Include gstdint.h.
556         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
557         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
558
559 2006-01-24  Richard Henderson  <rth@redhat.com>
560
561         PR libgomp/25942
562         * configure.ac: Add AM_MAINTAINER_MODE.
563         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
564
565 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
566
567         * Makefile.in: Regenerate.
568         * testsuite/Makefile.in: Regenerate.
569         * aclocal.m4: Regenerate.
570
571 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
572
573         * config/posix/proc.c: Conditional include of sys/loadavg.h for
574         Solaris.
575         * configure.ac: Add check for loadavg.h.
576         (link_gomp): Adjust comment.
577         * configure: Regenerate.
578         * config.h.in: Regenerate.
579
580 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
581
582         PR libgomp/25877
583         * configure.ac: Remove check for alloca.h.
584         * configure: Regenerate.
585         * config.h.in: Regenerate.
586         * libgomp.h: define gomp_alloca to be __builtin_alloca.
587         * team.c: Remove use of alloca.h.
588         Call gomp_alloca instead of alloca.
589
590 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
591
592         PR libgomp/25877
593         * team.c: Add include of alloca.h.
594         * configure.ac: Add check for alloca.h.
595         * configure: Regenerate.
596         * config.h.in: Regenerate.
597
598 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
599
600         PR fortran/25219
601         * testsuite/libgomp.fortran/pr25219.f90: New test.
602
603 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
604
605         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
606         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
607         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
608         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
609         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
610         testsuite/libgomp.fortran/threadprivate1.f90,
611         testsuite/libgomp.fortran/threadprivate2.f90,
612         testsuite/libgomp.fortran/threadprivate3.f90,
613         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
614         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
615         testsuite/libgomp.fortran/omp_parse3.f90: Change required
616         effective-target to TLS runtime.
617
618         * testsuite/libgomp.fortran/pr25162.f: Require
619         effective-target TLS runtime.
620
621 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
622
623         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
624         * testsuite/libgomp.c/nestedfn-3.c: New test.
625
626 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
627
628         PR fortran/25162
629         * testsuite/libgomp.fortran/pr25162.f: New test.
630
631 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
632
633         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
634         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
635
636 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
637
638         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
639         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
640         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
641         single.c, team.c, work.c, config/linux/alpha/futex.h,
642         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
643         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
644         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
645         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
646         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
647         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
648         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
649         FSF address.
650
651 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
652
653         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
654         to nodist_noinst_HEADERS.
655         * Makefile.in: Rebuilt.
656
657         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
658         add integer count field.
659         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
660         omp_nest_lock_t type change.
661         (omp_init_nest_lock): Likewise.  Initialize count to 0.
662         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
663         Increment count.
664         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
665         Decrement count.
666         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
667         Increment count if successful and return the new nesting level.
668         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
669         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
670         * testsuite/libgomp.c/lib-1.c: New test.
671         * testsuite/libgomp.fortran/lib1.f90: New test.
672         * testsuite/libgomp.fortran/lib2.f: New test.
673         * testsuite/libgomp.fortran/lib3.f: New test.
674
675 2005-11-17  Richard Henderson  <rth@redhat.com>
676
677         PR 24845
678         * Makefile.am (nodist_toolexeclib_HEADERS): New.
679         * configure.ac (link_gomp): New.  Substitute it.
680         (AC_CONFIG_FILES): Add libgomp.spec.
681         * libgomp.spec.in: New file.
682         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
683         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
684
685 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
686
687         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
688         reduction(-:var) behaving the same as reduction(+:var).
689         * testsuite/libgomp.c/reduction-4.c: New test.
690
691 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
692
693         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
694         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
695         testsuite/libgomp.c/copyin-3.c,
696         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
697         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
698         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
699         testsuite/libgomp.c++/pr24455.C,
700         testsuite/libgomp.fortran/threadprivate1.f90,
701         testsuite/libgomp.fortran/threadprivate2.f90,
702         testsuite/libgomp.fortran/threadprivate3.f90,
703         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
704         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
705         testsuite/libgomp.fortran/omp_parse3.f90: Require
706         effective-target TLS.
707
708 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
709
710         * HEADER: Remove.
711
712 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
713
714         PR libgomp/24797
715         * team.c (initialize_team): Pass NULL rather than free as
716         pthread_key_create destructor.  Initialize thread specific data
717         pointer in initial thread to a static local variable rather than
718         malloced memory.
719
720 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
721
722         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
723         its location to ld_library_path.
724
725 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
726
727         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
728
729 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
730
731         * testsuite/libgomp.c: Rename from libgomp.dg.
732
733 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
734
735         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
736         threadprivate variable 'i'.
737
738 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
739
740         * config/linux/s390/futex.h: New file.
741         * configure.tgt: Use it.
742
743         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
744         before the parallel.
745
746 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
747
748         PR c++/24734
749         * testsuite/libgomp.c++/master-1.C: New test.
750
751 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
752
753         * testsuite/libgomp.dg/copyin-3.c: New test.
754
755 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
756
757         * testsuite/libgomp.fortran/retval1.f90: New test.
758         * testsuite/libgomp.fortran/vla7.f90: New test.
759
760 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
761
762         * testsuite/libgomp.fortran/vla2.f90: New test.
763         * testsuite/libgomp.fortran/vla3.f90: New test.
764         * testsuite/libgomp.fortran/vla4.f90: New test.
765         * testsuite/libgomp.fortran/vla5.f90: New test.
766         * testsuite/libgomp.fortran/vla6.f90: New test.
767
768 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
769
770         * config/linux/sparc/futex.h: New file.
771         * configure.tgt: Use it.
772         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
773
774         * critical.c: Include stdlib.h.
775         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
776         ignoring return value.
777         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
778         LIBGOMP_CHECK_SYNC_BUILTINS check.
779         * configure: Rebuilt.
780
781 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
782
783         * testsuite/libgomp.fortran/vla1.f90: New test.
784
785 2005-10-31  Richard Henderson  <rth@redhat.com>
786
787         * testsuite/libgomp.fortran/character2.f90: Fix race condition
788         setting 's' in different threads.
789
790 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
791
792         * libgomp.h (attribute_hidden, ialias): Define.
793         * config/posix/proc.c (omp_get_num_procs): Add ialias.
794         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
795         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
796         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
797         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
798         omp_test_lock, omp_test_nest_lock): Likewise.
799         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
800         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
801         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
802         omp_test_lock, omp_test_nest_lock): Likewise.
803         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
804         omp_get_dynamic, omp_get_nested): Likewise.
805         * parallel.c (omp_get_num_threads, omp_get_max_threads,
806         omp_get_thread_num, omp_in_parallel): Likewise.
807         * fortran.c (ialias_redirect): Define.
808         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
809         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
810         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
811         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
812         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
813         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
814         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
815         omp_get_wtime): Add ialias_redirect.
816
817 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
818
819         * fortran.c: Include stdlib.h.
820
821 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
822
823         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
824         * Makefile.in: Regenerated.
825
826 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
827
828         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
829         * libgomp_f.h.in (omp_check_defines): New function.
830         * env.c: Include libgomp_f.h.
831         (initialize_env): Call omp_check_defines.
832
833         * testsuite/libgomp.dg/copyin-2.c: New test.
834         * testsuite/libgomp.c++/copyin-2.C: New test.
835         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
836
837         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
838         * testsuite/libgomp.fortran/sharing2.f90: New test.
839
840         * testsuite/libgomp.dg/copyin-1.c: New test.
841         * testsuite/libgomp.c++/copyin-1.C: New test.
842
843 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
844
845         * testsuite/libgomp.fortran/crayptr1.f90: New test.
846
847         * testsuite/libgomp.fortran/workshare1.f90: New test.
848
849         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
850         only test.
851         * libgomp.fortran/sharing1.f90: New test.
852
853 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
854
855         PR c++/24502
856         * testsuite/libgomp.c++/loop-7.C: New test.
857
858         * testsuite/libgomp.dg/nestedfn-2.c: New test.
859
860         * testsuite/libgomp.dg/nestedfn-1.c: New test.
861         * testsuite/libgomp.fortran/reduction6.f90: New test.
862         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
863
864 2005-10-23  Richard Henderson  <rth@redhat.com>
865
866         * testsuite/libgomp.c++/ctor-1.C: New.
867         * testsuite/libgomp.c++/ctor-2.C: New.
868         * testsuite/libgomp.c++/ctor-3.C: New.
869         * testsuite/libgomp.c++/ctor-4.C: New.
870         * testsuite/libgomp.c++/ctor-5.C: New.
871         * testsuite/libgomp.c++/ctor-6.C: New.
872         * testsuite/libgomp.c++/ctor-7.C: New.
873         * testsuite/libgomp.c++/ctor-8.C: New.
874         * testsuite/libgomp.c++/ctor-9.C: New.
875
876 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
877
878         PR 24455
879         * testsuite/libgomp.c++/pr24455-1.C: New test.
880         * testsuite/libgomp.c++/pr24455.C: New test.
881         * testsuite/libgomp.dg/pr24455-1.c: New test.
882         * testsuite/libgomp.dg/pr24455.c: New test.
883
884 2005-10-20  Richard Henderson  <rth@redhat.com>
885
886         * testsuite/libgomp.c++/loop-6.C: New.
887         * testsuite/libgomp.dg/loop-3.c: New.
888
889 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
890
891         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
892         explicitly private.
893         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
894         explicitly shared.
895
896 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
897
898         * testsuite/libgomp.fortran/jacobi.f: New test.
899
900 2005-10-19  Richard Henderson  <rth@redhat.com>
901
902         * configure.tgt (i?86-linux): Default to with_arch instead of
903         CFLAGS.  Add -mtune to match target_cpu.
904         (x86_64-linux): Tune to i686.
905
906         * fortran.c (omp_test_nest_lock_): Fix typo.
907
908 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
909
910         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
911         gomp_ordered_sync): Do nothing if team->nthreads == 1.
912         * testsuite/libgomp.dg/ordered-3.c: New test.
913
914         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
915         Remove volatile keyword.
916
917         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
918         in COMMON block to avoid warnings on 64-bit targets.
919
920 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
921
922         * testsuite/libgomp.dg/shared-3.c: New test.
923
924 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
925
926         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
927         * testsuite/libgomp.fortran/reduction5.f90: New test.
928
929 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
930
931         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
932         dg-options.
933         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
934         flush loop now that __sync_synchronize has proper memory barrier.
935         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
936         Add -ffixed-form to dg-options.
937
938 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
939
940         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
941         from subdirectories.
942         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
943         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
944         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
945         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
946         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
947         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
948         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
949         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
950         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
951         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
952         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
953         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
954         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
955         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
956         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
957         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
958         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
959         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
960         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
961         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
962         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
963         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
964         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
965         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
966         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
967
968 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
969
970         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
971         lang_library_path exists.  Use find instead of glob to gather tests.
972         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
973
974 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
975
976         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
977         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
978         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
979         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
980         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
981         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
982         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
983         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
984         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
985         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
986         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
987         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
988         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
989
990 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
991
992         * testsuite/libgomp.dg/vla-1.c: New test.
993
994         * testsuite/libgomp.fortran/reference2.f90: New test.
995
996         * testsuite/libgomp.fortran/character2.f90: Remove explicit
997         declaration of omp_get_thread_num.
998         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
999         use omp_lib.
1000
1001         * testsuite/libgomp.fortran/reduction1.f90: New test.
1002         * testsuite/libgomp.fortran/reduction2.f90: New test.
1003         * testsuite/libgomp.fortran/reduction3.f90: New test.
1004         * testsuite/libgomp.fortran/reduction4.f90: New test.
1005
1006 2005-10-13  Richard Henderson  <rth@redhat.com>
1007
1008         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1009         * Makefile.in: Regenerate.
1010         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1011         * libgomp.h: Include bar.h.
1012         (struct gomp_barrier): Remove.
1013         (struct gomp_team): Add barrier.  Replace master_barrier with
1014         master_release.  Replace threads with ordered_release.
1015         (struct gomp_thread): Replace barrier with release.
1016         * ordered.c (gomp_ordered_first): Update for ordered_release change.
1017         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1018         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1019         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1020         (GOMP_single_copy_end): Likewise.
1021         * team.c (gomp_threads_dock): New.
1022         (gomp_barrier_init, gomp_barrier_destroy): Remove.
1023         (gomp_thread_start): Use gomp_barrier_wait.
1024         (new_team, free_team): Update for gomp_team changes.
1025         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1026         (gomp_team_end): Use gomp_barrier_wait.
1027         (initialize_team): Update for gomp_thread changes.
1028         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1029         (gomp_work_share_end_nowait): Use atomic ops when available.
1030         * config/linux/bar.c, config/linux/bar.h: New files.
1031         * config/posix/bar.c, config/posix/bar.h: New files.
1032
1033 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
1034
1035         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1036         * testsuite/libgomp.dg/single-2.c: New test.
1037
1038         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1039         lang_link_flags): Unset, so that they aren't inherited from previously
1040         sourced *.exp.
1041
1042         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1043
1044 2005-10-12  Richard Henderson  <rth@redhat.com>
1045
1046         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1047         (libgomp_init): Use lang_test_file, lang_library_path, and
1048         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
1049
1050         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1051         (lang_test_file, lang_link_flags): New.
1052         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1053
1054         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1055         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1056         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1057         testsuite/libgomp.c++/parallel-1.C,
1058         testsuite/libgomp.c++/reduction-1.C,
1059         testsuite/libgomp.c++/reduction-2.C,
1060         testsuite/libgomp.c++/reduction-3.C,
1061         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1062         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1063         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1064         New files, largely cribbed from the C testsuite.
1065
1066 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
1067
1068         * testsuite/libgomp.fortran/character1.f90: New test.
1069         * testsuite/libgomp.fortran/character2.f90: New test.
1070
1071         * testsuite/libgomp.dg/nested-1.c: New test.
1072         * testsuite/libgomp.dg/nested-2.c: New test.
1073         * testsuite/libgomp.fortran/do1.f90: New test.
1074         * testsuite/libgomp.fortran/do2.f90: New test.
1075
1076         * testsuite/libgomp.fortran/reference1.f90: New test.
1077
1078 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
1079
1080         * testsuite/libgomp.dg/reduction-1.c: New test.
1081         * testsuite/libgomp.dg/reduction-2.c: New test.
1082         * testsuite/libgomp.dg/reduction-3.c: New test.
1083
1084 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
1085
1086         * testsuite/libgomp.dg/atomic-1.c: New test.
1087         * testsuite/libgomp.dg/atomic-2.c: New test.
1088
1089 2005-10-09  Richard Henderson  <rth@redhat.com>
1090
1091         * critical.c (atomic_lock): New.
1092         (initialize_critical): Initialize it.
1093         (GOMP_atomic_start, GOMP_atomic_end): New.
1094         * libgomp.map: Export them.
1095         * libgomp_g.h: Declare them.
1096
1097         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1098
1099 2005-10-02  Richard Henderson  <rth@redhat.com>
1100
1101         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
1102         to XCFLAGS instead of CFLAGS.
1103
1104 2005-09-30  Richard Henderson  <rth@redhat.com>
1105
1106         * configure.ac: Determine whether -pthread or -lpthread is needed.
1107         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1108         * Makefine.in, configure: Rebuild.
1109
1110 2005-09-28  Richard Henderson  <rth@redhat.com>
1111
1112         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1113         * testsuite/libgomp.dg/omp-single-3.c: New test.
1114
1115 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
1116
1117         * testsuite/libgomp.dg/omp-single-2.c: New test.
1118         * testsuite/libgomp.dg/shared-2.c: Fix return code.
1119
1120 2005-09-27  Richard Henderson  <rth@redhat.com>
1121
1122         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1123         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1124
1125 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
1126
1127         * testsuite/libgomp.dg/omp-loop03.c: New test.
1128
1129 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
1130
1131         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1132
1133 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
1134
1135         * testsuite/libgomp.dg/omp-single-1.c: New test.
1136         * testsuite/libgomp.dg/shared-1.c: Return 0.
1137         Add prototype for abort.
1138         * testsuite/libgomp.dg/shared-2.c: Likewise.
1139
1140 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
1141
1142         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1143         constructs.
1144
1145 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
1146
1147         * testsuite/libgomp.dg/shared-1.c: New test.
1148         * testsuite/libgomp.dg/shared-2.c: New test.
1149
1150 2005-09-24  Richard Henderson  <rth@redhat.com>
1151
1152         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1153
1154 2005-09-24  Richard Henderson  <rth@redhat.com>
1155
1156         * iter.c (gomp_iter_static_next): Round up when computing number
1157         of iterations.  Don't bother distributing a remainder equally.
1158
1159         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1160         Don't call srand.  Zero b before testing.
1161         (main): New.
1162
1163 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
1164
1165         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1166         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1167
1168 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
1169
1170         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1171         without !$omp end do, followed immediately by subroutine end.
1172
1173 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
1174
1175         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1176
1177 2005-09-22  Richard Henderson  <rth@redhat.com>
1178
1179         * critical.c (GOMP_critical_name_start): Change argument to void**.
1180         Reuse the pointer space if the mutex fits.
1181         (GOMP_critical_name_end): Likewise.
1182         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1183         * libgomp_g.h (GOMP_critical_name_start): Update decl.
1184         (GOMP_critical_name_end): Likewise.
1185         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1186         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1187
1188 2005-09-20  Richard Henderson  <rth@redhat.com>
1189
1190         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1191         (create_lock_lock): New.
1192         (initialize_critical): Initialize it.
1193         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1194         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1195
1196 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
1197
1198         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1199
1200 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
1201
1202         * testsuite/libgomp.dg/omp-loop01.c: New test.
1203         * testsuite/libgomp.dg/omp-loop02.c: New test.
1204
1205 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
1206
1207         * configure.ac (AC_PROG_FC): Add.
1208         (USE_FORTRAN): New automake conditional.
1209         * configure: Rebuilt.
1210         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1211         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1212         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1213         Add rules to build them.
1214         * Makefile.in: Rebuilt.
1215         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1216         OMP_NEST_LOCK_KIND.
1217         * libgomp.map: Add Fortran wrappers.
1218         * libgomp_f.h.in: New file.
1219         * omp_lib.h.in: New file.
1220         * omp_lib.f90.in: New file.
1221         * fortran.c: New file.
1222         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1223         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1224         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1225         libgfortran has been built.
1226         * testsuite/libgomp.fortran/fortran.exp: New file.
1227         * testsuite/libgomp.fortran/omp_cond1.f: New test.
1228         * testsuite/libgomp.fortran/omp_cond2.f: New test.
1229         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1230         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1231         * testsuite/libgomp.fortran/omp_hello.f: New test.
1232         * testsuite/libgomp.fortran/omp_orphan.f: New test.
1233         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1234         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1235         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1236         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1237         * testsuite/libgomp.fortran/omp_reduction.f: New test.
1238         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1239         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1240
1241 2005-08-30  Richard Henderson  <rth@redhat.com>
1242
1243         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1244         function for when aliases are not usable.
1245         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1246         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1247         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1248         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1249         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1250         GOMP_loop_ordered_guided_next): Likewise.
1251         * ordered.c (GOMP_ordered_start): Likewise.
1252
1253 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
1254
1255         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1256         * testsuite/libgomp.dg/omp_hello.c: Fix return code
1257         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1258         * testsuite/libgomp.dg/omp_orphan.c: Likewise
1259         * testsuite/libgomp.dg/omp_reduction.c: Likewise
1260         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1261         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1262         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1263         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1264
1265 2005-07-07  Eric Christopher  <echristo@redhat.com>
1266             Diego Novillo  <dnovillo@redhat.com>
1267
1268         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1269         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1270         up code.
1271         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1272         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1273         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1274         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1275         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1276         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1277         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1278
1279 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
1280
1281         * TOPLEVEL.patch: Remove.
1282
1283 2005-05-16  Richard Henderson  <rth@redhat.com>
1284
1285         * configure.ac: Test for clock_gettime.
1286         * config.h.in, configure: Rebuild.
1287         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1288         (omp_get_wtime): Use clock_gettime if available.
1289         (omp_get_wtick): Use clock_getres if available.
1290
1291 2005-05-11  Richard Henderson  <rth@redhat.com>
1292
1293         * config/linux/ia64/futex.h: New file.
1294         * configure.tgt: Use it.
1295
1296         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1297
1298 2005-05-07  Richard Henderson  <rth@redhat.com>
1299
1300         * config/linux/powerpc/futex.h: New file.
1301         * configure.tgt: Use it.
1302
1303         * config/linux/i486/futex.h: Merge ...
1304         * config/linux/x86_64/futex.h: ... into ...
1305         * config/linux/x86/futex.h: ... here.
1306         * configure.tgt: Update to match.
1307
1308 2005-05-06  Richard Henderson  <rth@redhat.com>
1309
1310         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1311         * config/linux/i486/futex.h: Likewise.
1312         * config/linux/x86_64/futex.h: Likewise.
1313
1314         * config/linux/lock.c: New file.
1315         * config/linux/omp-lock.h: New file.
1316
1317         * critical.c, env.h: Don't include omp.h
1318         * config/posix/lock.c: Include libgomp.h instead of omp.h.
1319         * config/posix/time.c: Likewise.
1320         * config/posix/omp-lock.h: New file.
1321         * libgomp.h: Include omp-lock.h and omp.h.
1322         * Makefile.am (nodist_include_HEADERS): New.
1323         (omp.h): New rule.
1324         * configure.ac (PERL): New.
1325         * mkomp_h.pl: New file.
1326         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1327         with templates.
1328         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1329
1330         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1331         build directory.  Re-add -march=i486 hack.
1332
1333         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1334         (libgomp_link_flags): Remove.
1335         (libgomp_initialized): Remove.
1336         (libgomp_init): Don't protect from reinitialization.  Copy code
1337         from libstdc++ for getting the multilib set correctly.
1338
1339 2005-05-05  Richard Henderson  <rth@redhat.com>
1340
1341         * config/linux/alpha/futex.h: New file.
1342         * configure.tgt (alpha*-*-linux*): Use it.
1343
1344         * config/posix/mutex.c: New file.
1345         * config/posix/sem.c: Use libgomp.h.
1346
1347         * configure.tgt (x86_64-linux): Also test CC for -m32.
1348         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1349
1350         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1351         after $gccpath.
1352
1353         * Makefile.am (SUBDIRS): New.
1354         (libgomp_la_LDFLAGS): Add -lpthread.
1355         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1356         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1357
1358         * libgomp_g.h: New file.
1359         * libgomp.h: Split out all public declarations to libgomp_g.h.
1360         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1361         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1362         * config/linux/sem.h: Likewise.
1363         * config/posix/sem.h: Likewise.
1364
1365         * Makefile.am (AM_LDFLAGS): New.
1366         (libgomp_version_script): Split out from ...
1367         (libgomp_la_LDFLAGS): ... here.
1368         (libgomp_version_info): New.
1369         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1370         (LIBGOMP_ENABLE): New.
1371         (LIBGOMP_CHECK_LINKER_FEATURES): New.
1372         (LIBGOMP_ENABLE_SYMVERS): New.
1373         * configure.ac (AC_INIT): Version 1.0.
1374         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1375         (enable-linux-futex): Likewise.  Rename from enable-futex.
1376         (libtool_VERSION): New.
1377         (LIBGOMP_ENABLE_SYMVERS): Use it.
1378         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1379         * Makefile.in, aclocal.m4, configure: Rebuild.
1380
1381         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1382         (gomp_mutex_unlock_slow): Fix typo.
1383         * config/linux/sem.c: Similarly.
1384         (gomp_sem_post_slow): Fix typo.
1385         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1386         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1387         [__PIC__] (sys_futex0): Don't use tmp output in asm.
1388
1389         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1390         (libgomp_la_LDFLAGS): Add top_srcdir to path.
1391         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1392         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
1393         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1394         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1395         LDFLAGS.  Pull enable_futex check to top-level.
1396         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
1397         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1398
1399         First attempt at real configury.
1400         * Makefile, config.h: Remove file.
1401         * Makefile.am, Makefile.in: New file.
1402         * acinclude.m4 aclocal.m4: New file.
1403         * configure.ac, configure.tgt, configure: New file.
1404
1405         * config/posix/lock.c: Rename from sys-lock.c.
1406         * config/posix/mutex.h: Rename from sys-mutex.h.
1407         * config/posix/sem.c: Rename from sys-sem.c.
1408         * config/posix/sem.h: Rename from sys-sem.h.
1409         * config/posix/proc.c: Rename from sys-proc.c.
1410         * config/posix/time.c: Rename from sys-proc.c.
1411
1412         * config/linux/mutex.c: New file.
1413         * config/linux/mutex.h: New file.
1414         * config/linux/sem.c: New file.
1415         * config/linux/sem.h: New file.
1416         * config/linux/i486/futex.h: New file.
1417         * config/linux/x86_64/futex.h: New file.
1418
1419 2005-05-04  Richard Henderson  <rth@redhat.com>
1420
1421         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1422         * libgomp.h: Declare them.
1423         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1424         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1425
1426 2005-05-04  Richard Henderson  <rth@redhat.com>
1427
1428         * libgomp-1 code drop
1429
1430 2005-05-04  Richard Henderson  <rth@redhat.com>
1431
1432         * iter.c (gomp_iter_static_next): Return tri-state on 0.
1433         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1434         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1435         (gomp_iter_static_next): Update.
1436         (gomp_ordered_static_next): Update.
1437         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1438         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
1439         totally empty range.
1440         (gomp_loop_ordered_static_next): Refine test for calling
1441         gomp_ordered_static_next.
1442         * testsuite/ordered-1.c: Add case for more threads than iterations.
1443
1444         * iter.c (gomp_iter_runtime_next_locked): Remove.
1445         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1446         gomp_loop_guided_start, gomp_loop_ordered_static_start,
1447         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1448         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1449         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1450         gomp_loop_ordered_guided_next): Downcase name, make static, add
1451         an external alias with the old name.
1452         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1453         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1454         switch and call one of the above static functions.
1455         * libgomp.h: Update.
1456
1457         * work.c (gomp_work_share_start): Lock the mutex for !first too.
1458         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1459         GOMP_loop_guided_start, GOMP_loop_runtime_start,
1460         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1461         GOMP_loop_ordered_guided_start): Update to match.
1462         * sections.c (GOMP_sections_start): Likewise.
1463         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1464
1465         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1466         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1467         Use bounds check instead of modulus.
1468         (gomp_ordered_sync): Split out of GOMP_ordered_start.
1469         (gomp_ordered_last): Don't sync with ordered_owner here.
1470         (gomp_ordered_next): Likewise.
1471         (gomp_ordered_static_loop_next): Likewise.
1472         * loop.c, libgomp.h: Update to match.
1473
1474         * libgomp.h (GOMP_barrier): Declare.
1475
1476         * testsuite/barrier-1.c: New file.
1477         * testsuite/critical-1.c: New file.
1478         * testsuite/ordered-2.c: New file.
1479         * testsuite/ordered-1.c: New file.
1480         * testsuite/sections-1.c: New file.
1481         * testsuite/single-1.c: New file.
1482         * testsuite/Makefile (TESTS): Add them.
1483
1484 2005-05-04  Richard Henderson  <rth@redhat.com>
1485
1486         * libgomp.h (struct gomp_work_share): Add ordered_owner.
1487         * loop.c (GOMP_loop_static_start): If not the startup thread,
1488         acquire the mutex to wait for initialization complete.
1489         (GOMP_loop_ordered_static_start): Likewise.
1490         (GOMP_loop_ordered_runtime_start): Likewise.
1491         (GOMP_loop_ordered_static_first): Remove.
1492         (GOMP_loop_ordered_dynamic_first): Remove.
1493         (GOMP_loop_ordered_guided_first): Remove.
1494         (GOMP_loop_ordered_runtime_first): Remove.
1495         * ordered.c (gomp_ordered_loop_first): Post to own release when
1496         we're the first thread.
1497         (gomp_ordered_loop_last): Wait on release if not owner.
1498         (gomp_ordered_loop_next): Likewise.
1499         (gomp_ordered_static_loop_init): New.
1500         (gomp_ordered_static_loop_next): Use ordered_owner.
1501         (GOMP_ordered_start): Likewise.
1502         * work.c (gomp_new_work_share): Initialize ordered_owner.
1503
1504 2005-05-03  Richard Henderson  <rth@redhat.com>
1505
1506         * Makefile (OPT): New.
1507         (CFLAGS): Use it.
1508
1509         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1510         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1511         * libgomp.h, libgomp.map, NOTES: Update to match.
1512
1513         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1514         Add initialized and thr members.
1515         (gomp_thread_start): Pause when initially spawned to wait for
1516         the whole team to be created.
1517         (gomp_team_start): Release team members at the end.
1518
1519         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
1520         (f_foo_1): Use GOMP_loop_end.
1521         (f_foo_2): Use GOMP_loop_end_nowait.
1522
1523         * testsuite/loop-2.c: New file.
1524         * testsuite/Makefile (TESTS): Add it.
1525
1526 2005-05-03  Richard Henderson  <rth@redhat.com>
1527
1528         * iter.c (gomp_iter_static_next): Fix overflow check typo.
1529         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1530         * team.c (new_team): Initialize oldest_live_gen to 1 if no
1531         initial work_share.
1532
1533         * testsuite/Makefile: New file.
1534         * testsuite/loop-1.c: New file.
1535
1536 2005-05-03  Richard Henderson  <rth@redhat.com>
1537
1538         Initial implementation and checkin.