2011-02-24 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / libgomp / ChangeLog
blob33b4e2c91391105c7ee0216b9513d4b2811223b3
1 2011-02-24  Tobias Burnus  <burnus@net-b.de>
3         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
5 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
7         PR libgomp/47854
8         * libgomp.texi (omp_get_wtime): Don't say time in the past
9         must be Unix Epoch.
11 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13         PR libgomp/47804
14         * testsuite/libgomp.fortran/fortran.exp: Check for both
15         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
16         but $blddir != "", still append ${blddir}/${lang_library_path}
17         to ld_library_path.
19 2011-02-16  Tobias Burnus  <burnus@net-b.de>
21         PR libgomp/47758
22         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
23         of libquadmath.a before adding its libpath to ldflags.
25 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
27         PR libgomp/47731
28         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
29         to FUTEX_WAIT futex syscall.
30         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
32 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34         * configure: Regenerate.
36 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
38         PR libstdc++/36104
39         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
41 2011-01-16  Gerald Pfeifer
43         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
45 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
47         PR fortran/46874
48         * libgomp.fortran/allocatable6.f90: New test.
50 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
52         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
53         * configure: Regenerate.
55 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
57         PR target/40125
58         PR lto/46695
59         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
60         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
61         * aclocal.m4: Regenerate.
62         * configure: Regenerate.
63         * Makefile.in: Regenerate.
64         * testsuite/Makefile.in: Regenerate.
66 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
68         PR fortran/46753
69         * libgomp.fortran/pr46753.f90: New test.
71         PR libgomp/43706
72         * env.c (initialize_env): Default to spin count 300000
73         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
74         is specified.
76         PR libgomp/45240
77         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
78         at the end if sync builtins aren't supported.
80 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
82         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
84 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
86         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
88 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
90         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
92 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
93             Tobias Burnus  <burnus@net-b.de>
95         PR fortran/32049
96         * configure.ac: 
97         * configure: Regenerate.
99 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
101         * config/linux/futex.h: New.
102         * config/linux/arm/mutex.h: New.
103         * configure.tgt (arm*-*-linux*): Add config path.
105 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
107         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
109 2010-09-23  Tobias Burnus  <burnus@net-b.de>
111         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
112         Change Fortran datatype to LOGICAL.
113         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
114         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
116 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118         * configure: Regenerate.
120 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
122         * libgomp.texi: Add function keyword to a couple of Fortran
123         interfaces, use integer instead of int for Fortran.
125 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
127         * libgomp.texi: Fix spelling and pasto problems throughout.
128         Adjust prototypes to match code.
130 2010-07-24  Tobias Burnus  <burnus@net-b.de>
132         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
133         silence -fwhole-file warning.
135 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
137         * configure.tgt (*-*-solaris2.[56]*): Removed.
139 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
141         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
142         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
143         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
144         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
145         targetting solaris2*.
146         * configure: Regenerate.
147         * config.h.in: Regenerate.
149         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
150         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
151         Add libgomp_version_dep.
152         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
153         versioning.
154         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
155         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
156         * Makefile.in: Regenerate.
158         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
159         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
160         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
161         to common block, protected by
162         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
164 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
166         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
168 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
170         PR bootstrap/43170
171         * configure: Regenerate.
173 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
175         PR other/43620
176         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
177         * configure: Regenerate.
178         * Makefile.in: Regenerate.
179         * testsuite/Makefile.in: Regenerate.
181 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
183         PR c/43893
184         * testsuite/libgomp.c/pr43893.c: New test.
185         * testsuite/libgomp.c++/pr43893.C: New test.
187 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
189         PR middle-end/43570
190         * testsuite/libgomp.fortran/vla8.f90: New test.
192 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
194         PR libgomp/43706
195         * config/linux/affinity.c (gomp_init_affinity): Decrease
196         gomp_available_cpus if affinity mask confines the process to fewer
197         CPUs.
198         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
199         non-NULL, just return gomp_available_cpus.
201         PR libgomp/43569
202         * sections.c (gomp_sections_init): Initialize ws->mode.
204 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
206         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
207         not unused bar variable.
208         * configure: Regenerate.
210 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
212         * Makefile.in: Regenerate.
213         * aclocal.m4: Regenerate.
214         * testsuite/Makefile.in: Regenerate.
216 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
218         PR libgomp/42942
219         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
220         (initialize_env): Adjust callers.
221         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
222         when the argument is 0.
224         * testsuite/libgomp.c/pr42942.c: New test.
226 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
228         PR middle-end/42644
229         PR middle-end/42130
230         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
231         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
233 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
235         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
236         * testsuite/libgomp.c++/task-6.C: Likewise.
238 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
240         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
242 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
244         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
245         * configure: Regenerate.
247 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
249         PR fortran/42866
250         * testsuite/libgomp.fortran/allocatable5.f90: New test.
252 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
254         * configure.ac: Test for executability of GFORTRAN.
255         * configure: Regenerate.
257 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
259         * configure: Regenerate.
261 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
263         PR libgomp/42602
264         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
266 2010-01-03  Richard Guenther  <rguenther@suse.de>
268         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
270 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
272         * testsuite/libgomp.graphite/pr4118.c: New.
274 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
276         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
277         for darwin, protect the test with require-effective-target tls_runtime.
278         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
280 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
282         PR target/41605
283         * testsuite/lib/libgomp.exp: Provide -B options to allow for
284         link spec %s substitutions for static libraries.
286 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
288         PR testsuite/42135
289         * libgomp.graphite/force-parallel-2.c: Reduce array size.
291 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
293         * Makefile.in: Regenerate.
294         * configure: Regenerate.
295         * testsuite/Makefile.in: Regenerate.
297 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
299         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
300         settings for LC_ALL and LANG.
302 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
304         PR fortran/42162
305         * testsuite/libgomp.fortran/pr42162.f90: New test.
307 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
309         PR middle-end/42029
310         * testsuite/libgomp.c/pr42029.c: New test.
312 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
314         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
315         *s.  Accept ld version without text in ()s.
316         * configure: Regenerated.
318 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
320         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
322 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
324         PR libgomp/41418
325         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
326         or a hyphen (happens with fortran language disabled).
327         * configure: Regenerate.
329 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
331         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
332         use sed script portable to Solaris /bin/sed for extracting ld
333         version.
334         * configure: Regenerate.
336 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
338         * testsuite/libgomp.graphite/bounds.c: New test.
340 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
342         * Makefile.am (libgomp_la_LINK): New.
343         * Makefile.in: Regenerate.
345 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
347         * configure.ac (AC_PREREQ): Bump to 2.64.
349 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
351         * Makefile.am (install-html, install-pdf): Remove.
352         * Makefile.in: Regenerate.
354         * Makefile.in: Regenerate.
355         * aclocal.m4: Regenerate.
356         * config.h.in: Regenerate.
357         * configure: Regenerate.
358         * testsuite/Makefile.in: Regenerate.
360 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
362         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
363         * Makefile.in: Regenerate.
365 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
367         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
368         * Makefile.in: Regenerate.
370 2009-08-19  Tobias Burnus  <burnus@net-b.de>
372         PR fortran/41102
373         omp_lib.h.in: Fix -std=f95 errors.
376 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
378         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
379         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
380         * testsuite/libgomp.graphite/graphite.exp: New.
382 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
384         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
385         only build.
387 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
389         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
390         needed memory barrier semantics.
391         * config/linux/mips/mutex.h: New file.
393 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
395         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
397 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
399         * configure: Regenerate.
401 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
403         PR testsuite/40699
404         PR testsuite/40707
405         PR testsuite/40709
406         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
407         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
408         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
410 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
412         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
413         options when choosing a multilib.
415 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
417         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
418         ld_library_path.  Use add_path.  Add just find_libgcc_s to
419         ld_library_path, not every libgcc multilib directory.
420         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
421         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
422         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
423         Use add_path.
424         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
426 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
428         * Makefile.am (LTLDFLAGS): Define.
429         (LINK): Define.
430         * Makefile.in: Regenerate.
432 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
434         PR fortran/39718
435         * testsuite/libgomp.fortran/fortran.exp: Don't link with
436         libgfortranbegin, check existence of libgfortran.a instead of
437         libgfortranbegin.a.
439 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
441         PR libgomp/40174
442         * team.c (gomp_thread_start): Destroy thr->release semaphore.
443         (gomp_free_pool_helper): Likewise.
445 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
446             Jakub Jelinek  <jakub@redhat.com>
448         PR fortran/35423
449         * testsuite/libgomp.fortran/workshare2.f90: New test.
451 2009-04-09  Nick Clifton  <nickc@redhat.com>
453         * iter.c: Change copyright header to refer to version 3 of the
454         GNU General Public License with version 3.1 of the GCC Runtime
455         Library Exception and to point readers at the COPYING3 and
456         COPYING3.RUNTIME files and the FSF's license web page.
457         * alloc.c: Likewise.
458         * barrier.c: Likewise.
459         * config/bsd/proc.c: Likewise.
460         * config/linux/affinity.c: Likewise.
461         * config/linux/alpha/futex.h: Likewise.
462         * config/linux/bar.c: Likewise.
463         * config/linux/bar.h: Likewise.
464         * config/linux/ia64/futex.h: Likewise.
465         * config/linux/ia64/mutex.h: Likewise.
466         * config/linux/lock.c: Likewise.
467         * config/linux/mips/futex.h: Likewise.
468         * config/linux/mutex.c: Likewise.
469         * config/linux/mutex.h: Likewise.
470         * config/linux/powerpc/futex.h: Likewise.
471         * config/linux/proc.c: Likewise.
472         * config/linux/ptrlock.c: Likewise.
473         * config/linux/ptrlock.h: Likewise.
474         * config/linux/s390/futex.h: Likewise.
475         * config/linux/sem.c: Likewise.
476         * config/linux/sem.h: Likewise.
477         * config/linux/sparc/futex.h: Likewise.
478         * config/linux/wait.h: Likewise.
479         * config/linux/x86/futex.h: Likewise.
480         * config/mingw32/proc.c: Likewise.
481         * config/mingw32/time.c: Likewise.
482         * config/posix/affinity.c: Likewise.
483         * config/posix/bar.c: Likewise.
484         * config/posix/bar.h: Likewise.
485         * config/posix/lock.c: Likewise.
486         * config/posix/mutex.h: Likewise.
487         * config/posix/proc.c: Likewise.
488         * config/posix/ptrlock.h: Likewise.
489         * config/posix/sem.c: Likewise.
490         * config/posix/sem.h: Likewise.
491         * config/posix/time.c: Likewise.
492         * config/posix95/lock.c: Likewise.
493         * critical.c: Likewise.
494         * env.c: Likewise.
495         * error.c: Likewise.
496         * fortran.c: Likewise.
497         * iter_ull.c: Likewise.
498         * libgomp.h: Likewise.
499         * libgomp_f.h.in: Likewise.
500         * libgomp_g.h: Likewise.
501         * loop.c: Likewise.
502         * loop_ull.c: Likewise.
503         * omp.h.in: Likewise.
504         * omp_lib.f90.in: Likewise.
505         * omp_lib.h.in: Likewise.
506         * ordered.c: Likewise.
507         * parallel.c: Likewise.
508         * sections.c: Likewise.
509         * single.c: Likewise.
510         * task.c: Likewise.
511         * team.c: Likewise.
512         * work.c: Likewise.
514 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
516         * testsuite/config/default.exp: Change copyright header to refer to
517         version 3 of the GNU General Public License and to point readers
518         at the COPYING3 file and the FSF's license web page.
520 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
522         PR middle-end/39573
523         * libgomp.c++/pr39573.C: New test.
525 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
527         PR other/39591
528         * testsuite/libgomp.c/pr39591-1.c: New test.
529         * testsuite/libgomp.c/pr39591-2.c: New test.
530         * testsuite/libgomp.c/pr39591-3.c: New test.
532 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
534         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
535         * testsuite/libgomp.c/atomic-6.c: Ditto.
537 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
539         PR c/39495
540         * testsuite/libgomp.c/loop-12.c: New test.
541         * testsuite/libgomp.c/loop-11.c: New test.
542         * testsuite/libgomp.c++/loop-11.C: New test.
543         * testsuite/libgomp.c++/loop-12.C: New test.
544         * testsuite/libgomp.c++/for-8.C: New test.
546 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
548         * configure: Regenerate.
550 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
552         PR middle-end/39154
553         * testsuite/libgomp.c/pr39154.c: New test.
555 2009-01-30  Ian Lance Taylor  <iant@google.com>
557         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
558         libgomp_ld_is_gold.  Get gold version number.
559         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
560         * configure: Rebuild.
562 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
564         * testsuite/lib/libgomp.exp: Add -B option for targets that
565         use libgfortran.a%s in their specs.
567 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
569         PR libgomp/38086
570         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
571         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
572         HAVE_AS_SYMVER_DIRECTIVE is not defined.
573         * configure: Regenerated.
574         * config.h.in: Likewise.
576 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
578         PR c++/38650
579         * testsuite/libgomp.c/pr38650.c: New test.
580         * testsuite/libgomp.c++/pr38650.C: New test.
582 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
584         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
586 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
588         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
590 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
592         * configure: Regenerate.
594 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
596         PR middle-end/36802
597         * testsuite/libgomp.c/pr36802-1.c: New test.
598         * testsuite/libgomp.c/pr36802-2.c: New test.
599         * testsuite/libgomp.c/pr36802-3.c: New test.
601 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
603         PR libgomp/38270
604         * config/linux/powerpc/mutex.h: New.
606 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
608         PR c++/38257
609         * testsuite/libgomp.c++/for-7.C: New test.
611         PR c++/38348
612         * testsuite/libgomp.c++/for-6.C: New test.
614 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
616         PR testsuite/28870
617         * testsuite/lib/libgomp.exp: Include new timeout library files.
618         (libgomp_target_compile): Set timeout value from new proc.
620 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
622         PR libgomp/37938
623         * config/linux/ia64/mutex.h: New.
625 2008-11-04  Tobias Burnus  <burnus@net-b.de>
627         PR libgomp/37935
628         * libgomp.texi (Runtime library routines, environment variables):
629         Update for OpenMP version 3.0.
631 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
632             Steve Ellcey  <sje@cup.hp.com>
634         * configure: Regenerate for new libtool.
635         * Makefile.in: Ditto.
636         * testsuite/Makefile.in: Ditto.
638 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
639             Andreas Tobler  <a.tobler@schweiz.org>
641         * config/bsd/proc.c: New file.
642         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
643         * configure.ac: Check for header <sys/sysctl.h>
644         * configure: Regenerate.
645         * config.h.in: Likewise.
647 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
649         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
651 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
653         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
654         * Makefile.in: Regenerated.
655         * testsuite/Makefile.in: Regenerated.
657 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
659         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
660         depend on blddir if blddir exists.
661         (libgomp_target_compile): Likewise.
662         * testsuite/libgomp.c++/c++.exp: Likewise.
663         * testsuite/libgomp.fortran/fortran.exp: Likewise.
665 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
667         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
668         Do not list GPL as Invariant Section.
670 2008-07-28  Ilie Garbacea  <ilie@mips.com>
671             Chao-ying Fu  <fu@mips.com>
673         * configure.tgt: Enable futex for MIPS.
674         * config/linux/mips/futex.h: New file.
676 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
678         * team.c (gomp_team_end): Free team immediately if it has
679         just one thread.
681 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
683         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
684         * testsuite/libgomp.fortran/fortran.exp: Same.
685         * testsuite/libgomp.c/c.exp: Same.
686         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
687         directory to library path first.
689 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
691         * env.c (parse_stacksize): Add cast to avoid warning.
692         (parse_spincount): Likewise.
694 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
696         * testsuite/libgomp.c/loop-10.c: New test.
697         * libgomp.c/loop-3.c (main): Add lastprivate clause.
698         * libgomp.c++/loop-6.C (main): Likewise.
700         PR debug/36617
701         * testsuite/libgomp.c/debug-1.c: New test.
703 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
705         * testsuite/libgomp.c/nqueens-1.c: New test.
707         PR c++/36523
708         * testsuite/libgomp.c++/task-7.C: New function.
710 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
712         * configure: Regenerate.
714 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
716         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
717         mutex when HAVE_SYNC_BUILTINS isn't defined.
719 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
721         * libgomp.texi (omp_test_lock): Fix typo.
723 2008-06-12  Tobias Burnus  <burnus@net-b.de>
725         * omp_lib.f90.in: Add "implicit none".
727 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
729         PR middle-end/36506
730         * testsuite/libgomp.c/reduction-5.c: New test.
732 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
734         * libgomp.h (struct gomp_task): Add in_tied_task field.
735         * task.c (gomp_init_task): Initialize it.
736         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
737         unconditionally.  Don't call gomp_team_barrier_wake if
738         current task is implicit or if(0) from implicit and number of
739         running tasks is equal to nthreads - 1.
741         PR libgomp/36471
742         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
743         omp_get_team_size_8): Fix pastos.
745         PR libgomp/36469
746         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
747         * configure: Regenerated.
748         * config.h.in: Regenerated.
749         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
750         defined.
752 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
754         PR bootstrap/36452
755         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
756         (GOMP_loop_ull_dynamic_start): Likewise.
757         (GOMP_loop_ull_guided_start): Likewise.
758         (GOMP_loop_ull_ordered_static_start): Likewise.
759         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
760         (GOMP_loop_ull_ordered_guided_start): Likewise.
762 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
763             Richard Henderson  <rth@redhat.com>
764             Ulrich Drepper  <drepper@redhat.com>
765             Jakob Blomer  <jakob.blomer@ira.uka.de>
767         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
768         Substitute also OMP_*LOCK_25*.
769         * configure: Regenerated.
770         * config.h.in: Regenerated.
771         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
772         ptrlock.c and task.c.
773         * Makefile.in: Regenerated.
774         * testsuite/Makefile.in: Regenerated.
775         * task.c: New file.
776         * loop_ull.c: New file.
777         * iter_ull.c: New file.
778         * libgomp.h: Include ptrlock.h.
779         (enum gomp_task_kind): New type.
780         (struct gomp_team): Add task_lock, task_queue, task_count,
781         task_running_count, single_count fields.  Add
782         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
783         Remove work_share_lock, generation_mask,
784         oldest_live_gen, num_live_gen and init_work_shares fields, add
785         work work_share_list_alloc, work_share_list_free and work_share_chunk
786         fields.  Change work_shares from pointer to pointers into an array.
787         Change ordered_release field into gomp_sem_t ** from flexible array
788         member.  Add implicit_task and initial_work_shares fields.
789         Move close to the end of the struct.
790         (struct gomp_team_state): Add single_count, last_work_share,
791         active_level and level fields, remove work_share_generation.
792         (gomp_barrier_handle_tasks): New prototype.
793         (gomp_finish_task): New inline function.
794         (struct gomp_work_share): Move chunk_size, end, incr into
795         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
796         next_ll fields.  Reshuffle fields.  Add next_alloc,
797         next_ws, next_free and inline_ordered_team_ids fields, change
798         ordered_team_ids into pointer from flexible array member.
799         Add mode field.  Put lock and next into a different cache line
800         from most of the write-once fields.
801         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
802         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
803         gomp_iter_ull_guided_next): New prototypes.
804         (gomp_new_icv): New prototype.
805         (struct gomp_thread): Add thread_pool and task fields.
806         (struct gomp_thread_pool): New type.
807         (gomp_new_team): New prototype.
808         (gomp_team_start): Change type of last argument.
809         (gomp_new_work_share): Removed.
810         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
811         (gomp_work_share_init_done): New static inline.
812         (gomp_throttled_spin_count_var, gomp_available_cpus,
813         gomp_managed_threads): New extern decls.
814         (gomp_init_task): New prototype.
815         (gomp_spin_count_var): New extern var decl.
816         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
817         or no alias support, or if not PIC.
818         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
819         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
820         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
821         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
822         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
823         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
824         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
825         gomp_test_nest_lock_25): New prototypes.
826         (omp_lock_symver, strong_alias): Define.
827         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
828         decls.
829         (gomp_end_task): New.
830         (struct gomp_task_icv, gomp_global_icv): New.
831         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
832         (struct gomp_task): New.
833         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
834         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
835         (gomp_icv): New.
836         (gomp_schedule_type): Reorder enum to match
837         omp_sched_t.
838         * team.c (struct gomp_thread_start_data): Add thread_pool and task
839         fields.
840         (gomp_thread_start): Add gomp_team_barrier_wait call.
841         For non-nested case remove clearing of docked thread thr fields.
842         Use pool fields instead of global gomp_* variables.  Use
843         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
844         Create tasks for each member thread.
845         (free_team): Only destroy team barrier, task_lock here and free it.
846         (gomp_free_thread): Free last_team if non-NULL.
847         (gomp_team_end): Call gomp_team_barrier_wait instead of
848         gomp_barrier_wait.  For nested case call one extra
849         gomp_barrier_wait.  Move here some destruction from free_team.
850         Call free_team on pool->last_team if any, rather than freeing
851         current team.  Destroy work_share_list_free_lock ifndef
852         HAVE_SYNC_BUILTINS.
853         (gomp_new_icv): New function.
854         (gomp_threads, gomp_threads_size, gomp_threads_used,
855         gomp_threads_dock): Removed.
856         (gomp_thread_destructor): New variable.
857         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
858         functions.
859         (gomp_team_start): Create new pool if current thread doesn't have
860         one.  Use pool fields instead of global gomp_* variables. 
861         Initialize thread_pool field for new threads.  Clear single_count.
862         Change last argument from ws to team, don't create
863         new team, set ts.work_share to &team->work_shares[0] and clear
864         ts.last_work_share.  Don't clear ts.work_share_generation.
865         If number of threads changed, adjust atomically gomp_managed_threads.
866         Use gomp_init_task instead of gomp_new_task,
867         set thr->task to the corresponding implicit_task array entry.
868         Create tasks for each member thread.  Initialize ts.level.
869         (initialize_team): Call pthread_key_create on
870         gomp_thread_destructor.
871         (team_destructor): New function.
872         (new_team): Removed.
873         (gomp_new_team): New function.
874         (free_team): Free gomp_work_share blocks chained through next_alloc,
875         instead of freeing work_shares and destroying work_share_lock.
876         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
877         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
878         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
879         of gomp_barrier_wait.
880         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
881         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
882         if gomp_work_share_start returned true.  Don't unlock ws->lock.
883         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
884         of gomp_barrier_wait.
885         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
886         gomp_work_share_init_done if gomp_work_share_start returned true.
887         Don't unlock ws->lock.
888         * work.c: Include stddef.h.
889         (free_work_share): Use work_share_list_free_lock instead
890         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
891         Call gomp_fini_work_share and then either free ws if orphaned, or
892         put it into work_share_list_free list of the current team.
893         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
894         functions.
895         (gomp_work_share_start, gomp_work_share_end,
896         gomp_work_share_end_nowait): Rewritten.
897         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
898         (openmp_version): Set to 200805.
899         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
900         omp_sched_guided, omp_sched_auto): New parameters.
901         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
902         omp_set_max_active_levels, omp_get_max_active_levels,
903         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
904         omp_get_active_level): New interfaces.
905         * omp_lib.h.in (openmp_version): Set to 200805.
906         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
907         omp_sched_guided, omp_sched_auto): New parameters.
908         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
909         omp_set_max_active_levels, omp_get_max_active_levels,
910         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
911         omp_get_active_level): New externals.
912         * loop.c: Include limits.h.
913         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
914         GFS_AUTO.
915         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
916         Likewise.  Use gomp_icv.
917         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
918         ts.static_trip here.
919         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
920         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
921         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
922         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
923         don't unlock ws->lock, otherwise lock it.
924         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
925         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
926         (gomp_parallel_loop_start): Call gomp_new_team instead of
927         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
928         Adjust gomp_team_start caller.  Pass 0 as second argument to
929         gomp_resolve_num_threads.
930         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
931         If adding ws->chunk_size nthreads + 1 times after end won't
932         overflow, set ws->mode to 1.
933         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
934         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
935         GOMP_loop_ull_ordered_static_start,
936         GOMP_loop_ull_ordered_dynamic_start,
937         GOMP_loop_ull_ordered_guided_start,
938         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
939         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
940         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
941         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
942         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
943         prototypes.
944         * libgomp.map: Export lock routines also @@OMP_2.0.
945         (GOMP_loop_ordered_dynamic_first,
946         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
947         GOMP_loop_ordered_static_first): Remove.
948         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
949         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
950         GOMP_loop_ull_ordered_dynamic_next,
951         GOMP_loop_ull_ordered_dynamic_start,
952         GOMP_loop_ull_ordered_guided_next,
953         GOMP_loop_ull_ordered_guided_start,
954         GOMP_loop_ull_ordered_runtime_next,
955         GOMP_loop_ull_ordered_runtime_start,
956         GOMP_loop_ull_ordered_static_next,
957         GOMP_loop_ull_ordered_static_start,
958         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
959         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
960         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
961         (omp_set_schedule, omp_get_schedule,
962         omp_get_thread_limit, omp_set_max_active_levels,
963         omp_get_max_active_levels, omp_get_level,
964         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
965         omp_set_schedule_, omp_set_schedule_8_,
966         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
967         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
968         omp_get_max_active_levels_, omp_get_level_,
969         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
970         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
971         New exports @@OMP_3.0.
972         * omp.h.in (omp_sched_t): New type.
973         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
974         omp_set_max_active_levels, omp_get_max_active_levels,
975         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
976         omp_get_active_level): New prototypes.
977         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
978         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
979         gomp_thread_limit_var, gomp_remaining_threads_count,
980         gomp_remaining_threads_lock): New variables.
981         (parse_spincount): New function.
982         (initialize_env): Call gomp_init_num_threads unconditionally.
983         Initialize gomp_available_cpus.  Call parse_spincount,
984         initialize gomp_{,throttled_}spin_count_var
985         depending on presence and value of OMP_WAIT_POLICY and
986         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
987         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
988         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
989         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
990         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
991         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
992         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
993         (gomp_global_icv): New.
994         (parse_schedule): Use it.  Parse "auto".
995         (omp_set_num_threads): Use gomp_icv.
996         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
997         Likewise.
998         (omp_get_max_threads): Move from parallel.c.
999         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1000         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1001         add ialias.
1002         (parse_stacksize, parse_wait_policy): New functions.
1003         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1004         both wrappers for compatibility and new locks.
1005         (omp_set_schedule, omp_get_schedule,
1006         omp_get_thread_limit, omp_set_max_active_levels,
1007         omp_get_max_active_levels, omp_get_level,
1008         omp_get_ancestor_thread_num, omp_get_team_size,
1009         omp_get_active_level): New ialias_redirect.
1010         (omp_set_schedule_, omp_set_schedule_8_,
1011         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1012         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1013         omp_get_max_active_levels_, omp_get_level_,
1014         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1015         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1016         New functions.
1017         * parallel.c: Include limits.h.
1018         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1019         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1020         argument to gomp_team_start.  Pass 0 as second argument to
1021         gomp_resolve_num_threads.
1022         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1023         if gomp_thread_limit_var != ULONG_MAX.
1024         (omp_in_parallel): Implement using ts.active_level.
1025         (omp_get_max_threads): Move to env.c.
1026         (omp_get_level, omp_get_ancestor_thread_num,
1027         omp_get_team_size, omp_get_active_level): New functions,
1028         add ialias.
1029         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1030         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1031         gomp_iter_dynamic_next instead of the _locked variant and don't take
1032         lock around it, otherwise acquire it before calling
1033         gomp_iter_dynamic_next_locked.
1034         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1035         gomp_iter_dynamic_next instead of the _locked variant and don't take
1036         lock around it.
1037         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1038         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1039         Adjust gomp_team_start caller.  Pass count as second argument to
1040         gomp_resolve_num_threads, don't adjust num_threads after the call.
1041         Use gomp_icv.
1042         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1043         ws->chunk_size by incr.
1044         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1045         code.
1046         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1047         types.
1048         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1049         (omp_check_defines): Check even the compat defines.
1050         * config/linux/ptrlock.c: New file.
1051         * config/linux/ptrlock.h: New file.
1052         * config/linux/wait.h: New file.
1053         * config/posix/ptrlock.c: New file.
1054         * config/posix/ptrlock.h: New file.
1055         * config/linux/bar.h (gomp_team_barrier_wait,
1056         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1057         (gomp_team_barrier_set_task_pending,
1058         gomp_team_barrier_clear_task_pending,
1059         gomp_team_barrier_set_waiting_for_tasks,
1060         gomp_team_barrier_waiting_for_tasks,
1061         gomp_team_barrier_done): New inlines.
1062         (gomp_barrier_t): Rewritten.
1063         (gomp_barrier_state_t): New typedef.
1064         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1065         gomp_barrier_wait_start): Rewritten.
1066         (gomp_barrier_wait_end): Change second argument to
1067         gomp_barrier_state_t.
1068         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1069         inlines.
1070         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1071         futex.h.
1072         (gomp_barrier_wait_end): Rewritten.
1073         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1074         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1075         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1076         (gomp_barrier_state_t): New typedef.
1077         (gomp_team_barrier_wait,
1078         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1079         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1080         into the return value.  Return gomp_barrier_state_t.
1081         (gomp_team_barrier_set_task_pending,
1082         gomp_team_barrier_clear_task_pending,
1083         gomp_team_barrier_set_waiting_for_tasks,
1084         gomp_team_barrier_waiting_for_tasks,
1085         gomp_team_barrier_done): New inlines.
1086         (gomp_barrier_wait_end): Change second argument to
1087         gomp_barrier_state_t.
1088         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1089         inlines.
1090         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1091         (gomp_barrier_wait_end): Change second argument to
1092         gomp_barrier_state_t. 
1093         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1094         gomp_team_barrier_wake): New functions.
1095         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1096         futex.h.
1097         (gomp_futex_wake, gomp_futex_wait): New variables.
1098         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1099         * config/linux/lock.c: Rewrite to make locks task owned,
1100         for backwards compatibility provide the old entrypoints
1101         if symbol versioning.  Include wait.h instead of libgomp.h and
1102         futex.h.
1103         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1104         * config/posix95/lock.c: Rewrite to make locks task owned,
1105         for backwards compatibility provide the old entrypoints
1106         if symbol versioning.
1107         * config/posix/lock.c: Rewrite to make locks task owned,
1108         for backwards compatibility provide the old entrypoints
1109         if symbol versioning.
1110         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1111         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1112         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1113         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1114         (sys_futex0): Return error code.
1115         (futex_wake, futex_wait): If ENOSYS was returned, clear
1116         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1117         (cpu_relax, atomic_write_barrier): New static inlines.
1118         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1119         (futex_wake, futex_wait): If ENOSYS was returned, clear
1120         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1121         (cpu_relax, atomic_write_barrier): New static inlines.
1122         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1123         (sys_futex0): Return error code.
1124         (futex_wake, futex_wait): If ENOSYS was returned, clear
1125         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1126         (cpu_relax, atomic_write_barrier): New static inlines.
1127         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1128         (sys_futex0): Return error code.
1129         (futex_wake, futex_wait): If ENOSYS was returned, clear
1130         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1131         (cpu_relax, atomic_write_barrier): New static inlines.
1132         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1133         (sys_futex0): Return error code.
1134         (futex_wake, futex_wait): If ENOSYS was returned, clear
1135         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1136         (cpu_relax, atomic_write_barrier): New static inlines.
1137         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1138         (sys_futex0): Return error code.
1139         (futex_wake, futex_wait): If ENOSYS was returned, clear
1140         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1141         (cpu_relax, atomic_write_barrier): New static inlines.
1142         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1143         futex.h.
1144         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1145         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1146         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1147         types.
1148         (omp_nest_lock_t): Change owner into void *, add lock field.
1149         * config/posix95/omp-lock.h: Include semaphore.h.
1150         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1151         (omp_lock_t): Use sem_t instead of mutex if semaphores
1152         aren't broken.
1153         (omp_nest_lock_t): Likewise.  Change owner to void *.
1154         * config/posix/omp-lock.h: Include semaphore.h.
1155         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1156         (omp_lock_t): Use sem_t instead of mutex if semaphores
1157         aren't broken.
1158         (omp_nest_lock_t): Likewise.  Add owner field.
1160 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1162         * testsuite/libgomp.c/collapse-1.c: New test.
1163         * testsuite/libgomp.c/collapse-2.c: New test.
1164         * testsuite/libgomp.c/collapse-3.c: New test.
1165         * testsuite/libgomp.c/icv-1.c: New test.
1166         * testsuite/libgomp.c/icv-2.c: New test.
1167         * testsuite/libgomp.c/lib-2.c: New test.
1168         * testsuite/libgomp.c/lock-1.c: New test.
1169         * testsuite/libgomp.c/lock-2.c: New test.
1170         * testsuite/libgomp.c/lock-3.c: New test.
1171         * testsuite/libgomp.c/loop-4.c: New test.
1172         * testsuite/libgomp.c/loop-5.c: New test.
1173         * testsuite/libgomp.c/loop-6.c: New test.
1174         * testsuite/libgomp.c/loop-7.c: New test.
1175         * testsuite/libgomp.c/loop-8.c: New test.
1176         * testsuite/libgomp.c/loop-9.c: New test.
1177         * testsuite/libgomp.c/nested-3.c: New test.
1178         * testsuite/libgomp.c/nestedfn-6.c: New test.
1179         * testsuite/libgomp.c/sort-1.c: New test.
1180         * testsuite/libgomp.c/task-1.c: New test.
1181         * testsuite/libgomp.c/task-2.c: New test.
1182         * testsuite/libgomp.c/task-3.c: New test.
1183         * testsuite/libgomp.c/task-4.c: New test.
1184         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1185         to C++ testsuite default compiler options.
1186         * testsuite/libgomp.c++/collapse-1.C: New test.
1187         * testsuite/libgomp.c++/collapse-2.C: New test.
1188         * testsuite/libgomp.c++/ctor-10.C: New test.
1189         * testsuite/libgomp.c++/for-1.C: New test.
1190         * testsuite/libgomp.c++/for-2.C: New test.
1191         * testsuite/libgomp.c++/for-3.C: New test.
1192         * testsuite/libgomp.c++/for-4.C: New test.
1193         * testsuite/libgomp.c++/for-5.C: New test.
1194         * testsuite/libgomp.c++/loop-8.C: New test.
1195         * testsuite/libgomp.c++/loop-9.C: New test.
1196         * testsuite/libgomp.c++/loop-10.C: New test.
1197         * testsuite/libgomp.c++/task-1.C: New test.
1198         * testsuite/libgomp.c++/task-2.C: New test.
1199         * testsuite/libgomp.c++/task-3.C: New test.
1200         * testsuite/libgomp.c++/task-4.C: New test.
1201         * testsuite/libgomp.c++/task-5.C: New test.
1202         * testsuite/libgomp.c++/task-6.C: New test.
1203         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1204         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1205         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1206         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1207         * testsuite/libgomp.fortran/collapse1.f90: New test.
1208         * testsuite/libgomp.fortran/collapse2.f90: New test.
1209         * testsuite/libgomp.fortran/collapse3.f90: New test.
1210         * testsuite/libgomp.fortran/collapse4.f90: New test.
1211         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1212         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1213         * testsuite/libgomp.fortran/lib4.f90: New test.
1214         * testsuite/libgomp.fortran/lock-1.f90: New test.
1215         * testsuite/libgomp.fortran/lock-2.f90: New test.
1216         * testsuite/libgomp.fortran/nested1.f90: New test.
1217         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1218         * testsuite/libgomp.fortran/strassen.f90: New test.
1219         * testsuite/libgomp.fortran/tabs1.f90: New test.
1220         * testsuite/libgomp.fortran/tabs2.f: New test.
1221         * testsuite/libgomp.fortran/task1.f90: New test.
1222         * testsuite/libgomp.fortran/task2.f90: New test.
1223         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1224         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1225         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1226         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1227         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1229 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1231         PR c++/36308
1232         * testsuite/libgomp.c++/ctor-11.C: New test.
1233         * testsuite/libgomp.c++/ctor-12.C: New test.
1235 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1237         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1239 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1241         PR middle-end/36106
1242         * testsuite/libgomp.c/atomic-5.c: New test.
1243         * testsuite/libgomp.c/atomic-6.c: New test.
1244         * testsuite/libgomp.c/autopar-1.c: New test.
1246 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1248         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1249         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1250         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1251         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1252         * configure: Regenerate.
1253         * Makefile.in, testsuite/Makefile.in: Likewise.
1255 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1257         PR bootstrap/35457
1258         * aclocal.m4: Regenerate.
1259         * configure: Regenerate.
1261 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1263         PR middle-end/35611
1264         * testsuite/libgomp.c/atomic-4.c: New test.
1266         PR libgomp/35625
1267         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1268         (gomp_iter_guided_next): Likewise.
1269         * testsuite/libgomp.c/pr35625.c: New test.
1271 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1273         * aclocal.m4: Regenerate.
1274         * configure: Likewise.
1275         * Makefile.in: Likewise.
1276         * testsuite/Makefile.in: Likewise.
1278 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1280         PR middle-end/35185
1281         * testsuite/libgomp.c++/pr35185.C: New test.
1283 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1285         PR middle-end/35549
1286         * testsuite/libgomp.c/pr35549.c: New test.
1288 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1290         * testsuite/libgomp.c/atomic-3.c: New test.
1292 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1294         PR fortran/33197
1295         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1296         .F08 file suffixes.
1298 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1300         PR libgomp/33131
1301         * configure.ac: Add ACX_HEADER_STRING.
1302         * env.c: Include strings.h.
1303         * aclocal.m4: Regenerate.
1304         * config.h.in: Regenerate.
1305         * configure: Regenerate.
1306         * Makefile.in: Regenerate.
1307         * testsuite/Makefile.in: Regenerate.
1309 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1311         PR middle-end/35196
1312         * testsuite/libgomp.c/pr35196.c: New test.
1314         PR middle-end/35130
1315         * testsuite/libgomp.fortran/pr35130.f90: New test.
1316         * testsuite/libgomp.c/pr35130.c: New test.
1318 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1320         PR middle-end/33880
1321         * testsuite/libgomp.c/pr33880.c: New test.
1322         * testsuite/libgomp.fortran/pr33880.f90: New test.
1324 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1326         * configure: Regenerate.
1328 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1330         * configure.ac: Move futex checking into ../config/futex.m4.
1331         * configure: Rebuilt.
1332         * aclocal.m4: Rebuilt.
1333         * Makefile.in: Rebuilt.
1335         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1336         2007-10-15 ../config/tls.m4 change.
1338 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1340         PR c++/34513
1341         * testsuite/libgomp.c/pr34513.c: New test.
1342         * testsuite/libgomp.c++/pr34513.C: New test.
1344 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1346         PR target/32765
1347         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1349 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1351         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1353 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1355         * testsuite/libgomp.c/private-1.c: New test.
1357 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1358             Paolo Bonzini  <bonzini@gnu.org>
1360         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1361         instead of 'VPATH ='.
1362         * Makefile.in: Regenerate.
1364 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1366         * configure.ac: Adjust makeinfo version check.
1367         * configure: Regenerate.
1369 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1371         PR fortran/34020
1372         * testsuite/libgomp.fortran/pr34020.f90: New test.
1374 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1376         PR c++/33894
1377         * testsuite/libgomp.c++/atomic-1.C: New test.
1379 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1381         PR libgomp/33275
1382         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1383         Make x and y integers rather than (implicit) reals.  Add private (j)
1384         clause to the last omp parallel.
1386 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1388         * configure: Regenerate following changes to ../config/tls.m4.
1390 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1392         * testsuite/libgomp.fortran/stack.f90: New test.
1394 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1396         * config/mingw32/proc.c: New file.
1398 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1400         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1401         (main): Use __get_cpuid to get i386 target fetaures.
1402         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1403         (main): Use __get_cpuid to get x86_64 target fetaures.
1405 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1407         PR target/32765
1408         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1409         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1411 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1413         PR fortran/32550
1414         * testsuite/libgomp.fortran/pr32550.f90: New test.
1415         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1417 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1419         * aclocal.m4: Regenerated.
1421 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1423         PR fortran/32359
1424         * testsuite/libgomp.fortran/pr32359.f90: New.
1426 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1428         PR libgomp/32468
1429         * sections.c (GOMP_parallel_sections_start): Only decrease
1430         number of threads to COUNT if dyn_var is true.
1431         * testsuite/libgomp.c/pr32468.c: New test.
1433 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1435         PR libgomp/26308
1436         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1438 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1440         PR middle-end/32362
1441         * testsuite/libgomp.c/pr32362-1.c: New test.
1442         * testsuite/libgomp.c/pr32362-2.c: New test.
1443         * testsuite/libgomp.c/pr32362-3.c: New test.
1445 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1447         * team.c (gomp_team_start): Fix setting up thread_attr
1448         stack size.
1450 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1452         * configure: Regenerate.
1454 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1456         * Makefile.in: Regenerate.
1457         * configure: Regenerate.
1458         * aclocal.m4: Regenerate.
1459         * testsuite/Makefile.in: Regenerate.
1461 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1463         * config/linux/proc.c: New file.
1465         PR libgomp/28482
1466         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1468 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1470         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1472 2007-04-16  Matthias Klose  <doko@debian.org>
1474         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1475         flags if not building with -m64.
1476         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1477         flag for i?86-*-* targets, if current target matches -m64.
1479 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1481         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1482         * Makefile.in: Regenerate.
1484 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1486         PR testsuite/31369
1487         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1488         ld_library_path.
1489         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1491 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1493         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1494         decls.
1495         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1496         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1497         (parse_affinity): New function.
1498         (initialize_env): Call it and gomp_init_affinity.
1499         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1500         create new pthread_attr_t and call gomp_init_thread_affinity
1501         on it for each thread before passing the attribute to pthread_create.
1502         * config/linux/affinity.c: New file.
1503         * config/posix/affinity.c: New file.
1504         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1505         * configure: Rebuilt.
1506         * config.h.in: Rebuilt.
1507         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1508         * Makefile.in: Rebuilt.
1510 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1512         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1513         *-*-darwin*.
1514         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1515         and use it if found.
1517 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1519         * testsuite/config/default.exp: New file.
1520         * testsuite/lib/libgomp.exp: New file.
1521         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1522         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1523         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1524         (libgomp_load): Remove.
1525         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1526         always_ld_library_path, not ld_library_path.  Set additional_flags
1527         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1528         (target_compile): Do not call libgomp_init.  Append lang_library_path
1529         and lang_link_flags to options.
1530         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1531         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1532         here.
1533         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1534         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1535         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1536         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1537         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1538         CX8 flag.
1539         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1540         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1541         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1542         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1543         * testsuite/libgomp.c/atomic-10.c: Ditto.
1545 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1547         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1548         dg-final cleanup-modules line.
1549         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1550         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1551         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1552         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1553         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1554         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1555         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1557 2007-03-18  Andreas Schwab  <schwab@suse.de>
1559         * acinclude.m4: Adjust regular expression for ld version
1560         extraction.
1561         * configure: Regenerate.
1563 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1565         * Makefile.am: Add install-pdf target as copied from
1566         automake v1.10 rules.
1567         * Makefile.in: Regenerate
1569 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1571         PR libgomp/28486
1572         * configure: Regenerate.
1574         PR c++/30703
1575         * testsuite/libgomp.c++/pr30703.C: New test.
1577 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1579         Revert:
1580         2006-07-05  Eric Christopher  <echristo@apple.com>
1581         * configure.ac: Depend addition of -pthread on host OS.
1582         * configure: Regenerate.
1584 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1586         * libgomp.texi: Fix spacing after abbreviations.
1588 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1590         PR libgomp/30546
1591         * configure.ac: Add check for makeinfo
1592         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1593         if an appropiate version of makeinfo is found.
1594         * aclocal.m4: Regenerated.
1595         * configure: Regenerated.
1596         * Makefile.in: Regenerated.
1597         * testsuite/Makefile.in: Regenerated.
1599 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1601         PR libgomp/30540
1602         * libgomp.texi: More about implementation-dependent settings.
1604 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1606         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1608 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1610         PR middle-end/30494
1611         * testsuite/libgomp.c/pr30494.c: New test.
1613 2007-01-15  Tom Tromey  <tromey@redhat.com>
1615         * configure: Rebuilt.
1616         * configure.ac: Fixed comment.
1618 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1620         * libgomp.texi: Document implementation specific default values of
1621         environment variables.
1623 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1625         PR libgomp/28209
1626         * libgomp.texi: New file.
1627         * configure.ac: Add --enable-generated-files-in-srcdir option.
1628         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1629         files to srcdir.
1630         * Makefile.in: Regenerated.
1631         * config.h.in: Regenerated.
1632         * testsuite/Makefile.in: Regenerated.
1633         * NOTES: Removed.
1635 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1637         PR libgomp/29949
1638         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1640 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1642         * configure: Regenerate.
1644 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1646         PR libgomp/29947
1647         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1648         start if there shouldn't be any loop iterations.
1649         (gomp_loop_ordered_static_start): Remove start == end test.
1650         * testsuite/libgomp.c/pr29947-1.c: New test.
1651         * testsuite/libgomp.c/pr29947-2.c: New test.
1653 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1655         * configure.tgt: Force initial-exec TLS model on Linux only.
1657 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1659         * configure: Regenerated.
1661 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1663         * env.c (parse_schedule): Reject out of range values.
1664         (parse_unsigned_long): Reject out of range, negative or zero values.
1666 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1668         PR fortran/29629
1669         * testsuite/libgomp.fortran/pr29629.f90: New test.
1671 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1673         PR libgomp/29494
1674         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1675         * config/posix95: New directory.
1676         * config/posix95/omp-lock.h: New file.
1677         * config/posix95/lock.c: Likewise.
1679 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1681         * aclocal.m4: Regenerate.
1682         * configure: Regenerate.
1684 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1686         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1687         '<' to '<='.
1689 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1691         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1692         test.
1693         * configure: Regenerate.
1694         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1696 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1698         PR middle-end/25261
1699         PR middle-end/28790
1700         * testsuite/libgomp.c/nestedfn-4.c: New test.
1701         * testsuite/libgomp.c/nestedfn-5.c: New test.
1702         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1704         PR fortran/29097
1705         * testsuite/libgomp.fortran/condinc1.f: New test.
1706         * testsuite/libgomp.fortran/condinc2.f: New test.
1707         * testsuite/libgomp.fortran/condinc3.f90: New test.
1708         * testsuite/libgomp.fortran/condinc4.f90: New test.
1709         * testsuite/libgomp.fortran/condinc1.inc: New file.
1711 2006-09-18  Tom Tromey  <tromey@redhat.com>
1713         * configure: Rebuilt.
1715 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1717         PR c/28768
1718         PR preprocessor/14634
1719         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1720         to AC_DEFINE.
1721         * configure: Regenerate.
1723 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1725         * testsuite/libgomp.fortran/reduction3.f90: Change
1726         -2147483648 to -huge(i)-1 to avoid overflow.
1727         * testsuite/libgomp.fortran/reduction4.f90: Change
1728         Z'ffffffff' to not(0) to avoid overflow.
1730 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1732         PR libgomp/25938
1733         * Makefile.am (libsubincludedir): New.
1734         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1735         * Makefile.in: Regenerate.
1737 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1739         PR libgomp/28725
1740         * env.c: Include ctype.h.
1741         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1742         leading and/or trailing whitespace and compare strings case
1743         insensitively.
1745 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1747         PR fortran/28390
1748         * testsuite/libgomp.fortran/pr28390.f: New test.
1750 2006-07-05  Eric Christopher  <echristo@apple.com>
1752         * configure.ac: Depend addition of -pthread on host OS.
1753         * configure: Regenerate.
1755 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1757         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1758         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1759         defined.
1761 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1763         PR libgomp/26175
1764         PR libgomp/26477
1765         * configure.ac: If neither --enable-linux-futex nor
1766         --disable-linux-futex is passed, determine the default by checking
1767         for compiling and/or running against NPTL.  With --enable-linux-futex,
1768         check if SYS_gettid and SYS_futex are defined.
1769         * configure: Rebuilt.
1771 2006-06-14  Richard Henderson  <rth@redhat.com>
1773         PR libgomp/28008
1774         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1775         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1777 2006-06-09  Richard Henderson  <rth@redhat.com>
1779         * env.c (gomp_nthreads_var): Change to unsigned long.
1780         (gomp_run_sched_chunk): Likewise.
1781         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1782         (initialize_env): Initialize gomp_thread_attr.
1783         * libgomp.h (gomp_nthreads_var): Update decl.
1784         (gomp_run_sched_chunk): Likewise.
1785         (gomp_thread_attr): Declare.
1786         * team.c (gomp_thread_attr): Export.
1787         (initialize_team): Don't initialize it.
1789 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
1791         PR fortran/27916
1792         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1793         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1795 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1797         * config/mingw32/time.c: New file.
1798         * configure.tgt: Use it.
1800 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1802         * Makefile.am: Add install-html target. Add install-html to .PHONY
1803         * Makefile.in: Regenerate.
1805 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1807         PR libgomp/27612
1808         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1809         * testsuite/libgomp.c/critical-1.c: Likewise.
1810         * testsuite/libgomp.c/loop-1.c: Likewise.
1811         * testsuite/libgomp.c/loop-2.c: Likewise.
1812         * testsuite/libgomp.c/single-1.c: Likewise.
1813         * testsuite/libgomp.c/ordered-1.c: Likewise.
1814         * testsuite/libgomp.c/ordered-2.c: Likewise.
1816 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1818         PR middle-end/27416
1819         * libgomp.fortran/pr27416-1.f90: New test.
1821 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
1823         PR fortran/27395
1824         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1825         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1827 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1829         PR c++/26943
1830         * testsuite/libgomp.c/pr26943-1.c: New test.
1831         * testsuite/libgomp.c/pr26943-2.c: New test.
1832         * testsuite/libgomp.c/pr26943-3.c: New test.
1833         * testsuite/libgomp.c/pr26943-4.c: New test.
1834         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1835         * testsuite/libgomp.c++/pr26943.C: New test.
1837 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1839         PR middle-end/27337
1840         * testsuite/libgomp.c++/pr27337.C: New test.
1842 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1844         PR c/26171
1845         * testsuite/libgomp.c/pr26171.c: New test.
1847 2006-04-25  Richard Henderson  <rth@redhat.com>
1849         PR libgomp/25865
1850         * configure.ac: Use GCC_CHECK_TLS.
1851         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1852         * Makefile.in, aclocal.m4, configure: Regenerate.
1854 2006-04-10  Matthias Klose  <doko@debian.org>
1856         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1857         directory names containing underscores.
1859 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1861         PR c++/26691
1862         * testsuite/libgomp.c++/pr26691.C: New test.
1864 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1866         * testsuite/libgomp.fortran/retval2.f90: New test.
1868 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1870         * testsuite/libgomp.c++: New directory.
1872 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
1874         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1875         * config/posix/sem.c: Implement the above.
1877 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
1879         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1880         define HAVE_BROKEN_POSIX_SEMAPHORES.
1881         * configure: Rebuilt.
1882         * config.h.in: Rebuilt.
1884 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1886         PR bootstrap/26161
1887         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1888         for the other pthread check.
1889         * configure: Regenerate.
1890         * config.h.in: Regenerate.
1892 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1894         PR libgomp/25938
1895         PR libgomp/25984
1896         * Makefile.am (fincludedir): New variable.
1897         (nodist_include_HEADERS): Remove Fortran files.
1898         (nodist_finclude_HEADERS): New variable.
1899         * Makefile.in: Regenerated.
1901 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1903         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1904         Remove tests for returning assumed character length arrays.
1906 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1907             John David Anglin  <dave@hiauly1.hia.nrc.ca>
1909         PR libgomp/25936
1910         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1912 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1914         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1916 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1918         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1919         part of LD_LIBRARY_PATH manually.
1921 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1923         PR libgomp/25852
1924         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1925         libgomp_init.
1927 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
1929         PR libgomp/25884
1930         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1931         * configure.ac (PERL): Don't set.
1932         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1933         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1934         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1935         * omp.h.in: Wrap the new configure substitutions with @ characters.
1936         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1937         * aclocal.m4, configure, Makefile.in: Regenerate.
1938         * mkomp_h.pl: Delete.
1940 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
1942         PR libgomp/25259
1943         * configure.ac: Use GCC_HEADER_STDINT.
1944         * libgomp.h: Include gstdint.h.
1945         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1946         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1948 2006-01-24  Richard Henderson  <rth@redhat.com>
1950         PR libgomp/25942
1951         * configure.ac: Add AM_MAINTAINER_MODE.
1952         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1954 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
1956         * Makefile.in: Regenerate.
1957         * testsuite/Makefile.in: Regenerate.
1958         * aclocal.m4: Regenerate.
1960 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
1962         * config/posix/proc.c: Conditional include of sys/loadavg.h for
1963         Solaris.
1964         * configure.ac: Add check for loadavg.h.
1965         (link_gomp): Adjust comment.
1966         * configure: Regenerate.
1967         * config.h.in: Regenerate.
1969 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
1971         PR libgomp/25877
1972         * configure.ac: Remove check for alloca.h.
1973         * configure: Regenerate.
1974         * config.h.in: Regenerate.
1975         * libgomp.h: define gomp_alloca to be __builtin_alloca.
1976         * team.c: Remove use of alloca.h.
1977         Call gomp_alloca instead of alloca.
1979 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
1981         PR libgomp/25877
1982         * team.c: Add include of alloca.h.
1983         * configure.ac: Add check for alloca.h.
1984         * configure: Regenerate.
1985         * config.h.in: Regenerate.
1987 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
1989         PR fortran/25219
1990         * testsuite/libgomp.fortran/pr25219.f90: New test.
1992 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
1994         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1995         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1996         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1997         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1998         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1999         testsuite/libgomp.fortran/threadprivate1.f90,
2000         testsuite/libgomp.fortran/threadprivate2.f90,
2001         testsuite/libgomp.fortran/threadprivate3.f90,
2002         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2003         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2004         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2005         effective-target to TLS runtime.
2007         * testsuite/libgomp.fortran/pr25162.f: Require
2008         effective-target TLS runtime.
2010 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2012         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2013         * testsuite/libgomp.c/nestedfn-3.c: New test.
2015 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2017         PR fortran/25162
2018         * testsuite/libgomp.fortran/pr25162.f: New test.
2020 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2022         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2023         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2025 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2027         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2028         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2029         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2030         single.c, team.c, work.c, config/linux/alpha/futex.h,
2031         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2032         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2033         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2034         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2035         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2036         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2037         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2038         FSF address.
2040 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2042         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2043         to nodist_noinst_HEADERS.
2044         * Makefile.in: Rebuilt.
2046         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2047         add integer count field.
2048         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2049         omp_nest_lock_t type change.
2050         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2051         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2052         Increment count.
2053         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2054         Decrement count.
2055         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2056         Increment count if successful and return the new nesting level.
2057         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2058         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2059         * testsuite/libgomp.c/lib-1.c: New test.
2060         * testsuite/libgomp.fortran/lib1.f90: New test.
2061         * testsuite/libgomp.fortran/lib2.f: New test.
2062         * testsuite/libgomp.fortran/lib3.f: New test.
2064 2005-11-17  Richard Henderson  <rth@redhat.com>
2066         PR 24845
2067         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2068         * configure.ac (link_gomp): New.  Substitute it.
2069         (AC_CONFIG_FILES): Add libgomp.spec.
2070         * libgomp.spec.in: New file.
2071         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2072         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2074 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2076         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2077         reduction(-:var) behaving the same as reduction(+:var).
2078         * testsuite/libgomp.c/reduction-4.c: New test.
2080 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2082         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2083         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2084         testsuite/libgomp.c/copyin-3.c,
2085         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2086         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2087         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2088         testsuite/libgomp.c++/pr24455.C,
2089         testsuite/libgomp.fortran/threadprivate1.f90,
2090         testsuite/libgomp.fortran/threadprivate2.f90,
2091         testsuite/libgomp.fortran/threadprivate3.f90,
2092         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2093         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2094         testsuite/libgomp.fortran/omp_parse3.f90: Require
2095         effective-target TLS.
2097 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2099         * HEADER: Remove.
2101 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2103         PR libgomp/24797
2104         * team.c (initialize_team): Pass NULL rather than free as
2105         pthread_key_create destructor.  Initialize thread specific data
2106         pointer in initial thread to a static local variable rather than
2107         malloced memory.
2109 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2111         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2112         its location to ld_library_path.
2114 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2116         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2118 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2120         * testsuite/libgomp.c: Rename from libgomp.dg.
2122 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2124         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2125         threadprivate variable 'i'.
2127 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2129         * config/linux/s390/futex.h: New file.
2130         * configure.tgt: Use it.
2132         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2133         before the parallel.
2135 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2137         PR c++/24734
2138         * testsuite/libgomp.c++/master-1.C: New test.
2140 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2142         * testsuite/libgomp.dg/copyin-3.c: New test.
2144 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2146         * testsuite/libgomp.fortran/retval1.f90: New test.
2147         * testsuite/libgomp.fortran/vla7.f90: New test.
2149 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2151         * testsuite/libgomp.fortran/vla2.f90: New test.
2152         * testsuite/libgomp.fortran/vla3.f90: New test.
2153         * testsuite/libgomp.fortran/vla4.f90: New test.
2154         * testsuite/libgomp.fortran/vla5.f90: New test.
2155         * testsuite/libgomp.fortran/vla6.f90: New test.
2157 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2159         * config/linux/sparc/futex.h: New file.
2160         * configure.tgt: Use it.
2161         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2163         * critical.c: Include stdlib.h.
2164         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2165         ignoring return value.
2166         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2167         LIBGOMP_CHECK_SYNC_BUILTINS check.
2168         * configure: Rebuilt.
2170 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2172         * testsuite/libgomp.fortran/vla1.f90: New test.
2174 2005-10-31  Richard Henderson  <rth@redhat.com>
2176         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2177         setting 's' in different threads.
2179 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2181         * libgomp.h (attribute_hidden, ialias): Define.
2182         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2183         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2184         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2185         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2186         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2187         omp_test_lock, omp_test_nest_lock): Likewise.
2188         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2189         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2190         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2191         omp_test_lock, omp_test_nest_lock): Likewise.
2192         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2193         omp_get_dynamic, omp_get_nested): Likewise.
2194         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2195         omp_get_thread_num, omp_in_parallel): Likewise.
2196         * fortran.c (ialias_redirect): Define.
2197         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2198         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2199         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2200         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2201         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2202         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2203         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2204         omp_get_wtime): Add ialias_redirect.
2206 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2208         * fortran.c: Include stdlib.h.
2210 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2212         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2213         * Makefile.in: Regenerated.
2215 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2217         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2218         * libgomp_f.h.in (omp_check_defines): New function.
2219         * env.c: Include libgomp_f.h.
2220         (initialize_env): Call omp_check_defines.
2222         * testsuite/libgomp.dg/copyin-2.c: New test.
2223         * testsuite/libgomp.c++/copyin-2.C: New test.
2224         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2226         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2227         * testsuite/libgomp.fortran/sharing2.f90: New test.
2229         * testsuite/libgomp.dg/copyin-1.c: New test.
2230         * testsuite/libgomp.c++/copyin-1.C: New test.
2232 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2234         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2236         * testsuite/libgomp.fortran/workshare1.f90: New test.
2238         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2239         only test.
2240         * libgomp.fortran/sharing1.f90: New test.
2242 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2244         PR c++/24502
2245         * testsuite/libgomp.c++/loop-7.C: New test.
2247         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2249         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2250         * testsuite/libgomp.fortran/reduction6.f90: New test.
2251         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2253 2005-10-23  Richard Henderson  <rth@redhat.com>
2255         * testsuite/libgomp.c++/ctor-1.C: New.
2256         * testsuite/libgomp.c++/ctor-2.C: New.
2257         * testsuite/libgomp.c++/ctor-3.C: New.
2258         * testsuite/libgomp.c++/ctor-4.C: New.
2259         * testsuite/libgomp.c++/ctor-5.C: New.
2260         * testsuite/libgomp.c++/ctor-6.C: New.
2261         * testsuite/libgomp.c++/ctor-7.C: New.
2262         * testsuite/libgomp.c++/ctor-8.C: New.
2263         * testsuite/libgomp.c++/ctor-9.C: New.
2265 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2267         PR 24455
2268         * testsuite/libgomp.c++/pr24455-1.C: New test.
2269         * testsuite/libgomp.c++/pr24455.C: New test.
2270         * testsuite/libgomp.dg/pr24455-1.c: New test.
2271         * testsuite/libgomp.dg/pr24455.c: New test.
2273 2005-10-20  Richard Henderson  <rth@redhat.com>
2275         * testsuite/libgomp.c++/loop-6.C: New.
2276         * testsuite/libgomp.dg/loop-3.c: New.
2278 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2280         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2281         explicitly private.
2282         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2283         explicitly shared.
2285 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2287         * testsuite/libgomp.fortran/jacobi.f: New test.
2289 2005-10-19  Richard Henderson  <rth@redhat.com>
2291         * configure.tgt (i?86-linux): Default to with_arch instead of
2292         CFLAGS.  Add -mtune to match target_cpu.
2293         (x86_64-linux): Tune to i686.
2295         * fortran.c (omp_test_nest_lock_): Fix typo.
2297 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2299         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2300         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2301         * testsuite/libgomp.dg/ordered-3.c: New test.
2303         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2304         Remove volatile keyword.
2306         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2307         in COMMON block to avoid warnings on 64-bit targets.
2309 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2311         * testsuite/libgomp.dg/shared-3.c: New test.
2313 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2315         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2316         * testsuite/libgomp.fortran/reduction5.f90: New test.
2318 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2320         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2321         dg-options.
2322         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2323         flush loop now that __sync_synchronize has proper memory barrier.
2324         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2325         Add -ffixed-form to dg-options.
2327 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2329         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2330         from subdirectories.
2331         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2332         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2333         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2334         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2335         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2336         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2337         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2338         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2339         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2340         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2341         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2342         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2343         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2344         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2345         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2346         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2347         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2348         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2349         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2350         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2351         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2352         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2353         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2354         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2355         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2357 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2359         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2360         lang_library_path exists.  Use find instead of glob to gather tests.
2361         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2363 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2365         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2366         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2367         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2368         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2369         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2370         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2371         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2372         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2373         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2374         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2375         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2376         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2377         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2379 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2381         * testsuite/libgomp.dg/vla-1.c: New test.
2383         * testsuite/libgomp.fortran/reference2.f90: New test.
2385         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2386         declaration of omp_get_thread_num.
2387         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2388         use omp_lib.
2390         * testsuite/libgomp.fortran/reduction1.f90: New test.
2391         * testsuite/libgomp.fortran/reduction2.f90: New test.
2392         * testsuite/libgomp.fortran/reduction3.f90: New test.
2393         * testsuite/libgomp.fortran/reduction4.f90: New test.
2395 2005-10-13  Richard Henderson  <rth@redhat.com>
2397         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2398         * Makefile.in: Regenerate.
2399         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2400         * libgomp.h: Include bar.h.
2401         (struct gomp_barrier): Remove.
2402         (struct gomp_team): Add barrier.  Replace master_barrier with
2403         master_release.  Replace threads with ordered_release.
2404         (struct gomp_thread): Replace barrier with release.
2405         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2406         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2407         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2408         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2409         (GOMP_single_copy_end): Likewise.
2410         * team.c (gomp_threads_dock): New.
2411         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2412         (gomp_thread_start): Use gomp_barrier_wait.
2413         (new_team, free_team): Update for gomp_team changes.
2414         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2415         (gomp_team_end): Use gomp_barrier_wait.
2416         (initialize_team): Update for gomp_thread changes.
2417         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2418         (gomp_work_share_end_nowait): Use atomic ops when available.
2419         * config/linux/bar.c, config/linux/bar.h: New files.
2420         * config/posix/bar.c, config/posix/bar.h: New files.
2422 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2424         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2425         * testsuite/libgomp.dg/single-2.c: New test.
2427         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2428         lang_link_flags): Unset, so that they aren't inherited from previously
2429         sourced *.exp.
2431         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2433 2005-10-12  Richard Henderson  <rth@redhat.com>
2435         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2436         (libgomp_init): Use lang_test_file, lang_library_path, and
2437         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2439         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2440         (lang_test_file, lang_link_flags): New.
2441         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2443         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2444         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2445         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2446         testsuite/libgomp.c++/parallel-1.C,
2447         testsuite/libgomp.c++/reduction-1.C,
2448         testsuite/libgomp.c++/reduction-2.C,
2449         testsuite/libgomp.c++/reduction-3.C,
2450         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2451         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2452         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2453         New files, largely cribbed from the C testsuite.
2455 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2457         * testsuite/libgomp.fortran/character1.f90: New test.
2458         * testsuite/libgomp.fortran/character2.f90: New test.
2460         * testsuite/libgomp.dg/nested-1.c: New test.
2461         * testsuite/libgomp.dg/nested-2.c: New test.
2462         * testsuite/libgomp.fortran/do1.f90: New test.
2463         * testsuite/libgomp.fortran/do2.f90: New test.
2465         * testsuite/libgomp.fortran/reference1.f90: New test.
2467 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2469         * testsuite/libgomp.dg/reduction-1.c: New test.
2470         * testsuite/libgomp.dg/reduction-2.c: New test.
2471         * testsuite/libgomp.dg/reduction-3.c: New test.
2473 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2475         * testsuite/libgomp.dg/atomic-1.c: New test.
2476         * testsuite/libgomp.dg/atomic-2.c: New test.
2478 2005-10-09  Richard Henderson  <rth@redhat.com>
2480         * critical.c (atomic_lock): New.
2481         (initialize_critical): Initialize it.
2482         (GOMP_atomic_start, GOMP_atomic_end): New.
2483         * libgomp.map: Export them.
2484         * libgomp_g.h: Declare them.
2486         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2488 2005-10-02  Richard Henderson  <rth@redhat.com>
2490         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2491         to XCFLAGS instead of CFLAGS.
2493 2005-09-30  Richard Henderson  <rth@redhat.com>
2495         * configure.ac: Determine whether -pthread or -lpthread is needed.
2496         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2497         * Makefine.in, configure: Rebuild.
2499 2005-09-28  Richard Henderson  <rth@redhat.com>
2501         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2502         * testsuite/libgomp.dg/omp-single-3.c: New test.
2504 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2506         * testsuite/libgomp.dg/omp-single-2.c: New test.
2507         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2509 2005-09-27  Richard Henderson  <rth@redhat.com>
2511         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2512         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2514 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2516         * testsuite/libgomp.dg/omp-loop03.c: New test.
2518 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2520         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2522 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2524         * testsuite/libgomp.dg/omp-single-1.c: New test.
2525         * testsuite/libgomp.dg/shared-1.c: Return 0.
2526         Add prototype for abort.
2527         * testsuite/libgomp.dg/shared-2.c: Likewise.
2529 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2531         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2532         constructs.
2534 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2536         * testsuite/libgomp.dg/shared-1.c: New test.
2537         * testsuite/libgomp.dg/shared-2.c: New test.
2539 2005-09-24  Richard Henderson  <rth@redhat.com>
2541         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2543 2005-09-24  Richard Henderson  <rth@redhat.com>
2545         * iter.c (gomp_iter_static_next): Round up when computing number
2546         of iterations.  Don't bother distributing a remainder equally.
2548         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2549         Don't call srand.  Zero b before testing.
2550         (main): New.
2552 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2554         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2555         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2557 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2559         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2560         without !$omp end do, followed immediately by subroutine end.
2562 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2564         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2566 2005-09-22  Richard Henderson  <rth@redhat.com>
2568         * critical.c (GOMP_critical_name_start): Change argument to void**.
2569         Reuse the pointer space if the mutex fits.
2570         (GOMP_critical_name_end): Likewise.
2571         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2572         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2573         (GOMP_critical_name_end): Likewise.
2574         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2575         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2577 2005-09-20  Richard Henderson  <rth@redhat.com>
2579         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2580         (create_lock_lock): New.
2581         (initialize_critical): Initialize it.
2582         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2583         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2585 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2587         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2589 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2591         * testsuite/libgomp.dg/omp-loop01.c: New test.
2592         * testsuite/libgomp.dg/omp-loop02.c: New test.
2594 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2596         * configure.ac (AC_PROG_FC): Add.
2597         (USE_FORTRAN): New automake conditional.
2598         * configure: Rebuilt.
2599         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2600         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2601         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2602         Add rules to build them.
2603         * Makefile.in: Rebuilt.
2604         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2605         OMP_NEST_LOCK_KIND.
2606         * libgomp.map: Add Fortran wrappers.
2607         * libgomp_f.h.in: New file.
2608         * omp_lib.h.in: New file.
2609         * omp_lib.f90.in: New file.
2610         * fortran.c: New file.
2611         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2612         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2613         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2614         libgfortran has been built.
2615         * testsuite/libgomp.fortran/fortran.exp: New file.
2616         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2617         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2618         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2619         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2620         * testsuite/libgomp.fortran/omp_hello.f: New test.
2621         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2622         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2623         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2624         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2625         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2626         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2627         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2628         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2630 2005-08-30  Richard Henderson  <rth@redhat.com>
2632         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2633         function for when aliases are not usable.
2634         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2635         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2636         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2637         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2638         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2639         GOMP_loop_ordered_guided_next): Likewise.
2640         * ordered.c (GOMP_ordered_start): Likewise.
2642 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2644         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2645         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2646         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2647         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2648         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2649         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2650         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2651         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2652         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2654 2005-07-07  Eric Christopher  <echristo@redhat.com>
2655             Diego Novillo  <dnovillo@redhat.com>
2657         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2658         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2659         up code.
2660         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2661         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2662         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2663         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2664         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2665         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2666         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2668 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2670         * TOPLEVEL.patch: Remove.
2672 2005-05-16  Richard Henderson  <rth@redhat.com>
2674         * configure.ac: Test for clock_gettime.
2675         * config.h.in, configure: Rebuild.
2676         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2677         (omp_get_wtime): Use clock_gettime if available.
2678         (omp_get_wtick): Use clock_getres if available.
2680 2005-05-11  Richard Henderson  <rth@redhat.com>
2682         * config/linux/ia64/futex.h: New file.
2683         * configure.tgt: Use it.
2685         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2687 2005-05-07  Richard Henderson  <rth@redhat.com>
2689         * config/linux/powerpc/futex.h: New file.
2690         * configure.tgt: Use it.
2692         * config/linux/i486/futex.h: Merge ...
2693         * config/linux/x86_64/futex.h: ... into ...
2694         * config/linux/x86/futex.h: ... here.
2695         * configure.tgt: Update to match.
2697 2005-05-06  Richard Henderson  <rth@redhat.com>
2699         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2700         * config/linux/i486/futex.h: Likewise.
2701         * config/linux/x86_64/futex.h: Likewise.
2703         * config/linux/lock.c: New file.
2704         * config/linux/omp-lock.h: New file.
2706         * critical.c, env.h: Don't include omp.h
2707         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2708         * config/posix/time.c: Likewise.
2709         * config/posix/omp-lock.h: New file.
2710         * libgomp.h: Include omp-lock.h and omp.h.
2711         * Makefile.am (nodist_include_HEADERS): New.
2712         (omp.h): New rule.
2713         * configure.ac (PERL): New.
2714         * mkomp_h.pl: New file.
2715         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2716         with templates.
2717         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2719         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2720         build directory.  Re-add -march=i486 hack.
2722         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2723         (libgomp_link_flags): Remove.
2724         (libgomp_initialized): Remove.
2725         (libgomp_init): Don't protect from reinitialization.  Copy code
2726         from libstdc++ for getting the multilib set correctly.
2728 2005-05-05  Richard Henderson  <rth@redhat.com>
2730         * config/linux/alpha/futex.h: New file.
2731         * configure.tgt (alpha*-*-linux*): Use it.
2733         * config/posix/mutex.c: New file.
2734         * config/posix/sem.c: Use libgomp.h.
2736         * configure.tgt (x86_64-linux): Also test CC for -m32.
2737         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2739         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2740         after $gccpath.
2742         * Makefile.am (SUBDIRS): New.
2743         (libgomp_la_LDFLAGS): Add -lpthread.
2744         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2745         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2747         * libgomp_g.h: New file.
2748         * libgomp.h: Split out all public declarations to libgomp_g.h.
2749         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2750         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2751         * config/linux/sem.h: Likewise.
2752         * config/posix/sem.h: Likewise.
2754         * Makefile.am (AM_LDFLAGS): New.
2755         (libgomp_version_script): Split out from ...
2756         (libgomp_la_LDFLAGS): ... here.
2757         (libgomp_version_info): New.
2758         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2759         (LIBGOMP_ENABLE): New.
2760         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2761         (LIBGOMP_ENABLE_SYMVERS): New.
2762         * configure.ac (AC_INIT): Version 1.0.
2763         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2764         (enable-linux-futex): Likewise.  Rename from enable-futex.
2765         (libtool_VERSION): New.
2766         (LIBGOMP_ENABLE_SYMVERS): Use it.
2767         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2768         * Makefile.in, aclocal.m4, configure: Rebuild.
2770         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2771         (gomp_mutex_unlock_slow): Fix typo.
2772         * config/linux/sem.c: Similarly.
2773         (gomp_sem_post_slow): Fix typo.
2774         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2775         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2776         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2778         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2779         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2780         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2781         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2782         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2783         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2784         LDFLAGS.  Pull enable_futex check to top-level.
2785         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
2786         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2788         First attempt at real configury.
2789         * Makefile, config.h: Remove file.
2790         * Makefile.am, Makefile.in: New file.
2791         * acinclude.m4 aclocal.m4: New file.
2792         * configure.ac, configure.tgt, configure: New file.
2794         * config/posix/lock.c: Rename from sys-lock.c.
2795         * config/posix/mutex.h: Rename from sys-mutex.h.
2796         * config/posix/sem.c: Rename from sys-sem.c.
2797         * config/posix/sem.h: Rename from sys-sem.h.
2798         * config/posix/proc.c: Rename from sys-proc.c.
2799         * config/posix/time.c: Rename from sys-proc.c.
2801         * config/linux/mutex.c: New file.
2802         * config/linux/mutex.h: New file.
2803         * config/linux/sem.c: New file.
2804         * config/linux/sem.h: New file.
2805         * config/linux/i486/futex.h: New file.
2806         * config/linux/x86_64/futex.h: New file.
2808 2005-05-04  Richard Henderson  <rth@redhat.com>
2810         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2811         * libgomp.h: Declare them.
2812         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2813         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2815 2005-05-04  Richard Henderson  <rth@redhat.com>
2817         * libgomp-1 code drop
2819 2005-05-04  Richard Henderson  <rth@redhat.com>
2821         * iter.c (gomp_iter_static_next): Return tri-state on 0.
2822         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2823         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2824         (gomp_iter_static_next): Update.
2825         (gomp_ordered_static_next): Update.
2826         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2827         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
2828         totally empty range.
2829         (gomp_loop_ordered_static_next): Refine test for calling
2830         gomp_ordered_static_next.
2831         * testsuite/ordered-1.c: Add case for more threads than iterations.
2833         * iter.c (gomp_iter_runtime_next_locked): Remove.
2834         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2835         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2836         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2837         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2838         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2839         gomp_loop_ordered_guided_next): Downcase name, make static, add
2840         an external alias with the old name.
2841         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2842         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2843         switch and call one of the above static functions.
2844         * libgomp.h: Update.
2846         * work.c (gomp_work_share_start): Lock the mutex for !first too.
2847         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2848         GOMP_loop_guided_start, GOMP_loop_runtime_start,
2849         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2850         GOMP_loop_ordered_guided_start): Update to match.
2851         * sections.c (GOMP_sections_start): Likewise.
2852         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2854         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2855         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2856         Use bounds check instead of modulus.
2857         (gomp_ordered_sync): Split out of GOMP_ordered_start.
2858         (gomp_ordered_last): Don't sync with ordered_owner here.
2859         (gomp_ordered_next): Likewise.
2860         (gomp_ordered_static_loop_next): Likewise.
2861         * loop.c, libgomp.h: Update to match.
2863         * libgomp.h (GOMP_barrier): Declare.
2865         * testsuite/barrier-1.c: New file.
2866         * testsuite/critical-1.c: New file.
2867         * testsuite/ordered-2.c: New file.
2868         * testsuite/ordered-1.c: New file.
2869         * testsuite/sections-1.c: New file.
2870         * testsuite/single-1.c: New file.
2871         * testsuite/Makefile (TESTS): Add them.
2873 2005-05-04  Richard Henderson  <rth@redhat.com>
2875         * libgomp.h (struct gomp_work_share): Add ordered_owner.
2876         * loop.c (GOMP_loop_static_start): If not the startup thread,
2877         acquire the mutex to wait for initialization complete.
2878         (GOMP_loop_ordered_static_start): Likewise.
2879         (GOMP_loop_ordered_runtime_start): Likewise.
2880         (GOMP_loop_ordered_static_first): Remove.
2881         (GOMP_loop_ordered_dynamic_first): Remove.
2882         (GOMP_loop_ordered_guided_first): Remove.
2883         (GOMP_loop_ordered_runtime_first): Remove.
2884         * ordered.c (gomp_ordered_loop_first): Post to own release when
2885         we're the first thread.
2886         (gomp_ordered_loop_last): Wait on release if not owner.
2887         (gomp_ordered_loop_next): Likewise.
2888         (gomp_ordered_static_loop_init): New.
2889         (gomp_ordered_static_loop_next): Use ordered_owner.
2890         (GOMP_ordered_start): Likewise.
2891         * work.c (gomp_new_work_share): Initialize ordered_owner.
2893 2005-05-03  Richard Henderson  <rth@redhat.com>
2895         * Makefile (OPT): New.
2896         (CFLAGS): Use it.
2898         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2899         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2900         * libgomp.h, libgomp.map, NOTES: Update to match.
2902         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2903         Add initialized and thr members.
2904         (gomp_thread_start): Pause when initially spawned to wait for
2905         the whole team to be created.
2906         (gomp_team_start): Release team members at the end.
2908         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
2909         (f_foo_1): Use GOMP_loop_end.
2910         (f_foo_2): Use GOMP_loop_end_nowait.
2912         * testsuite/loop-2.c: New file.
2913         * testsuite/Makefile (TESTS): Add it.
2915 2005-05-03  Richard Henderson  <rth@redhat.com>
2917         * iter.c (gomp_iter_static_next): Fix overflow check typo.
2918         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2919         * team.c (new_team): Initialize oldest_live_gen to 1 if no
2920         initial work_share.
2922         * testsuite/Makefile: New file.
2923         * testsuite/loop-1.c: New file.
2925 2005-05-03  Richard Henderson  <rth@redhat.com>
2927         Initial implementation and checkin.