OSDN Git Service

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