re PR c++/44625 (ICE after error: anonymous struct not inside named type)
[official-gcc.git] / libgomp / ChangeLog
blob1d93273b919042e3797e634353363064e7d3afa6
1 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3         PR libgomp/49490
4         * iter.c (gomp_iter_static_next): For chunk size 0
5         only use n ceil/ nthreads size for the first
6         n % nthreads threads in the team instead of
7         all threads except for the last few ones which
8         get less work or none at all.
9         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
11         chunk argument, set run_sched_modifier to 0 for static
12         resp. 1 for other kinds.  If chunk argument is 0
13         and not static, set value to 1.
15 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17         PR c++/49043
18         * testsuite/libgomp.c++/pr49043.C: New test.
20         PR c++/48869
21         * testsuite/libgomp.c++/pr48869.C: New test.
23 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
25         PR fortran/48894
26         * fortran.c: Include limits.h.
27         (TO_INT): Define.
28         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
29         *set.
30         (omp_set_num_threads_8_, omp_set_schedule_8_,
31         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
32         omp_get_team_size_8_): Use TO_INT macro.
33         * testsuite/libgomp.fortran/pr48894.f90: New test.
35 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
37         PR middle-end/48591
38         * testsuite/libgomp.c/pr48591.c: New test.
40 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42         PR bootstrap/48135
43         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
44         * configure: Regenerate.
46 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
48         PR fortran/47886
49         * testsuite/libgomp.fortran/task3.f90: New test.
51 2011-02-24  Tobias Burnus  <burnus@net-b.de>
53         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
55 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
57         PR libgomp/47854
58         * libgomp.texi (omp_get_wtime): Don't say time in the past
59         must be Unix Epoch.
61 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
63         PR libgomp/47804
64         * testsuite/libgomp.fortran/fortran.exp: Check for both
65         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
66         but $blddir != "", still append ${blddir}/${lang_library_path}
67         to ld_library_path.
69 2011-02-16  Tobias Burnus  <burnus@net-b.de>
71         PR libgomp/47758
72         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
73         of libquadmath.a before adding its libpath to ldflags.
75 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
77         PR libgomp/47731
78         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
79         to FUTEX_WAIT futex syscall.
80         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
82 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84         * configure: Regenerate.
86 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
88         PR libstdc++/36104
89         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
91 2011-01-16  Gerald Pfeifer
93         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
95 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
97         PR fortran/46874
98         * libgomp.fortran/allocatable6.f90: New test.
100 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
102         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
103         * configure: Regenerate.
105 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
107         PR target/40125
108         PR lto/46695
109         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
110         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
111         * aclocal.m4: Regenerate.
112         * configure: Regenerate.
113         * Makefile.in: Regenerate.
114         * testsuite/Makefile.in: Regenerate.
116 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
118         PR fortran/46753
119         * libgomp.fortran/pr46753.f90: New test.
121         PR libgomp/43706
122         * env.c (initialize_env): Default to spin count 300000
123         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
124         is specified.
126         PR libgomp/45240
127         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
128         at the end if sync builtins aren't supported.
130 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
132         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
134 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
136         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
138 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
140         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
142 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
143             Tobias Burnus  <burnus@net-b.de>
145         PR fortran/32049
146         * configure.ac: 
147         * configure: Regenerate.
149 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
151         * config/linux/futex.h: New.
152         * config/linux/arm/mutex.h: New.
153         * configure.tgt (arm*-*-linux*): Add config path.
155 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
157         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
159 2010-09-23  Tobias Burnus  <burnus@net-b.de>
161         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
162         Change Fortran datatype to LOGICAL.
163         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
164         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
166 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
168         * configure: Regenerate.
170 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
172         * libgomp.texi: Add function keyword to a couple of Fortran
173         interfaces, use integer instead of int for Fortran.
175 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
177         * libgomp.texi: Fix spelling and pasto problems throughout.
178         Adjust prototypes to match code.
180 2010-07-24  Tobias Burnus  <burnus@net-b.de>
182         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
183         silence -fwhole-file warning.
185 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
187         * configure.tgt (*-*-solaris2.[56]*): Removed.
189 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
191         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
192         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
193         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
194         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
195         targetting solaris2*.
196         * configure: Regenerate.
197         * config.h.in: Regenerate.
199         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
200         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
201         Add libgomp_version_dep.
202         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
203         versioning.
204         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
205         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
206         * Makefile.in: Regenerate.
208         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
209         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
210         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
211         to common block, protected by
212         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
214 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
216         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
218 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
220         PR bootstrap/43170
221         * configure: Regenerate.
223 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
225         PR other/43620
226         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
227         * configure: Regenerate.
228         * Makefile.in: Regenerate.
229         * testsuite/Makefile.in: Regenerate.
231 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
233         PR c/43893
234         * testsuite/libgomp.c/pr43893.c: New test.
235         * testsuite/libgomp.c++/pr43893.C: New test.
237 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
239         PR middle-end/43570
240         * testsuite/libgomp.fortran/vla8.f90: New test.
242 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
244         PR libgomp/43706
245         * config/linux/affinity.c (gomp_init_affinity): Decrease
246         gomp_available_cpus if affinity mask confines the process to fewer
247         CPUs.
248         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
249         non-NULL, just return gomp_available_cpus.
251         PR libgomp/43569
252         * sections.c (gomp_sections_init): Initialize ws->mode.
254 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
256         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
257         not unused bar variable.
258         * configure: Regenerate.
260 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
262         * Makefile.in: Regenerate.
263         * aclocal.m4: Regenerate.
264         * testsuite/Makefile.in: Regenerate.
266 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
268         PR libgomp/42942
269         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
270         (initialize_env): Adjust callers.
271         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
272         when the argument is 0.
274         * testsuite/libgomp.c/pr42942.c: New test.
276 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
278         PR middle-end/42644
279         PR middle-end/42130
280         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
281         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
283 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
285         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
286         * testsuite/libgomp.c++/task-6.C: Likewise.
288 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
290         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
292 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
294         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
295         * configure: Regenerate.
297 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
299         PR fortran/42866
300         * testsuite/libgomp.fortran/allocatable5.f90: New test.
302 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
304         * configure.ac: Test for executability of GFORTRAN.
305         * configure: Regenerate.
307 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
309         * configure: Regenerate.
311 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
313         PR libgomp/42602
314         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
316 2010-01-03  Richard Guenther  <rguenther@suse.de>
318         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
320 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
322         * testsuite/libgomp.graphite/pr4118.c: New.
324 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
326         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
327         for darwin, protect the test with require-effective-target tls_runtime.
328         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
330 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
332         PR target/41605
333         * testsuite/lib/libgomp.exp: Provide -B options to allow for
334         link spec %s substitutions for static libraries.
336 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
338         PR testsuite/42135
339         * libgomp.graphite/force-parallel-2.c: Reduce array size.
341 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
343         * Makefile.in: Regenerate.
344         * configure: Regenerate.
345         * testsuite/Makefile.in: Regenerate.
347 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
349         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
350         settings for LC_ALL and LANG.
352 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
354         PR fortran/42162
355         * testsuite/libgomp.fortran/pr42162.f90: New test.
357 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
359         PR middle-end/42029
360         * testsuite/libgomp.c/pr42029.c: New test.
362 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
364         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
365         *s.  Accept ld version without text in ()s.
366         * configure: Regenerated.
368 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
370         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
372 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
374         PR libgomp/41418
375         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
376         or a hyphen (happens with fortran language disabled).
377         * configure: Regenerate.
379 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
381         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
382         use sed script portable to Solaris /bin/sed for extracting ld
383         version.
384         * configure: Regenerate.
386 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
388         * testsuite/libgomp.graphite/bounds.c: New test.
390 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
392         * Makefile.am (libgomp_la_LINK): New.
393         * Makefile.in: Regenerate.
395 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
397         * configure.ac (AC_PREREQ): Bump to 2.64.
399 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
401         * Makefile.am (install-html, install-pdf): Remove.
402         * Makefile.in: Regenerate.
404         * Makefile.in: Regenerate.
405         * aclocal.m4: Regenerate.
406         * config.h.in: Regenerate.
407         * configure: Regenerate.
408         * testsuite/Makefile.in: Regenerate.
410 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
412         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
413         * Makefile.in: Regenerate.
415 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
417         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
418         * Makefile.in: Regenerate.
420 2009-08-19  Tobias Burnus  <burnus@net-b.de>
422         PR fortran/41102
423         omp_lib.h.in: Fix -std=f95 errors.
426 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
428         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
429         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
430         * testsuite/libgomp.graphite/graphite.exp: New.
432 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
434         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
435         only build.
437 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
439         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
440         needed memory barrier semantics.
441         * config/linux/mips/mutex.h: New file.
443 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
445         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
447 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
449         * configure: Regenerate.
451 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
453         PR testsuite/40699
454         PR testsuite/40707
455         PR testsuite/40709
456         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
457         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
458         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
460 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
462         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
463         options when choosing a multilib.
465 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
467         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
468         ld_library_path.  Use add_path.  Add just find_libgcc_s to
469         ld_library_path, not every libgcc multilib directory.
470         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
471         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
472         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
473         Use add_path.
474         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
476 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
478         * Makefile.am (LTLDFLAGS): Define.
479         (LINK): Define.
480         * Makefile.in: Regenerate.
482 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
484         PR fortran/39718
485         * testsuite/libgomp.fortran/fortran.exp: Don't link with
486         libgfortranbegin, check existence of libgfortran.a instead of
487         libgfortranbegin.a.
489 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
491         PR libgomp/40174
492         * team.c (gomp_thread_start): Destroy thr->release semaphore.
493         (gomp_free_pool_helper): Likewise.
495 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
496             Jakub Jelinek  <jakub@redhat.com>
498         PR fortran/35423
499         * testsuite/libgomp.fortran/workshare2.f90: New test.
501 2009-04-09  Nick Clifton  <nickc@redhat.com>
503         * iter.c: Change copyright header to refer to version 3 of the
504         GNU General Public License with version 3.1 of the GCC Runtime
505         Library Exception and to point readers at the COPYING3 and
506         COPYING3.RUNTIME files and the FSF's license web page.
507         * alloc.c: Likewise.
508         * barrier.c: Likewise.
509         * config/bsd/proc.c: Likewise.
510         * config/linux/affinity.c: Likewise.
511         * config/linux/alpha/futex.h: Likewise.
512         * config/linux/bar.c: Likewise.
513         * config/linux/bar.h: Likewise.
514         * config/linux/ia64/futex.h: Likewise.
515         * config/linux/ia64/mutex.h: Likewise.
516         * config/linux/lock.c: Likewise.
517         * config/linux/mips/futex.h: Likewise.
518         * config/linux/mutex.c: Likewise.
519         * config/linux/mutex.h: Likewise.
520         * config/linux/powerpc/futex.h: Likewise.
521         * config/linux/proc.c: Likewise.
522         * config/linux/ptrlock.c: Likewise.
523         * config/linux/ptrlock.h: Likewise.
524         * config/linux/s390/futex.h: Likewise.
525         * config/linux/sem.c: Likewise.
526         * config/linux/sem.h: Likewise.
527         * config/linux/sparc/futex.h: Likewise.
528         * config/linux/wait.h: Likewise.
529         * config/linux/x86/futex.h: Likewise.
530         * config/mingw32/proc.c: Likewise.
531         * config/mingw32/time.c: Likewise.
532         * config/posix/affinity.c: Likewise.
533         * config/posix/bar.c: Likewise.
534         * config/posix/bar.h: Likewise.
535         * config/posix/lock.c: Likewise.
536         * config/posix/mutex.h: Likewise.
537         * config/posix/proc.c: Likewise.
538         * config/posix/ptrlock.h: Likewise.
539         * config/posix/sem.c: Likewise.
540         * config/posix/sem.h: Likewise.
541         * config/posix/time.c: Likewise.
542         * config/posix95/lock.c: Likewise.
543         * critical.c: Likewise.
544         * env.c: Likewise.
545         * error.c: Likewise.
546         * fortran.c: Likewise.
547         * iter_ull.c: Likewise.
548         * libgomp.h: Likewise.
549         * libgomp_f.h.in: Likewise.
550         * libgomp_g.h: Likewise.
551         * loop.c: Likewise.
552         * loop_ull.c: Likewise.
553         * omp.h.in: Likewise.
554         * omp_lib.f90.in: Likewise.
555         * omp_lib.h.in: Likewise.
556         * ordered.c: Likewise.
557         * parallel.c: Likewise.
558         * sections.c: Likewise.
559         * single.c: Likewise.
560         * task.c: Likewise.
561         * team.c: Likewise.
562         * work.c: Likewise.
564 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
566         * testsuite/config/default.exp: Change copyright header to refer to
567         version 3 of the GNU General Public License and to point readers
568         at the COPYING3 file and the FSF's license web page.
570 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
572         PR middle-end/39573
573         * libgomp.c++/pr39573.C: New test.
575 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
577         PR other/39591
578         * testsuite/libgomp.c/pr39591-1.c: New test.
579         * testsuite/libgomp.c/pr39591-2.c: New test.
580         * testsuite/libgomp.c/pr39591-3.c: New test.
582 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
584         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
585         * testsuite/libgomp.c/atomic-6.c: Ditto.
587 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
589         PR c/39495
590         * testsuite/libgomp.c/loop-12.c: New test.
591         * testsuite/libgomp.c/loop-11.c: New test.
592         * testsuite/libgomp.c++/loop-11.C: New test.
593         * testsuite/libgomp.c++/loop-12.C: New test.
594         * testsuite/libgomp.c++/for-8.C: New test.
596 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
598         * configure: Regenerate.
600 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
602         PR middle-end/39154
603         * testsuite/libgomp.c/pr39154.c: New test.
605 2009-01-30  Ian Lance Taylor  <iant@google.com>
607         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
608         libgomp_ld_is_gold.  Get gold version number.
609         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
610         * configure: Rebuild.
612 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
614         * testsuite/lib/libgomp.exp: Add -B option for targets that
615         use libgfortran.a%s in their specs.
617 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
619         PR libgomp/38086
620         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
621         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
622         HAVE_AS_SYMVER_DIRECTIVE is not defined.
623         * configure: Regenerated.
624         * config.h.in: Likewise.
626 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
628         PR c++/38650
629         * testsuite/libgomp.c/pr38650.c: New test.
630         * testsuite/libgomp.c++/pr38650.C: New test.
632 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
634         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
636 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
638         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
640 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
642         * configure: Regenerate.
644 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
646         PR middle-end/36802
647         * testsuite/libgomp.c/pr36802-1.c: New test.
648         * testsuite/libgomp.c/pr36802-2.c: New test.
649         * testsuite/libgomp.c/pr36802-3.c: New test.
651 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
653         PR libgomp/38270
654         * config/linux/powerpc/mutex.h: New.
656 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
658         PR c++/38257
659         * testsuite/libgomp.c++/for-7.C: New test.
661         PR c++/38348
662         * testsuite/libgomp.c++/for-6.C: New test.
664 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
666         PR testsuite/28870
667         * testsuite/lib/libgomp.exp: Include new timeout library files.
668         (libgomp_target_compile): Set timeout value from new proc.
670 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
672         PR libgomp/37938
673         * config/linux/ia64/mutex.h: New.
675 2008-11-04  Tobias Burnus  <burnus@net-b.de>
677         PR libgomp/37935
678         * libgomp.texi (Runtime library routines, environment variables):
679         Update for OpenMP version 3.0.
681 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
682             Steve Ellcey  <sje@cup.hp.com>
684         * configure: Regenerate for new libtool.
685         * Makefile.in: Ditto.
686         * testsuite/Makefile.in: Ditto.
688 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
689             Andreas Tobler  <a.tobler@schweiz.org>
691         * config/bsd/proc.c: New file.
692         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
693         * configure.ac: Check for header <sys/sysctl.h>
694         * configure: Regenerate.
695         * config.h.in: Likewise.
697 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
699         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
701 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
703         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
704         * Makefile.in: Regenerated.
705         * testsuite/Makefile.in: Regenerated.
707 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
709         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
710         depend on blddir if blddir exists.
711         (libgomp_target_compile): Likewise.
712         * testsuite/libgomp.c++/c++.exp: Likewise.
713         * testsuite/libgomp.fortran/fortran.exp: Likewise.
715 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
717         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
718         Do not list GPL as Invariant Section.
720 2008-07-28  Ilie Garbacea  <ilie@mips.com>
721             Chao-ying Fu  <fu@mips.com>
723         * configure.tgt: Enable futex for MIPS.
724         * config/linux/mips/futex.h: New file.
726 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
728         * team.c (gomp_team_end): Free team immediately if it has
729         just one thread.
731 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
733         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
734         * testsuite/libgomp.fortran/fortran.exp: Same.
735         * testsuite/libgomp.c/c.exp: Same.
736         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
737         directory to library path first.
739 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
741         * env.c (parse_stacksize): Add cast to avoid warning.
742         (parse_spincount): Likewise.
744 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
746         * testsuite/libgomp.c/loop-10.c: New test.
747         * libgomp.c/loop-3.c (main): Add lastprivate clause.
748         * libgomp.c++/loop-6.C (main): Likewise.
750         PR debug/36617
751         * testsuite/libgomp.c/debug-1.c: New test.
753 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
755         * testsuite/libgomp.c/nqueens-1.c: New test.
757         PR c++/36523
758         * testsuite/libgomp.c++/task-7.C: New function.
760 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
762         * configure: Regenerate.
764 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
766         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
767         mutex when HAVE_SYNC_BUILTINS isn't defined.
769 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
771         * libgomp.texi (omp_test_lock): Fix typo.
773 2008-06-12  Tobias Burnus  <burnus@net-b.de>
775         * omp_lib.f90.in: Add "implicit none".
777 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
779         PR middle-end/36506
780         * testsuite/libgomp.c/reduction-5.c: New test.
782 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
784         * libgomp.h (struct gomp_task): Add in_tied_task field.
785         * task.c (gomp_init_task): Initialize it.
786         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
787         unconditionally.  Don't call gomp_team_barrier_wake if
788         current task is implicit or if(0) from implicit and number of
789         running tasks is equal to nthreads - 1.
791         PR libgomp/36471
792         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
793         omp_get_team_size_8): Fix pastos.
795         PR libgomp/36469
796         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
797         * configure: Regenerated.
798         * config.h.in: Regenerated.
799         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
800         defined.
802 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
804         PR bootstrap/36452
805         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
806         (GOMP_loop_ull_dynamic_start): Likewise.
807         (GOMP_loop_ull_guided_start): Likewise.
808         (GOMP_loop_ull_ordered_static_start): Likewise.
809         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
810         (GOMP_loop_ull_ordered_guided_start): Likewise.
812 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
813             Richard Henderson  <rth@redhat.com>
814             Ulrich Drepper  <drepper@redhat.com>
815             Jakob Blomer  <jakob.blomer@ira.uka.de>
817         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
818         Substitute also OMP_*LOCK_25*.
819         * configure: Regenerated.
820         * config.h.in: Regenerated.
821         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
822         ptrlock.c and task.c.
823         * Makefile.in: Regenerated.
824         * testsuite/Makefile.in: Regenerated.
825         * task.c: New file.
826         * loop_ull.c: New file.
827         * iter_ull.c: New file.
828         * libgomp.h: Include ptrlock.h.
829         (enum gomp_task_kind): New type.
830         (struct gomp_team): Add task_lock, task_queue, task_count,
831         task_running_count, single_count fields.  Add
832         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
833         Remove work_share_lock, generation_mask,
834         oldest_live_gen, num_live_gen and init_work_shares fields, add
835         work work_share_list_alloc, work_share_list_free and work_share_chunk
836         fields.  Change work_shares from pointer to pointers into an array.
837         Change ordered_release field into gomp_sem_t ** from flexible array
838         member.  Add implicit_task and initial_work_shares fields.
839         Move close to the end of the struct.
840         (struct gomp_team_state): Add single_count, last_work_share,
841         active_level and level fields, remove work_share_generation.
842         (gomp_barrier_handle_tasks): New prototype.
843         (gomp_finish_task): New inline function.
844         (struct gomp_work_share): Move chunk_size, end, incr into
845         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
846         next_ll fields.  Reshuffle fields.  Add next_alloc,
847         next_ws, next_free and inline_ordered_team_ids fields, change
848         ordered_team_ids into pointer from flexible array member.
849         Add mode field.  Put lock and next into a different cache line
850         from most of the write-once fields.
851         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
852         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
853         gomp_iter_ull_guided_next): New prototypes.
854         (gomp_new_icv): New prototype.
855         (struct gomp_thread): Add thread_pool and task fields.
856         (struct gomp_thread_pool): New type.
857         (gomp_new_team): New prototype.
858         (gomp_team_start): Change type of last argument.
859         (gomp_new_work_share): Removed.
860         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
861         (gomp_work_share_init_done): New static inline.
862         (gomp_throttled_spin_count_var, gomp_available_cpus,
863         gomp_managed_threads): New extern decls.
864         (gomp_init_task): New prototype.
865         (gomp_spin_count_var): New extern var decl.
866         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
867         or no alias support, or if not PIC.
868         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
869         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
870         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
871         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
872         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
873         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
874         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
875         gomp_test_nest_lock_25): New prototypes.
876         (omp_lock_symver, strong_alias): Define.
877         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
878         decls.
879         (gomp_end_task): New.
880         (struct gomp_task_icv, gomp_global_icv): New.
881         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
882         (struct gomp_task): New.
883         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
884         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
885         (gomp_icv): New.
886         (gomp_schedule_type): Reorder enum to match
887         omp_sched_t.
888         * team.c (struct gomp_thread_start_data): Add thread_pool and task
889         fields.
890         (gomp_thread_start): Add gomp_team_barrier_wait call.
891         For non-nested case remove clearing of docked thread thr fields.
892         Use pool fields instead of global gomp_* variables.  Use
893         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
894         Create tasks for each member thread.
895         (free_team): Only destroy team barrier, task_lock here and free it.
896         (gomp_free_thread): Free last_team if non-NULL.
897         (gomp_team_end): Call gomp_team_barrier_wait instead of
898         gomp_barrier_wait.  For nested case call one extra
899         gomp_barrier_wait.  Move here some destruction from free_team.
900         Call free_team on pool->last_team if any, rather than freeing
901         current team.  Destroy work_share_list_free_lock ifndef
902         HAVE_SYNC_BUILTINS.
903         (gomp_new_icv): New function.
904         (gomp_threads, gomp_threads_size, gomp_threads_used,
905         gomp_threads_dock): Removed.
906         (gomp_thread_destructor): New variable.
907         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
908         functions.
909         (gomp_team_start): Create new pool if current thread doesn't have
910         one.  Use pool fields instead of global gomp_* variables. 
911         Initialize thread_pool field for new threads.  Clear single_count.
912         Change last argument from ws to team, don't create
913         new team, set ts.work_share to &team->work_shares[0] and clear
914         ts.last_work_share.  Don't clear ts.work_share_generation.
915         If number of threads changed, adjust atomically gomp_managed_threads.
916         Use gomp_init_task instead of gomp_new_task,
917         set thr->task to the corresponding implicit_task array entry.
918         Create tasks for each member thread.  Initialize ts.level.
919         (initialize_team): Call pthread_key_create on
920         gomp_thread_destructor.
921         (team_destructor): New function.
922         (new_team): Removed.
923         (gomp_new_team): New function.
924         (free_team): Free gomp_work_share blocks chained through next_alloc,
925         instead of freeing work_shares and destroying work_share_lock.
926         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
927         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
928         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
929         of gomp_barrier_wait.
930         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
931         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
932         if gomp_work_share_start returned true.  Don't unlock ws->lock.
933         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
934         of gomp_barrier_wait.
935         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
936         gomp_work_share_init_done if gomp_work_share_start returned true.
937         Don't unlock ws->lock.
938         * work.c: Include stddef.h.
939         (free_work_share): Use work_share_list_free_lock instead
940         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
941         Call gomp_fini_work_share and then either free ws if orphaned, or
942         put it into work_share_list_free list of the current team.
943         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
944         functions.
945         (gomp_work_share_start, gomp_work_share_end,
946         gomp_work_share_end_nowait): Rewritten.
947         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
948         (openmp_version): Set to 200805.
949         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
950         omp_sched_guided, omp_sched_auto): New parameters.
951         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
952         omp_set_max_active_levels, omp_get_max_active_levels,
953         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
954         omp_get_active_level): New interfaces.
955         * omp_lib.h.in (openmp_version): Set to 200805.
956         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
957         omp_sched_guided, omp_sched_auto): New parameters.
958         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
959         omp_set_max_active_levels, omp_get_max_active_levels,
960         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
961         omp_get_active_level): New externals.
962         * loop.c: Include limits.h.
963         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
964         GFS_AUTO.
965         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
966         Likewise.  Use gomp_icv.
967         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
968         ts.static_trip here.
969         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
970         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
971         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
972         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
973         don't unlock ws->lock, otherwise lock it.
974         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
975         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
976         (gomp_parallel_loop_start): Call gomp_new_team instead of
977         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
978         Adjust gomp_team_start caller.  Pass 0 as second argument to
979         gomp_resolve_num_threads.
980         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
981         If adding ws->chunk_size nthreads + 1 times after end won't
982         overflow, set ws->mode to 1.
983         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
984         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
985         GOMP_loop_ull_ordered_static_start,
986         GOMP_loop_ull_ordered_dynamic_start,
987         GOMP_loop_ull_ordered_guided_start,
988         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
989         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
990         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
991         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
992         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
993         prototypes.
994         * libgomp.map: Export lock routines also @@OMP_2.0.
995         (GOMP_loop_ordered_dynamic_first,
996         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
997         GOMP_loop_ordered_static_first): Remove.
998         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
999         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1000         GOMP_loop_ull_ordered_dynamic_next,
1001         GOMP_loop_ull_ordered_dynamic_start,
1002         GOMP_loop_ull_ordered_guided_next,
1003         GOMP_loop_ull_ordered_guided_start,
1004         GOMP_loop_ull_ordered_runtime_next,
1005         GOMP_loop_ull_ordered_runtime_start,
1006         GOMP_loop_ull_ordered_static_next,
1007         GOMP_loop_ull_ordered_static_start,
1008         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1009         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1010         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1011         (omp_set_schedule, omp_get_schedule,
1012         omp_get_thread_limit, omp_set_max_active_levels,
1013         omp_get_max_active_levels, omp_get_level,
1014         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1015         omp_set_schedule_, omp_set_schedule_8_,
1016         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1017         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1018         omp_get_max_active_levels_, omp_get_level_,
1019         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1020         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1021         New exports @@OMP_3.0.
1022         * omp.h.in (omp_sched_t): New type.
1023         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1024         omp_set_max_active_levels, omp_get_max_active_levels,
1025         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1026         omp_get_active_level): New prototypes.
1027         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1028         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1029         gomp_thread_limit_var, gomp_remaining_threads_count,
1030         gomp_remaining_threads_lock): New variables.
1031         (parse_spincount): New function.
1032         (initialize_env): Call gomp_init_num_threads unconditionally.
1033         Initialize gomp_available_cpus.  Call parse_spincount,
1034         initialize gomp_{,throttled_}spin_count_var
1035         depending on presence and value of OMP_WAIT_POLICY and
1036         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1037         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1038         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1039         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1040         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1041         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1042         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1043         (gomp_global_icv): New.
1044         (parse_schedule): Use it.  Parse "auto".
1045         (omp_set_num_threads): Use gomp_icv.
1046         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1047         Likewise.
1048         (omp_get_max_threads): Move from parallel.c.
1049         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1050         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1051         add ialias.
1052         (parse_stacksize, parse_wait_policy): New functions.
1053         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1054         both wrappers for compatibility and new locks.
1055         (omp_set_schedule, omp_get_schedule,
1056         omp_get_thread_limit, omp_set_max_active_levels,
1057         omp_get_max_active_levels, omp_get_level,
1058         omp_get_ancestor_thread_num, omp_get_team_size,
1059         omp_get_active_level): New ialias_redirect.
1060         (omp_set_schedule_, omp_set_schedule_8_,
1061         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1062         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1063         omp_get_max_active_levels_, omp_get_level_,
1064         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1065         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1066         New functions.
1067         * parallel.c: Include limits.h.
1068         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1069         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1070         argument to gomp_team_start.  Pass 0 as second argument to
1071         gomp_resolve_num_threads.
1072         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1073         if gomp_thread_limit_var != ULONG_MAX.
1074         (omp_in_parallel): Implement using ts.active_level.
1075         (omp_get_max_threads): Move to env.c.
1076         (omp_get_level, omp_get_ancestor_thread_num,
1077         omp_get_team_size, omp_get_active_level): New functions,
1078         add ialias.
1079         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1080         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1081         gomp_iter_dynamic_next instead of the _locked variant and don't take
1082         lock around it, otherwise acquire it before calling
1083         gomp_iter_dynamic_next_locked.
1084         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1085         gomp_iter_dynamic_next instead of the _locked variant and don't take
1086         lock around it.
1087         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1088         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1089         Adjust gomp_team_start caller.  Pass count as second argument to
1090         gomp_resolve_num_threads, don't adjust num_threads after the call.
1091         Use gomp_icv.
1092         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1093         ws->chunk_size by incr.
1094         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1095         code.
1096         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1097         types.
1098         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1099         (omp_check_defines): Check even the compat defines.
1100         * config/linux/ptrlock.c: New file.
1101         * config/linux/ptrlock.h: New file.
1102         * config/linux/wait.h: New file.
1103         * config/posix/ptrlock.c: New file.
1104         * config/posix/ptrlock.h: New file.
1105         * config/linux/bar.h (gomp_team_barrier_wait,
1106         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1107         (gomp_team_barrier_set_task_pending,
1108         gomp_team_barrier_clear_task_pending,
1109         gomp_team_barrier_set_waiting_for_tasks,
1110         gomp_team_barrier_waiting_for_tasks,
1111         gomp_team_barrier_done): New inlines.
1112         (gomp_barrier_t): Rewritten.
1113         (gomp_barrier_state_t): New typedef.
1114         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1115         gomp_barrier_wait_start): Rewritten.
1116         (gomp_barrier_wait_end): Change second argument to
1117         gomp_barrier_state_t.
1118         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1119         inlines.
1120         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1121         futex.h.
1122         (gomp_barrier_wait_end): Rewritten.
1123         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1124         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1125         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1126         (gomp_barrier_state_t): New typedef.
1127         (gomp_team_barrier_wait,
1128         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1129         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1130         into the return value.  Return gomp_barrier_state_t.
1131         (gomp_team_barrier_set_task_pending,
1132         gomp_team_barrier_clear_task_pending,
1133         gomp_team_barrier_set_waiting_for_tasks,
1134         gomp_team_barrier_waiting_for_tasks,
1135         gomp_team_barrier_done): New inlines.
1136         (gomp_barrier_wait_end): Change second argument to
1137         gomp_barrier_state_t.
1138         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1139         inlines.
1140         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1141         (gomp_barrier_wait_end): Change second argument to
1142         gomp_barrier_state_t. 
1143         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1144         gomp_team_barrier_wake): New functions.
1145         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1146         futex.h.
1147         (gomp_futex_wake, gomp_futex_wait): New variables.
1148         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1149         * config/linux/lock.c: Rewrite to make locks task owned,
1150         for backwards compatibility provide the old entrypoints
1151         if symbol versioning.  Include wait.h instead of libgomp.h and
1152         futex.h.
1153         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1154         * config/posix95/lock.c: Rewrite to make locks task owned,
1155         for backwards compatibility provide the old entrypoints
1156         if symbol versioning.
1157         * config/posix/lock.c: Rewrite to make locks task owned,
1158         for backwards compatibility provide the old entrypoints
1159         if symbol versioning.
1160         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1161         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1162         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1163         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1164         (sys_futex0): Return error code.
1165         (futex_wake, futex_wait): If ENOSYS was returned, clear
1166         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1167         (cpu_relax, atomic_write_barrier): New static inlines.
1168         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1169         (futex_wake, futex_wait): If ENOSYS was returned, clear
1170         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1171         (cpu_relax, atomic_write_barrier): New static inlines.
1172         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1173         (sys_futex0): Return error code.
1174         (futex_wake, futex_wait): If ENOSYS was returned, clear
1175         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1176         (cpu_relax, atomic_write_barrier): New static inlines.
1177         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1178         (sys_futex0): Return error code.
1179         (futex_wake, futex_wait): If ENOSYS was returned, clear
1180         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1181         (cpu_relax, atomic_write_barrier): New static inlines.
1182         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1183         (sys_futex0): Return error code.
1184         (futex_wake, futex_wait): If ENOSYS was returned, clear
1185         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1186         (cpu_relax, atomic_write_barrier): New static inlines.
1187         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1188         (sys_futex0): Return error code.
1189         (futex_wake, futex_wait): If ENOSYS was returned, clear
1190         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1191         (cpu_relax, atomic_write_barrier): New static inlines.
1192         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1193         futex.h.
1194         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1195         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1196         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1197         types.
1198         (omp_nest_lock_t): Change owner into void *, add lock field.
1199         * config/posix95/omp-lock.h: Include semaphore.h.
1200         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1201         (omp_lock_t): Use sem_t instead of mutex if semaphores
1202         aren't broken.
1203         (omp_nest_lock_t): Likewise.  Change owner to void *.
1204         * config/posix/omp-lock.h: Include semaphore.h.
1205         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1206         (omp_lock_t): Use sem_t instead of mutex if semaphores
1207         aren't broken.
1208         (omp_nest_lock_t): Likewise.  Add owner field.
1210 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1212         * testsuite/libgomp.c/collapse-1.c: New test.
1213         * testsuite/libgomp.c/collapse-2.c: New test.
1214         * testsuite/libgomp.c/collapse-3.c: New test.
1215         * testsuite/libgomp.c/icv-1.c: New test.
1216         * testsuite/libgomp.c/icv-2.c: New test.
1217         * testsuite/libgomp.c/lib-2.c: New test.
1218         * testsuite/libgomp.c/lock-1.c: New test.
1219         * testsuite/libgomp.c/lock-2.c: New test.
1220         * testsuite/libgomp.c/lock-3.c: New test.
1221         * testsuite/libgomp.c/loop-4.c: New test.
1222         * testsuite/libgomp.c/loop-5.c: New test.
1223         * testsuite/libgomp.c/loop-6.c: New test.
1224         * testsuite/libgomp.c/loop-7.c: New test.
1225         * testsuite/libgomp.c/loop-8.c: New test.
1226         * testsuite/libgomp.c/loop-9.c: New test.
1227         * testsuite/libgomp.c/nested-3.c: New test.
1228         * testsuite/libgomp.c/nestedfn-6.c: New test.
1229         * testsuite/libgomp.c/sort-1.c: New test.
1230         * testsuite/libgomp.c/task-1.c: New test.
1231         * testsuite/libgomp.c/task-2.c: New test.
1232         * testsuite/libgomp.c/task-3.c: New test.
1233         * testsuite/libgomp.c/task-4.c: New test.
1234         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1235         to C++ testsuite default compiler options.
1236         * testsuite/libgomp.c++/collapse-1.C: New test.
1237         * testsuite/libgomp.c++/collapse-2.C: New test.
1238         * testsuite/libgomp.c++/ctor-10.C: New test.
1239         * testsuite/libgomp.c++/for-1.C: New test.
1240         * testsuite/libgomp.c++/for-2.C: New test.
1241         * testsuite/libgomp.c++/for-3.C: New test.
1242         * testsuite/libgomp.c++/for-4.C: New test.
1243         * testsuite/libgomp.c++/for-5.C: New test.
1244         * testsuite/libgomp.c++/loop-8.C: New test.
1245         * testsuite/libgomp.c++/loop-9.C: New test.
1246         * testsuite/libgomp.c++/loop-10.C: New test.
1247         * testsuite/libgomp.c++/task-1.C: New test.
1248         * testsuite/libgomp.c++/task-2.C: New test.
1249         * testsuite/libgomp.c++/task-3.C: New test.
1250         * testsuite/libgomp.c++/task-4.C: New test.
1251         * testsuite/libgomp.c++/task-5.C: New test.
1252         * testsuite/libgomp.c++/task-6.C: New test.
1253         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1254         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1255         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1256         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1257         * testsuite/libgomp.fortran/collapse1.f90: New test.
1258         * testsuite/libgomp.fortran/collapse2.f90: New test.
1259         * testsuite/libgomp.fortran/collapse3.f90: New test.
1260         * testsuite/libgomp.fortran/collapse4.f90: New test.
1261         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1262         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1263         * testsuite/libgomp.fortran/lib4.f90: New test.
1264         * testsuite/libgomp.fortran/lock-1.f90: New test.
1265         * testsuite/libgomp.fortran/lock-2.f90: New test.
1266         * testsuite/libgomp.fortran/nested1.f90: New test.
1267         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1268         * testsuite/libgomp.fortran/strassen.f90: New test.
1269         * testsuite/libgomp.fortran/tabs1.f90: New test.
1270         * testsuite/libgomp.fortran/tabs2.f: New test.
1271         * testsuite/libgomp.fortran/task1.f90: New test.
1272         * testsuite/libgomp.fortran/task2.f90: New test.
1273         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1274         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1275         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1276         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1277         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1279 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1281         PR c++/36308
1282         * testsuite/libgomp.c++/ctor-11.C: New test.
1283         * testsuite/libgomp.c++/ctor-12.C: New test.
1285 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1287         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1289 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1291         PR middle-end/36106
1292         * testsuite/libgomp.c/atomic-5.c: New test.
1293         * testsuite/libgomp.c/atomic-6.c: New test.
1294         * testsuite/libgomp.c/autopar-1.c: New test.
1296 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1298         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1299         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1300         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1301         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1302         * configure: Regenerate.
1303         * Makefile.in, testsuite/Makefile.in: Likewise.
1305 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1307         PR bootstrap/35457
1308         * aclocal.m4: Regenerate.
1309         * configure: Regenerate.
1311 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1313         PR middle-end/35611
1314         * testsuite/libgomp.c/atomic-4.c: New test.
1316         PR libgomp/35625
1317         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1318         (gomp_iter_guided_next): Likewise.
1319         * testsuite/libgomp.c/pr35625.c: New test.
1321 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1323         * aclocal.m4: Regenerate.
1324         * configure: Likewise.
1325         * Makefile.in: Likewise.
1326         * testsuite/Makefile.in: Likewise.
1328 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1330         PR middle-end/35185
1331         * testsuite/libgomp.c++/pr35185.C: New test.
1333 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1335         PR middle-end/35549
1336         * testsuite/libgomp.c/pr35549.c: New test.
1338 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1340         * testsuite/libgomp.c/atomic-3.c: New test.
1342 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1344         PR fortran/33197
1345         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1346         .F08 file suffixes.
1348 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1350         PR libgomp/33131
1351         * configure.ac: Add ACX_HEADER_STRING.
1352         * env.c: Include strings.h.
1353         * aclocal.m4: Regenerate.
1354         * config.h.in: Regenerate.
1355         * configure: Regenerate.
1356         * Makefile.in: Regenerate.
1357         * testsuite/Makefile.in: Regenerate.
1359 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1361         PR middle-end/35196
1362         * testsuite/libgomp.c/pr35196.c: New test.
1364         PR middle-end/35130
1365         * testsuite/libgomp.fortran/pr35130.f90: New test.
1366         * testsuite/libgomp.c/pr35130.c: New test.
1368 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1370         PR middle-end/33880
1371         * testsuite/libgomp.c/pr33880.c: New test.
1372         * testsuite/libgomp.fortran/pr33880.f90: New test.
1374 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1376         * configure: Regenerate.
1378 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1380         * configure.ac: Move futex checking into ../config/futex.m4.
1381         * configure: Rebuilt.
1382         * aclocal.m4: Rebuilt.
1383         * Makefile.in: Rebuilt.
1385         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1386         2007-10-15 ../config/tls.m4 change.
1388 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1390         PR c++/34513
1391         * testsuite/libgomp.c/pr34513.c: New test.
1392         * testsuite/libgomp.c++/pr34513.C: New test.
1394 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1396         PR target/32765
1397         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1399 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1401         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1403 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1405         * testsuite/libgomp.c/private-1.c: New test.
1407 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1408             Paolo Bonzini  <bonzini@gnu.org>
1410         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1411         instead of 'VPATH ='.
1412         * Makefile.in: Regenerate.
1414 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1416         * configure.ac: Adjust makeinfo version check.
1417         * configure: Regenerate.
1419 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1421         PR fortran/34020
1422         * testsuite/libgomp.fortran/pr34020.f90: New test.
1424 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1426         PR c++/33894
1427         * testsuite/libgomp.c++/atomic-1.C: New test.
1429 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1431         PR libgomp/33275
1432         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1433         Make x and y integers rather than (implicit) reals.  Add private (j)
1434         clause to the last omp parallel.
1436 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1438         * configure: Regenerate following changes to ../config/tls.m4.
1440 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1442         * testsuite/libgomp.fortran/stack.f90: New test.
1444 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1446         * config/mingw32/proc.c: New file.
1448 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1450         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1451         (main): Use __get_cpuid to get i386 target fetaures.
1452         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1453         (main): Use __get_cpuid to get x86_64 target fetaures.
1455 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1457         PR target/32765
1458         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1459         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1461 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1463         PR fortran/32550
1464         * testsuite/libgomp.fortran/pr32550.f90: New test.
1465         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1467 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1469         * aclocal.m4: Regenerated.
1471 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1473         PR fortran/32359
1474         * testsuite/libgomp.fortran/pr32359.f90: New.
1476 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1478         PR libgomp/32468
1479         * sections.c (GOMP_parallel_sections_start): Only decrease
1480         number of threads to COUNT if dyn_var is true.
1481         * testsuite/libgomp.c/pr32468.c: New test.
1483 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1485         PR libgomp/26308
1486         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1488 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1490         PR middle-end/32362
1491         * testsuite/libgomp.c/pr32362-1.c: New test.
1492         * testsuite/libgomp.c/pr32362-2.c: New test.
1493         * testsuite/libgomp.c/pr32362-3.c: New test.
1495 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1497         * team.c (gomp_team_start): Fix setting up thread_attr
1498         stack size.
1500 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1502         * configure: Regenerate.
1504 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1506         * Makefile.in: Regenerate.
1507         * configure: Regenerate.
1508         * aclocal.m4: Regenerate.
1509         * testsuite/Makefile.in: Regenerate.
1511 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1513         * config/linux/proc.c: New file.
1515         PR libgomp/28482
1516         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1518 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1520         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1522 2007-04-16  Matthias Klose  <doko@debian.org>
1524         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1525         flags if not building with -m64.
1526         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1527         flag for i?86-*-* targets, if current target matches -m64.
1529 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1531         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1532         * Makefile.in: Regenerate.
1534 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1536         PR testsuite/31369
1537         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1538         ld_library_path.
1539         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1541 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1543         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1544         decls.
1545         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1546         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1547         (parse_affinity): New function.
1548         (initialize_env): Call it and gomp_init_affinity.
1549         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1550         create new pthread_attr_t and call gomp_init_thread_affinity
1551         on it for each thread before passing the attribute to pthread_create.
1552         * config/linux/affinity.c: New file.
1553         * config/posix/affinity.c: New file.
1554         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1555         * configure: Rebuilt.
1556         * config.h.in: Rebuilt.
1557         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1558         * Makefile.in: Rebuilt.
1560 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1562         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1563         *-*-darwin*.
1564         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1565         and use it if found.
1567 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1569         * testsuite/config/default.exp: New file.
1570         * testsuite/lib/libgomp.exp: New file.
1571         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1572         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1573         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1574         (libgomp_load): Remove.
1575         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1576         always_ld_library_path, not ld_library_path.  Set additional_flags
1577         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1578         (target_compile): Do not call libgomp_init.  Append lang_library_path
1579         and lang_link_flags to options.
1580         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1581         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1582         here.
1583         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1584         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1585         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1586         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1587         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1588         CX8 flag.
1589         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1590         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1591         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1592         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1593         * testsuite/libgomp.c/atomic-10.c: Ditto.
1595 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1597         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1598         dg-final cleanup-modules line.
1599         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1600         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1601         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1602         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1603         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1604         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1605         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1607 2007-03-18  Andreas Schwab  <schwab@suse.de>
1609         * acinclude.m4: Adjust regular expression for ld version
1610         extraction.
1611         * configure: Regenerate.
1613 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1615         * Makefile.am: Add install-pdf target as copied from
1616         automake v1.10 rules.
1617         * Makefile.in: Regenerate
1619 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1621         PR libgomp/28486
1622         * configure: Regenerate.
1624         PR c++/30703
1625         * testsuite/libgomp.c++/pr30703.C: New test.
1627 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1629         Revert:
1630         2006-07-05  Eric Christopher  <echristo@apple.com>
1631         * configure.ac: Depend addition of -pthread on host OS.
1632         * configure: Regenerate.
1634 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1636         * libgomp.texi: Fix spacing after abbreviations.
1638 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1640         PR libgomp/30546
1641         * configure.ac: Add check for makeinfo
1642         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1643         if an appropiate version of makeinfo is found.
1644         * aclocal.m4: Regenerated.
1645         * configure: Regenerated.
1646         * Makefile.in: Regenerated.
1647         * testsuite/Makefile.in: Regenerated.
1649 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1651         PR libgomp/30540
1652         * libgomp.texi: More about implementation-dependent settings.
1654 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1656         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1658 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1660         PR middle-end/30494
1661         * testsuite/libgomp.c/pr30494.c: New test.
1663 2007-01-15  Tom Tromey  <tromey@redhat.com>
1665         * configure: Rebuilt.
1666         * configure.ac: Fixed comment.
1668 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1670         * libgomp.texi: Document implementation specific default values of
1671         environment variables.
1673 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1675         PR libgomp/28209
1676         * libgomp.texi: New file.
1677         * configure.ac: Add --enable-generated-files-in-srcdir option.
1678         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1679         files to srcdir.
1680         * Makefile.in: Regenerated.
1681         * config.h.in: Regenerated.
1682         * testsuite/Makefile.in: Regenerated.
1683         * NOTES: Removed.
1685 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1687         PR libgomp/29949
1688         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1690 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1692         * configure: Regenerate.
1694 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1696         PR libgomp/29947
1697         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1698         start if there shouldn't be any loop iterations.
1699         (gomp_loop_ordered_static_start): Remove start == end test.
1700         * testsuite/libgomp.c/pr29947-1.c: New test.
1701         * testsuite/libgomp.c/pr29947-2.c: New test.
1703 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1705         * configure.tgt: Force initial-exec TLS model on Linux only.
1707 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1709         * configure: Regenerated.
1711 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1713         * env.c (parse_schedule): Reject out of range values.
1714         (parse_unsigned_long): Reject out of range, negative or zero values.
1716 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1718         PR fortran/29629
1719         * testsuite/libgomp.fortran/pr29629.f90: New test.
1721 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1723         PR libgomp/29494
1724         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1725         * config/posix95: New directory.
1726         * config/posix95/omp-lock.h: New file.
1727         * config/posix95/lock.c: Likewise.
1729 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1731         * aclocal.m4: Regenerate.
1732         * configure: Regenerate.
1734 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1736         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1737         '<' to '<='.
1739 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1741         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1742         test.
1743         * configure: Regenerate.
1744         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1746 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1748         PR middle-end/25261
1749         PR middle-end/28790
1750         * testsuite/libgomp.c/nestedfn-4.c: New test.
1751         * testsuite/libgomp.c/nestedfn-5.c: New test.
1752         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1754         PR fortran/29097
1755         * testsuite/libgomp.fortran/condinc1.f: New test.
1756         * testsuite/libgomp.fortran/condinc2.f: New test.
1757         * testsuite/libgomp.fortran/condinc3.f90: New test.
1758         * testsuite/libgomp.fortran/condinc4.f90: New test.
1759         * testsuite/libgomp.fortran/condinc1.inc: New file.
1761 2006-09-18  Tom Tromey  <tromey@redhat.com>
1763         * configure: Rebuilt.
1765 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1767         PR c/28768
1768         PR preprocessor/14634
1769         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1770         to AC_DEFINE.
1771         * configure: Regenerate.
1773 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1775         * testsuite/libgomp.fortran/reduction3.f90: Change
1776         -2147483648 to -huge(i)-1 to avoid overflow.
1777         * testsuite/libgomp.fortran/reduction4.f90: Change
1778         Z'ffffffff' to not(0) to avoid overflow.
1780 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1782         PR libgomp/25938
1783         * Makefile.am (libsubincludedir): New.
1784         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1785         * Makefile.in: Regenerate.
1787 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1789         PR libgomp/28725
1790         * env.c: Include ctype.h.
1791         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1792         leading and/or trailing whitespace and compare strings case
1793         insensitively.
1795 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1797         PR fortran/28390
1798         * testsuite/libgomp.fortran/pr28390.f: New test.
1800 2006-07-05  Eric Christopher  <echristo@apple.com>
1802         * configure.ac: Depend addition of -pthread on host OS.
1803         * configure: Regenerate.
1805 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1807         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1808         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1809         defined.
1811 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1813         PR libgomp/26175
1814         PR libgomp/26477
1815         * configure.ac: If neither --enable-linux-futex nor
1816         --disable-linux-futex is passed, determine the default by checking
1817         for compiling and/or running against NPTL.  With --enable-linux-futex,
1818         check if SYS_gettid and SYS_futex are defined.
1819         * configure: Rebuilt.
1821 2006-06-14  Richard Henderson  <rth@redhat.com>
1823         PR libgomp/28008
1824         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1825         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1827 2006-06-09  Richard Henderson  <rth@redhat.com>
1829         * env.c (gomp_nthreads_var): Change to unsigned long.
1830         (gomp_run_sched_chunk): Likewise.
1831         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1832         (initialize_env): Initialize gomp_thread_attr.
1833         * libgomp.h (gomp_nthreads_var): Update decl.
1834         (gomp_run_sched_chunk): Likewise.
1835         (gomp_thread_attr): Declare.
1836         * team.c (gomp_thread_attr): Export.
1837         (initialize_team): Don't initialize it.
1839 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
1841         PR fortran/27916
1842         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1843         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1845 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1847         * config/mingw32/time.c: New file.
1848         * configure.tgt: Use it.
1850 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1852         * Makefile.am: Add install-html target. Add install-html to .PHONY
1853         * Makefile.in: Regenerate.
1855 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1857         PR libgomp/27612
1858         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1859         * testsuite/libgomp.c/critical-1.c: Likewise.
1860         * testsuite/libgomp.c/loop-1.c: Likewise.
1861         * testsuite/libgomp.c/loop-2.c: Likewise.
1862         * testsuite/libgomp.c/single-1.c: Likewise.
1863         * testsuite/libgomp.c/ordered-1.c: Likewise.
1864         * testsuite/libgomp.c/ordered-2.c: Likewise.
1866 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1868         PR middle-end/27416
1869         * libgomp.fortran/pr27416-1.f90: New test.
1871 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
1873         PR fortran/27395
1874         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1875         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1877 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1879         PR c++/26943
1880         * testsuite/libgomp.c/pr26943-1.c: New test.
1881         * testsuite/libgomp.c/pr26943-2.c: New test.
1882         * testsuite/libgomp.c/pr26943-3.c: New test.
1883         * testsuite/libgomp.c/pr26943-4.c: New test.
1884         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1885         * testsuite/libgomp.c++/pr26943.C: New test.
1887 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1889         PR middle-end/27337
1890         * testsuite/libgomp.c++/pr27337.C: New test.
1892 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1894         PR c/26171
1895         * testsuite/libgomp.c/pr26171.c: New test.
1897 2006-04-25  Richard Henderson  <rth@redhat.com>
1899         PR libgomp/25865
1900         * configure.ac: Use GCC_CHECK_TLS.
1901         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1902         * Makefile.in, aclocal.m4, configure: Regenerate.
1904 2006-04-10  Matthias Klose  <doko@debian.org>
1906         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1907         directory names containing underscores.
1909 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1911         PR c++/26691
1912         * testsuite/libgomp.c++/pr26691.C: New test.
1914 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1916         * testsuite/libgomp.fortran/retval2.f90: New test.
1918 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1920         * testsuite/libgomp.c++: New directory.
1922 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
1924         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1925         * config/posix/sem.c: Implement the above.
1927 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
1929         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1930         define HAVE_BROKEN_POSIX_SEMAPHORES.
1931         * configure: Rebuilt.
1932         * config.h.in: Rebuilt.
1934 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1936         PR bootstrap/26161
1937         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1938         for the other pthread check.
1939         * configure: Regenerate.
1940         * config.h.in: Regenerate.
1942 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1944         PR libgomp/25938
1945         PR libgomp/25984
1946         * Makefile.am (fincludedir): New variable.
1947         (nodist_include_HEADERS): Remove Fortran files.
1948         (nodist_finclude_HEADERS): New variable.
1949         * Makefile.in: Regenerated.
1951 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1953         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1954         Remove tests for returning assumed character length arrays.
1956 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1957             John David Anglin  <dave@hiauly1.hia.nrc.ca>
1959         PR libgomp/25936
1960         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1962 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1964         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1966 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1968         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1969         part of LD_LIBRARY_PATH manually.
1971 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1973         PR libgomp/25852
1974         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1975         libgomp_init.
1977 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
1979         PR libgomp/25884
1980         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1981         * configure.ac (PERL): Don't set.
1982         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1983         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1984         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1985         * omp.h.in: Wrap the new configure substitutions with @ characters.
1986         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1987         * aclocal.m4, configure, Makefile.in: Regenerate.
1988         * mkomp_h.pl: Delete.
1990 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
1992         PR libgomp/25259
1993         * configure.ac: Use GCC_HEADER_STDINT.
1994         * libgomp.h: Include gstdint.h.
1995         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1996         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1998 2006-01-24  Richard Henderson  <rth@redhat.com>
2000         PR libgomp/25942
2001         * configure.ac: Add AM_MAINTAINER_MODE.
2002         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2004 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2006         * Makefile.in: Regenerate.
2007         * testsuite/Makefile.in: Regenerate.
2008         * aclocal.m4: Regenerate.
2010 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2012         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2013         Solaris.
2014         * configure.ac: Add check for loadavg.h.
2015         (link_gomp): Adjust comment.
2016         * configure: Regenerate.
2017         * config.h.in: Regenerate.
2019 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2021         PR libgomp/25877
2022         * configure.ac: Remove check for alloca.h.
2023         * configure: Regenerate.
2024         * config.h.in: Regenerate.
2025         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2026         * team.c: Remove use of alloca.h.
2027         Call gomp_alloca instead of alloca.
2029 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2031         PR libgomp/25877
2032         * team.c: Add include of alloca.h.
2033         * configure.ac: Add check for alloca.h.
2034         * configure: Regenerate.
2035         * config.h.in: Regenerate.
2037 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2039         PR fortran/25219
2040         * testsuite/libgomp.fortran/pr25219.f90: New test.
2042 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2044         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2045         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2046         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2047         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2048         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2049         testsuite/libgomp.fortran/threadprivate1.f90,
2050         testsuite/libgomp.fortran/threadprivate2.f90,
2051         testsuite/libgomp.fortran/threadprivate3.f90,
2052         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2053         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2054         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2055         effective-target to TLS runtime.
2057         * testsuite/libgomp.fortran/pr25162.f: Require
2058         effective-target TLS runtime.
2060 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2062         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2063         * testsuite/libgomp.c/nestedfn-3.c: New test.
2065 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2067         PR fortran/25162
2068         * testsuite/libgomp.fortran/pr25162.f: New test.
2070 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2072         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2073         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2075 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2077         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2078         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2079         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2080         single.c, team.c, work.c, config/linux/alpha/futex.h,
2081         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2082         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2083         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2084         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2085         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2086         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2087         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2088         FSF address.
2090 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2092         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2093         to nodist_noinst_HEADERS.
2094         * Makefile.in: Rebuilt.
2096         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2097         add integer count field.
2098         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2099         omp_nest_lock_t type change.
2100         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2101         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2102         Increment count.
2103         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2104         Decrement count.
2105         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2106         Increment count if successful and return the new nesting level.
2107         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2108         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2109         * testsuite/libgomp.c/lib-1.c: New test.
2110         * testsuite/libgomp.fortran/lib1.f90: New test.
2111         * testsuite/libgomp.fortran/lib2.f: New test.
2112         * testsuite/libgomp.fortran/lib3.f: New test.
2114 2005-11-17  Richard Henderson  <rth@redhat.com>
2116         PR 24845
2117         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2118         * configure.ac (link_gomp): New.  Substitute it.
2119         (AC_CONFIG_FILES): Add libgomp.spec.
2120         * libgomp.spec.in: New file.
2121         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2122         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2124 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2126         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2127         reduction(-:var) behaving the same as reduction(+:var).
2128         * testsuite/libgomp.c/reduction-4.c: New test.
2130 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2132         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2133         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2134         testsuite/libgomp.c/copyin-3.c,
2135         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2136         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2137         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2138         testsuite/libgomp.c++/pr24455.C,
2139         testsuite/libgomp.fortran/threadprivate1.f90,
2140         testsuite/libgomp.fortran/threadprivate2.f90,
2141         testsuite/libgomp.fortran/threadprivate3.f90,
2142         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2143         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2144         testsuite/libgomp.fortran/omp_parse3.f90: Require
2145         effective-target TLS.
2147 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2149         * HEADER: Remove.
2151 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2153         PR libgomp/24797
2154         * team.c (initialize_team): Pass NULL rather than free as
2155         pthread_key_create destructor.  Initialize thread specific data
2156         pointer in initial thread to a static local variable rather than
2157         malloced memory.
2159 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2161         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2162         its location to ld_library_path.
2164 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2166         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2168 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2170         * testsuite/libgomp.c: Rename from libgomp.dg.
2172 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2174         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2175         threadprivate variable 'i'.
2177 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2179         * config/linux/s390/futex.h: New file.
2180         * configure.tgt: Use it.
2182         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2183         before the parallel.
2185 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2187         PR c++/24734
2188         * testsuite/libgomp.c++/master-1.C: New test.
2190 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2192         * testsuite/libgomp.dg/copyin-3.c: New test.
2194 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2196         * testsuite/libgomp.fortran/retval1.f90: New test.
2197         * testsuite/libgomp.fortran/vla7.f90: New test.
2199 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2201         * testsuite/libgomp.fortran/vla2.f90: New test.
2202         * testsuite/libgomp.fortran/vla3.f90: New test.
2203         * testsuite/libgomp.fortran/vla4.f90: New test.
2204         * testsuite/libgomp.fortran/vla5.f90: New test.
2205         * testsuite/libgomp.fortran/vla6.f90: New test.
2207 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2209         * config/linux/sparc/futex.h: New file.
2210         * configure.tgt: Use it.
2211         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2213         * critical.c: Include stdlib.h.
2214         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2215         ignoring return value.
2216         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2217         LIBGOMP_CHECK_SYNC_BUILTINS check.
2218         * configure: Rebuilt.
2220 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2222         * testsuite/libgomp.fortran/vla1.f90: New test.
2224 2005-10-31  Richard Henderson  <rth@redhat.com>
2226         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2227         setting 's' in different threads.
2229 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2231         * libgomp.h (attribute_hidden, ialias): Define.
2232         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2233         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2234         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2235         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2236         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2237         omp_test_lock, omp_test_nest_lock): Likewise.
2238         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2239         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2240         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2241         omp_test_lock, omp_test_nest_lock): Likewise.
2242         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2243         omp_get_dynamic, omp_get_nested): Likewise.
2244         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2245         omp_get_thread_num, omp_in_parallel): Likewise.
2246         * fortran.c (ialias_redirect): Define.
2247         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2248         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2249         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2250         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2251         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2252         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2253         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2254         omp_get_wtime): Add ialias_redirect.
2256 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2258         * fortran.c: Include stdlib.h.
2260 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2262         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2263         * Makefile.in: Regenerated.
2265 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2267         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2268         * libgomp_f.h.in (omp_check_defines): New function.
2269         * env.c: Include libgomp_f.h.
2270         (initialize_env): Call omp_check_defines.
2272         * testsuite/libgomp.dg/copyin-2.c: New test.
2273         * testsuite/libgomp.c++/copyin-2.C: New test.
2274         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2276         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2277         * testsuite/libgomp.fortran/sharing2.f90: New test.
2279         * testsuite/libgomp.dg/copyin-1.c: New test.
2280         * testsuite/libgomp.c++/copyin-1.C: New test.
2282 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2284         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2286         * testsuite/libgomp.fortran/workshare1.f90: New test.
2288         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2289         only test.
2290         * libgomp.fortran/sharing1.f90: New test.
2292 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2294         PR c++/24502
2295         * testsuite/libgomp.c++/loop-7.C: New test.
2297         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2299         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2300         * testsuite/libgomp.fortran/reduction6.f90: New test.
2301         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2303 2005-10-23  Richard Henderson  <rth@redhat.com>
2305         * testsuite/libgomp.c++/ctor-1.C: New.
2306         * testsuite/libgomp.c++/ctor-2.C: New.
2307         * testsuite/libgomp.c++/ctor-3.C: New.
2308         * testsuite/libgomp.c++/ctor-4.C: New.
2309         * testsuite/libgomp.c++/ctor-5.C: New.
2310         * testsuite/libgomp.c++/ctor-6.C: New.
2311         * testsuite/libgomp.c++/ctor-7.C: New.
2312         * testsuite/libgomp.c++/ctor-8.C: New.
2313         * testsuite/libgomp.c++/ctor-9.C: New.
2315 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2317         PR 24455
2318         * testsuite/libgomp.c++/pr24455-1.C: New test.
2319         * testsuite/libgomp.c++/pr24455.C: New test.
2320         * testsuite/libgomp.dg/pr24455-1.c: New test.
2321         * testsuite/libgomp.dg/pr24455.c: New test.
2323 2005-10-20  Richard Henderson  <rth@redhat.com>
2325         * testsuite/libgomp.c++/loop-6.C: New.
2326         * testsuite/libgomp.dg/loop-3.c: New.
2328 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2330         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2331         explicitly private.
2332         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2333         explicitly shared.
2335 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2337         * testsuite/libgomp.fortran/jacobi.f: New test.
2339 2005-10-19  Richard Henderson  <rth@redhat.com>
2341         * configure.tgt (i?86-linux): Default to with_arch instead of
2342         CFLAGS.  Add -mtune to match target_cpu.
2343         (x86_64-linux): Tune to i686.
2345         * fortran.c (omp_test_nest_lock_): Fix typo.
2347 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2349         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2350         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2351         * testsuite/libgomp.dg/ordered-3.c: New test.
2353         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2354         Remove volatile keyword.
2356         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2357         in COMMON block to avoid warnings on 64-bit targets.
2359 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2361         * testsuite/libgomp.dg/shared-3.c: New test.
2363 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2365         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2366         * testsuite/libgomp.fortran/reduction5.f90: New test.
2368 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2370         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2371         dg-options.
2372         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2373         flush loop now that __sync_synchronize has proper memory barrier.
2374         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2375         Add -ffixed-form to dg-options.
2377 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2379         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2380         from subdirectories.
2381         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2382         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2383         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2384         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2385         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2386         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2387         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2388         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2389         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2390         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2391         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2392         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2393         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2394         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2395         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2396         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2397         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2398         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2399         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2400         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2401         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2402         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2403         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2404         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2405         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2407 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2409         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2410         lang_library_path exists.  Use find instead of glob to gather tests.
2411         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2413 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2415         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2416         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2417         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2418         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2419         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2420         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2421         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2422         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2423         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2424         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2425         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2426         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2427         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2429 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2431         * testsuite/libgomp.dg/vla-1.c: New test.
2433         * testsuite/libgomp.fortran/reference2.f90: New test.
2435         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2436         declaration of omp_get_thread_num.
2437         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2438         use omp_lib.
2440         * testsuite/libgomp.fortran/reduction1.f90: New test.
2441         * testsuite/libgomp.fortran/reduction2.f90: New test.
2442         * testsuite/libgomp.fortran/reduction3.f90: New test.
2443         * testsuite/libgomp.fortran/reduction4.f90: New test.
2445 2005-10-13  Richard Henderson  <rth@redhat.com>
2447         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2448         * Makefile.in: Regenerate.
2449         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2450         * libgomp.h: Include bar.h.
2451         (struct gomp_barrier): Remove.
2452         (struct gomp_team): Add barrier.  Replace master_barrier with
2453         master_release.  Replace threads with ordered_release.
2454         (struct gomp_thread): Replace barrier with release.
2455         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2456         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2457         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2458         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2459         (GOMP_single_copy_end): Likewise.
2460         * team.c (gomp_threads_dock): New.
2461         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2462         (gomp_thread_start): Use gomp_barrier_wait.
2463         (new_team, free_team): Update for gomp_team changes.
2464         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2465         (gomp_team_end): Use gomp_barrier_wait.
2466         (initialize_team): Update for gomp_thread changes.
2467         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2468         (gomp_work_share_end_nowait): Use atomic ops when available.
2469         * config/linux/bar.c, config/linux/bar.h: New files.
2470         * config/posix/bar.c, config/posix/bar.h: New files.
2472 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2474         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2475         * testsuite/libgomp.dg/single-2.c: New test.
2477         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2478         lang_link_flags): Unset, so that they aren't inherited from previously
2479         sourced *.exp.
2481         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2483 2005-10-12  Richard Henderson  <rth@redhat.com>
2485         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2486         (libgomp_init): Use lang_test_file, lang_library_path, and
2487         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2489         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2490         (lang_test_file, lang_link_flags): New.
2491         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2493         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2494         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2495         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2496         testsuite/libgomp.c++/parallel-1.C,
2497         testsuite/libgomp.c++/reduction-1.C,
2498         testsuite/libgomp.c++/reduction-2.C,
2499         testsuite/libgomp.c++/reduction-3.C,
2500         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2501         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2502         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2503         New files, largely cribbed from the C testsuite.
2505 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2507         * testsuite/libgomp.fortran/character1.f90: New test.
2508         * testsuite/libgomp.fortran/character2.f90: New test.
2510         * testsuite/libgomp.dg/nested-1.c: New test.
2511         * testsuite/libgomp.dg/nested-2.c: New test.
2512         * testsuite/libgomp.fortran/do1.f90: New test.
2513         * testsuite/libgomp.fortran/do2.f90: New test.
2515         * testsuite/libgomp.fortran/reference1.f90: New test.
2517 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2519         * testsuite/libgomp.dg/reduction-1.c: New test.
2520         * testsuite/libgomp.dg/reduction-2.c: New test.
2521         * testsuite/libgomp.dg/reduction-3.c: New test.
2523 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2525         * testsuite/libgomp.dg/atomic-1.c: New test.
2526         * testsuite/libgomp.dg/atomic-2.c: New test.
2528 2005-10-09  Richard Henderson  <rth@redhat.com>
2530         * critical.c (atomic_lock): New.
2531         (initialize_critical): Initialize it.
2532         (GOMP_atomic_start, GOMP_atomic_end): New.
2533         * libgomp.map: Export them.
2534         * libgomp_g.h: Declare them.
2536         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2538 2005-10-02  Richard Henderson  <rth@redhat.com>
2540         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2541         to XCFLAGS instead of CFLAGS.
2543 2005-09-30  Richard Henderson  <rth@redhat.com>
2545         * configure.ac: Determine whether -pthread or -lpthread is needed.
2546         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2547         * Makefine.in, configure: Rebuild.
2549 2005-09-28  Richard Henderson  <rth@redhat.com>
2551         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2552         * testsuite/libgomp.dg/omp-single-3.c: New test.
2554 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2556         * testsuite/libgomp.dg/omp-single-2.c: New test.
2557         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2559 2005-09-27  Richard Henderson  <rth@redhat.com>
2561         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2562         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2564 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2566         * testsuite/libgomp.dg/omp-loop03.c: New test.
2568 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2570         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2572 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2574         * testsuite/libgomp.dg/omp-single-1.c: New test.
2575         * testsuite/libgomp.dg/shared-1.c: Return 0.
2576         Add prototype for abort.
2577         * testsuite/libgomp.dg/shared-2.c: Likewise.
2579 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2581         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2582         constructs.
2584 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2586         * testsuite/libgomp.dg/shared-1.c: New test.
2587         * testsuite/libgomp.dg/shared-2.c: New test.
2589 2005-09-24  Richard Henderson  <rth@redhat.com>
2591         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2593 2005-09-24  Richard Henderson  <rth@redhat.com>
2595         * iter.c (gomp_iter_static_next): Round up when computing number
2596         of iterations.  Don't bother distributing a remainder equally.
2598         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2599         Don't call srand.  Zero b before testing.
2600         (main): New.
2602 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2604         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2605         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2607 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2609         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2610         without !$omp end do, followed immediately by subroutine end.
2612 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2614         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2616 2005-09-22  Richard Henderson  <rth@redhat.com>
2618         * critical.c (GOMP_critical_name_start): Change argument to void**.
2619         Reuse the pointer space if the mutex fits.
2620         (GOMP_critical_name_end): Likewise.
2621         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2622         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2623         (GOMP_critical_name_end): Likewise.
2624         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2625         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2627 2005-09-20  Richard Henderson  <rth@redhat.com>
2629         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2630         (create_lock_lock): New.
2631         (initialize_critical): Initialize it.
2632         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2633         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2635 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2637         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2639 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2641         * testsuite/libgomp.dg/omp-loop01.c: New test.
2642         * testsuite/libgomp.dg/omp-loop02.c: New test.
2644 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2646         * configure.ac (AC_PROG_FC): Add.
2647         (USE_FORTRAN): New automake conditional.
2648         * configure: Rebuilt.
2649         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2650         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2651         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2652         Add rules to build them.
2653         * Makefile.in: Rebuilt.
2654         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2655         OMP_NEST_LOCK_KIND.
2656         * libgomp.map: Add Fortran wrappers.
2657         * libgomp_f.h.in: New file.
2658         * omp_lib.h.in: New file.
2659         * omp_lib.f90.in: New file.
2660         * fortran.c: New file.
2661         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2662         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2663         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2664         libgfortran has been built.
2665         * testsuite/libgomp.fortran/fortran.exp: New file.
2666         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2667         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2668         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2669         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2670         * testsuite/libgomp.fortran/omp_hello.f: New test.
2671         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2672         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2673         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2674         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2675         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2676         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2677         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2678         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2680 2005-08-30  Richard Henderson  <rth@redhat.com>
2682         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2683         function for when aliases are not usable.
2684         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2685         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2686         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2687         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2688         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2689         GOMP_loop_ordered_guided_next): Likewise.
2690         * ordered.c (GOMP_ordered_start): Likewise.
2692 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2694         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2695         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2696         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2697         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2698         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2699         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2700         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2701         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2702         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2704 2005-07-07  Eric Christopher  <echristo@redhat.com>
2705             Diego Novillo  <dnovillo@redhat.com>
2707         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2708         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2709         up code.
2710         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2711         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2712         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2713         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2714         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2715         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2716         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2718 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2720         * TOPLEVEL.patch: Remove.
2722 2005-05-16  Richard Henderson  <rth@redhat.com>
2724         * configure.ac: Test for clock_gettime.
2725         * config.h.in, configure: Rebuild.
2726         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2727         (omp_get_wtime): Use clock_gettime if available.
2728         (omp_get_wtick): Use clock_getres if available.
2730 2005-05-11  Richard Henderson  <rth@redhat.com>
2732         * config/linux/ia64/futex.h: New file.
2733         * configure.tgt: Use it.
2735         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2737 2005-05-07  Richard Henderson  <rth@redhat.com>
2739         * config/linux/powerpc/futex.h: New file.
2740         * configure.tgt: Use it.
2742         * config/linux/i486/futex.h: Merge ...
2743         * config/linux/x86_64/futex.h: ... into ...
2744         * config/linux/x86/futex.h: ... here.
2745         * configure.tgt: Update to match.
2747 2005-05-06  Richard Henderson  <rth@redhat.com>
2749         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2750         * config/linux/i486/futex.h: Likewise.
2751         * config/linux/x86_64/futex.h: Likewise.
2753         * config/linux/lock.c: New file.
2754         * config/linux/omp-lock.h: New file.
2756         * critical.c, env.h: Don't include omp.h
2757         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2758         * config/posix/time.c: Likewise.
2759         * config/posix/omp-lock.h: New file.
2760         * libgomp.h: Include omp-lock.h and omp.h.
2761         * Makefile.am (nodist_include_HEADERS): New.
2762         (omp.h): New rule.
2763         * configure.ac (PERL): New.
2764         * mkomp_h.pl: New file.
2765         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2766         with templates.
2767         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2769         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2770         build directory.  Re-add -march=i486 hack.
2772         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2773         (libgomp_link_flags): Remove.
2774         (libgomp_initialized): Remove.
2775         (libgomp_init): Don't protect from reinitialization.  Copy code
2776         from libstdc++ for getting the multilib set correctly.
2778 2005-05-05  Richard Henderson  <rth@redhat.com>
2780         * config/linux/alpha/futex.h: New file.
2781         * configure.tgt (alpha*-*-linux*): Use it.
2783         * config/posix/mutex.c: New file.
2784         * config/posix/sem.c: Use libgomp.h.
2786         * configure.tgt (x86_64-linux): Also test CC for -m32.
2787         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2789         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2790         after $gccpath.
2792         * Makefile.am (SUBDIRS): New.
2793         (libgomp_la_LDFLAGS): Add -lpthread.
2794         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2795         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2797         * libgomp_g.h: New file.
2798         * libgomp.h: Split out all public declarations to libgomp_g.h.
2799         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2800         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2801         * config/linux/sem.h: Likewise.
2802         * config/posix/sem.h: Likewise.
2804         * Makefile.am (AM_LDFLAGS): New.
2805         (libgomp_version_script): Split out from ...
2806         (libgomp_la_LDFLAGS): ... here.
2807         (libgomp_version_info): New.
2808         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2809         (LIBGOMP_ENABLE): New.
2810         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2811         (LIBGOMP_ENABLE_SYMVERS): New.
2812         * configure.ac (AC_INIT): Version 1.0.
2813         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2814         (enable-linux-futex): Likewise.  Rename from enable-futex.
2815         (libtool_VERSION): New.
2816         (LIBGOMP_ENABLE_SYMVERS): Use it.
2817         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2818         * Makefile.in, aclocal.m4, configure: Rebuild.
2820         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2821         (gomp_mutex_unlock_slow): Fix typo.
2822         * config/linux/sem.c: Similarly.
2823         (gomp_sem_post_slow): Fix typo.
2824         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2825         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2826         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2828         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2829         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2830         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2831         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2832         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2833         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2834         LDFLAGS.  Pull enable_futex check to top-level.
2835         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
2836         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2838         First attempt at real configury.
2839         * Makefile, config.h: Remove file.
2840         * Makefile.am, Makefile.in: New file.
2841         * acinclude.m4 aclocal.m4: New file.
2842         * configure.ac, configure.tgt, configure: New file.
2844         * config/posix/lock.c: Rename from sys-lock.c.
2845         * config/posix/mutex.h: Rename from sys-mutex.h.
2846         * config/posix/sem.c: Rename from sys-sem.c.
2847         * config/posix/sem.h: Rename from sys-sem.h.
2848         * config/posix/proc.c: Rename from sys-proc.c.
2849         * config/posix/time.c: Rename from sys-proc.c.
2851         * config/linux/mutex.c: New file.
2852         * config/linux/mutex.h: New file.
2853         * config/linux/sem.c: New file.
2854         * config/linux/sem.h: New file.
2855         * config/linux/i486/futex.h: New file.
2856         * config/linux/x86_64/futex.h: New file.
2858 2005-05-04  Richard Henderson  <rth@redhat.com>
2860         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2861         * libgomp.h: Declare them.
2862         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2863         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2865 2005-05-04  Richard Henderson  <rth@redhat.com>
2867         * libgomp-1 code drop
2869 2005-05-04  Richard Henderson  <rth@redhat.com>
2871         * iter.c (gomp_iter_static_next): Return tri-state on 0.
2872         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2873         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2874         (gomp_iter_static_next): Update.
2875         (gomp_ordered_static_next): Update.
2876         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2877         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
2878         totally empty range.
2879         (gomp_loop_ordered_static_next): Refine test for calling
2880         gomp_ordered_static_next.
2881         * testsuite/ordered-1.c: Add case for more threads than iterations.
2883         * iter.c (gomp_iter_runtime_next_locked): Remove.
2884         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2885         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2886         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2887         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2888         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2889         gomp_loop_ordered_guided_next): Downcase name, make static, add
2890         an external alias with the old name.
2891         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2892         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2893         switch and call one of the above static functions.
2894         * libgomp.h: Update.
2896         * work.c (gomp_work_share_start): Lock the mutex for !first too.
2897         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2898         GOMP_loop_guided_start, GOMP_loop_runtime_start,
2899         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2900         GOMP_loop_ordered_guided_start): Update to match.
2901         * sections.c (GOMP_sections_start): Likewise.
2902         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2904         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2905         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2906         Use bounds check instead of modulus.
2907         (gomp_ordered_sync): Split out of GOMP_ordered_start.
2908         (gomp_ordered_last): Don't sync with ordered_owner here.
2909         (gomp_ordered_next): Likewise.
2910         (gomp_ordered_static_loop_next): Likewise.
2911         * loop.c, libgomp.h: Update to match.
2913         * libgomp.h (GOMP_barrier): Declare.
2915         * testsuite/barrier-1.c: New file.
2916         * testsuite/critical-1.c: New file.
2917         * testsuite/ordered-2.c: New file.
2918         * testsuite/ordered-1.c: New file.
2919         * testsuite/sections-1.c: New file.
2920         * testsuite/single-1.c: New file.
2921         * testsuite/Makefile (TESTS): Add them.
2923 2005-05-04  Richard Henderson  <rth@redhat.com>
2925         * libgomp.h (struct gomp_work_share): Add ordered_owner.
2926         * loop.c (GOMP_loop_static_start): If not the startup thread,
2927         acquire the mutex to wait for initialization complete.
2928         (GOMP_loop_ordered_static_start): Likewise.
2929         (GOMP_loop_ordered_runtime_start): Likewise.
2930         (GOMP_loop_ordered_static_first): Remove.
2931         (GOMP_loop_ordered_dynamic_first): Remove.
2932         (GOMP_loop_ordered_guided_first): Remove.
2933         (GOMP_loop_ordered_runtime_first): Remove.
2934         * ordered.c (gomp_ordered_loop_first): Post to own release when
2935         we're the first thread.
2936         (gomp_ordered_loop_last): Wait on release if not owner.
2937         (gomp_ordered_loop_next): Likewise.
2938         (gomp_ordered_static_loop_init): New.
2939         (gomp_ordered_static_loop_next): Use ordered_owner.
2940         (GOMP_ordered_start): Likewise.
2941         * work.c (gomp_new_work_share): Initialize ordered_owner.
2943 2005-05-03  Richard Henderson  <rth@redhat.com>
2945         * Makefile (OPT): New.
2946         (CFLAGS): Use it.
2948         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2949         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2950         * libgomp.h, libgomp.map, NOTES: Update to match.
2952         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2953         Add initialized and thr members.
2954         (gomp_thread_start): Pause when initially spawned to wait for
2955         the whole team to be created.
2956         (gomp_team_start): Release team members at the end.
2958         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
2959         (f_foo_1): Use GOMP_loop_end.
2960         (f_foo_2): Use GOMP_loop_end_nowait.
2962         * testsuite/loop-2.c: New file.
2963         * testsuite/Makefile (TESTS): Add it.
2965 2005-05-03  Richard Henderson  <rth@redhat.com>
2967         * iter.c (gomp_iter_static_next): Fix overflow check typo.
2968         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2969         * team.c (new_team): Initialize oldest_live_gen to 1 if no
2970         initial work_share.
2972         * testsuite/Makefile: New file.
2973         * testsuite/loop-1.c: New file.
2975 2005-05-03  Richard Henderson  <rth@redhat.com>
2977         Initial implementation and checkin.