OSDN Git Service

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