OSDN Git Service

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