OSDN Git Service

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