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