OSDN Git Service

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