OSDN Git Service

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