OSDN Git Service

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