OSDN Git Service

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