Fixed check for flexible array members used in Objective-C instance variables
[official-gcc.git] / libgomp / ChangeLog
blobfad7c77727b6ac508e9cdedcf766fdb092fb69e2
1 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
3         PR libgomp/47804
4         * testsuite/libgomp.fortran/fortran.exp: Check for both
5         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
6         but $blddir != "", still append ${blddir}/${lang_library_path}
7         to ld_library_path.
9 2011-02-16  Tobias Burnus  <burnus@net-b.de>
11         PR libgomp/47758
12         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13         of libquadmath.a before adding its libpath to ldflags.
15 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17         PR libgomp/47731
18         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
19         to FUTEX_WAIT futex syscall.
20         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
22 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24         * configure: Regenerate.
26 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
28         PR libstdc++/36104
29         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
31 2011-01-16  Gerald Pfeifer
33         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
35 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
37         PR fortran/46874
38         * libgomp.fortran/allocatable6.f90: New test.
40 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
43         * configure: Regenerate.
45 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
47         PR target/40125
48         PR lto/46695
49         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
50         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
51         * aclocal.m4: Regenerate.
52         * configure: Regenerate.
53         * Makefile.in: Regenerate.
54         * testsuite/Makefile.in: Regenerate.
56 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
58         PR fortran/46753
59         * libgomp.fortran/pr46753.f90: New test.
61         PR libgomp/43706
62         * env.c (initialize_env): Default to spin count 300000
63         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
64         is specified.
66         PR libgomp/45240
67         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
68         at the end if sync builtins aren't supported.
70 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
72         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
74 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
76         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
78 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
80         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
82 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
83             Tobias Burnus  <burnus@net-b.de>
85         PR fortran/32049
86         * configure.ac: 
87         * configure: Regenerate.
89 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
91         * config/linux/futex.h: New.
92         * config/linux/arm/mutex.h: New.
93         * configure.tgt (arm*-*-linux*): Add config path.
95 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
97         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
99 2010-09-23  Tobias Burnus  <burnus@net-b.de>
101         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
102         Change Fortran datatype to LOGICAL.
103         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
104         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
106 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108         * configure: Regenerate.
110 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
112         * libgomp.texi: Add function keyword to a couple of Fortran
113         interfaces, use integer instead of int for Fortran.
115 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
117         * libgomp.texi: Fix spelling and pasto problems throughout.
118         Adjust prototypes to match code.
120 2010-07-24  Tobias Burnus  <burnus@net-b.de>
122         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
123         silence -fwhole-file warning.
125 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
127         * configure.tgt (*-*-solaris2.[56]*): Removed.
129 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
131         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
132         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
133         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
134         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
135         targetting solaris2*.
136         * configure: Regenerate.
137         * config.h.in: Regenerate.
139         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
140         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
141         Add libgomp_version_dep.
142         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
143         versioning.
144         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
145         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
146         * Makefile.in: Regenerate.
148         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
149         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
150         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
151         to common block, protected by
152         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
154 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
156         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
158 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
160         PR bootstrap/43170
161         * configure: Regenerate.
163 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
165         PR other/43620
166         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
167         * configure: Regenerate.
168         * Makefile.in: Regenerate.
169         * testsuite/Makefile.in: Regenerate.
171 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
173         PR c/43893
174         * testsuite/libgomp.c/pr43893.c: New test.
175         * testsuite/libgomp.c++/pr43893.C: New test.
177 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
179         PR middle-end/43570
180         * testsuite/libgomp.fortran/vla8.f90: New test.
182 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
184         PR libgomp/43706
185         * config/linux/affinity.c (gomp_init_affinity): Decrease
186         gomp_available_cpus if affinity mask confines the process to fewer
187         CPUs.
188         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
189         non-NULL, just return gomp_available_cpus.
191         PR libgomp/43569
192         * sections.c (gomp_sections_init): Initialize ws->mode.
194 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
196         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
197         not unused bar variable.
198         * configure: Regenerate.
200 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
202         * Makefile.in: Regenerate.
203         * aclocal.m4: Regenerate.
204         * testsuite/Makefile.in: Regenerate.
206 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
208         PR libgomp/42942
209         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
210         (initialize_env): Adjust callers.
211         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
212         when the argument is 0.
214         * testsuite/libgomp.c/pr42942.c: New test.
216 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
218         PR middle-end/42644
219         PR middle-end/42130
220         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
221         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
223 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
225         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
226         * testsuite/libgomp.c++/task-6.C: Likewise.
228 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
230         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
232 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
234         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
235         * configure: Regenerate.
237 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
239         PR fortran/42866
240         * testsuite/libgomp.fortran/allocatable5.f90: New test.
242 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
244         * configure.ac: Test for executability of GFORTRAN.
245         * configure: Regenerate.
247 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
249         * configure: Regenerate.
251 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
253         PR libgomp/42602
254         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
256 2010-01-03  Richard Guenther  <rguenther@suse.de>
258         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
260 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
262         * testsuite/libgomp.graphite/pr4118.c: New.
264 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
266         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
267         for darwin, protect the test with require-effective-target tls_runtime.
268         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
270 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
272         PR target/41605
273         * testsuite/lib/libgomp.exp: Provide -B options to allow for
274         link spec %s substitutions for static libraries.
276 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
278         PR testsuite/42135
279         * libgomp.graphite/force-parallel-2.c: Reduce array size.
281 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
283         * Makefile.in: Regenerate.
284         * configure: Regenerate.
285         * testsuite/Makefile.in: Regenerate.
287 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
289         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
290         settings for LC_ALL and LANG.
292 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
294         PR fortran/42162
295         * testsuite/libgomp.fortran/pr42162.f90: New test.
297 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
299         PR middle-end/42029
300         * testsuite/libgomp.c/pr42029.c: New test.
302 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
304         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
305         *s.  Accept ld version without text in ()s.
306         * configure: Regenerated.
308 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
310         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
312 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
314         PR libgomp/41418
315         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
316         or a hyphen (happens with fortran language disabled).
317         * configure: Regenerate.
319 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
321         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
322         use sed script portable to Solaris /bin/sed for extracting ld
323         version.
324         * configure: Regenerate.
326 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
328         * testsuite/libgomp.graphite/bounds.c: New test.
330 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
332         * Makefile.am (libgomp_la_LINK): New.
333         * Makefile.in: Regenerate.
335 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
337         * configure.ac (AC_PREREQ): Bump to 2.64.
339 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
341         * Makefile.am (install-html, install-pdf): Remove.
342         * Makefile.in: Regenerate.
344         * Makefile.in: Regenerate.
345         * aclocal.m4: Regenerate.
346         * config.h.in: Regenerate.
347         * configure: Regenerate.
348         * testsuite/Makefile.in: Regenerate.
350 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
352         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
353         * Makefile.in: Regenerate.
355 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
357         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
358         * Makefile.in: Regenerate.
360 2009-08-19  Tobias Burnus  <burnus@net-b.de>
362         PR fortran/41102
363         omp_lib.h.in: Fix -std=f95 errors.
366 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
368         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
369         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
370         * testsuite/libgomp.graphite/graphite.exp: New.
372 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
374         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
375         only build.
377 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
379         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
380         needed memory barrier semantics.
381         * config/linux/mips/mutex.h: New file.
383 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
385         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
387 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
389         * configure: Regenerate.
391 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
393         PR testsuite/40699
394         PR testsuite/40707
395         PR testsuite/40709
396         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
397         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
398         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
400 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
402         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
403         options when choosing a multilib.
405 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
407         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
408         ld_library_path.  Use add_path.  Add just find_libgcc_s to
409         ld_library_path, not every libgcc multilib directory.
410         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
411         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
412         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
413         Use add_path.
414         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
416 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
418         * Makefile.am (LTLDFLAGS): Define.
419         (LINK): Define.
420         * Makefile.in: Regenerate.
422 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
424         PR fortran/39718
425         * testsuite/libgomp.fortran/fortran.exp: Don't link with
426         libgfortranbegin, check existence of libgfortran.a instead of
427         libgfortranbegin.a.
429 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
431         PR libgomp/40174
432         * team.c (gomp_thread_start): Destroy thr->release semaphore.
433         (gomp_free_pool_helper): Likewise.
435 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
436             Jakub Jelinek  <jakub@redhat.com>
438         PR fortran/35423
439         * testsuite/libgomp.fortran/workshare2.f90: New test.
441 2009-04-09  Nick Clifton  <nickc@redhat.com>
443         * iter.c: Change copyright header to refer to version 3 of the
444         GNU General Public License with version 3.1 of the GCC Runtime
445         Library Exception and to point readers at the COPYING3 and
446         COPYING3.RUNTIME files and the FSF's license web page.
447         * alloc.c: Likewise.
448         * barrier.c: Likewise.
449         * config/bsd/proc.c: Likewise.
450         * config/linux/affinity.c: Likewise.
451         * config/linux/alpha/futex.h: Likewise.
452         * config/linux/bar.c: Likewise.
453         * config/linux/bar.h: Likewise.
454         * config/linux/ia64/futex.h: Likewise.
455         * config/linux/ia64/mutex.h: Likewise.
456         * config/linux/lock.c: Likewise.
457         * config/linux/mips/futex.h: Likewise.
458         * config/linux/mutex.c: Likewise.
459         * config/linux/mutex.h: Likewise.
460         * config/linux/powerpc/futex.h: Likewise.
461         * config/linux/proc.c: Likewise.
462         * config/linux/ptrlock.c: Likewise.
463         * config/linux/ptrlock.h: Likewise.
464         * config/linux/s390/futex.h: Likewise.
465         * config/linux/sem.c: Likewise.
466         * config/linux/sem.h: Likewise.
467         * config/linux/sparc/futex.h: Likewise.
468         * config/linux/wait.h: Likewise.
469         * config/linux/x86/futex.h: Likewise.
470         * config/mingw32/proc.c: Likewise.
471         * config/mingw32/time.c: Likewise.
472         * config/posix/affinity.c: Likewise.
473         * config/posix/bar.c: Likewise.
474         * config/posix/bar.h: Likewise.
475         * config/posix/lock.c: Likewise.
476         * config/posix/mutex.h: Likewise.
477         * config/posix/proc.c: Likewise.
478         * config/posix/ptrlock.h: Likewise.
479         * config/posix/sem.c: Likewise.
480         * config/posix/sem.h: Likewise.
481         * config/posix/time.c: Likewise.
482         * config/posix95/lock.c: Likewise.
483         * critical.c: Likewise.
484         * env.c: Likewise.
485         * error.c: Likewise.
486         * fortran.c: Likewise.
487         * iter_ull.c: Likewise.
488         * libgomp.h: Likewise.
489         * libgomp_f.h.in: Likewise.
490         * libgomp_g.h: Likewise.
491         * loop.c: Likewise.
492         * loop_ull.c: Likewise.
493         * omp.h.in: Likewise.
494         * omp_lib.f90.in: Likewise.
495         * omp_lib.h.in: Likewise.
496         * ordered.c: Likewise.
497         * parallel.c: Likewise.
498         * sections.c: Likewise.
499         * single.c: Likewise.
500         * task.c: Likewise.
501         * team.c: Likewise.
502         * work.c: Likewise.
504 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
506         * testsuite/config/default.exp: Change copyright header to refer to
507         version 3 of the GNU General Public License and to point readers
508         at the COPYING3 file and the FSF's license web page.
510 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
512         PR middle-end/39573
513         * libgomp.c++/pr39573.C: New test.
515 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
517         PR other/39591
518         * testsuite/libgomp.c/pr39591-1.c: New test.
519         * testsuite/libgomp.c/pr39591-2.c: New test.
520         * testsuite/libgomp.c/pr39591-3.c: New test.
522 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
524         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
525         * testsuite/libgomp.c/atomic-6.c: Ditto.
527 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
529         PR c/39495
530         * testsuite/libgomp.c/loop-12.c: New test.
531         * testsuite/libgomp.c/loop-11.c: New test.
532         * testsuite/libgomp.c++/loop-11.C: New test.
533         * testsuite/libgomp.c++/loop-12.C: New test.
534         * testsuite/libgomp.c++/for-8.C: New test.
536 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
538         * configure: Regenerate.
540 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
542         PR middle-end/39154
543         * testsuite/libgomp.c/pr39154.c: New test.
545 2009-01-30  Ian Lance Taylor  <iant@google.com>
547         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
548         libgomp_ld_is_gold.  Get gold version number.
549         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
550         * configure: Rebuild.
552 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
554         * testsuite/lib/libgomp.exp: Add -B option for targets that
555         use libgfortran.a%s in their specs.
557 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
559         PR libgomp/38086
560         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
561         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
562         HAVE_AS_SYMVER_DIRECTIVE is not defined.
563         * configure: Regenerated.
564         * config.h.in: Likewise.
566 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
568         PR c++/38650
569         * testsuite/libgomp.c/pr38650.c: New test.
570         * testsuite/libgomp.c++/pr38650.C: New test.
572 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
574         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
576 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
578         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
580 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
582         * configure: Regenerate.
584 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
586         PR middle-end/36802
587         * testsuite/libgomp.c/pr36802-1.c: New test.
588         * testsuite/libgomp.c/pr36802-2.c: New test.
589         * testsuite/libgomp.c/pr36802-3.c: New test.
591 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
593         PR libgomp/38270
594         * config/linux/powerpc/mutex.h: New.
596 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
598         PR c++/38257
599         * testsuite/libgomp.c++/for-7.C: New test.
601         PR c++/38348
602         * testsuite/libgomp.c++/for-6.C: New test.
604 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
606         PR testsuite/28870
607         * testsuite/lib/libgomp.exp: Include new timeout library files.
608         (libgomp_target_compile): Set timeout value from new proc.
610 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
612         PR libgomp/37938
613         * config/linux/ia64/mutex.h: New.
615 2008-11-04  Tobias Burnus  <burnus@net-b.de>
617         PR libgomp/37935
618         * libgomp.texi (Runtime library routines, environment variables):
619         Update for OpenMP version 3.0.
621 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
622             Steve Ellcey  <sje@cup.hp.com>
624         * configure: Regenerate for new libtool.
625         * Makefile.in: Ditto.
626         * testsuite/Makefile.in: Ditto.
628 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
629             Andreas Tobler  <a.tobler@schweiz.org>
631         * config/bsd/proc.c: New file.
632         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
633         * configure.ac: Check for header <sys/sysctl.h>
634         * configure: Regenerate.
635         * config.h.in: Likewise.
637 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
639         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
641 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
643         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
644         * Makefile.in: Regenerated.
645         * testsuite/Makefile.in: Regenerated.
647 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
649         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
650         depend on blddir if blddir exists.
651         (libgomp_target_compile): Likewise.
652         * testsuite/libgomp.c++/c++.exp: Likewise.
653         * testsuite/libgomp.fortran/fortran.exp: Likewise.
655 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
657         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
658         Do not list GPL as Invariant Section.
660 2008-07-28  Ilie Garbacea  <ilie@mips.com>
661             Chao-ying Fu  <fu@mips.com>
663         * configure.tgt: Enable futex for MIPS.
664         * config/linux/mips/futex.h: New file.
666 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
668         * team.c (gomp_team_end): Free team immediately if it has
669         just one thread.
671 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
673         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
674         * testsuite/libgomp.fortran/fortran.exp: Same.
675         * testsuite/libgomp.c/c.exp: Same.
676         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
677         directory to library path first.
679 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
681         * env.c (parse_stacksize): Add cast to avoid warning.
682         (parse_spincount): Likewise.
684 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
686         * testsuite/libgomp.c/loop-10.c: New test.
687         * libgomp.c/loop-3.c (main): Add lastprivate clause.
688         * libgomp.c++/loop-6.C (main): Likewise.
690         PR debug/36617
691         * testsuite/libgomp.c/debug-1.c: New test.
693 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
695         * testsuite/libgomp.c/nqueens-1.c: New test.
697         PR c++/36523
698         * testsuite/libgomp.c++/task-7.C: New function.
700 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
702         * configure: Regenerate.
704 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
706         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
707         mutex when HAVE_SYNC_BUILTINS isn't defined.
709 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
711         * libgomp.texi (omp_test_lock): Fix typo.
713 2008-06-12  Tobias Burnus  <burnus@net-b.de>
715         * omp_lib.f90.in: Add "implicit none".
717 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
719         PR middle-end/36506
720         * testsuite/libgomp.c/reduction-5.c: New test.
722 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
724         * libgomp.h (struct gomp_task): Add in_tied_task field.
725         * task.c (gomp_init_task): Initialize it.
726         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
727         unconditionally.  Don't call gomp_team_barrier_wake if
728         current task is implicit or if(0) from implicit and number of
729         running tasks is equal to nthreads - 1.
731         PR libgomp/36471
732         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
733         omp_get_team_size_8): Fix pastos.
735         PR libgomp/36469
736         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
737         * configure: Regenerated.
738         * config.h.in: Regenerated.
739         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
740         defined.
742 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
744         PR bootstrap/36452
745         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
746         (GOMP_loop_ull_dynamic_start): Likewise.
747         (GOMP_loop_ull_guided_start): Likewise.
748         (GOMP_loop_ull_ordered_static_start): Likewise.
749         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
750         (GOMP_loop_ull_ordered_guided_start): Likewise.
752 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
753             Richard Henderson  <rth@redhat.com>
754             Ulrich Drepper  <drepper@redhat.com>
755             Jakob Blomer  <jakob.blomer@ira.uka.de>
757         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
758         Substitute also OMP_*LOCK_25*.
759         * configure: Regenerated.
760         * config.h.in: Regenerated.
761         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
762         ptrlock.c and task.c.
763         * Makefile.in: Regenerated.
764         * testsuite/Makefile.in: Regenerated.
765         * task.c: New file.
766         * loop_ull.c: New file.
767         * iter_ull.c: New file.
768         * libgomp.h: Include ptrlock.h.
769         (enum gomp_task_kind): New type.
770         (struct gomp_team): Add task_lock, task_queue, task_count,
771         task_running_count, single_count fields.  Add
772         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
773         Remove work_share_lock, generation_mask,
774         oldest_live_gen, num_live_gen and init_work_shares fields, add
775         work work_share_list_alloc, work_share_list_free and work_share_chunk
776         fields.  Change work_shares from pointer to pointers into an array.
777         Change ordered_release field into gomp_sem_t ** from flexible array
778         member.  Add implicit_task and initial_work_shares fields.
779         Move close to the end of the struct.
780         (struct gomp_team_state): Add single_count, last_work_share,
781         active_level and level fields, remove work_share_generation.
782         (gomp_barrier_handle_tasks): New prototype.
783         (gomp_finish_task): New inline function.
784         (struct gomp_work_share): Move chunk_size, end, incr into
785         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
786         next_ll fields.  Reshuffle fields.  Add next_alloc,
787         next_ws, next_free and inline_ordered_team_ids fields, change
788         ordered_team_ids into pointer from flexible array member.
789         Add mode field.  Put lock and next into a different cache line
790         from most of the write-once fields.
791         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
792         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
793         gomp_iter_ull_guided_next): New prototypes.
794         (gomp_new_icv): New prototype.
795         (struct gomp_thread): Add thread_pool and task fields.
796         (struct gomp_thread_pool): New type.
797         (gomp_new_team): New prototype.
798         (gomp_team_start): Change type of last argument.
799         (gomp_new_work_share): Removed.
800         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
801         (gomp_work_share_init_done): New static inline.
802         (gomp_throttled_spin_count_var, gomp_available_cpus,
803         gomp_managed_threads): New extern decls.
804         (gomp_init_task): New prototype.
805         (gomp_spin_count_var): New extern var decl.
806         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
807         or no alias support, or if not PIC.
808         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
809         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
810         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
811         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
812         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
813         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
814         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
815         gomp_test_nest_lock_25): New prototypes.
816         (omp_lock_symver, strong_alias): Define.
817         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
818         decls.
819         (gomp_end_task): New.
820         (struct gomp_task_icv, gomp_global_icv): New.
821         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
822         (struct gomp_task): New.
823         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
824         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
825         (gomp_icv): New.
826         (gomp_schedule_type): Reorder enum to match
827         omp_sched_t.
828         * team.c (struct gomp_thread_start_data): Add thread_pool and task
829         fields.
830         (gomp_thread_start): Add gomp_team_barrier_wait call.
831         For non-nested case remove clearing of docked thread thr fields.
832         Use pool fields instead of global gomp_* variables.  Use
833         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
834         Create tasks for each member thread.
835         (free_team): Only destroy team barrier, task_lock here and free it.
836         (gomp_free_thread): Free last_team if non-NULL.
837         (gomp_team_end): Call gomp_team_barrier_wait instead of
838         gomp_barrier_wait.  For nested case call one extra
839         gomp_barrier_wait.  Move here some destruction from free_team.
840         Call free_team on pool->last_team if any, rather than freeing
841         current team.  Destroy work_share_list_free_lock ifndef
842         HAVE_SYNC_BUILTINS.
843         (gomp_new_icv): New function.
844         (gomp_threads, gomp_threads_size, gomp_threads_used,
845         gomp_threads_dock): Removed.
846         (gomp_thread_destructor): New variable.
847         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
848         functions.
849         (gomp_team_start): Create new pool if current thread doesn't have
850         one.  Use pool fields instead of global gomp_* variables. 
851         Initialize thread_pool field for new threads.  Clear single_count.
852         Change last argument from ws to team, don't create
853         new team, set ts.work_share to &team->work_shares[0] and clear
854         ts.last_work_share.  Don't clear ts.work_share_generation.
855         If number of threads changed, adjust atomically gomp_managed_threads.
856         Use gomp_init_task instead of gomp_new_task,
857         set thr->task to the corresponding implicit_task array entry.
858         Create tasks for each member thread.  Initialize ts.level.
859         (initialize_team): Call pthread_key_create on
860         gomp_thread_destructor.
861         (team_destructor): New function.
862         (new_team): Removed.
863         (gomp_new_team): New function.
864         (free_team): Free gomp_work_share blocks chained through next_alloc,
865         instead of freeing work_shares and destroying work_share_lock.
866         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
867         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
868         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
869         of gomp_barrier_wait.
870         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
871         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
872         if gomp_work_share_start returned true.  Don't unlock ws->lock.
873         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
874         of gomp_barrier_wait.
875         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
876         gomp_work_share_init_done if gomp_work_share_start returned true.
877         Don't unlock ws->lock.
878         * work.c: Include stddef.h.
879         (free_work_share): Use work_share_list_free_lock instead
880         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
881         Call gomp_fini_work_share and then either free ws if orphaned, or
882         put it into work_share_list_free list of the current team.
883         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
884         functions.
885         (gomp_work_share_start, gomp_work_share_end,
886         gomp_work_share_end_nowait): Rewritten.
887         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
888         (openmp_version): Set to 200805.
889         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
890         omp_sched_guided, omp_sched_auto): New parameters.
891         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
892         omp_set_max_active_levels, omp_get_max_active_levels,
893         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
894         omp_get_active_level): New interfaces.
895         * omp_lib.h.in (openmp_version): Set to 200805.
896         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
897         omp_sched_guided, omp_sched_auto): New parameters.
898         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
899         omp_set_max_active_levels, omp_get_max_active_levels,
900         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
901         omp_get_active_level): New externals.
902         * loop.c: Include limits.h.
903         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
904         GFS_AUTO.
905         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
906         Likewise.  Use gomp_icv.
907         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
908         ts.static_trip here.
909         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
910         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
911         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
912         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
913         don't unlock ws->lock, otherwise lock it.
914         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
915         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
916         (gomp_parallel_loop_start): Call gomp_new_team instead of
917         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
918         Adjust gomp_team_start caller.  Pass 0 as second argument to
919         gomp_resolve_num_threads.
920         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
921         If adding ws->chunk_size nthreads + 1 times after end won't
922         overflow, set ws->mode to 1.
923         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
924         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
925         GOMP_loop_ull_ordered_static_start,
926         GOMP_loop_ull_ordered_dynamic_start,
927         GOMP_loop_ull_ordered_guided_start,
928         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
929         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
930         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
931         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
932         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
933         prototypes.
934         * libgomp.map: Export lock routines also @@OMP_2.0.
935         (GOMP_loop_ordered_dynamic_first,
936         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
937         GOMP_loop_ordered_static_first): Remove.
938         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
939         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
940         GOMP_loop_ull_ordered_dynamic_next,
941         GOMP_loop_ull_ordered_dynamic_start,
942         GOMP_loop_ull_ordered_guided_next,
943         GOMP_loop_ull_ordered_guided_start,
944         GOMP_loop_ull_ordered_runtime_next,
945         GOMP_loop_ull_ordered_runtime_start,
946         GOMP_loop_ull_ordered_static_next,
947         GOMP_loop_ull_ordered_static_start,
948         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
949         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
950         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
951         (omp_set_schedule, omp_get_schedule,
952         omp_get_thread_limit, omp_set_max_active_levels,
953         omp_get_max_active_levels, omp_get_level,
954         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
955         omp_set_schedule_, omp_set_schedule_8_,
956         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
957         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
958         omp_get_max_active_levels_, omp_get_level_,
959         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
960         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
961         New exports @@OMP_3.0.
962         * omp.h.in (omp_sched_t): New type.
963         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
964         omp_set_max_active_levels, omp_get_max_active_levels,
965         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
966         omp_get_active_level): New prototypes.
967         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
968         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
969         gomp_thread_limit_var, gomp_remaining_threads_count,
970         gomp_remaining_threads_lock): New variables.
971         (parse_spincount): New function.
972         (initialize_env): Call gomp_init_num_threads unconditionally.
973         Initialize gomp_available_cpus.  Call parse_spincount,
974         initialize gomp_{,throttled_}spin_count_var
975         depending on presence and value of OMP_WAIT_POLICY and
976         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
977         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
978         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
979         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
980         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
981         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
982         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
983         (gomp_global_icv): New.
984         (parse_schedule): Use it.  Parse "auto".
985         (omp_set_num_threads): Use gomp_icv.
986         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
987         Likewise.
988         (omp_get_max_threads): Move from parallel.c.
989         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
990         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
991         add ialias.
992         (parse_stacksize, parse_wait_policy): New functions.
993         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
994         both wrappers for compatibility and new locks.
995         (omp_set_schedule, omp_get_schedule,
996         omp_get_thread_limit, omp_set_max_active_levels,
997         omp_get_max_active_levels, omp_get_level,
998         omp_get_ancestor_thread_num, omp_get_team_size,
999         omp_get_active_level): New ialias_redirect.
1000         (omp_set_schedule_, omp_set_schedule_8_,
1001         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1002         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1003         omp_get_max_active_levels_, omp_get_level_,
1004         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1005         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1006         New functions.
1007         * parallel.c: Include limits.h.
1008         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1009         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1010         argument to gomp_team_start.  Pass 0 as second argument to
1011         gomp_resolve_num_threads.
1012         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1013         if gomp_thread_limit_var != ULONG_MAX.
1014         (omp_in_parallel): Implement using ts.active_level.
1015         (omp_get_max_threads): Move to env.c.
1016         (omp_get_level, omp_get_ancestor_thread_num,
1017         omp_get_team_size, omp_get_active_level): New functions,
1018         add ialias.
1019         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1020         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1021         gomp_iter_dynamic_next instead of the _locked variant and don't take
1022         lock around it, otherwise acquire it before calling
1023         gomp_iter_dynamic_next_locked.
1024         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1025         gomp_iter_dynamic_next instead of the _locked variant and don't take
1026         lock around it.
1027         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1028         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1029         Adjust gomp_team_start caller.  Pass count as second argument to
1030         gomp_resolve_num_threads, don't adjust num_threads after the call.
1031         Use gomp_icv.
1032         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1033         ws->chunk_size by incr.
1034         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1035         code.
1036         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1037         types.
1038         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1039         (omp_check_defines): Check even the compat defines.
1040         * config/linux/ptrlock.c: New file.
1041         * config/linux/ptrlock.h: New file.
1042         * config/linux/wait.h: New file.
1043         * config/posix/ptrlock.c: New file.
1044         * config/posix/ptrlock.h: New file.
1045         * config/linux/bar.h (gomp_team_barrier_wait,
1046         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1047         (gomp_team_barrier_set_task_pending,
1048         gomp_team_barrier_clear_task_pending,
1049         gomp_team_barrier_set_waiting_for_tasks,
1050         gomp_team_barrier_waiting_for_tasks,
1051         gomp_team_barrier_done): New inlines.
1052         (gomp_barrier_t): Rewritten.
1053         (gomp_barrier_state_t): New typedef.
1054         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1055         gomp_barrier_wait_start): Rewritten.
1056         (gomp_barrier_wait_end): Change second argument to
1057         gomp_barrier_state_t.
1058         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1059         inlines.
1060         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1061         futex.h.
1062         (gomp_barrier_wait_end): Rewritten.
1063         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1064         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1065         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1066         (gomp_barrier_state_t): New typedef.
1067         (gomp_team_barrier_wait,
1068         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1069         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1070         into the return value.  Return gomp_barrier_state_t.
1071         (gomp_team_barrier_set_task_pending,
1072         gomp_team_barrier_clear_task_pending,
1073         gomp_team_barrier_set_waiting_for_tasks,
1074         gomp_team_barrier_waiting_for_tasks,
1075         gomp_team_barrier_done): New inlines.
1076         (gomp_barrier_wait_end): Change second argument to
1077         gomp_barrier_state_t.
1078         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1079         inlines.
1080         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1081         (gomp_barrier_wait_end): Change second argument to
1082         gomp_barrier_state_t. 
1083         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1084         gomp_team_barrier_wake): New functions.
1085         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1086         futex.h.
1087         (gomp_futex_wake, gomp_futex_wait): New variables.
1088         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1089         * config/linux/lock.c: Rewrite to make locks task owned,
1090         for backwards compatibility provide the old entrypoints
1091         if symbol versioning.  Include wait.h instead of libgomp.h and
1092         futex.h.
1093         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1094         * config/posix95/lock.c: Rewrite to make locks task owned,
1095         for backwards compatibility provide the old entrypoints
1096         if symbol versioning.
1097         * config/posix/lock.c: Rewrite to make locks task owned,
1098         for backwards compatibility provide the old entrypoints
1099         if symbol versioning.
1100         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1101         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1102         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1103         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1104         (sys_futex0): Return error code.
1105         (futex_wake, futex_wait): If ENOSYS was returned, clear
1106         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1107         (cpu_relax, atomic_write_barrier): New static inlines.
1108         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1109         (futex_wake, futex_wait): If ENOSYS was returned, clear
1110         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1111         (cpu_relax, atomic_write_barrier): New static inlines.
1112         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1113         (sys_futex0): Return error code.
1114         (futex_wake, futex_wait): If ENOSYS was returned, clear
1115         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1116         (cpu_relax, atomic_write_barrier): New static inlines.
1117         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1118         (sys_futex0): Return error code.
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/ia64/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/sparc/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/sem.c: Include wait.h instead of libgomp.h and
1133         futex.h.
1134         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1135         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1136         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1137         types.
1138         (omp_nest_lock_t): Change owner into void *, add lock field.
1139         * config/posix95/omp-lock.h: Include semaphore.h.
1140         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1141         (omp_lock_t): Use sem_t instead of mutex if semaphores
1142         aren't broken.
1143         (omp_nest_lock_t): Likewise.  Change owner to void *.
1144         * config/posix/omp-lock.h: Include semaphore.h.
1145         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1146         (omp_lock_t): Use sem_t instead of mutex if semaphores
1147         aren't broken.
1148         (omp_nest_lock_t): Likewise.  Add owner field.
1150 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1152         * testsuite/libgomp.c/collapse-1.c: New test.
1153         * testsuite/libgomp.c/collapse-2.c: New test.
1154         * testsuite/libgomp.c/collapse-3.c: New test.
1155         * testsuite/libgomp.c/icv-1.c: New test.
1156         * testsuite/libgomp.c/icv-2.c: New test.
1157         * testsuite/libgomp.c/lib-2.c: New test.
1158         * testsuite/libgomp.c/lock-1.c: New test.
1159         * testsuite/libgomp.c/lock-2.c: New test.
1160         * testsuite/libgomp.c/lock-3.c: New test.
1161         * testsuite/libgomp.c/loop-4.c: New test.
1162         * testsuite/libgomp.c/loop-5.c: New test.
1163         * testsuite/libgomp.c/loop-6.c: New test.
1164         * testsuite/libgomp.c/loop-7.c: New test.
1165         * testsuite/libgomp.c/loop-8.c: New test.
1166         * testsuite/libgomp.c/loop-9.c: New test.
1167         * testsuite/libgomp.c/nested-3.c: New test.
1168         * testsuite/libgomp.c/nestedfn-6.c: New test.
1169         * testsuite/libgomp.c/sort-1.c: New test.
1170         * testsuite/libgomp.c/task-1.c: New test.
1171         * testsuite/libgomp.c/task-2.c: New test.
1172         * testsuite/libgomp.c/task-3.c: New test.
1173         * testsuite/libgomp.c/task-4.c: New test.
1174         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1175         to C++ testsuite default compiler options.
1176         * testsuite/libgomp.c++/collapse-1.C: New test.
1177         * testsuite/libgomp.c++/collapse-2.C: New test.
1178         * testsuite/libgomp.c++/ctor-10.C: New test.
1179         * testsuite/libgomp.c++/for-1.C: New test.
1180         * testsuite/libgomp.c++/for-2.C: New test.
1181         * testsuite/libgomp.c++/for-3.C: New test.
1182         * testsuite/libgomp.c++/for-4.C: New test.
1183         * testsuite/libgomp.c++/for-5.C: New test.
1184         * testsuite/libgomp.c++/loop-8.C: New test.
1185         * testsuite/libgomp.c++/loop-9.C: New test.
1186         * testsuite/libgomp.c++/loop-10.C: New test.
1187         * testsuite/libgomp.c++/task-1.C: New test.
1188         * testsuite/libgomp.c++/task-2.C: New test.
1189         * testsuite/libgomp.c++/task-3.C: New test.
1190         * testsuite/libgomp.c++/task-4.C: New test.
1191         * testsuite/libgomp.c++/task-5.C: New test.
1192         * testsuite/libgomp.c++/task-6.C: New test.
1193         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1194         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1195         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1196         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1197         * testsuite/libgomp.fortran/collapse1.f90: New test.
1198         * testsuite/libgomp.fortran/collapse2.f90: New test.
1199         * testsuite/libgomp.fortran/collapse3.f90: New test.
1200         * testsuite/libgomp.fortran/collapse4.f90: New test.
1201         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1202         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1203         * testsuite/libgomp.fortran/lib4.f90: New test.
1204         * testsuite/libgomp.fortran/lock-1.f90: New test.
1205         * testsuite/libgomp.fortran/lock-2.f90: New test.
1206         * testsuite/libgomp.fortran/nested1.f90: New test.
1207         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1208         * testsuite/libgomp.fortran/strassen.f90: New test.
1209         * testsuite/libgomp.fortran/tabs1.f90: New test.
1210         * testsuite/libgomp.fortran/tabs2.f: New test.
1211         * testsuite/libgomp.fortran/task1.f90: New test.
1212         * testsuite/libgomp.fortran/task2.f90: New test.
1213         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1214         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1215         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1216         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1217         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1219 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1221         PR c++/36308
1222         * testsuite/libgomp.c++/ctor-11.C: New test.
1223         * testsuite/libgomp.c++/ctor-12.C: New test.
1225 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1227         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1229 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1231         PR middle-end/36106
1232         * testsuite/libgomp.c/atomic-5.c: New test.
1233         * testsuite/libgomp.c/atomic-6.c: New test.
1234         * testsuite/libgomp.c/autopar-1.c: New test.
1236 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1238         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1239         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1240         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1241         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1242         * configure: Regenerate.
1243         * Makefile.in, testsuite/Makefile.in: Likewise.
1245 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1247         PR bootstrap/35457
1248         * aclocal.m4: Regenerate.
1249         * configure: Regenerate.
1251 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1253         PR middle-end/35611
1254         * testsuite/libgomp.c/atomic-4.c: New test.
1256         PR libgomp/35625
1257         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1258         (gomp_iter_guided_next): Likewise.
1259         * testsuite/libgomp.c/pr35625.c: New test.
1261 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1263         * aclocal.m4: Regenerate.
1264         * configure: Likewise.
1265         * Makefile.in: Likewise.
1266         * testsuite/Makefile.in: Likewise.
1268 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1270         PR middle-end/35185
1271         * testsuite/libgomp.c++/pr35185.C: New test.
1273 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1275         PR middle-end/35549
1276         * testsuite/libgomp.c/pr35549.c: New test.
1278 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1280         * testsuite/libgomp.c/atomic-3.c: New test.
1282 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1284         PR fortran/33197
1285         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1286         .F08 file suffixes.
1288 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1290         PR libgomp/33131
1291         * configure.ac: Add ACX_HEADER_STRING.
1292         * env.c: Include strings.h.
1293         * aclocal.m4: Regenerate.
1294         * config.h.in: Regenerate.
1295         * configure: Regenerate.
1296         * Makefile.in: Regenerate.
1297         * testsuite/Makefile.in: Regenerate.
1299 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1301         PR middle-end/35196
1302         * testsuite/libgomp.c/pr35196.c: New test.
1304         PR middle-end/35130
1305         * testsuite/libgomp.fortran/pr35130.f90: New test.
1306         * testsuite/libgomp.c/pr35130.c: New test.
1308 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1310         PR middle-end/33880
1311         * testsuite/libgomp.c/pr33880.c: New test.
1312         * testsuite/libgomp.fortran/pr33880.f90: New test.
1314 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1316         * configure: Regenerate.
1318 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1320         * configure.ac: Move futex checking into ../config/futex.m4.
1321         * configure: Rebuilt.
1322         * aclocal.m4: Rebuilt.
1323         * Makefile.in: Rebuilt.
1325         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1326         2007-10-15 ../config/tls.m4 change.
1328 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1330         PR c++/34513
1331         * testsuite/libgomp.c/pr34513.c: New test.
1332         * testsuite/libgomp.c++/pr34513.C: New test.
1334 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1336         PR target/32765
1337         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1339 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1341         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1343 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1345         * testsuite/libgomp.c/private-1.c: New test.
1347 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1348             Paolo Bonzini  <bonzini@gnu.org>
1350         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1351         instead of 'VPATH ='.
1352         * Makefile.in: Regenerate.
1354 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1356         * configure.ac: Adjust makeinfo version check.
1357         * configure: Regenerate.
1359 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1361         PR fortran/34020
1362         * testsuite/libgomp.fortran/pr34020.f90: New test.
1364 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1366         PR c++/33894
1367         * testsuite/libgomp.c++/atomic-1.C: New test.
1369 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1371         PR libgomp/33275
1372         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1373         Make x and y integers rather than (implicit) reals.  Add private (j)
1374         clause to the last omp parallel.
1376 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1378         * configure: Regenerate following changes to ../config/tls.m4.
1380 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1382         * testsuite/libgomp.fortran/stack.f90: New test.
1384 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1386         * config/mingw32/proc.c: New file.
1388 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1390         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1391         (main): Use __get_cpuid to get i386 target fetaures.
1392         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1393         (main): Use __get_cpuid to get x86_64 target fetaures.
1395 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1397         PR target/32765
1398         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1399         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1401 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1403         PR fortran/32550
1404         * testsuite/libgomp.fortran/pr32550.f90: New test.
1405         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1407 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1409         * aclocal.m4: Regenerated.
1411 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1413         PR fortran/32359
1414         * testsuite/libgomp.fortran/pr32359.f90: New.
1416 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1418         PR libgomp/32468
1419         * sections.c (GOMP_parallel_sections_start): Only decrease
1420         number of threads to COUNT if dyn_var is true.
1421         * testsuite/libgomp.c/pr32468.c: New test.
1423 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1425         PR libgomp/26308
1426         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1428 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1430         PR middle-end/32362
1431         * testsuite/libgomp.c/pr32362-1.c: New test.
1432         * testsuite/libgomp.c/pr32362-2.c: New test.
1433         * testsuite/libgomp.c/pr32362-3.c: New test.
1435 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1437         * team.c (gomp_team_start): Fix setting up thread_attr
1438         stack size.
1440 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1442         * configure: Regenerate.
1444 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1446         * Makefile.in: Regenerate.
1447         * configure: Regenerate.
1448         * aclocal.m4: Regenerate.
1449         * testsuite/Makefile.in: Regenerate.
1451 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1453         * config/linux/proc.c: New file.
1455         PR libgomp/28482
1456         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1458 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1460         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1462 2007-04-16  Matthias Klose  <doko@debian.org>
1464         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1465         flags if not building with -m64.
1466         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1467         flag for i?86-*-* targets, if current target matches -m64.
1469 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1471         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1472         * Makefile.in: Regenerate.
1474 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1476         PR testsuite/31369
1477         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1478         ld_library_path.
1479         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1481 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1483         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1484         decls.
1485         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1486         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1487         (parse_affinity): New function.
1488         (initialize_env): Call it and gomp_init_affinity.
1489         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1490         create new pthread_attr_t and call gomp_init_thread_affinity
1491         on it for each thread before passing the attribute to pthread_create.
1492         * config/linux/affinity.c: New file.
1493         * config/posix/affinity.c: New file.
1494         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1495         * configure: Rebuilt.
1496         * config.h.in: Rebuilt.
1497         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1498         * Makefile.in: Rebuilt.
1500 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1502         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1503         *-*-darwin*.
1504         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1505         and use it if found.
1507 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1509         * testsuite/config/default.exp: New file.
1510         * testsuite/lib/libgomp.exp: New file.
1511         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1512         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1513         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1514         (libgomp_load): Remove.
1515         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1516         always_ld_library_path, not ld_library_path.  Set additional_flags
1517         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1518         (target_compile): Do not call libgomp_init.  Append lang_library_path
1519         and lang_link_flags to options.
1520         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1521         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1522         here.
1523         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1524         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1525         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1526         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1527         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1528         CX8 flag.
1529         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1530         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1531         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1532         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1533         * testsuite/libgomp.c/atomic-10.c: Ditto.
1535 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1537         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1538         dg-final cleanup-modules line.
1539         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1540         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1541         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1542         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1543         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1544         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1545         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1547 2007-03-18  Andreas Schwab  <schwab@suse.de>
1549         * acinclude.m4: Adjust regular expression for ld version
1550         extraction.
1551         * configure: Regenerate.
1553 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1555         * Makefile.am: Add install-pdf target as copied from
1556         automake v1.10 rules.
1557         * Makefile.in: Regenerate
1559 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1561         PR libgomp/28486
1562         * configure: Regenerate.
1564         PR c++/30703
1565         * testsuite/libgomp.c++/pr30703.C: New test.
1567 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1569         Revert:
1570         2006-07-05  Eric Christopher  <echristo@apple.com>
1571         * configure.ac: Depend addition of -pthread on host OS.
1572         * configure: Regenerate.
1574 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1576         * libgomp.texi: Fix spacing after abbreviations.
1578 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1580         PR libgomp/30546
1581         * configure.ac: Add check for makeinfo
1582         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1583         if an appropiate version of makeinfo is found.
1584         * aclocal.m4: Regenerated.
1585         * configure: Regenerated.
1586         * Makefile.in: Regenerated.
1587         * testsuite/Makefile.in: Regenerated.
1589 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1591         PR libgomp/30540
1592         * libgomp.texi: More about implementation-dependent settings.
1594 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1596         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1598 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1600         PR middle-end/30494
1601         * testsuite/libgomp.c/pr30494.c: New test.
1603 2007-01-15  Tom Tromey  <tromey@redhat.com>
1605         * configure: Rebuilt.
1606         * configure.ac: Fixed comment.
1608 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1610         * libgomp.texi: Document implementation specific default values of
1611         environment variables.
1613 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1615         PR libgomp/28209
1616         * libgomp.texi: New file.
1617         * configure.ac: Add --enable-generated-files-in-srcdir option.
1618         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1619         files to srcdir.
1620         * Makefile.in: Regenerated.
1621         * config.h.in: Regenerated.
1622         * testsuite/Makefile.in: Regenerated.
1623         * NOTES: Removed.
1625 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1627         PR libgomp/29949
1628         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1630 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1632         * configure: Regenerate.
1634 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1636         PR libgomp/29947
1637         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1638         start if there shouldn't be any loop iterations.
1639         (gomp_loop_ordered_static_start): Remove start == end test.
1640         * testsuite/libgomp.c/pr29947-1.c: New test.
1641         * testsuite/libgomp.c/pr29947-2.c: New test.
1643 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1645         * configure.tgt: Force initial-exec TLS model on Linux only.
1647 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1649         * configure: Regenerated.
1651 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1653         * env.c (parse_schedule): Reject out of range values.
1654         (parse_unsigned_long): Reject out of range, negative or zero values.
1656 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1658         PR fortran/29629
1659         * testsuite/libgomp.fortran/pr29629.f90: New test.
1661 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1663         PR libgomp/29494
1664         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1665         * config/posix95: New directory.
1666         * config/posix95/omp-lock.h: New file.
1667         * config/posix95/lock.c: Likewise.
1669 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1671         * aclocal.m4: Regenerate.
1672         * configure: Regenerate.
1674 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1676         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1677         '<' to '<='.
1679 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1681         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1682         test.
1683         * configure: Regenerate.
1684         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1686 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1688         PR middle-end/25261
1689         PR middle-end/28790
1690         * testsuite/libgomp.c/nestedfn-4.c: New test.
1691         * testsuite/libgomp.c/nestedfn-5.c: New test.
1692         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1694         PR fortran/29097
1695         * testsuite/libgomp.fortran/condinc1.f: New test.
1696         * testsuite/libgomp.fortran/condinc2.f: New test.
1697         * testsuite/libgomp.fortran/condinc3.f90: New test.
1698         * testsuite/libgomp.fortran/condinc4.f90: New test.
1699         * testsuite/libgomp.fortran/condinc1.inc: New file.
1701 2006-09-18  Tom Tromey  <tromey@redhat.com>
1703         * configure: Rebuilt.
1705 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1707         PR c/28768
1708         PR preprocessor/14634
1709         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1710         to AC_DEFINE.
1711         * configure: Regenerate.
1713 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1715         * testsuite/libgomp.fortran/reduction3.f90: Change
1716         -2147483648 to -huge(i)-1 to avoid overflow.
1717         * testsuite/libgomp.fortran/reduction4.f90: Change
1718         Z'ffffffff' to not(0) to avoid overflow.
1720 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1722         PR libgomp/25938
1723         * Makefile.am (libsubincludedir): New.
1724         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1725         * Makefile.in: Regenerate.
1727 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1729         PR libgomp/28725
1730         * env.c: Include ctype.h.
1731         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1732         leading and/or trailing whitespace and compare strings case
1733         insensitively.
1735 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1737         PR fortran/28390
1738         * testsuite/libgomp.fortran/pr28390.f: New test.
1740 2006-07-05  Eric Christopher  <echristo@apple.com>
1742         * configure.ac: Depend addition of -pthread on host OS.
1743         * configure: Regenerate.
1745 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1747         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1748         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1749         defined.
1751 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1753         PR libgomp/26175
1754         PR libgomp/26477
1755         * configure.ac: If neither --enable-linux-futex nor
1756         --disable-linux-futex is passed, determine the default by checking
1757         for compiling and/or running against NPTL.  With --enable-linux-futex,
1758         check if SYS_gettid and SYS_futex are defined.
1759         * configure: Rebuilt.
1761 2006-06-14  Richard Henderson  <rth@redhat.com>
1763         PR libgomp/28008
1764         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1765         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1767 2006-06-09  Richard Henderson  <rth@redhat.com>
1769         * env.c (gomp_nthreads_var): Change to unsigned long.
1770         (gomp_run_sched_chunk): Likewise.
1771         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1772         (initialize_env): Initialize gomp_thread_attr.
1773         * libgomp.h (gomp_nthreads_var): Update decl.
1774         (gomp_run_sched_chunk): Likewise.
1775         (gomp_thread_attr): Declare.
1776         * team.c (gomp_thread_attr): Export.
1777         (initialize_team): Don't initialize it.
1779 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
1781         PR fortran/27916
1782         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1783         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1785 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1787         * config/mingw32/time.c: New file.
1788         * configure.tgt: Use it.
1790 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1792         * Makefile.am: Add install-html target. Add install-html to .PHONY
1793         * Makefile.in: Regenerate.
1795 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1797         PR libgomp/27612
1798         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1799         * testsuite/libgomp.c/critical-1.c: Likewise.
1800         * testsuite/libgomp.c/loop-1.c: Likewise.
1801         * testsuite/libgomp.c/loop-2.c: Likewise.
1802         * testsuite/libgomp.c/single-1.c: Likewise.
1803         * testsuite/libgomp.c/ordered-1.c: Likewise.
1804         * testsuite/libgomp.c/ordered-2.c: Likewise.
1806 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1808         PR middle-end/27416
1809         * libgomp.fortran/pr27416-1.f90: New test.
1811 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
1813         PR fortran/27395
1814         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1815         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1817 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1819         PR c++/26943
1820         * testsuite/libgomp.c/pr26943-1.c: New test.
1821         * testsuite/libgomp.c/pr26943-2.c: New test.
1822         * testsuite/libgomp.c/pr26943-3.c: New test.
1823         * testsuite/libgomp.c/pr26943-4.c: New test.
1824         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1825         * testsuite/libgomp.c++/pr26943.C: New test.
1827 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1829         PR middle-end/27337
1830         * testsuite/libgomp.c++/pr27337.C: New test.
1832 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1834         PR c/26171
1835         * testsuite/libgomp.c/pr26171.c: New test.
1837 2006-04-25  Richard Henderson  <rth@redhat.com>
1839         PR libgomp/25865
1840         * configure.ac: Use GCC_CHECK_TLS.
1841         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1842         * Makefile.in, aclocal.m4, configure: Regenerate.
1844 2006-04-10  Matthias Klose  <doko@debian.org>
1846         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1847         directory names containing underscores.
1849 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1851         PR c++/26691
1852         * testsuite/libgomp.c++/pr26691.C: New test.
1854 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1856         * testsuite/libgomp.fortran/retval2.f90: New test.
1858 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1860         * testsuite/libgomp.c++: New directory.
1862 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
1864         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1865         * config/posix/sem.c: Implement the above.
1867 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
1869         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1870         define HAVE_BROKEN_POSIX_SEMAPHORES.
1871         * configure: Rebuilt.
1872         * config.h.in: Rebuilt.
1874 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1876         PR bootstrap/26161
1877         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1878         for the other pthread check.
1879         * configure: Regenerate.
1880         * config.h.in: Regenerate.
1882 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1884         PR libgomp/25938
1885         PR libgomp/25984
1886         * Makefile.am (fincludedir): New variable.
1887         (nodist_include_HEADERS): Remove Fortran files.
1888         (nodist_finclude_HEADERS): New variable.
1889         * Makefile.in: Regenerated.
1891 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1893         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1894         Remove tests for returning assumed character length arrays.
1896 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1897             John David Anglin  <dave@hiauly1.hia.nrc.ca>
1899         PR libgomp/25936
1900         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1902 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1904         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1906 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1908         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1909         part of LD_LIBRARY_PATH manually.
1911 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1913         PR libgomp/25852
1914         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1915         libgomp_init.
1917 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
1919         PR libgomp/25884
1920         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1921         * configure.ac (PERL): Don't set.
1922         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1923         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1924         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1925         * omp.h.in: Wrap the new configure substitutions with @ characters.
1926         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1927         * aclocal.m4, configure, Makefile.in: Regenerate.
1928         * mkomp_h.pl: Delete.
1930 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
1932         PR libgomp/25259
1933         * configure.ac: Use GCC_HEADER_STDINT.
1934         * libgomp.h: Include gstdint.h.
1935         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1936         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1938 2006-01-24  Richard Henderson  <rth@redhat.com>
1940         PR libgomp/25942
1941         * configure.ac: Add AM_MAINTAINER_MODE.
1942         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1944 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
1946         * Makefile.in: Regenerate.
1947         * testsuite/Makefile.in: Regenerate.
1948         * aclocal.m4: Regenerate.
1950 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
1952         * config/posix/proc.c: Conditional include of sys/loadavg.h for
1953         Solaris.
1954         * configure.ac: Add check for loadavg.h.
1955         (link_gomp): Adjust comment.
1956         * configure: Regenerate.
1957         * config.h.in: Regenerate.
1959 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
1961         PR libgomp/25877
1962         * configure.ac: Remove check for alloca.h.
1963         * configure: Regenerate.
1964         * config.h.in: Regenerate.
1965         * libgomp.h: define gomp_alloca to be __builtin_alloca.
1966         * team.c: Remove use of alloca.h.
1967         Call gomp_alloca instead of alloca.
1969 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
1971         PR libgomp/25877
1972         * team.c: Add include of alloca.h.
1973         * configure.ac: Add check for alloca.h.
1974         * configure: Regenerate.
1975         * config.h.in: Regenerate.
1977 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
1979         PR fortran/25219
1980         * testsuite/libgomp.fortran/pr25219.f90: New test.
1982 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
1984         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1985         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1986         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1987         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1988         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1989         testsuite/libgomp.fortran/threadprivate1.f90,
1990         testsuite/libgomp.fortran/threadprivate2.f90,
1991         testsuite/libgomp.fortran/threadprivate3.f90,
1992         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1993         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1994         testsuite/libgomp.fortran/omp_parse3.f90: Change required
1995         effective-target to TLS runtime.
1997         * testsuite/libgomp.fortran/pr25162.f: Require
1998         effective-target TLS runtime.
2000 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2002         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2003         * testsuite/libgomp.c/nestedfn-3.c: New test.
2005 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2007         PR fortran/25162
2008         * testsuite/libgomp.fortran/pr25162.f: New test.
2010 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2012         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2013         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2015 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2017         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2018         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2019         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2020         single.c, team.c, work.c, config/linux/alpha/futex.h,
2021         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2022         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2023         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2024         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2025         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2026         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2027         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2028         FSF address.
2030 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2032         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2033         to nodist_noinst_HEADERS.
2034         * Makefile.in: Rebuilt.
2036         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2037         add integer count field.
2038         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2039         omp_nest_lock_t type change.
2040         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2041         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2042         Increment count.
2043         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2044         Decrement count.
2045         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2046         Increment count if successful and return the new nesting level.
2047         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2048         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2049         * testsuite/libgomp.c/lib-1.c: New test.
2050         * testsuite/libgomp.fortran/lib1.f90: New test.
2051         * testsuite/libgomp.fortran/lib2.f: New test.
2052         * testsuite/libgomp.fortran/lib3.f: New test.
2054 2005-11-17  Richard Henderson  <rth@redhat.com>
2056         PR 24845
2057         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2058         * configure.ac (link_gomp): New.  Substitute it.
2059         (AC_CONFIG_FILES): Add libgomp.spec.
2060         * libgomp.spec.in: New file.
2061         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2062         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2064 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2066         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2067         reduction(-:var) behaving the same as reduction(+:var).
2068         * testsuite/libgomp.c/reduction-4.c: New test.
2070 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2072         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2073         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2074         testsuite/libgomp.c/copyin-3.c,
2075         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2076         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2077         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2078         testsuite/libgomp.c++/pr24455.C,
2079         testsuite/libgomp.fortran/threadprivate1.f90,
2080         testsuite/libgomp.fortran/threadprivate2.f90,
2081         testsuite/libgomp.fortran/threadprivate3.f90,
2082         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2083         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2084         testsuite/libgomp.fortran/omp_parse3.f90: Require
2085         effective-target TLS.
2087 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2089         * HEADER: Remove.
2091 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2093         PR libgomp/24797
2094         * team.c (initialize_team): Pass NULL rather than free as
2095         pthread_key_create destructor.  Initialize thread specific data
2096         pointer in initial thread to a static local variable rather than
2097         malloced memory.
2099 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2101         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2102         its location to ld_library_path.
2104 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2106         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2108 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2110         * testsuite/libgomp.c: Rename from libgomp.dg.
2112 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2114         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2115         threadprivate variable 'i'.
2117 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2119         * config/linux/s390/futex.h: New file.
2120         * configure.tgt: Use it.
2122         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2123         before the parallel.
2125 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2127         PR c++/24734
2128         * testsuite/libgomp.c++/master-1.C: New test.
2130 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2132         * testsuite/libgomp.dg/copyin-3.c: New test.
2134 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2136         * testsuite/libgomp.fortran/retval1.f90: New test.
2137         * testsuite/libgomp.fortran/vla7.f90: New test.
2139 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2141         * testsuite/libgomp.fortran/vla2.f90: New test.
2142         * testsuite/libgomp.fortran/vla3.f90: New test.
2143         * testsuite/libgomp.fortran/vla4.f90: New test.
2144         * testsuite/libgomp.fortran/vla5.f90: New test.
2145         * testsuite/libgomp.fortran/vla6.f90: New test.
2147 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2149         * config/linux/sparc/futex.h: New file.
2150         * configure.tgt: Use it.
2151         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2153         * critical.c: Include stdlib.h.
2154         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2155         ignoring return value.
2156         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2157         LIBGOMP_CHECK_SYNC_BUILTINS check.
2158         * configure: Rebuilt.
2160 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2162         * testsuite/libgomp.fortran/vla1.f90: New test.
2164 2005-10-31  Richard Henderson  <rth@redhat.com>
2166         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2167         setting 's' in different threads.
2169 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2171         * libgomp.h (attribute_hidden, ialias): Define.
2172         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2173         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2174         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2175         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2176         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2177         omp_test_lock, omp_test_nest_lock): Likewise.
2178         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2179         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2180         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2181         omp_test_lock, omp_test_nest_lock): Likewise.
2182         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2183         omp_get_dynamic, omp_get_nested): Likewise.
2184         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2185         omp_get_thread_num, omp_in_parallel): Likewise.
2186         * fortran.c (ialias_redirect): Define.
2187         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2188         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2189         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2190         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2191         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2192         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2193         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2194         omp_get_wtime): Add ialias_redirect.
2196 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2198         * fortran.c: Include stdlib.h.
2200 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2202         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2203         * Makefile.in: Regenerated.
2205 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2207         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2208         * libgomp_f.h.in (omp_check_defines): New function.
2209         * env.c: Include libgomp_f.h.
2210         (initialize_env): Call omp_check_defines.
2212         * testsuite/libgomp.dg/copyin-2.c: New test.
2213         * testsuite/libgomp.c++/copyin-2.C: New test.
2214         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2216         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2217         * testsuite/libgomp.fortran/sharing2.f90: New test.
2219         * testsuite/libgomp.dg/copyin-1.c: New test.
2220         * testsuite/libgomp.c++/copyin-1.C: New test.
2222 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2224         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2226         * testsuite/libgomp.fortran/workshare1.f90: New test.
2228         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2229         only test.
2230         * libgomp.fortran/sharing1.f90: New test.
2232 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2234         PR c++/24502
2235         * testsuite/libgomp.c++/loop-7.C: New test.
2237         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2239         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2240         * testsuite/libgomp.fortran/reduction6.f90: New test.
2241         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2243 2005-10-23  Richard Henderson  <rth@redhat.com>
2245         * testsuite/libgomp.c++/ctor-1.C: New.
2246         * testsuite/libgomp.c++/ctor-2.C: New.
2247         * testsuite/libgomp.c++/ctor-3.C: New.
2248         * testsuite/libgomp.c++/ctor-4.C: New.
2249         * testsuite/libgomp.c++/ctor-5.C: New.
2250         * testsuite/libgomp.c++/ctor-6.C: New.
2251         * testsuite/libgomp.c++/ctor-7.C: New.
2252         * testsuite/libgomp.c++/ctor-8.C: New.
2253         * testsuite/libgomp.c++/ctor-9.C: New.
2255 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2257         PR 24455
2258         * testsuite/libgomp.c++/pr24455-1.C: New test.
2259         * testsuite/libgomp.c++/pr24455.C: New test.
2260         * testsuite/libgomp.dg/pr24455-1.c: New test.
2261         * testsuite/libgomp.dg/pr24455.c: New test.
2263 2005-10-20  Richard Henderson  <rth@redhat.com>
2265         * testsuite/libgomp.c++/loop-6.C: New.
2266         * testsuite/libgomp.dg/loop-3.c: New.
2268 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2270         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2271         explicitly private.
2272         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2273         explicitly shared.
2275 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2277         * testsuite/libgomp.fortran/jacobi.f: New test.
2279 2005-10-19  Richard Henderson  <rth@redhat.com>
2281         * configure.tgt (i?86-linux): Default to with_arch instead of
2282         CFLAGS.  Add -mtune to match target_cpu.
2283         (x86_64-linux): Tune to i686.
2285         * fortran.c (omp_test_nest_lock_): Fix typo.
2287 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2289         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2290         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2291         * testsuite/libgomp.dg/ordered-3.c: New test.
2293         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2294         Remove volatile keyword.
2296         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2297         in COMMON block to avoid warnings on 64-bit targets.
2299 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2301         * testsuite/libgomp.dg/shared-3.c: New test.
2303 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2305         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2306         * testsuite/libgomp.fortran/reduction5.f90: New test.
2308 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2310         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2311         dg-options.
2312         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2313         flush loop now that __sync_synchronize has proper memory barrier.
2314         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2315         Add -ffixed-form to dg-options.
2317 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2319         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2320         from subdirectories.
2321         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2322         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2323         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2324         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2325         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2326         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2327         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2328         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2329         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2330         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2331         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2332         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2333         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2334         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2335         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2336         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2337         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2338         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2339         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2340         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2341         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2342         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2343         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2344         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2345         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2347 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2349         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2350         lang_library_path exists.  Use find instead of glob to gather tests.
2351         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2353 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2355         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2356         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2357         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2358         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2359         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2360         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2361         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2362         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2363         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2364         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2365         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2366         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2367         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2369 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2371         * testsuite/libgomp.dg/vla-1.c: New test.
2373         * testsuite/libgomp.fortran/reference2.f90: New test.
2375         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2376         declaration of omp_get_thread_num.
2377         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2378         use omp_lib.
2380         * testsuite/libgomp.fortran/reduction1.f90: New test.
2381         * testsuite/libgomp.fortran/reduction2.f90: New test.
2382         * testsuite/libgomp.fortran/reduction3.f90: New test.
2383         * testsuite/libgomp.fortran/reduction4.f90: New test.
2385 2005-10-13  Richard Henderson  <rth@redhat.com>
2387         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2388         * Makefile.in: Regenerate.
2389         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2390         * libgomp.h: Include bar.h.
2391         (struct gomp_barrier): Remove.
2392         (struct gomp_team): Add barrier.  Replace master_barrier with
2393         master_release.  Replace threads with ordered_release.
2394         (struct gomp_thread): Replace barrier with release.
2395         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2396         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2397         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2398         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2399         (GOMP_single_copy_end): Likewise.
2400         * team.c (gomp_threads_dock): New.
2401         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2402         (gomp_thread_start): Use gomp_barrier_wait.
2403         (new_team, free_team): Update for gomp_team changes.
2404         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2405         (gomp_team_end): Use gomp_barrier_wait.
2406         (initialize_team): Update for gomp_thread changes.
2407         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2408         (gomp_work_share_end_nowait): Use atomic ops when available.
2409         * config/linux/bar.c, config/linux/bar.h: New files.
2410         * config/posix/bar.c, config/posix/bar.h: New files.
2412 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2414         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2415         * testsuite/libgomp.dg/single-2.c: New test.
2417         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2418         lang_link_flags): Unset, so that they aren't inherited from previously
2419         sourced *.exp.
2421         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2423 2005-10-12  Richard Henderson  <rth@redhat.com>
2425         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2426         (libgomp_init): Use lang_test_file, lang_library_path, and
2427         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2429         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2430         (lang_test_file, lang_link_flags): New.
2431         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2433         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2434         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2435         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2436         testsuite/libgomp.c++/parallel-1.C,
2437         testsuite/libgomp.c++/reduction-1.C,
2438         testsuite/libgomp.c++/reduction-2.C,
2439         testsuite/libgomp.c++/reduction-3.C,
2440         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2441         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2442         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2443         New files, largely cribbed from the C testsuite.
2445 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2447         * testsuite/libgomp.fortran/character1.f90: New test.
2448         * testsuite/libgomp.fortran/character2.f90: New test.
2450         * testsuite/libgomp.dg/nested-1.c: New test.
2451         * testsuite/libgomp.dg/nested-2.c: New test.
2452         * testsuite/libgomp.fortran/do1.f90: New test.
2453         * testsuite/libgomp.fortran/do2.f90: New test.
2455         * testsuite/libgomp.fortran/reference1.f90: New test.
2457 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2459         * testsuite/libgomp.dg/reduction-1.c: New test.
2460         * testsuite/libgomp.dg/reduction-2.c: New test.
2461         * testsuite/libgomp.dg/reduction-3.c: New test.
2463 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2465         * testsuite/libgomp.dg/atomic-1.c: New test.
2466         * testsuite/libgomp.dg/atomic-2.c: New test.
2468 2005-10-09  Richard Henderson  <rth@redhat.com>
2470         * critical.c (atomic_lock): New.
2471         (initialize_critical): Initialize it.
2472         (GOMP_atomic_start, GOMP_atomic_end): New.
2473         * libgomp.map: Export them.
2474         * libgomp_g.h: Declare them.
2476         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2478 2005-10-02  Richard Henderson  <rth@redhat.com>
2480         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2481         to XCFLAGS instead of CFLAGS.
2483 2005-09-30  Richard Henderson  <rth@redhat.com>
2485         * configure.ac: Determine whether -pthread or -lpthread is needed.
2486         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2487         * Makefine.in, configure: Rebuild.
2489 2005-09-28  Richard Henderson  <rth@redhat.com>
2491         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2492         * testsuite/libgomp.dg/omp-single-3.c: New test.
2494 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2496         * testsuite/libgomp.dg/omp-single-2.c: New test.
2497         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2499 2005-09-27  Richard Henderson  <rth@redhat.com>
2501         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2502         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2504 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2506         * testsuite/libgomp.dg/omp-loop03.c: New test.
2508 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2510         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2512 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2514         * testsuite/libgomp.dg/omp-single-1.c: New test.
2515         * testsuite/libgomp.dg/shared-1.c: Return 0.
2516         Add prototype for abort.
2517         * testsuite/libgomp.dg/shared-2.c: Likewise.
2519 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2521         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2522         constructs.
2524 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2526         * testsuite/libgomp.dg/shared-1.c: New test.
2527         * testsuite/libgomp.dg/shared-2.c: New test.
2529 2005-09-24  Richard Henderson  <rth@redhat.com>
2531         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2533 2005-09-24  Richard Henderson  <rth@redhat.com>
2535         * iter.c (gomp_iter_static_next): Round up when computing number
2536         of iterations.  Don't bother distributing a remainder equally.
2538         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2539         Don't call srand.  Zero b before testing.
2540         (main): New.
2542 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2544         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2545         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2547 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2549         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2550         without !$omp end do, followed immediately by subroutine end.
2552 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2554         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2556 2005-09-22  Richard Henderson  <rth@redhat.com>
2558         * critical.c (GOMP_critical_name_start): Change argument to void**.
2559         Reuse the pointer space if the mutex fits.
2560         (GOMP_critical_name_end): Likewise.
2561         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2562         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2563         (GOMP_critical_name_end): Likewise.
2564         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2565         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2567 2005-09-20  Richard Henderson  <rth@redhat.com>
2569         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2570         (create_lock_lock): New.
2571         (initialize_critical): Initialize it.
2572         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2573         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2575 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2577         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2579 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2581         * testsuite/libgomp.dg/omp-loop01.c: New test.
2582         * testsuite/libgomp.dg/omp-loop02.c: New test.
2584 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2586         * configure.ac (AC_PROG_FC): Add.
2587         (USE_FORTRAN): New automake conditional.
2588         * configure: Rebuilt.
2589         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2590         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2591         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2592         Add rules to build them.
2593         * Makefile.in: Rebuilt.
2594         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2595         OMP_NEST_LOCK_KIND.
2596         * libgomp.map: Add Fortran wrappers.
2597         * libgomp_f.h.in: New file.
2598         * omp_lib.h.in: New file.
2599         * omp_lib.f90.in: New file.
2600         * fortran.c: New file.
2601         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2602         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2603         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2604         libgfortran has been built.
2605         * testsuite/libgomp.fortran/fortran.exp: New file.
2606         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2607         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2608         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2609         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2610         * testsuite/libgomp.fortran/omp_hello.f: New test.
2611         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2612         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2613         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2614         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2615         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2616         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2617         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2618         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2620 2005-08-30  Richard Henderson  <rth@redhat.com>
2622         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2623         function for when aliases are not usable.
2624         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2625         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2626         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2627         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2628         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2629         GOMP_loop_ordered_guided_next): Likewise.
2630         * ordered.c (GOMP_ordered_start): Likewise.
2632 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2634         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2635         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2636         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2637         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2638         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2639         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2640         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2641         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2642         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2644 2005-07-07  Eric Christopher  <echristo@redhat.com>
2645             Diego Novillo  <dnovillo@redhat.com>
2647         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2648         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2649         up code.
2650         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2651         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2652         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2653         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2654         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2655         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2656         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2658 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2660         * TOPLEVEL.patch: Remove.
2662 2005-05-16  Richard Henderson  <rth@redhat.com>
2664         * configure.ac: Test for clock_gettime.
2665         * config.h.in, configure: Rebuild.
2666         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2667         (omp_get_wtime): Use clock_gettime if available.
2668         (omp_get_wtick): Use clock_getres if available.
2670 2005-05-11  Richard Henderson  <rth@redhat.com>
2672         * config/linux/ia64/futex.h: New file.
2673         * configure.tgt: Use it.
2675         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2677 2005-05-07  Richard Henderson  <rth@redhat.com>
2679         * config/linux/powerpc/futex.h: New file.
2680         * configure.tgt: Use it.
2682         * config/linux/i486/futex.h: Merge ...
2683         * config/linux/x86_64/futex.h: ... into ...
2684         * config/linux/x86/futex.h: ... here.
2685         * configure.tgt: Update to match.
2687 2005-05-06  Richard Henderson  <rth@redhat.com>
2689         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2690         * config/linux/i486/futex.h: Likewise.
2691         * config/linux/x86_64/futex.h: Likewise.
2693         * config/linux/lock.c: New file.
2694         * config/linux/omp-lock.h: New file.
2696         * critical.c, env.h: Don't include omp.h
2697         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2698         * config/posix/time.c: Likewise.
2699         * config/posix/omp-lock.h: New file.
2700         * libgomp.h: Include omp-lock.h and omp.h.
2701         * Makefile.am (nodist_include_HEADERS): New.
2702         (omp.h): New rule.
2703         * configure.ac (PERL): New.
2704         * mkomp_h.pl: New file.
2705         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2706         with templates.
2707         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2709         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2710         build directory.  Re-add -march=i486 hack.
2712         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2713         (libgomp_link_flags): Remove.
2714         (libgomp_initialized): Remove.
2715         (libgomp_init): Don't protect from reinitialization.  Copy code
2716         from libstdc++ for getting the multilib set correctly.
2718 2005-05-05  Richard Henderson  <rth@redhat.com>
2720         * config/linux/alpha/futex.h: New file.
2721         * configure.tgt (alpha*-*-linux*): Use it.
2723         * config/posix/mutex.c: New file.
2724         * config/posix/sem.c: Use libgomp.h.
2726         * configure.tgt (x86_64-linux): Also test CC for -m32.
2727         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2729         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2730         after $gccpath.
2732         * Makefile.am (SUBDIRS): New.
2733         (libgomp_la_LDFLAGS): Add -lpthread.
2734         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2735         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2737         * libgomp_g.h: New file.
2738         * libgomp.h: Split out all public declarations to libgomp_g.h.
2739         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2740         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2741         * config/linux/sem.h: Likewise.
2742         * config/posix/sem.h: Likewise.
2744         * Makefile.am (AM_LDFLAGS): New.
2745         (libgomp_version_script): Split out from ...
2746         (libgomp_la_LDFLAGS): ... here.
2747         (libgomp_version_info): New.
2748         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2749         (LIBGOMP_ENABLE): New.
2750         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2751         (LIBGOMP_ENABLE_SYMVERS): New.
2752         * configure.ac (AC_INIT): Version 1.0.
2753         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2754         (enable-linux-futex): Likewise.  Rename from enable-futex.
2755         (libtool_VERSION): New.
2756         (LIBGOMP_ENABLE_SYMVERS): Use it.
2757         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2758         * Makefile.in, aclocal.m4, configure: Rebuild.
2760         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2761         (gomp_mutex_unlock_slow): Fix typo.
2762         * config/linux/sem.c: Similarly.
2763         (gomp_sem_post_slow): Fix typo.
2764         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2765         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2766         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2768         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2769         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2770         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2771         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2772         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2773         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2774         LDFLAGS.  Pull enable_futex check to top-level.
2775         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
2776         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2778         First attempt at real configury.
2779         * Makefile, config.h: Remove file.
2780         * Makefile.am, Makefile.in: New file.
2781         * acinclude.m4 aclocal.m4: New file.
2782         * configure.ac, configure.tgt, configure: New file.
2784         * config/posix/lock.c: Rename from sys-lock.c.
2785         * config/posix/mutex.h: Rename from sys-mutex.h.
2786         * config/posix/sem.c: Rename from sys-sem.c.
2787         * config/posix/sem.h: Rename from sys-sem.h.
2788         * config/posix/proc.c: Rename from sys-proc.c.
2789         * config/posix/time.c: Rename from sys-proc.c.
2791         * config/linux/mutex.c: New file.
2792         * config/linux/mutex.h: New file.
2793         * config/linux/sem.c: New file.
2794         * config/linux/sem.h: New file.
2795         * config/linux/i486/futex.h: New file.
2796         * config/linux/x86_64/futex.h: New file.
2798 2005-05-04  Richard Henderson  <rth@redhat.com>
2800         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2801         * libgomp.h: Declare them.
2802         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2803         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2805 2005-05-04  Richard Henderson  <rth@redhat.com>
2807         * libgomp-1 code drop
2809 2005-05-04  Richard Henderson  <rth@redhat.com>
2811         * iter.c (gomp_iter_static_next): Return tri-state on 0.
2812         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2813         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2814         (gomp_iter_static_next): Update.
2815         (gomp_ordered_static_next): Update.
2816         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2817         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
2818         totally empty range.
2819         (gomp_loop_ordered_static_next): Refine test for calling
2820         gomp_ordered_static_next.
2821         * testsuite/ordered-1.c: Add case for more threads than iterations.
2823         * iter.c (gomp_iter_runtime_next_locked): Remove.
2824         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2825         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2826         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2827         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2828         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2829         gomp_loop_ordered_guided_next): Downcase name, make static, add
2830         an external alias with the old name.
2831         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2832         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2833         switch and call one of the above static functions.
2834         * libgomp.h: Update.
2836         * work.c (gomp_work_share_start): Lock the mutex for !first too.
2837         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2838         GOMP_loop_guided_start, GOMP_loop_runtime_start,
2839         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2840         GOMP_loop_ordered_guided_start): Update to match.
2841         * sections.c (GOMP_sections_start): Likewise.
2842         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2844         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2845         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2846         Use bounds check instead of modulus.
2847         (gomp_ordered_sync): Split out of GOMP_ordered_start.
2848         (gomp_ordered_last): Don't sync with ordered_owner here.
2849         (gomp_ordered_next): Likewise.
2850         (gomp_ordered_static_loop_next): Likewise.
2851         * loop.c, libgomp.h: Update to match.
2853         * libgomp.h (GOMP_barrier): Declare.
2855         * testsuite/barrier-1.c: New file.
2856         * testsuite/critical-1.c: New file.
2857         * testsuite/ordered-2.c: New file.
2858         * testsuite/ordered-1.c: New file.
2859         * testsuite/sections-1.c: New file.
2860         * testsuite/single-1.c: New file.
2861         * testsuite/Makefile (TESTS): Add them.
2863 2005-05-04  Richard Henderson  <rth@redhat.com>
2865         * libgomp.h (struct gomp_work_share): Add ordered_owner.
2866         * loop.c (GOMP_loop_static_start): If not the startup thread,
2867         acquire the mutex to wait for initialization complete.
2868         (GOMP_loop_ordered_static_start): Likewise.
2869         (GOMP_loop_ordered_runtime_start): Likewise.
2870         (GOMP_loop_ordered_static_first): Remove.
2871         (GOMP_loop_ordered_dynamic_first): Remove.
2872         (GOMP_loop_ordered_guided_first): Remove.
2873         (GOMP_loop_ordered_runtime_first): Remove.
2874         * ordered.c (gomp_ordered_loop_first): Post to own release when
2875         we're the first thread.
2876         (gomp_ordered_loop_last): Wait on release if not owner.
2877         (gomp_ordered_loop_next): Likewise.
2878         (gomp_ordered_static_loop_init): New.
2879         (gomp_ordered_static_loop_next): Use ordered_owner.
2880         (GOMP_ordered_start): Likewise.
2881         * work.c (gomp_new_work_share): Initialize ordered_owner.
2883 2005-05-03  Richard Henderson  <rth@redhat.com>
2885         * Makefile (OPT): New.
2886         (CFLAGS): Use it.
2888         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2889         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2890         * libgomp.h, libgomp.map, NOTES: Update to match.
2892         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2893         Add initialized and thr members.
2894         (gomp_thread_start): Pause when initially spawned to wait for
2895         the whole team to be created.
2896         (gomp_team_start): Release team members at the end.
2898         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
2899         (f_foo_1): Use GOMP_loop_end.
2900         (f_foo_2): Use GOMP_loop_end_nowait.
2902         * testsuite/loop-2.c: New file.
2903         * testsuite/Makefile (TESTS): Add it.
2905 2005-05-03  Richard Henderson  <rth@redhat.com>
2907         * iter.c (gomp_iter_static_next): Fix overflow check typo.
2908         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2909         * team.c (new_team): Initialize oldest_live_gen to 1 if no
2910         initial work_share.
2912         * testsuite/Makefile: New file.
2913         * testsuite/loop-1.c: New file.
2915 2005-05-03  Richard Henderson  <rth@redhat.com>
2917         Initial implementation and checkin.