OSDN Git Service

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