OSDN Git Service

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