OSDN Git Service

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