OSDN Git Service

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