OSDN Git Service

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