2011-07-24 François Dumont <francois.cppdevs@free.fr>
[official-gcc.git] / libgomp / ChangeLog
blob9225401fb3563a375c2896ae886f3f1d82178146
1 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3         PR target/49541
4         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
5         ldflags.
7 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
9         * config/linux/wait.h (do_spin): New inline, largely copied
10         from do_wait, just don't do futex_wait here, instead return true if
11         it should be done.
12         (do_wait): Implement using do_spin.
13         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
14         to prototype.
15         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16         __sync_bool_compare_and_swap, pass the oldval to
17         gomp_mutex_lock_slow.
18         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
19         If all mutex contenders are just spinning and not sleeping, don't
20         change state to 2 unnecessarily.  Optimize the loop when state has
21         already become 2 to use just one atomic operation per loop instead
22         of two.
23         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
24         to prototype.
25         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
26         __sync_bool_compare_and_swap, pass the oldval to
27         gomp_mutex_lock_slow.
29 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
31         PR libgomp/49490
32         * iter.c (gomp_iter_static_next): For chunk size 0
33         only use n ceil/ nthreads size for the first
34         n % nthreads threads in the team instead of
35         all threads except for the last few ones which
36         get less work or none at all.
37         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
38         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
39         chunk argument, set run_sched_modifier to 0 for static
40         resp. 1 for other kinds.  If chunk argument is 0
41         and not static, set value to 1.
43 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
45         PR c++/49043
46         * testsuite/libgomp.c++/pr49043.C: New test.
48         PR c++/48869
49         * testsuite/libgomp.c++/pr48869.C: New test.
51 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
53         PR fortran/48894
54         * fortran.c: Include limits.h.
55         (TO_INT): Define.
56         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
57         *set.
58         (omp_set_num_threads_8_, omp_set_schedule_8_,
59         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
60         omp_get_team_size_8_): Use TO_INT macro.
61         * testsuite/libgomp.fortran/pr48894.f90: New test.
63 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
65         PR middle-end/48591
66         * testsuite/libgomp.c/pr48591.c: New test.
68 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
70         PR bootstrap/48135
71         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
72         * configure: Regenerate.
74 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
76         PR fortran/47886
77         * testsuite/libgomp.fortran/task3.f90: New test.
79 2011-02-24  Tobias Burnus  <burnus@net-b.de>
81         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
83 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
85         PR libgomp/47854
86         * libgomp.texi (omp_get_wtime): Don't say time in the past
87         must be Unix Epoch.
89 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
91         PR libgomp/47804
92         * testsuite/libgomp.fortran/fortran.exp: Check for both
93         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
94         but $blddir != "", still append ${blddir}/${lang_library_path}
95         to ld_library_path.
97 2011-02-16  Tobias Burnus  <burnus@net-b.de>
99         PR libgomp/47758
100         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
101         of libquadmath.a before adding its libpath to ldflags.
103 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
105         PR libgomp/47731
106         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
107         to FUTEX_WAIT futex syscall.
108         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
110 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112         * configure: Regenerate.
114 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
116         PR libstdc++/36104
117         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
119 2011-01-16  Gerald Pfeifer
121         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
123 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
125         PR fortran/46874
126         * libgomp.fortran/allocatable6.f90: New test.
128 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
130         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
131         * configure: Regenerate.
133 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
135         PR target/40125
136         PR lto/46695
137         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
138         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
139         * aclocal.m4: Regenerate.
140         * configure: Regenerate.
141         * Makefile.in: Regenerate.
142         * testsuite/Makefile.in: Regenerate.
144 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
146         PR fortran/46753
147         * libgomp.fortran/pr46753.f90: New test.
149         PR libgomp/43706
150         * env.c (initialize_env): Default to spin count 300000
151         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
152         is specified.
154         PR libgomp/45240
155         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
156         at the end if sync builtins aren't supported.
158 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
160         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
162 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
164         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
166 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
168         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
170 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
171             Tobias Burnus  <burnus@net-b.de>
173         PR fortran/32049
174         * configure.ac: 
175         * configure: Regenerate.
177 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
179         * config/linux/futex.h: New.
180         * config/linux/arm/mutex.h: New.
181         * configure.tgt (arm*-*-linux*): Add config path.
183 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
185         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
187 2010-09-23  Tobias Burnus  <burnus@net-b.de>
189         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
190         Change Fortran datatype to LOGICAL.
191         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
192         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
194 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
196         * configure: Regenerate.
198 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
200         * libgomp.texi: Add function keyword to a couple of Fortran
201         interfaces, use integer instead of int for Fortran.
203 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
205         * libgomp.texi: Fix spelling and pasto problems throughout.
206         Adjust prototypes to match code.
208 2010-07-24  Tobias Burnus  <burnus@net-b.de>
210         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
211         silence -fwhole-file warning.
213 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
215         * configure.tgt (*-*-solaris2.[56]*): Removed.
217 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
219         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
220         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
221         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
222         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
223         targetting solaris2*.
224         * configure: Regenerate.
225         * config.h.in: Regenerate.
227         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
228         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
229         Add libgomp_version_dep.
230         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
231         versioning.
232         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
233         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
234         * Makefile.in: Regenerate.
236         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
237         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
238         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
239         to common block, protected by
240         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
242 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
244         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
246 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
248         PR bootstrap/43170
249         * configure: Regenerate.
251 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
253         PR other/43620
254         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
255         * configure: Regenerate.
256         * Makefile.in: Regenerate.
257         * testsuite/Makefile.in: Regenerate.
259 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
261         PR c/43893
262         * testsuite/libgomp.c/pr43893.c: New test.
263         * testsuite/libgomp.c++/pr43893.C: New test.
265 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
267         PR middle-end/43570
268         * testsuite/libgomp.fortran/vla8.f90: New test.
270 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
272         PR libgomp/43706
273         * config/linux/affinity.c (gomp_init_affinity): Decrease
274         gomp_available_cpus if affinity mask confines the process to fewer
275         CPUs.
276         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
277         non-NULL, just return gomp_available_cpus.
279         PR libgomp/43569
280         * sections.c (gomp_sections_init): Initialize ws->mode.
282 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
284         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
285         not unused bar variable.
286         * configure: Regenerate.
288 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
290         * Makefile.in: Regenerate.
291         * aclocal.m4: Regenerate.
292         * testsuite/Makefile.in: Regenerate.
294 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
296         PR libgomp/42942
297         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
298         (initialize_env): Adjust callers.
299         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
300         when the argument is 0.
302         * testsuite/libgomp.c/pr42942.c: New test.
304 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
306         PR middle-end/42644
307         PR middle-end/42130
308         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
309         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
311 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
313         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
314         * testsuite/libgomp.c++/task-6.C: Likewise.
316 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
318         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
320 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
322         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
323         * configure: Regenerate.
325 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
327         PR fortran/42866
328         * testsuite/libgomp.fortran/allocatable5.f90: New test.
330 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
332         * configure.ac: Test for executability of GFORTRAN.
333         * configure: Regenerate.
335 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
337         * configure: Regenerate.
339 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
341         PR libgomp/42602
342         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
344 2010-01-03  Richard Guenther  <rguenther@suse.de>
346         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
348 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
350         * testsuite/libgomp.graphite/pr4118.c: New.
352 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
354         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
355         for darwin, protect the test with require-effective-target tls_runtime.
356         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
358 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
360         PR target/41605
361         * testsuite/lib/libgomp.exp: Provide -B options to allow for
362         link spec %s substitutions for static libraries.
364 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
366         PR testsuite/42135
367         * libgomp.graphite/force-parallel-2.c: Reduce array size.
369 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
371         * Makefile.in: Regenerate.
372         * configure: Regenerate.
373         * testsuite/Makefile.in: Regenerate.
375 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
377         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
378         settings for LC_ALL and LANG.
380 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
382         PR fortran/42162
383         * testsuite/libgomp.fortran/pr42162.f90: New test.
385 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
387         PR middle-end/42029
388         * testsuite/libgomp.c/pr42029.c: New test.
390 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
392         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
393         *s.  Accept ld version without text in ()s.
394         * configure: Regenerated.
396 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
398         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
400 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
402         PR libgomp/41418
403         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
404         or a hyphen (happens with fortran language disabled).
405         * configure: Regenerate.
407 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
409         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
410         use sed script portable to Solaris /bin/sed for extracting ld
411         version.
412         * configure: Regenerate.
414 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
416         * testsuite/libgomp.graphite/bounds.c: New test.
418 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
420         * Makefile.am (libgomp_la_LINK): New.
421         * Makefile.in: Regenerate.
423 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
425         * configure.ac (AC_PREREQ): Bump to 2.64.
427 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
429         * Makefile.am (install-html, install-pdf): Remove.
430         * Makefile.in: Regenerate.
432         * Makefile.in: Regenerate.
433         * aclocal.m4: Regenerate.
434         * config.h.in: Regenerate.
435         * configure: Regenerate.
436         * testsuite/Makefile.in: Regenerate.
438 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
440         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
441         * Makefile.in: Regenerate.
443 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
445         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
446         * Makefile.in: Regenerate.
448 2009-08-19  Tobias Burnus  <burnus@net-b.de>
450         PR fortran/41102
451         omp_lib.h.in: Fix -std=f95 errors.
454 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
456         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
457         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
458         * testsuite/libgomp.graphite/graphite.exp: New.
460 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
462         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
463         only build.
465 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
467         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
468         needed memory barrier semantics.
469         * config/linux/mips/mutex.h: New file.
471 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
473         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
475 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
477         * configure: Regenerate.
479 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
481         PR testsuite/40699
482         PR testsuite/40707
483         PR testsuite/40709
484         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
485         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
486         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
488 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
490         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
491         options when choosing a multilib.
493 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
495         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
496         ld_library_path.  Use add_path.  Add just find_libgcc_s to
497         ld_library_path, not every libgcc multilib directory.
498         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
499         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
500         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
501         Use add_path.
502         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
504 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
506         * Makefile.am (LTLDFLAGS): Define.
507         (LINK): Define.
508         * Makefile.in: Regenerate.
510 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
512         PR fortran/39718
513         * testsuite/libgomp.fortran/fortran.exp: Don't link with
514         libgfortranbegin, check existence of libgfortran.a instead of
515         libgfortranbegin.a.
517 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
519         PR libgomp/40174
520         * team.c (gomp_thread_start): Destroy thr->release semaphore.
521         (gomp_free_pool_helper): Likewise.
523 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
524             Jakub Jelinek  <jakub@redhat.com>
526         PR fortran/35423
527         * testsuite/libgomp.fortran/workshare2.f90: New test.
529 2009-04-09  Nick Clifton  <nickc@redhat.com>
531         * iter.c: Change copyright header to refer to version 3 of the
532         GNU General Public License with version 3.1 of the GCC Runtime
533         Library Exception and to point readers at the COPYING3 and
534         COPYING3.RUNTIME files and the FSF's license web page.
535         * alloc.c: Likewise.
536         * barrier.c: Likewise.
537         * config/bsd/proc.c: Likewise.
538         * config/linux/affinity.c: Likewise.
539         * config/linux/alpha/futex.h: Likewise.
540         * config/linux/bar.c: Likewise.
541         * config/linux/bar.h: Likewise.
542         * config/linux/ia64/futex.h: Likewise.
543         * config/linux/ia64/mutex.h: Likewise.
544         * config/linux/lock.c: Likewise.
545         * config/linux/mips/futex.h: Likewise.
546         * config/linux/mutex.c: Likewise.
547         * config/linux/mutex.h: Likewise.
548         * config/linux/powerpc/futex.h: Likewise.
549         * config/linux/proc.c: Likewise.
550         * config/linux/ptrlock.c: Likewise.
551         * config/linux/ptrlock.h: Likewise.
552         * config/linux/s390/futex.h: Likewise.
553         * config/linux/sem.c: Likewise.
554         * config/linux/sem.h: Likewise.
555         * config/linux/sparc/futex.h: Likewise.
556         * config/linux/wait.h: Likewise.
557         * config/linux/x86/futex.h: Likewise.
558         * config/mingw32/proc.c: Likewise.
559         * config/mingw32/time.c: Likewise.
560         * config/posix/affinity.c: Likewise.
561         * config/posix/bar.c: Likewise.
562         * config/posix/bar.h: Likewise.
563         * config/posix/lock.c: Likewise.
564         * config/posix/mutex.h: Likewise.
565         * config/posix/proc.c: Likewise.
566         * config/posix/ptrlock.h: Likewise.
567         * config/posix/sem.c: Likewise.
568         * config/posix/sem.h: Likewise.
569         * config/posix/time.c: Likewise.
570         * config/posix95/lock.c: Likewise.
571         * critical.c: Likewise.
572         * env.c: Likewise.
573         * error.c: Likewise.
574         * fortran.c: Likewise.
575         * iter_ull.c: Likewise.
576         * libgomp.h: Likewise.
577         * libgomp_f.h.in: Likewise.
578         * libgomp_g.h: Likewise.
579         * loop.c: Likewise.
580         * loop_ull.c: Likewise.
581         * omp.h.in: Likewise.
582         * omp_lib.f90.in: Likewise.
583         * omp_lib.h.in: Likewise.
584         * ordered.c: Likewise.
585         * parallel.c: Likewise.
586         * sections.c: Likewise.
587         * single.c: Likewise.
588         * task.c: Likewise.
589         * team.c: Likewise.
590         * work.c: Likewise.
592 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
594         * testsuite/config/default.exp: Change copyright header to refer to
595         version 3 of the GNU General Public License and to point readers
596         at the COPYING3 file and the FSF's license web page.
598 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
600         PR middle-end/39573
601         * libgomp.c++/pr39573.C: New test.
603 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
605         PR other/39591
606         * testsuite/libgomp.c/pr39591-1.c: New test.
607         * testsuite/libgomp.c/pr39591-2.c: New test.
608         * testsuite/libgomp.c/pr39591-3.c: New test.
610 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
612         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
613         * testsuite/libgomp.c/atomic-6.c: Ditto.
615 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
617         PR c/39495
618         * testsuite/libgomp.c/loop-12.c: New test.
619         * testsuite/libgomp.c/loop-11.c: New test.
620         * testsuite/libgomp.c++/loop-11.C: New test.
621         * testsuite/libgomp.c++/loop-12.C: New test.
622         * testsuite/libgomp.c++/for-8.C: New test.
624 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
626         * configure: Regenerate.
628 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
630         PR middle-end/39154
631         * testsuite/libgomp.c/pr39154.c: New test.
633 2009-01-30  Ian Lance Taylor  <iant@google.com>
635         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
636         libgomp_ld_is_gold.  Get gold version number.
637         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
638         * configure: Rebuild.
640 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
642         * testsuite/lib/libgomp.exp: Add -B option for targets that
643         use libgfortran.a%s in their specs.
645 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
647         PR libgomp/38086
648         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
649         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
650         HAVE_AS_SYMVER_DIRECTIVE is not defined.
651         * configure: Regenerated.
652         * config.h.in: Likewise.
654 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
656         PR c++/38650
657         * testsuite/libgomp.c/pr38650.c: New test.
658         * testsuite/libgomp.c++/pr38650.C: New test.
660 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
662         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
664 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
666         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
668 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
670         * configure: Regenerate.
672 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
674         PR middle-end/36802
675         * testsuite/libgomp.c/pr36802-1.c: New test.
676         * testsuite/libgomp.c/pr36802-2.c: New test.
677         * testsuite/libgomp.c/pr36802-3.c: New test.
679 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
681         PR libgomp/38270
682         * config/linux/powerpc/mutex.h: New.
684 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
686         PR c++/38257
687         * testsuite/libgomp.c++/for-7.C: New test.
689         PR c++/38348
690         * testsuite/libgomp.c++/for-6.C: New test.
692 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
694         PR testsuite/28870
695         * testsuite/lib/libgomp.exp: Include new timeout library files.
696         (libgomp_target_compile): Set timeout value from new proc.
698 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
700         PR libgomp/37938
701         * config/linux/ia64/mutex.h: New.
703 2008-11-04  Tobias Burnus  <burnus@net-b.de>
705         PR libgomp/37935
706         * libgomp.texi (Runtime library routines, environment variables):
707         Update for OpenMP version 3.0.
709 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
710             Steve Ellcey  <sje@cup.hp.com>
712         * configure: Regenerate for new libtool.
713         * Makefile.in: Ditto.
714         * testsuite/Makefile.in: Ditto.
716 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
717             Andreas Tobler  <a.tobler@schweiz.org>
719         * config/bsd/proc.c: New file.
720         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
721         * configure.ac: Check for header <sys/sysctl.h>
722         * configure: Regenerate.
723         * config.h.in: Likewise.
725 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
727         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
729 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
731         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
732         * Makefile.in: Regenerated.
733         * testsuite/Makefile.in: Regenerated.
735 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
737         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
738         depend on blddir if blddir exists.
739         (libgomp_target_compile): Likewise.
740         * testsuite/libgomp.c++/c++.exp: Likewise.
741         * testsuite/libgomp.fortran/fortran.exp: Likewise.
743 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
745         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
746         Do not list GPL as Invariant Section.
748 2008-07-28  Ilie Garbacea  <ilie@mips.com>
749             Chao-ying Fu  <fu@mips.com>
751         * configure.tgt: Enable futex for MIPS.
752         * config/linux/mips/futex.h: New file.
754 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
756         * team.c (gomp_team_end): Free team immediately if it has
757         just one thread.
759 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
761         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
762         * testsuite/libgomp.fortran/fortran.exp: Same.
763         * testsuite/libgomp.c/c.exp: Same.
764         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
765         directory to library path first.
767 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
769         * env.c (parse_stacksize): Add cast to avoid warning.
770         (parse_spincount): Likewise.
772 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
774         * testsuite/libgomp.c/loop-10.c: New test.
775         * libgomp.c/loop-3.c (main): Add lastprivate clause.
776         * libgomp.c++/loop-6.C (main): Likewise.
778         PR debug/36617
779         * testsuite/libgomp.c/debug-1.c: New test.
781 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
783         * testsuite/libgomp.c/nqueens-1.c: New test.
785         PR c++/36523
786         * testsuite/libgomp.c++/task-7.C: New function.
788 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
790         * configure: Regenerate.
792 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
794         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
795         mutex when HAVE_SYNC_BUILTINS isn't defined.
797 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
799         * libgomp.texi (omp_test_lock): Fix typo.
801 2008-06-12  Tobias Burnus  <burnus@net-b.de>
803         * omp_lib.f90.in: Add "implicit none".
805 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
807         PR middle-end/36506
808         * testsuite/libgomp.c/reduction-5.c: New test.
810 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
812         * libgomp.h (struct gomp_task): Add in_tied_task field.
813         * task.c (gomp_init_task): Initialize it.
814         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
815         unconditionally.  Don't call gomp_team_barrier_wake if
816         current task is implicit or if(0) from implicit and number of
817         running tasks is equal to nthreads - 1.
819         PR libgomp/36471
820         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
821         omp_get_team_size_8): Fix pastos.
823         PR libgomp/36469
824         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
825         * configure: Regenerated.
826         * config.h.in: Regenerated.
827         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
828         defined.
830 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
832         PR bootstrap/36452
833         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
834         (GOMP_loop_ull_dynamic_start): Likewise.
835         (GOMP_loop_ull_guided_start): Likewise.
836         (GOMP_loop_ull_ordered_static_start): Likewise.
837         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
838         (GOMP_loop_ull_ordered_guided_start): Likewise.
840 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
841             Richard Henderson  <rth@redhat.com>
842             Ulrich Drepper  <drepper@redhat.com>
843             Jakob Blomer  <jakob.blomer@ira.uka.de>
845         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
846         Substitute also OMP_*LOCK_25*.
847         * configure: Regenerated.
848         * config.h.in: Regenerated.
849         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
850         ptrlock.c and task.c.
851         * Makefile.in: Regenerated.
852         * testsuite/Makefile.in: Regenerated.
853         * task.c: New file.
854         * loop_ull.c: New file.
855         * iter_ull.c: New file.
856         * libgomp.h: Include ptrlock.h.
857         (enum gomp_task_kind): New type.
858         (struct gomp_team): Add task_lock, task_queue, task_count,
859         task_running_count, single_count fields.  Add
860         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
861         Remove work_share_lock, generation_mask,
862         oldest_live_gen, num_live_gen and init_work_shares fields, add
863         work work_share_list_alloc, work_share_list_free and work_share_chunk
864         fields.  Change work_shares from pointer to pointers into an array.
865         Change ordered_release field into gomp_sem_t ** from flexible array
866         member.  Add implicit_task and initial_work_shares fields.
867         Move close to the end of the struct.
868         (struct gomp_team_state): Add single_count, last_work_share,
869         active_level and level fields, remove work_share_generation.
870         (gomp_barrier_handle_tasks): New prototype.
871         (gomp_finish_task): New inline function.
872         (struct gomp_work_share): Move chunk_size, end, incr into
873         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
874         next_ll fields.  Reshuffle fields.  Add next_alloc,
875         next_ws, next_free and inline_ordered_team_ids fields, change
876         ordered_team_ids into pointer from flexible array member.
877         Add mode field.  Put lock and next into a different cache line
878         from most of the write-once fields.
879         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
880         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
881         gomp_iter_ull_guided_next): New prototypes.
882         (gomp_new_icv): New prototype.
883         (struct gomp_thread): Add thread_pool and task fields.
884         (struct gomp_thread_pool): New type.
885         (gomp_new_team): New prototype.
886         (gomp_team_start): Change type of last argument.
887         (gomp_new_work_share): Removed.
888         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
889         (gomp_work_share_init_done): New static inline.
890         (gomp_throttled_spin_count_var, gomp_available_cpus,
891         gomp_managed_threads): New extern decls.
892         (gomp_init_task): New prototype.
893         (gomp_spin_count_var): New extern var decl.
894         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
895         or no alias support, or if not PIC.
896         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
897         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
898         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
899         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
900         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
901         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
902         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
903         gomp_test_nest_lock_25): New prototypes.
904         (omp_lock_symver, strong_alias): Define.
905         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
906         decls.
907         (gomp_end_task): New.
908         (struct gomp_task_icv, gomp_global_icv): New.
909         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
910         (struct gomp_task): New.
911         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
912         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
913         (gomp_icv): New.
914         (gomp_schedule_type): Reorder enum to match
915         omp_sched_t.
916         * team.c (struct gomp_thread_start_data): Add thread_pool and task
917         fields.
918         (gomp_thread_start): Add gomp_team_barrier_wait call.
919         For non-nested case remove clearing of docked thread thr fields.
920         Use pool fields instead of global gomp_* variables.  Use
921         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
922         Create tasks for each member thread.
923         (free_team): Only destroy team barrier, task_lock here and free it.
924         (gomp_free_thread): Free last_team if non-NULL.
925         (gomp_team_end): Call gomp_team_barrier_wait instead of
926         gomp_barrier_wait.  For nested case call one extra
927         gomp_barrier_wait.  Move here some destruction from free_team.
928         Call free_team on pool->last_team if any, rather than freeing
929         current team.  Destroy work_share_list_free_lock ifndef
930         HAVE_SYNC_BUILTINS.
931         (gomp_new_icv): New function.
932         (gomp_threads, gomp_threads_size, gomp_threads_used,
933         gomp_threads_dock): Removed.
934         (gomp_thread_destructor): New variable.
935         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
936         functions.
937         (gomp_team_start): Create new pool if current thread doesn't have
938         one.  Use pool fields instead of global gomp_* variables. 
939         Initialize thread_pool field for new threads.  Clear single_count.
940         Change last argument from ws to team, don't create
941         new team, set ts.work_share to &team->work_shares[0] and clear
942         ts.last_work_share.  Don't clear ts.work_share_generation.
943         If number of threads changed, adjust atomically gomp_managed_threads.
944         Use gomp_init_task instead of gomp_new_task,
945         set thr->task to the corresponding implicit_task array entry.
946         Create tasks for each member thread.  Initialize ts.level.
947         (initialize_team): Call pthread_key_create on
948         gomp_thread_destructor.
949         (team_destructor): New function.
950         (new_team): Removed.
951         (gomp_new_team): New function.
952         (free_team): Free gomp_work_share blocks chained through next_alloc,
953         instead of freeing work_shares and destroying work_share_lock.
954         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
955         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
956         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
957         of gomp_barrier_wait.
958         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
959         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
960         if gomp_work_share_start returned true.  Don't unlock ws->lock.
961         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
962         of gomp_barrier_wait.
963         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
964         gomp_work_share_init_done if gomp_work_share_start returned true.
965         Don't unlock ws->lock.
966         * work.c: Include stddef.h.
967         (free_work_share): Use work_share_list_free_lock instead
968         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
969         Call gomp_fini_work_share and then either free ws if orphaned, or
970         put it into work_share_list_free list of the current team.
971         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
972         functions.
973         (gomp_work_share_start, gomp_work_share_end,
974         gomp_work_share_end_nowait): Rewritten.
975         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
976         (openmp_version): Set to 200805.
977         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
978         omp_sched_guided, omp_sched_auto): New parameters.
979         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
980         omp_set_max_active_levels, omp_get_max_active_levels,
981         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
982         omp_get_active_level): New interfaces.
983         * omp_lib.h.in (openmp_version): Set to 200805.
984         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
985         omp_sched_guided, omp_sched_auto): New parameters.
986         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
987         omp_set_max_active_levels, omp_get_max_active_levels,
988         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
989         omp_get_active_level): New externals.
990         * loop.c: Include limits.h.
991         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
992         GFS_AUTO.
993         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
994         Likewise.  Use gomp_icv.
995         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
996         ts.static_trip here.
997         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
998         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
999         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1000         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1001         don't unlock ws->lock, otherwise lock it.
1002         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1003         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1004         (gomp_parallel_loop_start): Call gomp_new_team instead of
1005         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1006         Adjust gomp_team_start caller.  Pass 0 as second argument to
1007         gomp_resolve_num_threads.
1008         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1009         If adding ws->chunk_size nthreads + 1 times after end won't
1010         overflow, set ws->mode to 1.
1011         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1012         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1013         GOMP_loop_ull_ordered_static_start,
1014         GOMP_loop_ull_ordered_dynamic_start,
1015         GOMP_loop_ull_ordered_guided_start,
1016         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1017         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1018         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1019         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1020         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1021         prototypes.
1022         * libgomp.map: Export lock routines also @@OMP_2.0.
1023         (GOMP_loop_ordered_dynamic_first,
1024         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1025         GOMP_loop_ordered_static_first): Remove.
1026         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1027         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1028         GOMP_loop_ull_ordered_dynamic_next,
1029         GOMP_loop_ull_ordered_dynamic_start,
1030         GOMP_loop_ull_ordered_guided_next,
1031         GOMP_loop_ull_ordered_guided_start,
1032         GOMP_loop_ull_ordered_runtime_next,
1033         GOMP_loop_ull_ordered_runtime_start,
1034         GOMP_loop_ull_ordered_static_next,
1035         GOMP_loop_ull_ordered_static_start,
1036         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1037         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1038         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1039         (omp_set_schedule, omp_get_schedule,
1040         omp_get_thread_limit, omp_set_max_active_levels,
1041         omp_get_max_active_levels, omp_get_level,
1042         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1043         omp_set_schedule_, omp_set_schedule_8_,
1044         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1045         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1046         omp_get_max_active_levels_, omp_get_level_,
1047         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1048         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1049         New exports @@OMP_3.0.
1050         * omp.h.in (omp_sched_t): New type.
1051         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1052         omp_set_max_active_levels, omp_get_max_active_levels,
1053         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1054         omp_get_active_level): New prototypes.
1055         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1056         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1057         gomp_thread_limit_var, gomp_remaining_threads_count,
1058         gomp_remaining_threads_lock): New variables.
1059         (parse_spincount): New function.
1060         (initialize_env): Call gomp_init_num_threads unconditionally.
1061         Initialize gomp_available_cpus.  Call parse_spincount,
1062         initialize gomp_{,throttled_}spin_count_var
1063         depending on presence and value of OMP_WAIT_POLICY and
1064         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1065         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1066         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1067         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1068         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1069         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1070         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1071         (gomp_global_icv): New.
1072         (parse_schedule): Use it.  Parse "auto".
1073         (omp_set_num_threads): Use gomp_icv.
1074         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1075         Likewise.
1076         (omp_get_max_threads): Move from parallel.c.
1077         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1078         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1079         add ialias.
1080         (parse_stacksize, parse_wait_policy): New functions.
1081         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1082         both wrappers for compatibility and new locks.
1083         (omp_set_schedule, omp_get_schedule,
1084         omp_get_thread_limit, omp_set_max_active_levels,
1085         omp_get_max_active_levels, omp_get_level,
1086         omp_get_ancestor_thread_num, omp_get_team_size,
1087         omp_get_active_level): New ialias_redirect.
1088         (omp_set_schedule_, omp_set_schedule_8_,
1089         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1090         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1091         omp_get_max_active_levels_, omp_get_level_,
1092         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1093         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1094         New functions.
1095         * parallel.c: Include limits.h.
1096         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1097         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1098         argument to gomp_team_start.  Pass 0 as second argument to
1099         gomp_resolve_num_threads.
1100         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1101         if gomp_thread_limit_var != ULONG_MAX.
1102         (omp_in_parallel): Implement using ts.active_level.
1103         (omp_get_max_threads): Move to env.c.
1104         (omp_get_level, omp_get_ancestor_thread_num,
1105         omp_get_team_size, omp_get_active_level): New functions,
1106         add ialias.
1107         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1108         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1109         gomp_iter_dynamic_next instead of the _locked variant and don't take
1110         lock around it, otherwise acquire it before calling
1111         gomp_iter_dynamic_next_locked.
1112         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1113         gomp_iter_dynamic_next instead of the _locked variant and don't take
1114         lock around it.
1115         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1116         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1117         Adjust gomp_team_start caller.  Pass count as second argument to
1118         gomp_resolve_num_threads, don't adjust num_threads after the call.
1119         Use gomp_icv.
1120         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1121         ws->chunk_size by incr.
1122         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1123         code.
1124         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1125         types.
1126         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1127         (omp_check_defines): Check even the compat defines.
1128         * config/linux/ptrlock.c: New file.
1129         * config/linux/ptrlock.h: New file.
1130         * config/linux/wait.h: New file.
1131         * config/posix/ptrlock.c: New file.
1132         * config/posix/ptrlock.h: New file.
1133         * config/linux/bar.h (gomp_team_barrier_wait,
1134         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1135         (gomp_team_barrier_set_task_pending,
1136         gomp_team_barrier_clear_task_pending,
1137         gomp_team_barrier_set_waiting_for_tasks,
1138         gomp_team_barrier_waiting_for_tasks,
1139         gomp_team_barrier_done): New inlines.
1140         (gomp_barrier_t): Rewritten.
1141         (gomp_barrier_state_t): New typedef.
1142         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1143         gomp_barrier_wait_start): Rewritten.
1144         (gomp_barrier_wait_end): Change second argument to
1145         gomp_barrier_state_t.
1146         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1147         inlines.
1148         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1149         futex.h.
1150         (gomp_barrier_wait_end): Rewritten.
1151         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1152         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1153         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1154         (gomp_barrier_state_t): New typedef.
1155         (gomp_team_barrier_wait,
1156         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1157         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1158         into the return value.  Return gomp_barrier_state_t.
1159         (gomp_team_barrier_set_task_pending,
1160         gomp_team_barrier_clear_task_pending,
1161         gomp_team_barrier_set_waiting_for_tasks,
1162         gomp_team_barrier_waiting_for_tasks,
1163         gomp_team_barrier_done): New inlines.
1164         (gomp_barrier_wait_end): Change second argument to
1165         gomp_barrier_state_t.
1166         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1167         inlines.
1168         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1169         (gomp_barrier_wait_end): Change second argument to
1170         gomp_barrier_state_t. 
1171         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1172         gomp_team_barrier_wake): New functions.
1173         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1174         futex.h.
1175         (gomp_futex_wake, gomp_futex_wait): New variables.
1176         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1177         * config/linux/lock.c: Rewrite to make locks task owned,
1178         for backwards compatibility provide the old entrypoints
1179         if symbol versioning.  Include wait.h instead of libgomp.h and
1180         futex.h.
1181         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1182         * config/posix95/lock.c: Rewrite to make locks task owned,
1183         for backwards compatibility provide the old entrypoints
1184         if symbol versioning.
1185         * config/posix/lock.c: Rewrite to make locks task owned,
1186         for backwards compatibility provide the old entrypoints
1187         if symbol versioning.
1188         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1189         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1190         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1191         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1192         (sys_futex0): Return error code.
1193         (futex_wake, futex_wait): If ENOSYS was returned, clear
1194         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1195         (cpu_relax, atomic_write_barrier): New static inlines.
1196         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1197         (futex_wake, futex_wait): If ENOSYS was returned, clear
1198         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1199         (cpu_relax, atomic_write_barrier): New static inlines.
1200         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1201         (sys_futex0): Return error code.
1202         (futex_wake, futex_wait): If ENOSYS was returned, clear
1203         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1204         (cpu_relax, atomic_write_barrier): New static inlines.
1205         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1206         (sys_futex0): Return error code.
1207         (futex_wake, futex_wait): If ENOSYS was returned, clear
1208         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1209         (cpu_relax, atomic_write_barrier): New static inlines.
1210         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1211         (sys_futex0): Return error code.
1212         (futex_wake, futex_wait): If ENOSYS was returned, clear
1213         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1214         (cpu_relax, atomic_write_barrier): New static inlines.
1215         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1216         (sys_futex0): Return error code.
1217         (futex_wake, futex_wait): If ENOSYS was returned, clear
1218         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1219         (cpu_relax, atomic_write_barrier): New static inlines.
1220         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1221         futex.h.
1222         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1223         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1224         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1225         types.
1226         (omp_nest_lock_t): Change owner into void *, add lock field.
1227         * config/posix95/omp-lock.h: Include semaphore.h.
1228         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1229         (omp_lock_t): Use sem_t instead of mutex if semaphores
1230         aren't broken.
1231         (omp_nest_lock_t): Likewise.  Change owner to void *.
1232         * config/posix/omp-lock.h: Include semaphore.h.
1233         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1234         (omp_lock_t): Use sem_t instead of mutex if semaphores
1235         aren't broken.
1236         (omp_nest_lock_t): Likewise.  Add owner field.
1238 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1240         * testsuite/libgomp.c/collapse-1.c: New test.
1241         * testsuite/libgomp.c/collapse-2.c: New test.
1242         * testsuite/libgomp.c/collapse-3.c: New test.
1243         * testsuite/libgomp.c/icv-1.c: New test.
1244         * testsuite/libgomp.c/icv-2.c: New test.
1245         * testsuite/libgomp.c/lib-2.c: New test.
1246         * testsuite/libgomp.c/lock-1.c: New test.
1247         * testsuite/libgomp.c/lock-2.c: New test.
1248         * testsuite/libgomp.c/lock-3.c: New test.
1249         * testsuite/libgomp.c/loop-4.c: New test.
1250         * testsuite/libgomp.c/loop-5.c: New test.
1251         * testsuite/libgomp.c/loop-6.c: New test.
1252         * testsuite/libgomp.c/loop-7.c: New test.
1253         * testsuite/libgomp.c/loop-8.c: New test.
1254         * testsuite/libgomp.c/loop-9.c: New test.
1255         * testsuite/libgomp.c/nested-3.c: New test.
1256         * testsuite/libgomp.c/nestedfn-6.c: New test.
1257         * testsuite/libgomp.c/sort-1.c: New test.
1258         * testsuite/libgomp.c/task-1.c: New test.
1259         * testsuite/libgomp.c/task-2.c: New test.
1260         * testsuite/libgomp.c/task-3.c: New test.
1261         * testsuite/libgomp.c/task-4.c: New test.
1262         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1263         to C++ testsuite default compiler options.
1264         * testsuite/libgomp.c++/collapse-1.C: New test.
1265         * testsuite/libgomp.c++/collapse-2.C: New test.
1266         * testsuite/libgomp.c++/ctor-10.C: New test.
1267         * testsuite/libgomp.c++/for-1.C: New test.
1268         * testsuite/libgomp.c++/for-2.C: New test.
1269         * testsuite/libgomp.c++/for-3.C: New test.
1270         * testsuite/libgomp.c++/for-4.C: New test.
1271         * testsuite/libgomp.c++/for-5.C: New test.
1272         * testsuite/libgomp.c++/loop-8.C: New test.
1273         * testsuite/libgomp.c++/loop-9.C: New test.
1274         * testsuite/libgomp.c++/loop-10.C: New test.
1275         * testsuite/libgomp.c++/task-1.C: New test.
1276         * testsuite/libgomp.c++/task-2.C: New test.
1277         * testsuite/libgomp.c++/task-3.C: New test.
1278         * testsuite/libgomp.c++/task-4.C: New test.
1279         * testsuite/libgomp.c++/task-5.C: New test.
1280         * testsuite/libgomp.c++/task-6.C: New test.
1281         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1282         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1283         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1284         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1285         * testsuite/libgomp.fortran/collapse1.f90: New test.
1286         * testsuite/libgomp.fortran/collapse2.f90: New test.
1287         * testsuite/libgomp.fortran/collapse3.f90: New test.
1288         * testsuite/libgomp.fortran/collapse4.f90: New test.
1289         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1290         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1291         * testsuite/libgomp.fortran/lib4.f90: New test.
1292         * testsuite/libgomp.fortran/lock-1.f90: New test.
1293         * testsuite/libgomp.fortran/lock-2.f90: New test.
1294         * testsuite/libgomp.fortran/nested1.f90: New test.
1295         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1296         * testsuite/libgomp.fortran/strassen.f90: New test.
1297         * testsuite/libgomp.fortran/tabs1.f90: New test.
1298         * testsuite/libgomp.fortran/tabs2.f: New test.
1299         * testsuite/libgomp.fortran/task1.f90: New test.
1300         * testsuite/libgomp.fortran/task2.f90: New test.
1301         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1302         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1303         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1304         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1305         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1307 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1309         PR c++/36308
1310         * testsuite/libgomp.c++/ctor-11.C: New test.
1311         * testsuite/libgomp.c++/ctor-12.C: New test.
1313 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1315         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1317 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1319         PR middle-end/36106
1320         * testsuite/libgomp.c/atomic-5.c: New test.
1321         * testsuite/libgomp.c/atomic-6.c: New test.
1322         * testsuite/libgomp.c/autopar-1.c: New test.
1324 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1326         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1327         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1328         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1329         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1330         * configure: Regenerate.
1331         * Makefile.in, testsuite/Makefile.in: Likewise.
1333 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1335         PR bootstrap/35457
1336         * aclocal.m4: Regenerate.
1337         * configure: Regenerate.
1339 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1341         PR middle-end/35611
1342         * testsuite/libgomp.c/atomic-4.c: New test.
1344         PR libgomp/35625
1345         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1346         (gomp_iter_guided_next): Likewise.
1347         * testsuite/libgomp.c/pr35625.c: New test.
1349 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1351         * aclocal.m4: Regenerate.
1352         * configure: Likewise.
1353         * Makefile.in: Likewise.
1354         * testsuite/Makefile.in: Likewise.
1356 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1358         PR middle-end/35185
1359         * testsuite/libgomp.c++/pr35185.C: New test.
1361 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1363         PR middle-end/35549
1364         * testsuite/libgomp.c/pr35549.c: New test.
1366 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1368         * testsuite/libgomp.c/atomic-3.c: New test.
1370 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1372         PR fortran/33197
1373         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1374         .F08 file suffixes.
1376 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1378         PR libgomp/33131
1379         * configure.ac: Add ACX_HEADER_STRING.
1380         * env.c: Include strings.h.
1381         * aclocal.m4: Regenerate.
1382         * config.h.in: Regenerate.
1383         * configure: Regenerate.
1384         * Makefile.in: Regenerate.
1385         * testsuite/Makefile.in: Regenerate.
1387 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1389         PR middle-end/35196
1390         * testsuite/libgomp.c/pr35196.c: New test.
1392         PR middle-end/35130
1393         * testsuite/libgomp.fortran/pr35130.f90: New test.
1394         * testsuite/libgomp.c/pr35130.c: New test.
1396 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1398         PR middle-end/33880
1399         * testsuite/libgomp.c/pr33880.c: New test.
1400         * testsuite/libgomp.fortran/pr33880.f90: New test.
1402 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1404         * configure: Regenerate.
1406 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1408         * configure.ac: Move futex checking into ../config/futex.m4.
1409         * configure: Rebuilt.
1410         * aclocal.m4: Rebuilt.
1411         * Makefile.in: Rebuilt.
1413         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1414         2007-10-15 ../config/tls.m4 change.
1416 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1418         PR c++/34513
1419         * testsuite/libgomp.c/pr34513.c: New test.
1420         * testsuite/libgomp.c++/pr34513.C: New test.
1422 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1424         PR target/32765
1425         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1427 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1429         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1431 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1433         * testsuite/libgomp.c/private-1.c: New test.
1435 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1436             Paolo Bonzini  <bonzini@gnu.org>
1438         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1439         instead of 'VPATH ='.
1440         * Makefile.in: Regenerate.
1442 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1444         * configure.ac: Adjust makeinfo version check.
1445         * configure: Regenerate.
1447 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1449         PR fortran/34020
1450         * testsuite/libgomp.fortran/pr34020.f90: New test.
1452 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1454         PR c++/33894
1455         * testsuite/libgomp.c++/atomic-1.C: New test.
1457 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1459         PR libgomp/33275
1460         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1461         Make x and y integers rather than (implicit) reals.  Add private (j)
1462         clause to the last omp parallel.
1464 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1466         * configure: Regenerate following changes to ../config/tls.m4.
1468 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1470         * testsuite/libgomp.fortran/stack.f90: New test.
1472 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1474         * config/mingw32/proc.c: New file.
1476 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1478         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1479         (main): Use __get_cpuid to get i386 target fetaures.
1480         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1481         (main): Use __get_cpuid to get x86_64 target fetaures.
1483 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1485         PR target/32765
1486         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1487         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1489 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1491         PR fortran/32550
1492         * testsuite/libgomp.fortran/pr32550.f90: New test.
1493         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1495 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1497         * aclocal.m4: Regenerated.
1499 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1501         PR fortran/32359
1502         * testsuite/libgomp.fortran/pr32359.f90: New.
1504 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1506         PR libgomp/32468
1507         * sections.c (GOMP_parallel_sections_start): Only decrease
1508         number of threads to COUNT if dyn_var is true.
1509         * testsuite/libgomp.c/pr32468.c: New test.
1511 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1513         PR libgomp/26308
1514         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1516 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1518         PR middle-end/32362
1519         * testsuite/libgomp.c/pr32362-1.c: New test.
1520         * testsuite/libgomp.c/pr32362-2.c: New test.
1521         * testsuite/libgomp.c/pr32362-3.c: New test.
1523 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1525         * team.c (gomp_team_start): Fix setting up thread_attr
1526         stack size.
1528 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1530         * configure: Regenerate.
1532 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1534         * Makefile.in: Regenerate.
1535         * configure: Regenerate.
1536         * aclocal.m4: Regenerate.
1537         * testsuite/Makefile.in: Regenerate.
1539 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1541         * config/linux/proc.c: New file.
1543         PR libgomp/28482
1544         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1546 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1548         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1550 2007-04-16  Matthias Klose  <doko@debian.org>
1552         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1553         flags if not building with -m64.
1554         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1555         flag for i?86-*-* targets, if current target matches -m64.
1557 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1559         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1560         * Makefile.in: Regenerate.
1562 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1564         PR testsuite/31369
1565         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1566         ld_library_path.
1567         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1569 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1571         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1572         decls.
1573         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1574         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1575         (parse_affinity): New function.
1576         (initialize_env): Call it and gomp_init_affinity.
1577         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1578         create new pthread_attr_t and call gomp_init_thread_affinity
1579         on it for each thread before passing the attribute to pthread_create.
1580         * config/linux/affinity.c: New file.
1581         * config/posix/affinity.c: New file.
1582         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1583         * configure: Rebuilt.
1584         * config.h.in: Rebuilt.
1585         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1586         * Makefile.in: Rebuilt.
1588 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1590         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1591         *-*-darwin*.
1592         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1593         and use it if found.
1595 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1597         * testsuite/config/default.exp: New file.
1598         * testsuite/lib/libgomp.exp: New file.
1599         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1600         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1601         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1602         (libgomp_load): Remove.
1603         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1604         always_ld_library_path, not ld_library_path.  Set additional_flags
1605         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1606         (target_compile): Do not call libgomp_init.  Append lang_library_path
1607         and lang_link_flags to options.
1608         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1609         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1610         here.
1611         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1612         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1613         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1614         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1615         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1616         CX8 flag.
1617         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1618         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1619         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1620         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1621         * testsuite/libgomp.c/atomic-10.c: Ditto.
1623 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1625         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1626         dg-final cleanup-modules line.
1627         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1628         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1629         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1630         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1631         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1632         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1633         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1635 2007-03-18  Andreas Schwab  <schwab@suse.de>
1637         * acinclude.m4: Adjust regular expression for ld version
1638         extraction.
1639         * configure: Regenerate.
1641 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1643         * Makefile.am: Add install-pdf target as copied from
1644         automake v1.10 rules.
1645         * Makefile.in: Regenerate
1647 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1649         PR libgomp/28486
1650         * configure: Regenerate.
1652         PR c++/30703
1653         * testsuite/libgomp.c++/pr30703.C: New test.
1655 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1657         Revert:
1658         2006-07-05  Eric Christopher  <echristo@apple.com>
1659         * configure.ac: Depend addition of -pthread on host OS.
1660         * configure: Regenerate.
1662 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1664         * libgomp.texi: Fix spacing after abbreviations.
1666 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1668         PR libgomp/30546
1669         * configure.ac: Add check for makeinfo
1670         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1671         if an appropiate version of makeinfo is found.
1672         * aclocal.m4: Regenerated.
1673         * configure: Regenerated.
1674         * Makefile.in: Regenerated.
1675         * testsuite/Makefile.in: Regenerated.
1677 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1679         PR libgomp/30540
1680         * libgomp.texi: More about implementation-dependent settings.
1682 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1684         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1686 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1688         PR middle-end/30494
1689         * testsuite/libgomp.c/pr30494.c: New test.
1691 2007-01-15  Tom Tromey  <tromey@redhat.com>
1693         * configure: Rebuilt.
1694         * configure.ac: Fixed comment.
1696 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1698         * libgomp.texi: Document implementation specific default values of
1699         environment variables.
1701 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1703         PR libgomp/28209
1704         * libgomp.texi: New file.
1705         * configure.ac: Add --enable-generated-files-in-srcdir option.
1706         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1707         files to srcdir.
1708         * Makefile.in: Regenerated.
1709         * config.h.in: Regenerated.
1710         * testsuite/Makefile.in: Regenerated.
1711         * NOTES: Removed.
1713 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1715         PR libgomp/29949
1716         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1718 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1720         * configure: Regenerate.
1722 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1724         PR libgomp/29947
1725         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1726         start if there shouldn't be any loop iterations.
1727         (gomp_loop_ordered_static_start): Remove start == end test.
1728         * testsuite/libgomp.c/pr29947-1.c: New test.
1729         * testsuite/libgomp.c/pr29947-2.c: New test.
1731 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1733         * configure.tgt: Force initial-exec TLS model on Linux only.
1735 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1737         * configure: Regenerated.
1739 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1741         * env.c (parse_schedule): Reject out of range values.
1742         (parse_unsigned_long): Reject out of range, negative or zero values.
1744 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1746         PR fortran/29629
1747         * testsuite/libgomp.fortran/pr29629.f90: New test.
1749 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1751         PR libgomp/29494
1752         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1753         * config/posix95: New directory.
1754         * config/posix95/omp-lock.h: New file.
1755         * config/posix95/lock.c: Likewise.
1757 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1759         * aclocal.m4: Regenerate.
1760         * configure: Regenerate.
1762 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1764         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1765         '<' to '<='.
1767 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1769         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1770         test.
1771         * configure: Regenerate.
1772         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1774 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1776         PR middle-end/25261
1777         PR middle-end/28790
1778         * testsuite/libgomp.c/nestedfn-4.c: New test.
1779         * testsuite/libgomp.c/nestedfn-5.c: New test.
1780         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1782         PR fortran/29097
1783         * testsuite/libgomp.fortran/condinc1.f: New test.
1784         * testsuite/libgomp.fortran/condinc2.f: New test.
1785         * testsuite/libgomp.fortran/condinc3.f90: New test.
1786         * testsuite/libgomp.fortran/condinc4.f90: New test.
1787         * testsuite/libgomp.fortran/condinc1.inc: New file.
1789 2006-09-18  Tom Tromey  <tromey@redhat.com>
1791         * configure: Rebuilt.
1793 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1795         PR c/28768
1796         PR preprocessor/14634
1797         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1798         to AC_DEFINE.
1799         * configure: Regenerate.
1801 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1803         * testsuite/libgomp.fortran/reduction3.f90: Change
1804         -2147483648 to -huge(i)-1 to avoid overflow.
1805         * testsuite/libgomp.fortran/reduction4.f90: Change
1806         Z'ffffffff' to not(0) to avoid overflow.
1808 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1810         PR libgomp/25938
1811         * Makefile.am (libsubincludedir): New.
1812         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1813         * Makefile.in: Regenerate.
1815 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1817         PR libgomp/28725
1818         * env.c: Include ctype.h.
1819         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1820         leading and/or trailing whitespace and compare strings case
1821         insensitively.
1823 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1825         PR fortran/28390
1826         * testsuite/libgomp.fortran/pr28390.f: New test.
1828 2006-07-05  Eric Christopher  <echristo@apple.com>
1830         * configure.ac: Depend addition of -pthread on host OS.
1831         * configure: Regenerate.
1833 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1835         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1836         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1837         defined.
1839 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1841         PR libgomp/26175
1842         PR libgomp/26477
1843         * configure.ac: If neither --enable-linux-futex nor
1844         --disable-linux-futex is passed, determine the default by checking
1845         for compiling and/or running against NPTL.  With --enable-linux-futex,
1846         check if SYS_gettid and SYS_futex are defined.
1847         * configure: Rebuilt.
1849 2006-06-14  Richard Henderson  <rth@redhat.com>
1851         PR libgomp/28008
1852         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1853         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1855 2006-06-09  Richard Henderson  <rth@redhat.com>
1857         * env.c (gomp_nthreads_var): Change to unsigned long.
1858         (gomp_run_sched_chunk): Likewise.
1859         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1860         (initialize_env): Initialize gomp_thread_attr.
1861         * libgomp.h (gomp_nthreads_var): Update decl.
1862         (gomp_run_sched_chunk): Likewise.
1863         (gomp_thread_attr): Declare.
1864         * team.c (gomp_thread_attr): Export.
1865         (initialize_team): Don't initialize it.
1867 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
1869         PR fortran/27916
1870         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1871         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1873 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1875         * config/mingw32/time.c: New file.
1876         * configure.tgt: Use it.
1878 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1880         * Makefile.am: Add install-html target. Add install-html to .PHONY
1881         * Makefile.in: Regenerate.
1883 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1885         PR libgomp/27612
1886         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1887         * testsuite/libgomp.c/critical-1.c: Likewise.
1888         * testsuite/libgomp.c/loop-1.c: Likewise.
1889         * testsuite/libgomp.c/loop-2.c: Likewise.
1890         * testsuite/libgomp.c/single-1.c: Likewise.
1891         * testsuite/libgomp.c/ordered-1.c: Likewise.
1892         * testsuite/libgomp.c/ordered-2.c: Likewise.
1894 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1896         PR middle-end/27416
1897         * libgomp.fortran/pr27416-1.f90: New test.
1899 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
1901         PR fortran/27395
1902         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1903         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1905 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1907         PR c++/26943
1908         * testsuite/libgomp.c/pr26943-1.c: New test.
1909         * testsuite/libgomp.c/pr26943-2.c: New test.
1910         * testsuite/libgomp.c/pr26943-3.c: New test.
1911         * testsuite/libgomp.c/pr26943-4.c: New test.
1912         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1913         * testsuite/libgomp.c++/pr26943.C: New test.
1915 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1917         PR middle-end/27337
1918         * testsuite/libgomp.c++/pr27337.C: New test.
1920 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1922         PR c/26171
1923         * testsuite/libgomp.c/pr26171.c: New test.
1925 2006-04-25  Richard Henderson  <rth@redhat.com>
1927         PR libgomp/25865
1928         * configure.ac: Use GCC_CHECK_TLS.
1929         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1930         * Makefile.in, aclocal.m4, configure: Regenerate.
1932 2006-04-10  Matthias Klose  <doko@debian.org>
1934         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1935         directory names containing underscores.
1937 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1939         PR c++/26691
1940         * testsuite/libgomp.c++/pr26691.C: New test.
1942 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1944         * testsuite/libgomp.fortran/retval2.f90: New test.
1946 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1948         * testsuite/libgomp.c++: New directory.
1950 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
1952         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1953         * config/posix/sem.c: Implement the above.
1955 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
1957         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1958         define HAVE_BROKEN_POSIX_SEMAPHORES.
1959         * configure: Rebuilt.
1960         * config.h.in: Rebuilt.
1962 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1964         PR bootstrap/26161
1965         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1966         for the other pthread check.
1967         * configure: Regenerate.
1968         * config.h.in: Regenerate.
1970 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1972         PR libgomp/25938
1973         PR libgomp/25984
1974         * Makefile.am (fincludedir): New variable.
1975         (nodist_include_HEADERS): Remove Fortran files.
1976         (nodist_finclude_HEADERS): New variable.
1977         * Makefile.in: Regenerated.
1979 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1981         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1982         Remove tests for returning assumed character length arrays.
1984 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1985             John David Anglin  <dave@hiauly1.hia.nrc.ca>
1987         PR libgomp/25936
1988         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1990 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1992         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1994 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1996         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1997         part of LD_LIBRARY_PATH manually.
1999 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2001         PR libgomp/25852
2002         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2003         libgomp_init.
2005 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2007         PR libgomp/25884
2008         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2009         * configure.ac (PERL): Don't set.
2010         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2011         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2012         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2013         * omp.h.in: Wrap the new configure substitutions with @ characters.
2014         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2015         * aclocal.m4, configure, Makefile.in: Regenerate.
2016         * mkomp_h.pl: Delete.
2018 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2020         PR libgomp/25259
2021         * configure.ac: Use GCC_HEADER_STDINT.
2022         * libgomp.h: Include gstdint.h.
2023         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2024         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2026 2006-01-24  Richard Henderson  <rth@redhat.com>
2028         PR libgomp/25942
2029         * configure.ac: Add AM_MAINTAINER_MODE.
2030         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2032 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2034         * Makefile.in: Regenerate.
2035         * testsuite/Makefile.in: Regenerate.
2036         * aclocal.m4: Regenerate.
2038 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2040         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2041         Solaris.
2042         * configure.ac: Add check for loadavg.h.
2043         (link_gomp): Adjust comment.
2044         * configure: Regenerate.
2045         * config.h.in: Regenerate.
2047 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2049         PR libgomp/25877
2050         * configure.ac: Remove check for alloca.h.
2051         * configure: Regenerate.
2052         * config.h.in: Regenerate.
2053         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2054         * team.c: Remove use of alloca.h.
2055         Call gomp_alloca instead of alloca.
2057 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2059         PR libgomp/25877
2060         * team.c: Add include of alloca.h.
2061         * configure.ac: Add check for alloca.h.
2062         * configure: Regenerate.
2063         * config.h.in: Regenerate.
2065 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2067         PR fortran/25219
2068         * testsuite/libgomp.fortran/pr25219.f90: New test.
2070 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2072         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2073         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2074         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2075         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2076         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2077         testsuite/libgomp.fortran/threadprivate1.f90,
2078         testsuite/libgomp.fortran/threadprivate2.f90,
2079         testsuite/libgomp.fortran/threadprivate3.f90,
2080         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2081         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2082         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2083         effective-target to TLS runtime.
2085         * testsuite/libgomp.fortran/pr25162.f: Require
2086         effective-target TLS runtime.
2088 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2090         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2091         * testsuite/libgomp.c/nestedfn-3.c: New test.
2093 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2095         PR fortran/25162
2096         * testsuite/libgomp.fortran/pr25162.f: New test.
2098 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2100         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2101         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2103 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2105         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2106         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2107         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2108         single.c, team.c, work.c, config/linux/alpha/futex.h,
2109         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2110         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2111         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2112         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2113         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2114         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2115         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2116         FSF address.
2118 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2120         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2121         to nodist_noinst_HEADERS.
2122         * Makefile.in: Rebuilt.
2124         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2125         add integer count field.
2126         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2127         omp_nest_lock_t type change.
2128         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2129         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2130         Increment count.
2131         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2132         Decrement count.
2133         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2134         Increment count if successful and return the new nesting level.
2135         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2136         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2137         * testsuite/libgomp.c/lib-1.c: New test.
2138         * testsuite/libgomp.fortran/lib1.f90: New test.
2139         * testsuite/libgomp.fortran/lib2.f: New test.
2140         * testsuite/libgomp.fortran/lib3.f: New test.
2142 2005-11-17  Richard Henderson  <rth@redhat.com>
2144         PR 24845
2145         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2146         * configure.ac (link_gomp): New.  Substitute it.
2147         (AC_CONFIG_FILES): Add libgomp.spec.
2148         * libgomp.spec.in: New file.
2149         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2150         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2152 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2154         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2155         reduction(-:var) behaving the same as reduction(+:var).
2156         * testsuite/libgomp.c/reduction-4.c: New test.
2158 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2160         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2161         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2162         testsuite/libgomp.c/copyin-3.c,
2163         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2164         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2165         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2166         testsuite/libgomp.c++/pr24455.C,
2167         testsuite/libgomp.fortran/threadprivate1.f90,
2168         testsuite/libgomp.fortran/threadprivate2.f90,
2169         testsuite/libgomp.fortran/threadprivate3.f90,
2170         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2171         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2172         testsuite/libgomp.fortran/omp_parse3.f90: Require
2173         effective-target TLS.
2175 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2177         * HEADER: Remove.
2179 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2181         PR libgomp/24797
2182         * team.c (initialize_team): Pass NULL rather than free as
2183         pthread_key_create destructor.  Initialize thread specific data
2184         pointer in initial thread to a static local variable rather than
2185         malloced memory.
2187 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2189         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2190         its location to ld_library_path.
2192 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2194         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2196 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2198         * testsuite/libgomp.c: Rename from libgomp.dg.
2200 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2202         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2203         threadprivate variable 'i'.
2205 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2207         * config/linux/s390/futex.h: New file.
2208         * configure.tgt: Use it.
2210         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2211         before the parallel.
2213 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2215         PR c++/24734
2216         * testsuite/libgomp.c++/master-1.C: New test.
2218 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2220         * testsuite/libgomp.dg/copyin-3.c: New test.
2222 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2224         * testsuite/libgomp.fortran/retval1.f90: New test.
2225         * testsuite/libgomp.fortran/vla7.f90: New test.
2227 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2229         * testsuite/libgomp.fortran/vla2.f90: New test.
2230         * testsuite/libgomp.fortran/vla3.f90: New test.
2231         * testsuite/libgomp.fortran/vla4.f90: New test.
2232         * testsuite/libgomp.fortran/vla5.f90: New test.
2233         * testsuite/libgomp.fortran/vla6.f90: New test.
2235 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2237         * config/linux/sparc/futex.h: New file.
2238         * configure.tgt: Use it.
2239         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2241         * critical.c: Include stdlib.h.
2242         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2243         ignoring return value.
2244         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2245         LIBGOMP_CHECK_SYNC_BUILTINS check.
2246         * configure: Rebuilt.
2248 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2250         * testsuite/libgomp.fortran/vla1.f90: New test.
2252 2005-10-31  Richard Henderson  <rth@redhat.com>
2254         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2255         setting 's' in different threads.
2257 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2259         * libgomp.h (attribute_hidden, ialias): Define.
2260         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2261         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2262         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2263         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2264         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2265         omp_test_lock, omp_test_nest_lock): Likewise.
2266         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2267         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2268         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2269         omp_test_lock, omp_test_nest_lock): Likewise.
2270         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2271         omp_get_dynamic, omp_get_nested): Likewise.
2272         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2273         omp_get_thread_num, omp_in_parallel): Likewise.
2274         * fortran.c (ialias_redirect): Define.
2275         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2276         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2277         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2278         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2279         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2280         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2281         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2282         omp_get_wtime): Add ialias_redirect.
2284 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2286         * fortran.c: Include stdlib.h.
2288 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2290         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2291         * Makefile.in: Regenerated.
2293 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2295         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2296         * libgomp_f.h.in (omp_check_defines): New function.
2297         * env.c: Include libgomp_f.h.
2298         (initialize_env): Call omp_check_defines.
2300         * testsuite/libgomp.dg/copyin-2.c: New test.
2301         * testsuite/libgomp.c++/copyin-2.C: New test.
2302         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2304         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2305         * testsuite/libgomp.fortran/sharing2.f90: New test.
2307         * testsuite/libgomp.dg/copyin-1.c: New test.
2308         * testsuite/libgomp.c++/copyin-1.C: New test.
2310 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2312         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2314         * testsuite/libgomp.fortran/workshare1.f90: New test.
2316         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2317         only test.
2318         * libgomp.fortran/sharing1.f90: New test.
2320 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2322         PR c++/24502
2323         * testsuite/libgomp.c++/loop-7.C: New test.
2325         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2327         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2328         * testsuite/libgomp.fortran/reduction6.f90: New test.
2329         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2331 2005-10-23  Richard Henderson  <rth@redhat.com>
2333         * testsuite/libgomp.c++/ctor-1.C: New.
2334         * testsuite/libgomp.c++/ctor-2.C: New.
2335         * testsuite/libgomp.c++/ctor-3.C: New.
2336         * testsuite/libgomp.c++/ctor-4.C: New.
2337         * testsuite/libgomp.c++/ctor-5.C: New.
2338         * testsuite/libgomp.c++/ctor-6.C: New.
2339         * testsuite/libgomp.c++/ctor-7.C: New.
2340         * testsuite/libgomp.c++/ctor-8.C: New.
2341         * testsuite/libgomp.c++/ctor-9.C: New.
2343 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2345         PR 24455
2346         * testsuite/libgomp.c++/pr24455-1.C: New test.
2347         * testsuite/libgomp.c++/pr24455.C: New test.
2348         * testsuite/libgomp.dg/pr24455-1.c: New test.
2349         * testsuite/libgomp.dg/pr24455.c: New test.
2351 2005-10-20  Richard Henderson  <rth@redhat.com>
2353         * testsuite/libgomp.c++/loop-6.C: New.
2354         * testsuite/libgomp.dg/loop-3.c: New.
2356 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2358         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2359         explicitly private.
2360         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2361         explicitly shared.
2363 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2365         * testsuite/libgomp.fortran/jacobi.f: New test.
2367 2005-10-19  Richard Henderson  <rth@redhat.com>
2369         * configure.tgt (i?86-linux): Default to with_arch instead of
2370         CFLAGS.  Add -mtune to match target_cpu.
2371         (x86_64-linux): Tune to i686.
2373         * fortran.c (omp_test_nest_lock_): Fix typo.
2375 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2377         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2378         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2379         * testsuite/libgomp.dg/ordered-3.c: New test.
2381         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2382         Remove volatile keyword.
2384         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2385         in COMMON block to avoid warnings on 64-bit targets.
2387 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2389         * testsuite/libgomp.dg/shared-3.c: New test.
2391 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2393         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2394         * testsuite/libgomp.fortran/reduction5.f90: New test.
2396 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2398         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2399         dg-options.
2400         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2401         flush loop now that __sync_synchronize has proper memory barrier.
2402         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2403         Add -ffixed-form to dg-options.
2405 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2407         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2408         from subdirectories.
2409         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2410         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2411         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2412         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2413         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2414         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2415         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2416         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2417         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2418         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2419         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2420         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2421         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2422         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2423         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2424         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2425         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2426         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2427         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2428         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2429         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2430         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2431         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2432         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2433         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2435 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2437         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2438         lang_library_path exists.  Use find instead of glob to gather tests.
2439         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2441 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2443         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2444         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2445         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2446         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2447         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2448         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2449         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2450         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2451         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2452         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2453         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2454         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2455         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2457 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2459         * testsuite/libgomp.dg/vla-1.c: New test.
2461         * testsuite/libgomp.fortran/reference2.f90: New test.
2463         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2464         declaration of omp_get_thread_num.
2465         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2466         use omp_lib.
2468         * testsuite/libgomp.fortran/reduction1.f90: New test.
2469         * testsuite/libgomp.fortran/reduction2.f90: New test.
2470         * testsuite/libgomp.fortran/reduction3.f90: New test.
2471         * testsuite/libgomp.fortran/reduction4.f90: New test.
2473 2005-10-13  Richard Henderson  <rth@redhat.com>
2475         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2476         * Makefile.in: Regenerate.
2477         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2478         * libgomp.h: Include bar.h.
2479         (struct gomp_barrier): Remove.
2480         (struct gomp_team): Add barrier.  Replace master_barrier with
2481         master_release.  Replace threads with ordered_release.
2482         (struct gomp_thread): Replace barrier with release.
2483         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2484         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2485         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2486         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2487         (GOMP_single_copy_end): Likewise.
2488         * team.c (gomp_threads_dock): New.
2489         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2490         (gomp_thread_start): Use gomp_barrier_wait.
2491         (new_team, free_team): Update for gomp_team changes.
2492         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2493         (gomp_team_end): Use gomp_barrier_wait.
2494         (initialize_team): Update for gomp_thread changes.
2495         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2496         (gomp_work_share_end_nowait): Use atomic ops when available.
2497         * config/linux/bar.c, config/linux/bar.h: New files.
2498         * config/posix/bar.c, config/posix/bar.h: New files.
2500 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2502         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2503         * testsuite/libgomp.dg/single-2.c: New test.
2505         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2506         lang_link_flags): Unset, so that they aren't inherited from previously
2507         sourced *.exp.
2509         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2511 2005-10-12  Richard Henderson  <rth@redhat.com>
2513         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2514         (libgomp_init): Use lang_test_file, lang_library_path, and
2515         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2517         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2518         (lang_test_file, lang_link_flags): New.
2519         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2521         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2522         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2523         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2524         testsuite/libgomp.c++/parallel-1.C,
2525         testsuite/libgomp.c++/reduction-1.C,
2526         testsuite/libgomp.c++/reduction-2.C,
2527         testsuite/libgomp.c++/reduction-3.C,
2528         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2529         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2530         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2531         New files, largely cribbed from the C testsuite.
2533 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2535         * testsuite/libgomp.fortran/character1.f90: New test.
2536         * testsuite/libgomp.fortran/character2.f90: New test.
2538         * testsuite/libgomp.dg/nested-1.c: New test.
2539         * testsuite/libgomp.dg/nested-2.c: New test.
2540         * testsuite/libgomp.fortran/do1.f90: New test.
2541         * testsuite/libgomp.fortran/do2.f90: New test.
2543         * testsuite/libgomp.fortran/reference1.f90: New test.
2545 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2547         * testsuite/libgomp.dg/reduction-1.c: New test.
2548         * testsuite/libgomp.dg/reduction-2.c: New test.
2549         * testsuite/libgomp.dg/reduction-3.c: New test.
2551 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2553         * testsuite/libgomp.dg/atomic-1.c: New test.
2554         * testsuite/libgomp.dg/atomic-2.c: New test.
2556 2005-10-09  Richard Henderson  <rth@redhat.com>
2558         * critical.c (atomic_lock): New.
2559         (initialize_critical): Initialize it.
2560         (GOMP_atomic_start, GOMP_atomic_end): New.
2561         * libgomp.map: Export them.
2562         * libgomp_g.h: Declare them.
2564         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2566 2005-10-02  Richard Henderson  <rth@redhat.com>
2568         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2569         to XCFLAGS instead of CFLAGS.
2571 2005-09-30  Richard Henderson  <rth@redhat.com>
2573         * configure.ac: Determine whether -pthread or -lpthread is needed.
2574         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2575         * Makefine.in, configure: Rebuild.
2577 2005-09-28  Richard Henderson  <rth@redhat.com>
2579         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2580         * testsuite/libgomp.dg/omp-single-3.c: New test.
2582 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2584         * testsuite/libgomp.dg/omp-single-2.c: New test.
2585         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2587 2005-09-27  Richard Henderson  <rth@redhat.com>
2589         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2590         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2592 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2594         * testsuite/libgomp.dg/omp-loop03.c: New test.
2596 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2598         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2600 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2602         * testsuite/libgomp.dg/omp-single-1.c: New test.
2603         * testsuite/libgomp.dg/shared-1.c: Return 0.
2604         Add prototype for abort.
2605         * testsuite/libgomp.dg/shared-2.c: Likewise.
2607 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2609         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2610         constructs.
2612 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2614         * testsuite/libgomp.dg/shared-1.c: New test.
2615         * testsuite/libgomp.dg/shared-2.c: New test.
2617 2005-09-24  Richard Henderson  <rth@redhat.com>
2619         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2621 2005-09-24  Richard Henderson  <rth@redhat.com>
2623         * iter.c (gomp_iter_static_next): Round up when computing number
2624         of iterations.  Don't bother distributing a remainder equally.
2626         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2627         Don't call srand.  Zero b before testing.
2628         (main): New.
2630 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2632         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2633         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2635 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2637         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2638         without !$omp end do, followed immediately by subroutine end.
2640 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2642         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2644 2005-09-22  Richard Henderson  <rth@redhat.com>
2646         * critical.c (GOMP_critical_name_start): Change argument to void**.
2647         Reuse the pointer space if the mutex fits.
2648         (GOMP_critical_name_end): Likewise.
2649         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2650         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2651         (GOMP_critical_name_end): Likewise.
2652         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2653         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2655 2005-09-20  Richard Henderson  <rth@redhat.com>
2657         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2658         (create_lock_lock): New.
2659         (initialize_critical): Initialize it.
2660         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2661         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2663 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2665         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2667 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2669         * testsuite/libgomp.dg/omp-loop01.c: New test.
2670         * testsuite/libgomp.dg/omp-loop02.c: New test.
2672 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2674         * configure.ac (AC_PROG_FC): Add.
2675         (USE_FORTRAN): New automake conditional.
2676         * configure: Rebuilt.
2677         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2678         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2679         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2680         Add rules to build them.
2681         * Makefile.in: Rebuilt.
2682         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2683         OMP_NEST_LOCK_KIND.
2684         * libgomp.map: Add Fortran wrappers.
2685         * libgomp_f.h.in: New file.
2686         * omp_lib.h.in: New file.
2687         * omp_lib.f90.in: New file.
2688         * fortran.c: New file.
2689         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2690         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2691         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2692         libgfortran has been built.
2693         * testsuite/libgomp.fortran/fortran.exp: New file.
2694         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2695         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2696         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2697         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2698         * testsuite/libgomp.fortran/omp_hello.f: New test.
2699         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2700         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2701         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2702         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2703         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2704         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2705         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2706         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2708 2005-08-30  Richard Henderson  <rth@redhat.com>
2710         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2711         function for when aliases are not usable.
2712         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2713         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2714         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2715         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2716         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2717         GOMP_loop_ordered_guided_next): Likewise.
2718         * ordered.c (GOMP_ordered_start): Likewise.
2720 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2722         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2723         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2724         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2725         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2726         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2727         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2728         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2729         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2730         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2732 2005-07-07  Eric Christopher  <echristo@redhat.com>
2733             Diego Novillo  <dnovillo@redhat.com>
2735         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2736         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2737         up code.
2738         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2739         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2740         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2741         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2742         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2743         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2744         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2746 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2748         * TOPLEVEL.patch: Remove.
2750 2005-05-16  Richard Henderson  <rth@redhat.com>
2752         * configure.ac: Test for clock_gettime.
2753         * config.h.in, configure: Rebuild.
2754         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2755         (omp_get_wtime): Use clock_gettime if available.
2756         (omp_get_wtick): Use clock_getres if available.
2758 2005-05-11  Richard Henderson  <rth@redhat.com>
2760         * config/linux/ia64/futex.h: New file.
2761         * configure.tgt: Use it.
2763         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2765 2005-05-07  Richard Henderson  <rth@redhat.com>
2767         * config/linux/powerpc/futex.h: New file.
2768         * configure.tgt: Use it.
2770         * config/linux/i486/futex.h: Merge ...
2771         * config/linux/x86_64/futex.h: ... into ...
2772         * config/linux/x86/futex.h: ... here.
2773         * configure.tgt: Update to match.
2775 2005-05-06  Richard Henderson  <rth@redhat.com>
2777         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2778         * config/linux/i486/futex.h: Likewise.
2779         * config/linux/x86_64/futex.h: Likewise.
2781         * config/linux/lock.c: New file.
2782         * config/linux/omp-lock.h: New file.
2784         * critical.c, env.h: Don't include omp.h
2785         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2786         * config/posix/time.c: Likewise.
2787         * config/posix/omp-lock.h: New file.
2788         * libgomp.h: Include omp-lock.h and omp.h.
2789         * Makefile.am (nodist_include_HEADERS): New.
2790         (omp.h): New rule.
2791         * configure.ac (PERL): New.
2792         * mkomp_h.pl: New file.
2793         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2794         with templates.
2795         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2797         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2798         build directory.  Re-add -march=i486 hack.
2800         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2801         (libgomp_link_flags): Remove.
2802         (libgomp_initialized): Remove.
2803         (libgomp_init): Don't protect from reinitialization.  Copy code
2804         from libstdc++ for getting the multilib set correctly.
2806 2005-05-05  Richard Henderson  <rth@redhat.com>
2808         * config/linux/alpha/futex.h: New file.
2809         * configure.tgt (alpha*-*-linux*): Use it.
2811         * config/posix/mutex.c: New file.
2812         * config/posix/sem.c: Use libgomp.h.
2814         * configure.tgt (x86_64-linux): Also test CC for -m32.
2815         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2817         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2818         after $gccpath.
2820         * Makefile.am (SUBDIRS): New.
2821         (libgomp_la_LDFLAGS): Add -lpthread.
2822         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2823         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2825         * libgomp_g.h: New file.
2826         * libgomp.h: Split out all public declarations to libgomp_g.h.
2827         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2828         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2829         * config/linux/sem.h: Likewise.
2830         * config/posix/sem.h: Likewise.
2832         * Makefile.am (AM_LDFLAGS): New.
2833         (libgomp_version_script): Split out from ...
2834         (libgomp_la_LDFLAGS): ... here.
2835         (libgomp_version_info): New.
2836         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2837         (LIBGOMP_ENABLE): New.
2838         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2839         (LIBGOMP_ENABLE_SYMVERS): New.
2840         * configure.ac (AC_INIT): Version 1.0.
2841         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2842         (enable-linux-futex): Likewise.  Rename from enable-futex.
2843         (libtool_VERSION): New.
2844         (LIBGOMP_ENABLE_SYMVERS): Use it.
2845         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2846         * Makefile.in, aclocal.m4, configure: Rebuild.
2848         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2849         (gomp_mutex_unlock_slow): Fix typo.
2850         * config/linux/sem.c: Similarly.
2851         (gomp_sem_post_slow): Fix typo.
2852         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2853         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2854         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2856         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2857         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2858         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2859         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2860         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2861         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2862         LDFLAGS.  Pull enable_futex check to top-level.
2863         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
2864         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2866         First attempt at real configury.
2867         * Makefile, config.h: Remove file.
2868         * Makefile.am, Makefile.in: New file.
2869         * acinclude.m4 aclocal.m4: New file.
2870         * configure.ac, configure.tgt, configure: New file.
2872         * config/posix/lock.c: Rename from sys-lock.c.
2873         * config/posix/mutex.h: Rename from sys-mutex.h.
2874         * config/posix/sem.c: Rename from sys-sem.c.
2875         * config/posix/sem.h: Rename from sys-sem.h.
2876         * config/posix/proc.c: Rename from sys-proc.c.
2877         * config/posix/time.c: Rename from sys-proc.c.
2879         * config/linux/mutex.c: New file.
2880         * config/linux/mutex.h: New file.
2881         * config/linux/sem.c: New file.
2882         * config/linux/sem.h: New file.
2883         * config/linux/i486/futex.h: New file.
2884         * config/linux/x86_64/futex.h: New file.
2886 2005-05-04  Richard Henderson  <rth@redhat.com>
2888         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2889         * libgomp.h: Declare them.
2890         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2891         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2893 2005-05-04  Richard Henderson  <rth@redhat.com>
2895         * libgomp-1 code drop
2897 2005-05-04  Richard Henderson  <rth@redhat.com>
2899         * iter.c (gomp_iter_static_next): Return tri-state on 0.
2900         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2901         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2902         (gomp_iter_static_next): Update.
2903         (gomp_ordered_static_next): Update.
2904         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2905         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
2906         totally empty range.
2907         (gomp_loop_ordered_static_next): Refine test for calling
2908         gomp_ordered_static_next.
2909         * testsuite/ordered-1.c: Add case for more threads than iterations.
2911         * iter.c (gomp_iter_runtime_next_locked): Remove.
2912         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2913         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2914         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2915         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2916         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2917         gomp_loop_ordered_guided_next): Downcase name, make static, add
2918         an external alias with the old name.
2919         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2920         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2921         switch and call one of the above static functions.
2922         * libgomp.h: Update.
2924         * work.c (gomp_work_share_start): Lock the mutex for !first too.
2925         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2926         GOMP_loop_guided_start, GOMP_loop_runtime_start,
2927         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2928         GOMP_loop_ordered_guided_start): Update to match.
2929         * sections.c (GOMP_sections_start): Likewise.
2930         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2932         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2933         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2934         Use bounds check instead of modulus.
2935         (gomp_ordered_sync): Split out of GOMP_ordered_start.
2936         (gomp_ordered_last): Don't sync with ordered_owner here.
2937         (gomp_ordered_next): Likewise.
2938         (gomp_ordered_static_loop_next): Likewise.
2939         * loop.c, libgomp.h: Update to match.
2941         * libgomp.h (GOMP_barrier): Declare.
2943         * testsuite/barrier-1.c: New file.
2944         * testsuite/critical-1.c: New file.
2945         * testsuite/ordered-2.c: New file.
2946         * testsuite/ordered-1.c: New file.
2947         * testsuite/sections-1.c: New file.
2948         * testsuite/single-1.c: New file.
2949         * testsuite/Makefile (TESTS): Add them.
2951 2005-05-04  Richard Henderson  <rth@redhat.com>
2953         * libgomp.h (struct gomp_work_share): Add ordered_owner.
2954         * loop.c (GOMP_loop_static_start): If not the startup thread,
2955         acquire the mutex to wait for initialization complete.
2956         (GOMP_loop_ordered_static_start): Likewise.
2957         (GOMP_loop_ordered_runtime_start): Likewise.
2958         (GOMP_loop_ordered_static_first): Remove.
2959         (GOMP_loop_ordered_dynamic_first): Remove.
2960         (GOMP_loop_ordered_guided_first): Remove.
2961         (GOMP_loop_ordered_runtime_first): Remove.
2962         * ordered.c (gomp_ordered_loop_first): Post to own release when
2963         we're the first thread.
2964         (gomp_ordered_loop_last): Wait on release if not owner.
2965         (gomp_ordered_loop_next): Likewise.
2966         (gomp_ordered_static_loop_init): New.
2967         (gomp_ordered_static_loop_next): Use ordered_owner.
2968         (GOMP_ordered_start): Likewise.
2969         * work.c (gomp_new_work_share): Initialize ordered_owner.
2971 2005-05-03  Richard Henderson  <rth@redhat.com>
2973         * Makefile (OPT): New.
2974         (CFLAGS): Use it.
2976         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2977         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2978         * libgomp.h, libgomp.map, NOTES: Update to match.
2980         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2981         Add initialized and thr members.
2982         (gomp_thread_start): Pause when initially spawned to wait for
2983         the whole team to be created.
2984         (gomp_team_start): Release team members at the end.
2986         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
2987         (f_foo_1): Use GOMP_loop_end.
2988         (f_foo_2): Use GOMP_loop_end_nowait.
2990         * testsuite/loop-2.c: New file.
2991         * testsuite/Makefile (TESTS): Add it.
2993 2005-05-03  Richard Henderson  <rth@redhat.com>
2995         * iter.c (gomp_iter_static_next): Fix overflow check typo.
2996         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2997         * team.c (new_team): Initialize oldest_live_gen to 1 if no
2998         initial work_share.
3000         * testsuite/Makefile: New file.
3001         * testsuite/loop-1.c: New file.
3003 2005-05-03  Richard Henderson  <rth@redhat.com>
3005         Initial implementation and checkin.