* g++.dg/ext/altivec-2.C: Add -Wno-unused-but-set-variable to
[official-gcc.git] / libgomp / ChangeLog
blob4ac37eb56c04d81e872a5f0b31217aaeee8028ab
1 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
4         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
5         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
6         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
7         targetting solaris2*.
8         * configure: Regenerate.
9         * config.h.in: Regenerate.
11         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
12         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13         Add libgomp_version_dep.
14         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15         versioning.
16         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18         * Makefile.in: Regenerate.
20         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
21         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
22         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
23         to common block, protected by
24         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
26 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
28         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
30 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
32         PR bootstrap/43170
33         * configure: Regenerate.
35 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37         PR other/43620
38         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
39         * configure: Regenerate.
40         * Makefile.in: Regenerate.
41         * testsuite/Makefile.in: Regenerate.
43 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
45         PR c/43893
46         * testsuite/libgomp.c/pr43893.c: New test.
47         * testsuite/libgomp.c++/pr43893.C: New test.
49 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
51         PR middle-end/43570
52         * testsuite/libgomp.fortran/vla8.f90: New test.
54 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
56         PR libgomp/43706
57         * config/linux/affinity.c (gomp_init_affinity): Decrease
58         gomp_available_cpus if affinity mask confines the process to fewer
59         CPUs.
60         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
61         non-NULL, just return gomp_available_cpus.
63         PR libgomp/43569
64         * sections.c (gomp_sections_init): Initialize ws->mode.
66 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
68         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
69         not unused bar variable.
70         * configure: Regenerate.
72 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74         * Makefile.in: Regenerate.
75         * aclocal.m4: Regenerate.
76         * testsuite/Makefile.in: Regenerate.
78 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
80         PR libgomp/42942
81         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
82         (initialize_env): Adjust callers.
83         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
84         when the argument is 0.
86         * testsuite/libgomp.c/pr42942.c: New test.
88 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
90         PR middle-end/42644
91         PR middle-end/42130
92         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
93         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
95 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
97         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
98         * testsuite/libgomp.c++/task-6.C: Likewise.
100 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
102         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
104 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
106         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
107         * configure: Regenerate.
109 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
111         PR fortran/42866
112         * testsuite/libgomp.fortran/allocatable5.f90: New test.
114 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
116         * configure.ac: Test for executability of GFORTRAN.
117         * configure: Regenerate.
119 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
121         * configure: Regenerate.
123 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
125         PR libgomp/42602
126         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
128 2010-01-03  Richard Guenther  <rguenther@suse.de>
130         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
132 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
134         * testsuite/libgomp.graphite/pr4118.c: New.
136 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
138         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
139         for darwin, protect the test with require-effective-target tls_runtime.
140         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
142 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
144         PR target/41605
145         * testsuite/lib/libgomp.exp: Provide -B options to allow for
146         link spec %s substitutions for static libraries.
148 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
150         PR testsuite/42135
151         * libgomp.graphite/force-parallel-2.c: Reduce array size.
153 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
155         * Makefile.in: Regenerate.
156         * configure: Regenerate.
157         * testsuite/Makefile.in: Regenerate.
159 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
161         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
162         settings for LC_ALL and LANG.
164 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
166         PR fortran/42162
167         * testsuite/libgomp.fortran/pr42162.f90: New test.
169 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
171         PR middle-end/42029
172         * testsuite/libgomp.c/pr42029.c: New test.
174 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
176         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
177         *s.  Accept ld version without text in ()s.
178         * configure: Regenerated.
180 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
182         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
184 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
186         PR libgomp/41418
187         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
188         or a hyphen (happens with fortran language disabled).
189         * configure: Regenerate.
191 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
193         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
194         use sed script portable to Solaris /bin/sed for extracting ld
195         version.
196         * configure: Regenerate.
198 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
200         * testsuite/libgomp.graphite/bounds.c: New test.
202 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
204         * Makefile.am (libgomp_la_LINK): New.
205         * Makefile.in: Regenerate.
207 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
209         * configure.ac (AC_PREREQ): Bump to 2.64.
211 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
213         * Makefile.am (install-html, install-pdf): Remove.
214         * Makefile.in: Regenerate.
216         * Makefile.in: Regenerate.
217         * aclocal.m4: Regenerate.
218         * config.h.in: Regenerate.
219         * configure: Regenerate.
220         * testsuite/Makefile.in: Regenerate.
222 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
224         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
225         * Makefile.in: Regenerate.
227 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
229         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
230         * Makefile.in: Regenerate.
232 2009-08-19  Tobias Burnus  <burnus@net-b.de>
234         PR fortran/41102
235         omp_lib.h.in: Fix -std=f95 errors.
238 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
240         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
241         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
242         * testsuite/libgomp.graphite/graphite.exp: New.
244 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
246         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
247         only build.
249 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
251         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
252         needed memory barrier semantics.
253         * config/linux/mips/mutex.h: New file.
255 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
257         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
259 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
261         * configure: Regenerate.
263 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
265         PR testsuite/40699
266         PR testsuite/40707
267         PR testsuite/40709
268         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
269         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
270         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
272 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
274         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
275         options when choosing a multilib.
277 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
279         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
280         ld_library_path.  Use add_path.  Add just find_libgcc_s to
281         ld_library_path, not every libgcc multilib directory.
282         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
283         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
284         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
285         Use add_path.
286         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
288 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
290         * Makefile.am (LTLDFLAGS): Define.
291         (LINK): Define.
292         * Makefile.in: Regenerate.
294 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
296         PR fortran/39718
297         * testsuite/libgomp.fortran/fortran.exp: Don't link with
298         libgfortranbegin, check existence of libgfortran.a instead of
299         libgfortranbegin.a.
301 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
303         PR libgomp/40174
304         * team.c (gomp_thread_start): Destroy thr->release semaphore.
305         (gomp_free_pool_helper): Likewise.
307 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
308             Jakub Jelinek  <jakub@redhat.com>
310         PR fortran/35423
311         * testsuite/libgomp.fortran/workshare2.f90: New test.
313 2009-04-09  Nick Clifton  <nickc@redhat.com>
315         * iter.c: Change copyright header to refer to version 3 of the
316         GNU General Public License with version 3.1 of the GCC Runtime
317         Library Exception and to point readers at the COPYING3 and
318         COPYING3.RUNTIME files and the FSF's license web page.
319         * alloc.c: Likewise.
320         * barrier.c: Likewise.
321         * config/bsd/proc.c: Likewise.
322         * config/linux/affinity.c: Likewise.
323         * config/linux/alpha/futex.h: Likewise.
324         * config/linux/bar.c: Likewise.
325         * config/linux/bar.h: Likewise.
326         * config/linux/ia64/futex.h: Likewise.
327         * config/linux/ia64/mutex.h: Likewise.
328         * config/linux/lock.c: Likewise.
329         * config/linux/mips/futex.h: Likewise.
330         * config/linux/mutex.c: Likewise.
331         * config/linux/mutex.h: Likewise.
332         * config/linux/powerpc/futex.h: Likewise.
333         * config/linux/proc.c: Likewise.
334         * config/linux/ptrlock.c: Likewise.
335         * config/linux/ptrlock.h: Likewise.
336         * config/linux/s390/futex.h: Likewise.
337         * config/linux/sem.c: Likewise.
338         * config/linux/sem.h: Likewise.
339         * config/linux/sparc/futex.h: Likewise.
340         * config/linux/wait.h: Likewise.
341         * config/linux/x86/futex.h: Likewise.
342         * config/mingw32/proc.c: Likewise.
343         * config/mingw32/time.c: Likewise.
344         * config/posix/affinity.c: Likewise.
345         * config/posix/bar.c: Likewise.
346         * config/posix/bar.h: Likewise.
347         * config/posix/lock.c: Likewise.
348         * config/posix/mutex.h: Likewise.
349         * config/posix/proc.c: Likewise.
350         * config/posix/ptrlock.h: Likewise.
351         * config/posix/sem.c: Likewise.
352         * config/posix/sem.h: Likewise.
353         * config/posix/time.c: Likewise.
354         * config/posix95/lock.c: Likewise.
355         * critical.c: Likewise.
356         * env.c: Likewise.
357         * error.c: Likewise.
358         * fortran.c: Likewise.
359         * iter_ull.c: Likewise.
360         * libgomp.h: Likewise.
361         * libgomp_f.h.in: Likewise.
362         * libgomp_g.h: Likewise.
363         * loop.c: Likewise.
364         * loop_ull.c: Likewise.
365         * omp.h.in: Likewise.
366         * omp_lib.f90.in: Likewise.
367         * omp_lib.h.in: Likewise.
368         * ordered.c: Likewise.
369         * parallel.c: Likewise.
370         * sections.c: Likewise.
371         * single.c: Likewise.
372         * task.c: Likewise.
373         * team.c: Likewise.
374         * work.c: Likewise.
376 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
378         * testsuite/config/default.exp: Change copyright header to refer to
379         version 3 of the GNU General Public License and to point readers
380         at the COPYING3 file and the FSF's license web page.
382 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
384         PR middle-end/39573
385         * libgomp.c++/pr39573.C: New test.
387 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
389         PR other/39591
390         * testsuite/libgomp.c/pr39591-1.c: New test.
391         * testsuite/libgomp.c/pr39591-2.c: New test.
392         * testsuite/libgomp.c/pr39591-3.c: New test.
394 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
396         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
397         * testsuite/libgomp.c/atomic-6.c: Ditto.
399 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
401         PR c/39495
402         * testsuite/libgomp.c/loop-12.c: New test.
403         * testsuite/libgomp.c/loop-11.c: New test.
404         * testsuite/libgomp.c++/loop-11.C: New test.
405         * testsuite/libgomp.c++/loop-12.C: New test.
406         * testsuite/libgomp.c++/for-8.C: New test.
408 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
410         * configure: Regenerate.
412 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
414         PR middle-end/39154
415         * testsuite/libgomp.c/pr39154.c: New test.
417 2009-01-30  Ian Lance Taylor  <iant@google.com>
419         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
420         libgomp_ld_is_gold.  Get gold version number.
421         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
422         * configure: Rebuild.
424 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
426         * testsuite/lib/libgomp.exp: Add -B option for targets that
427         use libgfortran.a%s in their specs.
429 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
431         PR libgomp/38086
432         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
433         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
434         HAVE_AS_SYMVER_DIRECTIVE is not defined.
435         * configure: Regenerated.
436         * config.h.in: Likewise.
438 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
440         PR c++/38650
441         * testsuite/libgomp.c/pr38650.c: New test.
442         * testsuite/libgomp.c++/pr38650.C: New test.
444 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
446         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
448 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
450         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
452 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
454         * configure: Regenerate.
456 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
458         PR middle-end/36802
459         * testsuite/libgomp.c/pr36802-1.c: New test.
460         * testsuite/libgomp.c/pr36802-2.c: New test.
461         * testsuite/libgomp.c/pr36802-3.c: New test.
463 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
465         PR libgomp/38270
466         * config/linux/powerpc/mutex.h: New.
468 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
470         PR c++/38257
471         * testsuite/libgomp.c++/for-7.C: New test.
473         PR c++/38348
474         * testsuite/libgomp.c++/for-6.C: New test.
476 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
478         PR testsuite/28870
479         * testsuite/lib/libgomp.exp: Include new timeout library files.
480         (libgomp_target_compile): Set timeout value from new proc.
482 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
484         PR libgomp/37938
485         * config/linux/ia64/mutex.h: New.
487 2008-11-04  Tobias Burnus  <burnus@net-b.de>
489         PR libgomp/37935
490         * libgomp.texi (Runtime library routines, environment variables):
491         Update for OpenMP version 3.0.
493 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
494             Steve Ellcey  <sje@cup.hp.com>
496         * configure: Regenerate for new libtool.
497         * Makefile.in: Ditto.
498         * testsuite/Makefile.in: Ditto.
500 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
501             Andreas Tobler  <a.tobler@schweiz.org>
503         * config/bsd/proc.c: New file.
504         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
505         * configure.ac: Check for header <sys/sysctl.h>
506         * configure: Regenerate.
507         * config.h.in: Likewise.
509 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
511         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
513 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
515         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
516         * Makefile.in: Regenerated.
517         * testsuite/Makefile.in: Regenerated.
519 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
521         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
522         depend on blddir if blddir exists.
523         (libgomp_target_compile): Likewise.
524         * testsuite/libgomp.c++/c++.exp: Likewise.
525         * testsuite/libgomp.fortran/fortran.exp: Likewise.
527 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
529         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
530         Do not list GPL as Invariant Section.
532 2008-07-28  Ilie Garbacea  <ilie@mips.com>
533             Chao-ying Fu  <fu@mips.com>
535         * configure.tgt: Enable futex for MIPS.
536         * config/linux/mips/futex.h: New file.
538 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
540         * team.c (gomp_team_end): Free team immediately if it has
541         just one thread.
543 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
545         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
546         * testsuite/libgomp.fortran/fortran.exp: Same.
547         * testsuite/libgomp.c/c.exp: Same.
548         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
549         directory to library path first.
551 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
553         * env.c (parse_stacksize): Add cast to avoid warning.
554         (parse_spincount): Likewise.
556 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
558         * testsuite/libgomp.c/loop-10.c: New test.
559         * libgomp.c/loop-3.c (main): Add lastprivate clause.
560         * libgomp.c++/loop-6.C (main): Likewise.
562         PR debug/36617
563         * testsuite/libgomp.c/debug-1.c: New test.
565 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
567         * testsuite/libgomp.c/nqueens-1.c: New test.
569         PR c++/36523
570         * testsuite/libgomp.c++/task-7.C: New function.
572 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
574         * configure: Regenerate.
576 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
578         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
579         mutex when HAVE_SYNC_BUILTINS isn't defined.
581 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583         * libgomp.texi (omp_test_lock): Fix typo.
585 2008-06-12  Tobias Burnus  <burnus@net-b.de>
587         * omp_lib.f90.in: Add "implicit none".
589 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
591         PR middle-end/36506
592         * testsuite/libgomp.c/reduction-5.c: New test.
594 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
596         * libgomp.h (struct gomp_task): Add in_tied_task field.
597         * task.c (gomp_init_task): Initialize it.
598         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
599         unconditionally.  Don't call gomp_team_barrier_wake if
600         current task is implicit or if(0) from implicit and number of
601         running tasks is equal to nthreads - 1.
603         PR libgomp/36471
604         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
605         omp_get_team_size_8): Fix pastos.
607         PR libgomp/36469
608         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
609         * configure: Regenerated.
610         * config.h.in: Regenerated.
611         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
612         defined.
614 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
616         PR bootstrap/36452
617         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
618         (GOMP_loop_ull_dynamic_start): Likewise.
619         (GOMP_loop_ull_guided_start): Likewise.
620         (GOMP_loop_ull_ordered_static_start): Likewise.
621         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
622         (GOMP_loop_ull_ordered_guided_start): Likewise.
624 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
625             Richard Henderson  <rth@redhat.com>
626             Ulrich Drepper  <drepper@redhat.com>
627             Jakob Blomer  <jakob.blomer@ira.uka.de>
629         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
630         Substitute also OMP_*LOCK_25*.
631         * configure: Regenerated.
632         * config.h.in: Regenerated.
633         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
634         ptrlock.c and task.c.
635         * Makefile.in: Regenerated.
636         * testsuite/Makefile.in: Regenerated.
637         * task.c: New file.
638         * loop_ull.c: New file.
639         * iter_ull.c: New file.
640         * libgomp.h: Include ptrlock.h.
641         (enum gomp_task_kind): New type.
642         (struct gomp_team): Add task_lock, task_queue, task_count,
643         task_running_count, single_count fields.  Add
644         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
645         Remove work_share_lock, generation_mask,
646         oldest_live_gen, num_live_gen and init_work_shares fields, add
647         work work_share_list_alloc, work_share_list_free and work_share_chunk
648         fields.  Change work_shares from pointer to pointers into an array.
649         Change ordered_release field into gomp_sem_t ** from flexible array
650         member.  Add implicit_task and initial_work_shares fields.
651         Move close to the end of the struct.
652         (struct gomp_team_state): Add single_count, last_work_share,
653         active_level and level fields, remove work_share_generation.
654         (gomp_barrier_handle_tasks): New prototype.
655         (gomp_finish_task): New inline function.
656         (struct gomp_work_share): Move chunk_size, end, incr into
657         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
658         next_ll fields.  Reshuffle fields.  Add next_alloc,
659         next_ws, next_free and inline_ordered_team_ids fields, change
660         ordered_team_ids into pointer from flexible array member.
661         Add mode field.  Put lock and next into a different cache line
662         from most of the write-once fields.
663         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
664         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
665         gomp_iter_ull_guided_next): New prototypes.
666         (gomp_new_icv): New prototype.
667         (struct gomp_thread): Add thread_pool and task fields.
668         (struct gomp_thread_pool): New type.
669         (gomp_new_team): New prototype.
670         (gomp_team_start): Change type of last argument.
671         (gomp_new_work_share): Removed.
672         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
673         (gomp_work_share_init_done): New static inline.
674         (gomp_throttled_spin_count_var, gomp_available_cpus,
675         gomp_managed_threads): New extern decls.
676         (gomp_init_task): New prototype.
677         (gomp_spin_count_var): New extern var decl.
678         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
679         or no alias support, or if not PIC.
680         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
681         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
682         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
683         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
684         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
685         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
686         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
687         gomp_test_nest_lock_25): New prototypes.
688         (omp_lock_symver, strong_alias): Define.
689         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
690         decls.
691         (gomp_end_task): New.
692         (struct gomp_task_icv, gomp_global_icv): New.
693         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
694         (struct gomp_task): New.
695         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
696         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
697         (gomp_icv): New.
698         (gomp_schedule_type): Reorder enum to match
699         omp_sched_t.
700         * team.c (struct gomp_thread_start_data): Add thread_pool and task
701         fields.
702         (gomp_thread_start): Add gomp_team_barrier_wait call.
703         For non-nested case remove clearing of docked thread thr fields.
704         Use pool fields instead of global gomp_* variables.  Use
705         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
706         Create tasks for each member thread.
707         (free_team): Only destroy team barrier, task_lock here and free it.
708         (gomp_free_thread): Free last_team if non-NULL.
709         (gomp_team_end): Call gomp_team_barrier_wait instead of
710         gomp_barrier_wait.  For nested case call one extra
711         gomp_barrier_wait.  Move here some destruction from free_team.
712         Call free_team on pool->last_team if any, rather than freeing
713         current team.  Destroy work_share_list_free_lock ifndef
714         HAVE_SYNC_BUILTINS.
715         (gomp_new_icv): New function.
716         (gomp_threads, gomp_threads_size, gomp_threads_used,
717         gomp_threads_dock): Removed.
718         (gomp_thread_destructor): New variable.
719         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
720         functions.
721         (gomp_team_start): Create new pool if current thread doesn't have
722         one.  Use pool fields instead of global gomp_* variables. 
723         Initialize thread_pool field for new threads.  Clear single_count.
724         Change last argument from ws to team, don't create
725         new team, set ts.work_share to &team->work_shares[0] and clear
726         ts.last_work_share.  Don't clear ts.work_share_generation.
727         If number of threads changed, adjust atomically gomp_managed_threads.
728         Use gomp_init_task instead of gomp_new_task,
729         set thr->task to the corresponding implicit_task array entry.
730         Create tasks for each member thread.  Initialize ts.level.
731         (initialize_team): Call pthread_key_create on
732         gomp_thread_destructor.
733         (team_destructor): New function.
734         (new_team): Removed.
735         (gomp_new_team): New function.
736         (free_team): Free gomp_work_share blocks chained through next_alloc,
737         instead of freeing work_shares and destroying work_share_lock.
738         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
739         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
740         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
741         of gomp_barrier_wait.
742         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
743         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
744         if gomp_work_share_start returned true.  Don't unlock ws->lock.
745         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
746         of gomp_barrier_wait.
747         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
748         gomp_work_share_init_done if gomp_work_share_start returned true.
749         Don't unlock ws->lock.
750         * work.c: Include stddef.h.
751         (free_work_share): Use work_share_list_free_lock instead
752         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
753         Call gomp_fini_work_share and then either free ws if orphaned, or
754         put it into work_share_list_free list of the current team.
755         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
756         functions.
757         (gomp_work_share_start, gomp_work_share_end,
758         gomp_work_share_end_nowait): Rewritten.
759         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
760         (openmp_version): Set to 200805.
761         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
762         omp_sched_guided, omp_sched_auto): New parameters.
763         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
764         omp_set_max_active_levels, omp_get_max_active_levels,
765         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
766         omp_get_active_level): New interfaces.
767         * omp_lib.h.in (openmp_version): Set to 200805.
768         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
769         omp_sched_guided, omp_sched_auto): New parameters.
770         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
771         omp_set_max_active_levels, omp_get_max_active_levels,
772         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
773         omp_get_active_level): New externals.
774         * loop.c: Include limits.h.
775         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
776         GFS_AUTO.
777         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
778         Likewise.  Use gomp_icv.
779         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
780         ts.static_trip here.
781         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
782         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
783         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
784         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
785         don't unlock ws->lock, otherwise lock it.
786         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
787         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
788         (gomp_parallel_loop_start): Call gomp_new_team instead of
789         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
790         Adjust gomp_team_start caller.  Pass 0 as second argument to
791         gomp_resolve_num_threads.
792         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
793         If adding ws->chunk_size nthreads + 1 times after end won't
794         overflow, set ws->mode to 1.
795         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
796         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
797         GOMP_loop_ull_ordered_static_start,
798         GOMP_loop_ull_ordered_dynamic_start,
799         GOMP_loop_ull_ordered_guided_start,
800         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
801         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
802         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
803         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
804         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
805         prototypes.
806         * libgomp.map: Export lock routines also @@OMP_2.0.
807         (GOMP_loop_ordered_dynamic_first,
808         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
809         GOMP_loop_ordered_static_first): Remove.
810         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
811         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
812         GOMP_loop_ull_ordered_dynamic_next,
813         GOMP_loop_ull_ordered_dynamic_start,
814         GOMP_loop_ull_ordered_guided_next,
815         GOMP_loop_ull_ordered_guided_start,
816         GOMP_loop_ull_ordered_runtime_next,
817         GOMP_loop_ull_ordered_runtime_start,
818         GOMP_loop_ull_ordered_static_next,
819         GOMP_loop_ull_ordered_static_start,
820         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
821         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
822         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
823         (omp_set_schedule, omp_get_schedule,
824         omp_get_thread_limit, omp_set_max_active_levels,
825         omp_get_max_active_levels, omp_get_level,
826         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
827         omp_set_schedule_, omp_set_schedule_8_,
828         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
829         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
830         omp_get_max_active_levels_, omp_get_level_,
831         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
832         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
833         New exports @@OMP_3.0.
834         * omp.h.in (omp_sched_t): New type.
835         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
836         omp_set_max_active_levels, omp_get_max_active_levels,
837         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
838         omp_get_active_level): New prototypes.
839         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
840         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
841         gomp_thread_limit_var, gomp_remaining_threads_count,
842         gomp_remaining_threads_lock): New variables.
843         (parse_spincount): New function.
844         (initialize_env): Call gomp_init_num_threads unconditionally.
845         Initialize gomp_available_cpus.  Call parse_spincount,
846         initialize gomp_{,throttled_}spin_count_var
847         depending on presence and value of OMP_WAIT_POLICY and
848         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
849         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
850         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
851         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
852         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
853         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
854         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
855         (gomp_global_icv): New.
856         (parse_schedule): Use it.  Parse "auto".
857         (omp_set_num_threads): Use gomp_icv.
858         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
859         Likewise.
860         (omp_get_max_threads): Move from parallel.c.
861         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
862         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
863         add ialias.
864         (parse_stacksize, parse_wait_policy): New functions.
865         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
866         both wrappers for compatibility and new locks.
867         (omp_set_schedule, omp_get_schedule,
868         omp_get_thread_limit, omp_set_max_active_levels,
869         omp_get_max_active_levels, omp_get_level,
870         omp_get_ancestor_thread_num, omp_get_team_size,
871         omp_get_active_level): New ialias_redirect.
872         (omp_set_schedule_, omp_set_schedule_8_,
873         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
874         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
875         omp_get_max_active_levels_, omp_get_level_,
876         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
877         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
878         New functions.
879         * parallel.c: Include limits.h.
880         (gomp_resolve_num_threads): Add count argument.  Rewritten.
881         (GOMP_parallel_start): Call gomp_new_team and pass that as last
882         argument to gomp_team_start.  Pass 0 as second argument to
883         gomp_resolve_num_threads.
884         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
885         if gomp_thread_limit_var != ULONG_MAX.
886         (omp_in_parallel): Implement using ts.active_level.
887         (omp_get_max_threads): Move to env.c.
888         (omp_get_level, omp_get_ancestor_thread_num,
889         omp_get_team_size, omp_get_active_level): New functions,
890         add ialias.
891         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
892         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
893         gomp_iter_dynamic_next instead of the _locked variant and don't take
894         lock around it, otherwise acquire it before calling
895         gomp_iter_dynamic_next_locked.
896         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
897         gomp_iter_dynamic_next instead of the _locked variant and don't take
898         lock around it.
899         (GOMP_parallel_sections_start): Call gomp_new_team instead of
900         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
901         Adjust gomp_team_start caller.  Pass count as second argument to
902         gomp_resolve_num_threads, don't adjust num_threads after the call.
903         Use gomp_icv.
904         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
905         ws->chunk_size by incr.
906         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
907         code.
908         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
909         types.
910         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
911         (omp_check_defines): Check even the compat defines.
912         * config/linux/ptrlock.c: New file.
913         * config/linux/ptrlock.h: New file.
914         * config/linux/wait.h: New file.
915         * config/posix/ptrlock.c: New file.
916         * config/posix/ptrlock.h: New file.
917         * config/linux/bar.h (gomp_team_barrier_wait,
918         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
919         (gomp_team_barrier_set_task_pending,
920         gomp_team_barrier_clear_task_pending,
921         gomp_team_barrier_set_waiting_for_tasks,
922         gomp_team_barrier_waiting_for_tasks,
923         gomp_team_barrier_done): New inlines.
924         (gomp_barrier_t): Rewritten.
925         (gomp_barrier_state_t): New typedef.
926         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
927         gomp_barrier_wait_start): Rewritten.
928         (gomp_barrier_wait_end): Change second argument to
929         gomp_barrier_state_t.
930         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
931         inlines.
932         * config/linux/bar.c: Include wait.h instead of libgomp.h and
933         futex.h.
934         (gomp_barrier_wait_end): Rewritten.
935         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
936         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
937         * config/posix/bar.h (gomp_barrier_t): Add generation field.
938         (gomp_barrier_state_t): New typedef.
939         (gomp_team_barrier_wait,
940         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
941         (gomp_barrier_wait_start): Or all but low 2 bits from generation
942         into the return value.  Return gomp_barrier_state_t.
943         (gomp_team_barrier_set_task_pending,
944         gomp_team_barrier_clear_task_pending,
945         gomp_team_barrier_set_waiting_for_tasks,
946         gomp_team_barrier_waiting_for_tasks,
947         gomp_team_barrier_done): New inlines.
948         (gomp_barrier_wait_end): Change second argument to
949         gomp_barrier_state_t.
950         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
951         inlines.
952         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
953         (gomp_barrier_wait_end): Change second argument to
954         gomp_barrier_state_t. 
955         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
956         gomp_team_barrier_wake): New functions.
957         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
958         futex.h.
959         (gomp_futex_wake, gomp_futex_wait): New variables.
960         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
961         * config/linux/lock.c: Rewrite to make locks task owned,
962         for backwards compatibility provide the old entrypoints
963         if symbol versioning.  Include wait.h instead of libgomp.h and
964         futex.h.
965         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
966         * config/posix95/lock.c: Rewrite to make locks task owned,
967         for backwards compatibility provide the old entrypoints
968         if symbol versioning.
969         * config/posix/lock.c: Rewrite to make locks task owned,
970         for backwards compatibility provide the old entrypoints
971         if symbol versioning.
972         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
973         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
974         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
975         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
976         (sys_futex0): Return error code.
977         (futex_wake, futex_wait): If ENOSYS was returned, clear
978         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
979         (cpu_relax, atomic_write_barrier): New static inlines.
980         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
981         (futex_wake, futex_wait): If ENOSYS was returned, clear
982         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
983         (cpu_relax, atomic_write_barrier): New static inlines.
984         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
985         (sys_futex0): Return error code.
986         (futex_wake, futex_wait): If ENOSYS was returned, clear
987         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
988         (cpu_relax, atomic_write_barrier): New static inlines.
989         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
990         (sys_futex0): Return error code.
991         (futex_wake, futex_wait): If ENOSYS was returned, clear
992         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
993         (cpu_relax, atomic_write_barrier): New static inlines.
994         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
995         (sys_futex0): Return error code.
996         (futex_wake, futex_wait): If ENOSYS was returned, clear
997         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
998         (cpu_relax, atomic_write_barrier): New static inlines.
999         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1000         (sys_futex0): Return error code.
1001         (futex_wake, futex_wait): If ENOSYS was returned, clear
1002         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1003         (cpu_relax, atomic_write_barrier): New static inlines.
1004         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1005         futex.h.
1006         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1007         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1008         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1009         types.
1010         (omp_nest_lock_t): Change owner into void *, add lock field.
1011         * config/posix95/omp-lock.h: Include semaphore.h.
1012         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1013         (omp_lock_t): Use sem_t instead of mutex if semaphores
1014         aren't broken.
1015         (omp_nest_lock_t): Likewise.  Change owner to void *.
1016         * config/posix/omp-lock.h: Include semaphore.h.
1017         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1018         (omp_lock_t): Use sem_t instead of mutex if semaphores
1019         aren't broken.
1020         (omp_nest_lock_t): Likewise.  Add owner field.
1022 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1024         * testsuite/libgomp.c/collapse-1.c: New test.
1025         * testsuite/libgomp.c/collapse-2.c: New test.
1026         * testsuite/libgomp.c/collapse-3.c: New test.
1027         * testsuite/libgomp.c/icv-1.c: New test.
1028         * testsuite/libgomp.c/icv-2.c: New test.
1029         * testsuite/libgomp.c/lib-2.c: New test.
1030         * testsuite/libgomp.c/lock-1.c: New test.
1031         * testsuite/libgomp.c/lock-2.c: New test.
1032         * testsuite/libgomp.c/lock-3.c: New test.
1033         * testsuite/libgomp.c/loop-4.c: New test.
1034         * testsuite/libgomp.c/loop-5.c: New test.
1035         * testsuite/libgomp.c/loop-6.c: New test.
1036         * testsuite/libgomp.c/loop-7.c: New test.
1037         * testsuite/libgomp.c/loop-8.c: New test.
1038         * testsuite/libgomp.c/loop-9.c: New test.
1039         * testsuite/libgomp.c/nested-3.c: New test.
1040         * testsuite/libgomp.c/nestedfn-6.c: New test.
1041         * testsuite/libgomp.c/sort-1.c: New test.
1042         * testsuite/libgomp.c/task-1.c: New test.
1043         * testsuite/libgomp.c/task-2.c: New test.
1044         * testsuite/libgomp.c/task-3.c: New test.
1045         * testsuite/libgomp.c/task-4.c: New test.
1046         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1047         to C++ testsuite default compiler options.
1048         * testsuite/libgomp.c++/collapse-1.C: New test.
1049         * testsuite/libgomp.c++/collapse-2.C: New test.
1050         * testsuite/libgomp.c++/ctor-10.C: New test.
1051         * testsuite/libgomp.c++/for-1.C: New test.
1052         * testsuite/libgomp.c++/for-2.C: New test.
1053         * testsuite/libgomp.c++/for-3.C: New test.
1054         * testsuite/libgomp.c++/for-4.C: New test.
1055         * testsuite/libgomp.c++/for-5.C: New test.
1056         * testsuite/libgomp.c++/loop-8.C: New test.
1057         * testsuite/libgomp.c++/loop-9.C: New test.
1058         * testsuite/libgomp.c++/loop-10.C: New test.
1059         * testsuite/libgomp.c++/task-1.C: New test.
1060         * testsuite/libgomp.c++/task-2.C: New test.
1061         * testsuite/libgomp.c++/task-3.C: New test.
1062         * testsuite/libgomp.c++/task-4.C: New test.
1063         * testsuite/libgomp.c++/task-5.C: New test.
1064         * testsuite/libgomp.c++/task-6.C: New test.
1065         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1066         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1067         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1068         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1069         * testsuite/libgomp.fortran/collapse1.f90: New test.
1070         * testsuite/libgomp.fortran/collapse2.f90: New test.
1071         * testsuite/libgomp.fortran/collapse3.f90: New test.
1072         * testsuite/libgomp.fortran/collapse4.f90: New test.
1073         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1074         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1075         * testsuite/libgomp.fortran/lib4.f90: New test.
1076         * testsuite/libgomp.fortran/lock-1.f90: New test.
1077         * testsuite/libgomp.fortran/lock-2.f90: New test.
1078         * testsuite/libgomp.fortran/nested1.f90: New test.
1079         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1080         * testsuite/libgomp.fortran/strassen.f90: New test.
1081         * testsuite/libgomp.fortran/tabs1.f90: New test.
1082         * testsuite/libgomp.fortran/tabs2.f: New test.
1083         * testsuite/libgomp.fortran/task1.f90: New test.
1084         * testsuite/libgomp.fortran/task2.f90: New test.
1085         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1086         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1087         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1088         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1089         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1091 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1093         PR c++/36308
1094         * testsuite/libgomp.c++/ctor-11.C: New test.
1095         * testsuite/libgomp.c++/ctor-12.C: New test.
1097 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1099         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1101 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1103         PR middle-end/36106
1104         * testsuite/libgomp.c/atomic-5.c: New test.
1105         * testsuite/libgomp.c/atomic-6.c: New test.
1106         * testsuite/libgomp.c/autopar-1.c: New test.
1108 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1110         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1111         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1112         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1113         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1114         * configure: Regenerate.
1115         * Makefile.in, testsuite/Makefile.in: Likewise.
1117 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1119         PR bootstrap/35457
1120         * aclocal.m4: Regenerate.
1121         * configure: Regenerate.
1123 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1125         PR middle-end/35611
1126         * testsuite/libgomp.c/atomic-4.c: New test.
1128         PR libgomp/35625
1129         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1130         (gomp_iter_guided_next): Likewise.
1131         * testsuite/libgomp.c/pr35625.c: New test.
1133 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1135         * aclocal.m4: Regenerate.
1136         * configure: Likewise.
1137         * Makefile.in: Likewise.
1138         * testsuite/Makefile.in: Likewise.
1140 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1142         PR middle-end/35185
1143         * testsuite/libgomp.c++/pr35185.C: New test.
1145 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1147         PR middle-end/35549
1148         * testsuite/libgomp.c/pr35549.c: New test.
1150 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1152         * testsuite/libgomp.c/atomic-3.c: New test.
1154 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1156         PR fortran/33197
1157         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1158         .F08 file suffixes.
1160 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1162         PR libgomp/33131
1163         * configure.ac: Add ACX_HEADER_STRING.
1164         * env.c: Include strings.h.
1165         * aclocal.m4: Regenerate.
1166         * config.h.in: Regenerate.
1167         * configure: Regenerate.
1168         * Makefile.in: Regenerate.
1169         * testsuite/Makefile.in: Regenerate.
1171 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1173         PR middle-end/35196
1174         * testsuite/libgomp.c/pr35196.c: New test.
1176         PR middle-end/35130
1177         * testsuite/libgomp.fortran/pr35130.f90: New test.
1178         * testsuite/libgomp.c/pr35130.c: New test.
1180 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1182         PR middle-end/33880
1183         * testsuite/libgomp.c/pr33880.c: New test.
1184         * testsuite/libgomp.fortran/pr33880.f90: New test.
1186 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1188         * configure: Regenerate.
1190 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1192         * configure.ac: Move futex checking into ../config/futex.m4.
1193         * configure: Rebuilt.
1194         * aclocal.m4: Rebuilt.
1195         * Makefile.in: Rebuilt.
1197         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1198         2007-10-15 ../config/tls.m4 change.
1200 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1202         PR c++/34513
1203         * testsuite/libgomp.c/pr34513.c: New test.
1204         * testsuite/libgomp.c++/pr34513.C: New test.
1206 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1208         PR target/32765
1209         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1211 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1213         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1215 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1217         * testsuite/libgomp.c/private-1.c: New test.
1219 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1220             Paolo Bonzini  <bonzini@gnu.org>
1222         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1223         instead of 'VPATH ='.
1224         * Makefile.in: Regenerate.
1226 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1228         * configure.ac: Adjust makeinfo version check.
1229         * configure: Regenerate.
1231 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1233         PR fortran/34020
1234         * testsuite/libgomp.fortran/pr34020.f90: New test.
1236 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1238         PR c++/33894
1239         * testsuite/libgomp.c++/atomic-1.C: New test.
1241 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1243         PR libgomp/33275
1244         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1245         Make x and y integers rather than (implicit) reals.  Add private (j)
1246         clause to the last omp parallel.
1248 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1250         * configure: Regenerate following changes to ../config/tls.m4.
1252 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1254         * testsuite/libgomp.fortran/stack.f90: New test.
1256 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1258         * config/mingw32/proc.c: New file.
1260 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1262         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1263         (main): Use __get_cpuid to get i386 target fetaures.
1264         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1265         (main): Use __get_cpuid to get x86_64 target fetaures.
1267 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1269         PR target/32765
1270         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1271         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1273 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1275         PR fortran/32550
1276         * testsuite/libgomp.fortran/pr32550.f90: New test.
1277         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1279 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1281         * aclocal.m4: Regenerated.
1283 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1285         PR fortran/32359
1286         * testsuite/libgomp.fortran/pr32359.f90: New.
1288 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1290         PR libgomp/32468
1291         * sections.c (GOMP_parallel_sections_start): Only decrease
1292         number of threads to COUNT if dyn_var is true.
1293         * testsuite/libgomp.c/pr32468.c: New test.
1295 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1297         PR libgomp/26308
1298         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1300 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1302         PR middle-end/32362
1303         * testsuite/libgomp.c/pr32362-1.c: New test.
1304         * testsuite/libgomp.c/pr32362-2.c: New test.
1305         * testsuite/libgomp.c/pr32362-3.c: New test.
1307 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1309         * team.c (gomp_team_start): Fix setting up thread_attr
1310         stack size.
1312 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1314         * configure: Regenerate.
1316 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1318         * Makefile.in: Regenerate.
1319         * configure: Regenerate.
1320         * aclocal.m4: Regenerate.
1321         * testsuite/Makefile.in: Regenerate.
1323 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1325         * config/linux/proc.c: New file.
1327         PR libgomp/28482
1328         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1330 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1332         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1334 2007-04-16  Matthias Klose  <doko@debian.org>
1336         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1337         flags if not building with -m64.
1338         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1339         flag for i?86-*-* targets, if current target matches -m64.
1341 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1343         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1344         * Makefile.in: Regenerate.
1346 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1348         PR testsuite/31369
1349         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1350         ld_library_path.
1351         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1353 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1355         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1356         decls.
1357         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1358         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1359         (parse_affinity): New function.
1360         (initialize_env): Call it and gomp_init_affinity.
1361         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1362         create new pthread_attr_t and call gomp_init_thread_affinity
1363         on it for each thread before passing the attribute to pthread_create.
1364         * config/linux/affinity.c: New file.
1365         * config/posix/affinity.c: New file.
1366         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1367         * configure: Rebuilt.
1368         * config.h.in: Rebuilt.
1369         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1370         * Makefile.in: Rebuilt.
1372 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1374         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1375         *-*-darwin*.
1376         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1377         and use it if found.
1379 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1381         * testsuite/config/default.exp: New file.
1382         * testsuite/lib/libgomp.exp: New file.
1383         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1384         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1385         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1386         (libgomp_load): Remove.
1387         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1388         always_ld_library_path, not ld_library_path.  Set additional_flags
1389         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1390         (target_compile): Do not call libgomp_init.  Append lang_library_path
1391         and lang_link_flags to options.
1392         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1393         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1394         here.
1395         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1396         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1397         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1398         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1399         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1400         CX8 flag.
1401         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1402         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1403         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1404         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1405         * testsuite/libgomp.c/atomic-10.c: Ditto.
1407 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1409         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1410         dg-final cleanup-modules line.
1411         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1412         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1413         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1414         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1415         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1416         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1417         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1419 2007-03-18  Andreas Schwab  <schwab@suse.de>
1421         * acinclude.m4: Adjust regular expression for ld version
1422         extraction.
1423         * configure: Regenerate.
1425 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1427         * Makefile.am: Add install-pdf target as copied from
1428         automake v1.10 rules.
1429         * Makefile.in: Regenerate
1431 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1433         PR libgomp/28486
1434         * configure: Regenerate.
1436         PR c++/30703
1437         * testsuite/libgomp.c++/pr30703.C: New test.
1439 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1441         Revert:
1442         2006-07-05  Eric Christopher  <echristo@apple.com>
1443         * configure.ac: Depend addition of -pthread on host OS.
1444         * configure: Regenerate.
1446 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1448         * libgomp.texi: Fix spacing after abbreviations.
1450 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1452         PR libgomp/30546
1453         * configure.ac: Add check for makeinfo
1454         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1455         if an appropiate version of makeinfo is found.
1456         * aclocal.m4: Regenerated.
1457         * configure: Regenerated.
1458         * Makefile.in: Regenerated.
1459         * testsuite/Makefile.in: Regenerated.
1461 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1463         PR libgomp/30540
1464         * libgomp.texi: More about implementation-dependent settings.
1466 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1468         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1470 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1472         PR middle-end/30494
1473         * testsuite/libgomp.c/pr30494.c: New test.
1475 2007-01-15  Tom Tromey  <tromey@redhat.com>
1477         * configure: Rebuilt.
1478         * configure.ac: Fixed comment.
1480 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1482         * libgomp.texi: Document implementation specific default values of
1483         environment variables.
1485 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1487         PR libgomp/28209
1488         * libgomp.texi: New file.
1489         * configure.ac: Add --enable-generated-files-in-srcdir option.
1490         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1491         files to srcdir.
1492         * Makefile.in: Regenerated.
1493         * config.h.in: Regenerated.
1494         * testsuite/Makefile.in: Regenerated.
1495         * NOTES: Removed.
1497 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1499         PR libgomp/29949
1500         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1502 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1504         * configure: Regenerate.
1506 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1508         PR libgomp/29947
1509         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1510         start if there shouldn't be any loop iterations.
1511         (gomp_loop_ordered_static_start): Remove start == end test.
1512         * testsuite/libgomp.c/pr29947-1.c: New test.
1513         * testsuite/libgomp.c/pr29947-2.c: New test.
1515 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1517         * configure.tgt: Force initial-exec TLS model on Linux only.
1519 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1521         * configure: Regenerated.
1523 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1525         * env.c (parse_schedule): Reject out of range values.
1526         (parse_unsigned_long): Reject out of range, negative or zero values.
1528 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1530         PR fortran/29629
1531         * testsuite/libgomp.fortran/pr29629.f90: New test.
1533 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1535         PR libgomp/29494
1536         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1537         * config/posix95: New directory.
1538         * config/posix95/omp-lock.h: New file.
1539         * config/posix95/lock.c: Likewise.
1541 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1543         * aclocal.m4: Regenerate.
1544         * configure: Regenerate.
1546 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1548         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1549         '<' to '<='.
1551 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1553         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1554         test.
1555         * configure: Regenerate.
1556         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1558 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1560         PR middle-end/25261
1561         PR middle-end/28790
1562         * testsuite/libgomp.c/nestedfn-4.c: New test.
1563         * testsuite/libgomp.c/nestedfn-5.c: New test.
1564         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1566         PR fortran/29097
1567         * testsuite/libgomp.fortran/condinc1.f: New test.
1568         * testsuite/libgomp.fortran/condinc2.f: New test.
1569         * testsuite/libgomp.fortran/condinc3.f90: New test.
1570         * testsuite/libgomp.fortran/condinc4.f90: New test.
1571         * testsuite/libgomp.fortran/condinc1.inc: New file.
1573 2006-09-18  Tom Tromey  <tromey@redhat.com>
1575         * configure: Rebuilt.
1577 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1579         PR c/28768
1580         PR preprocessor/14634
1581         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1582         to AC_DEFINE.
1583         * configure: Regenerate.
1585 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1587         * testsuite/libgomp.fortran/reduction3.f90: Change
1588         -2147483648 to -huge(i)-1 to avoid overflow.
1589         * testsuite/libgomp.fortran/reduction4.f90: Change
1590         Z'ffffffff' to not(0) to avoid overflow.
1592 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1594         PR libgomp/25938
1595         * Makefile.am (libsubincludedir): New.
1596         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1597         * Makefile.in: Regenerate.
1599 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1601         PR libgomp/28725
1602         * env.c: Include ctype.h.
1603         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1604         leading and/or trailing whitespace and compare strings case
1605         insensitively.
1607 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1609         PR fortran/28390
1610         * testsuite/libgomp.fortran/pr28390.f: New test.
1612 2006-07-05  Eric Christopher  <echristo@apple.com>
1614         * configure.ac: Depend addition of -pthread on host OS.
1615         * configure: Regenerate.
1617 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1619         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1620         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1621         defined.
1623 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1625         PR libgomp/26175
1626         PR libgomp/26477
1627         * configure.ac: If neither --enable-linux-futex nor
1628         --disable-linux-futex is passed, determine the default by checking
1629         for compiling and/or running against NPTL.  With --enable-linux-futex,
1630         check if SYS_gettid and SYS_futex are defined.
1631         * configure: Rebuilt.
1633 2006-06-14  Richard Henderson  <rth@redhat.com>
1635         PR libgomp/28008
1636         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1637         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1639 2006-06-09  Richard Henderson  <rth@redhat.com>
1641         * env.c (gomp_nthreads_var): Change to unsigned long.
1642         (gomp_run_sched_chunk): Likewise.
1643         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1644         (initialize_env): Initialize gomp_thread_attr.
1645         * libgomp.h (gomp_nthreads_var): Update decl.
1646         (gomp_run_sched_chunk): Likewise.
1647         (gomp_thread_attr): Declare.
1648         * team.c (gomp_thread_attr): Export.
1649         (initialize_team): Don't initialize it.
1651 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
1653         PR fortran/27916
1654         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1655         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1657 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1659         * config/mingw32/time.c: New file.
1660         * configure.tgt: Use it.
1662 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1664         * Makefile.am: Add install-html target. Add install-html to .PHONY
1665         * Makefile.in: Regenerate.
1667 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1669         PR libgomp/27612
1670         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1671         * testsuite/libgomp.c/critical-1.c: Likewise.
1672         * testsuite/libgomp.c/loop-1.c: Likewise.
1673         * testsuite/libgomp.c/loop-2.c: Likewise.
1674         * testsuite/libgomp.c/single-1.c: Likewise.
1675         * testsuite/libgomp.c/ordered-1.c: Likewise.
1676         * testsuite/libgomp.c/ordered-2.c: Likewise.
1678 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1680         PR middle-end/27416
1681         * libgomp.fortran/pr27416-1.f90: New test.
1683 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
1685         PR fortran/27395
1686         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1687         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1689 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1691         PR c++/26943
1692         * testsuite/libgomp.c/pr26943-1.c: New test.
1693         * testsuite/libgomp.c/pr26943-2.c: New test.
1694         * testsuite/libgomp.c/pr26943-3.c: New test.
1695         * testsuite/libgomp.c/pr26943-4.c: New test.
1696         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1697         * testsuite/libgomp.c++/pr26943.C: New test.
1699 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1701         PR middle-end/27337
1702         * testsuite/libgomp.c++/pr27337.C: New test.
1704 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1706         PR c/26171
1707         * testsuite/libgomp.c/pr26171.c: New test.
1709 2006-04-25  Richard Henderson  <rth@redhat.com>
1711         PR libgomp/25865
1712         * configure.ac: Use GCC_CHECK_TLS.
1713         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1714         * Makefile.in, aclocal.m4, configure: Regenerate.
1716 2006-04-10  Matthias Klose  <doko@debian.org>
1718         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1719         directory names containing underscores.
1721 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1723         PR c++/26691
1724         * testsuite/libgomp.c++/pr26691.C: New test.
1726 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1728         * testsuite/libgomp.fortran/retval2.f90: New test.
1730 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1732         * testsuite/libgomp.c++: New directory.
1734 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
1736         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1737         * config/posix/sem.c: Implement the above.
1739 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
1741         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1742         define HAVE_BROKEN_POSIX_SEMAPHORES.
1743         * configure: Rebuilt.
1744         * config.h.in: Rebuilt.
1746 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1748         PR bootstrap/26161
1749         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1750         for the other pthread check.
1751         * configure: Regenerate.
1752         * config.h.in: Regenerate.
1754 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1756         PR libgomp/25938
1757         PR libgomp/25984
1758         * Makefile.am (fincludedir): New variable.
1759         (nodist_include_HEADERS): Remove Fortran files.
1760         (nodist_finclude_HEADERS): New variable.
1761         * Makefile.in: Regenerated.
1763 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1765         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1766         Remove tests for returning assumed character length arrays.
1768 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1769             John David Anglin  <dave@hiauly1.hia.nrc.ca>
1771         PR libgomp/25936
1772         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1774 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1776         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1778 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1780         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1781         part of LD_LIBRARY_PATH manually.
1783 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1785         PR libgomp/25852
1786         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1787         libgomp_init.
1789 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
1791         PR libgomp/25884
1792         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1793         * configure.ac (PERL): Don't set.
1794         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1795         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1796         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1797         * omp.h.in: Wrap the new configure substitutions with @ characters.
1798         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1799         * aclocal.m4, configure, Makefile.in: Regenerate.
1800         * mkomp_h.pl: Delete.
1802 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
1804         PR libgomp/25259
1805         * configure.ac: Use GCC_HEADER_STDINT.
1806         * libgomp.h: Include gstdint.h.
1807         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1808         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1810 2006-01-24  Richard Henderson  <rth@redhat.com>
1812         PR libgomp/25942
1813         * configure.ac: Add AM_MAINTAINER_MODE.
1814         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1816 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
1818         * Makefile.in: Regenerate.
1819         * testsuite/Makefile.in: Regenerate.
1820         * aclocal.m4: Regenerate.
1822 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
1824         * config/posix/proc.c: Conditional include of sys/loadavg.h for
1825         Solaris.
1826         * configure.ac: Add check for loadavg.h.
1827         (link_gomp): Adjust comment.
1828         * configure: Regenerate.
1829         * config.h.in: Regenerate.
1831 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
1833         PR libgomp/25877
1834         * configure.ac: Remove check for alloca.h.
1835         * configure: Regenerate.
1836         * config.h.in: Regenerate.
1837         * libgomp.h: define gomp_alloca to be __builtin_alloca.
1838         * team.c: Remove use of alloca.h.
1839         Call gomp_alloca instead of alloca.
1841 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
1843         PR libgomp/25877
1844         * team.c: Add include of alloca.h.
1845         * configure.ac: Add check for alloca.h.
1846         * configure: Regenerate.
1847         * config.h.in: Regenerate.
1849 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
1851         PR fortran/25219
1852         * testsuite/libgomp.fortran/pr25219.f90: New test.
1854 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
1856         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1857         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1858         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1859         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1860         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1861         testsuite/libgomp.fortran/threadprivate1.f90,
1862         testsuite/libgomp.fortran/threadprivate2.f90,
1863         testsuite/libgomp.fortran/threadprivate3.f90,
1864         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1865         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1866         testsuite/libgomp.fortran/omp_parse3.f90: Change required
1867         effective-target to TLS runtime.
1869         * testsuite/libgomp.fortran/pr25162.f: Require
1870         effective-target TLS runtime.
1872 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
1874         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1875         * testsuite/libgomp.c/nestedfn-3.c: New test.
1877 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
1879         PR fortran/25162
1880         * testsuite/libgomp.fortran/pr25162.f: New test.
1882 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
1884         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1885         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1887 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
1889         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1890         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1891         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1892         single.c, team.c, work.c, config/linux/alpha/futex.h,
1893         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1894         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1895         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1896         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1897         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1898         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1899         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1900         FSF address.
1902 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
1904         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1905         to nodist_noinst_HEADERS.
1906         * Makefile.in: Rebuilt.
1908         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1909         add integer count field.
1910         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1911         omp_nest_lock_t type change.
1912         (omp_init_nest_lock): Likewise.  Initialize count to 0.
1913         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1914         Increment count.
1915         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1916         Decrement count.
1917         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1918         Increment count if successful and return the new nesting level.
1919         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1920         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1921         * testsuite/libgomp.c/lib-1.c: New test.
1922         * testsuite/libgomp.fortran/lib1.f90: New test.
1923         * testsuite/libgomp.fortran/lib2.f: New test.
1924         * testsuite/libgomp.fortran/lib3.f: New test.
1926 2005-11-17  Richard Henderson  <rth@redhat.com>
1928         PR 24845
1929         * Makefile.am (nodist_toolexeclib_HEADERS): New.
1930         * configure.ac (link_gomp): New.  Substitute it.
1931         (AC_CONFIG_FILES): Add libgomp.spec.
1932         * libgomp.spec.in: New file.
1933         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1934         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1936 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
1938         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1939         reduction(-:var) behaving the same as reduction(+:var).
1940         * testsuite/libgomp.c/reduction-4.c: New test.
1942 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
1944         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1945         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1946         testsuite/libgomp.c/copyin-3.c,
1947         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1948         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1949         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1950         testsuite/libgomp.c++/pr24455.C,
1951         testsuite/libgomp.fortran/threadprivate1.f90,
1952         testsuite/libgomp.fortran/threadprivate2.f90,
1953         testsuite/libgomp.fortran/threadprivate3.f90,
1954         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1955         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1956         testsuite/libgomp.fortran/omp_parse3.f90: Require
1957         effective-target TLS.
1959 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
1961         * HEADER: Remove.
1963 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
1965         PR libgomp/24797
1966         * team.c (initialize_team): Pass NULL rather than free as
1967         pthread_key_create destructor.  Initialize thread specific data
1968         pointer in initial thread to a static local variable rather than
1969         malloced memory.
1971 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
1973         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1974         its location to ld_library_path.
1976 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
1978         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1980 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
1982         * testsuite/libgomp.c: Rename from libgomp.dg.
1984 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
1986         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1987         threadprivate variable 'i'.
1989 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
1991         * config/linux/s390/futex.h: New file.
1992         * configure.tgt: Use it.
1994         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1995         before the parallel.
1997 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
1999         PR c++/24734
2000         * testsuite/libgomp.c++/master-1.C: New test.
2002 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2004         * testsuite/libgomp.dg/copyin-3.c: New test.
2006 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2008         * testsuite/libgomp.fortran/retval1.f90: New test.
2009         * testsuite/libgomp.fortran/vla7.f90: New test.
2011 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2013         * testsuite/libgomp.fortran/vla2.f90: New test.
2014         * testsuite/libgomp.fortran/vla3.f90: New test.
2015         * testsuite/libgomp.fortran/vla4.f90: New test.
2016         * testsuite/libgomp.fortran/vla5.f90: New test.
2017         * testsuite/libgomp.fortran/vla6.f90: New test.
2019 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2021         * config/linux/sparc/futex.h: New file.
2022         * configure.tgt: Use it.
2023         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2025         * critical.c: Include stdlib.h.
2026         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2027         ignoring return value.
2028         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2029         LIBGOMP_CHECK_SYNC_BUILTINS check.
2030         * configure: Rebuilt.
2032 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2034         * testsuite/libgomp.fortran/vla1.f90: New test.
2036 2005-10-31  Richard Henderson  <rth@redhat.com>
2038         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2039         setting 's' in different threads.
2041 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2043         * libgomp.h (attribute_hidden, ialias): Define.
2044         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2045         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2046         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2047         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2048         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2049         omp_test_lock, omp_test_nest_lock): Likewise.
2050         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2051         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2052         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2053         omp_test_lock, omp_test_nest_lock): Likewise.
2054         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2055         omp_get_dynamic, omp_get_nested): Likewise.
2056         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2057         omp_get_thread_num, omp_in_parallel): Likewise.
2058         * fortran.c (ialias_redirect): Define.
2059         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2060         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2061         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2062         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2063         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2064         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2065         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2066         omp_get_wtime): Add ialias_redirect.
2068 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2070         * fortran.c: Include stdlib.h.
2072 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2074         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2075         * Makefile.in: Regenerated.
2077 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2079         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2080         * libgomp_f.h.in (omp_check_defines): New function.
2081         * env.c: Include libgomp_f.h.
2082         (initialize_env): Call omp_check_defines.
2084         * testsuite/libgomp.dg/copyin-2.c: New test.
2085         * testsuite/libgomp.c++/copyin-2.C: New test.
2086         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2088         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2089         * testsuite/libgomp.fortran/sharing2.f90: New test.
2091         * testsuite/libgomp.dg/copyin-1.c: New test.
2092         * testsuite/libgomp.c++/copyin-1.C: New test.
2094 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2096         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2098         * testsuite/libgomp.fortran/workshare1.f90: New test.
2100         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2101         only test.
2102         * libgomp.fortran/sharing1.f90: New test.
2104 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2106         PR c++/24502
2107         * testsuite/libgomp.c++/loop-7.C: New test.
2109         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2111         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2112         * testsuite/libgomp.fortran/reduction6.f90: New test.
2113         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2115 2005-10-23  Richard Henderson  <rth@redhat.com>
2117         * testsuite/libgomp.c++/ctor-1.C: New.
2118         * testsuite/libgomp.c++/ctor-2.C: New.
2119         * testsuite/libgomp.c++/ctor-3.C: New.
2120         * testsuite/libgomp.c++/ctor-4.C: New.
2121         * testsuite/libgomp.c++/ctor-5.C: New.
2122         * testsuite/libgomp.c++/ctor-6.C: New.
2123         * testsuite/libgomp.c++/ctor-7.C: New.
2124         * testsuite/libgomp.c++/ctor-8.C: New.
2125         * testsuite/libgomp.c++/ctor-9.C: New.
2127 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2129         PR 24455
2130         * testsuite/libgomp.c++/pr24455-1.C: New test.
2131         * testsuite/libgomp.c++/pr24455.C: New test.
2132         * testsuite/libgomp.dg/pr24455-1.c: New test.
2133         * testsuite/libgomp.dg/pr24455.c: New test.
2135 2005-10-20  Richard Henderson  <rth@redhat.com>
2137         * testsuite/libgomp.c++/loop-6.C: New.
2138         * testsuite/libgomp.dg/loop-3.c: New.
2140 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2142         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2143         explicitly private.
2144         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2145         explicitly shared.
2147 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2149         * testsuite/libgomp.fortran/jacobi.f: New test.
2151 2005-10-19  Richard Henderson  <rth@redhat.com>
2153         * configure.tgt (i?86-linux): Default to with_arch instead of
2154         CFLAGS.  Add -mtune to match target_cpu.
2155         (x86_64-linux): Tune to i686.
2157         * fortran.c (omp_test_nest_lock_): Fix typo.
2159 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2161         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2162         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2163         * testsuite/libgomp.dg/ordered-3.c: New test.
2165         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2166         Remove volatile keyword.
2168         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2169         in COMMON block to avoid warnings on 64-bit targets.
2171 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2173         * testsuite/libgomp.dg/shared-3.c: New test.
2175 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2177         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2178         * testsuite/libgomp.fortran/reduction5.f90: New test.
2180 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2182         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2183         dg-options.
2184         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2185         flush loop now that __sync_synchronize has proper memory barrier.
2186         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2187         Add -ffixed-form to dg-options.
2189 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2191         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2192         from subdirectories.
2193         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2194         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2195         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2196         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2197         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2198         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2199         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2200         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2201         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2202         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2203         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2204         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2205         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2206         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2207         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2208         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2209         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2210         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2211         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2212         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2213         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2214         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2215         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2216         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2217         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2219 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2221         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2222         lang_library_path exists.  Use find instead of glob to gather tests.
2223         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2225 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2227         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2228         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2229         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2230         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2231         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2232         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2233         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2234         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2235         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2236         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2237         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2238         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2239         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2241 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2243         * testsuite/libgomp.dg/vla-1.c: New test.
2245         * testsuite/libgomp.fortran/reference2.f90: New test.
2247         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2248         declaration of omp_get_thread_num.
2249         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2250         use omp_lib.
2252         * testsuite/libgomp.fortran/reduction1.f90: New test.
2253         * testsuite/libgomp.fortran/reduction2.f90: New test.
2254         * testsuite/libgomp.fortran/reduction3.f90: New test.
2255         * testsuite/libgomp.fortran/reduction4.f90: New test.
2257 2005-10-13  Richard Henderson  <rth@redhat.com>
2259         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2260         * Makefile.in: Regenerate.
2261         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2262         * libgomp.h: Include bar.h.
2263         (struct gomp_barrier): Remove.
2264         (struct gomp_team): Add barrier.  Replace master_barrier with
2265         master_release.  Replace threads with ordered_release.
2266         (struct gomp_thread): Replace barrier with release.
2267         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2268         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2269         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2270         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2271         (GOMP_single_copy_end): Likewise.
2272         * team.c (gomp_threads_dock): New.
2273         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2274         (gomp_thread_start): Use gomp_barrier_wait.
2275         (new_team, free_team): Update for gomp_team changes.
2276         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2277         (gomp_team_end): Use gomp_barrier_wait.
2278         (initialize_team): Update for gomp_thread changes.
2279         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2280         (gomp_work_share_end_nowait): Use atomic ops when available.
2281         * config/linux/bar.c, config/linux/bar.h: New files.
2282         * config/posix/bar.c, config/posix/bar.h: New files.
2284 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2286         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2287         * testsuite/libgomp.dg/single-2.c: New test.
2289         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2290         lang_link_flags): Unset, so that they aren't inherited from previously
2291         sourced *.exp.
2293         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2295 2005-10-12  Richard Henderson  <rth@redhat.com>
2297         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2298         (libgomp_init): Use lang_test_file, lang_library_path, and
2299         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2301         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2302         (lang_test_file, lang_link_flags): New.
2303         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2305         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2306         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2307         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2308         testsuite/libgomp.c++/parallel-1.C,
2309         testsuite/libgomp.c++/reduction-1.C,
2310         testsuite/libgomp.c++/reduction-2.C,
2311         testsuite/libgomp.c++/reduction-3.C,
2312         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2313         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2314         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2315         New files, largely cribbed from the C testsuite.
2317 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2319         * testsuite/libgomp.fortran/character1.f90: New test.
2320         * testsuite/libgomp.fortran/character2.f90: New test.
2322         * testsuite/libgomp.dg/nested-1.c: New test.
2323         * testsuite/libgomp.dg/nested-2.c: New test.
2324         * testsuite/libgomp.fortran/do1.f90: New test.
2325         * testsuite/libgomp.fortran/do2.f90: New test.
2327         * testsuite/libgomp.fortran/reference1.f90: New test.
2329 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2331         * testsuite/libgomp.dg/reduction-1.c: New test.
2332         * testsuite/libgomp.dg/reduction-2.c: New test.
2333         * testsuite/libgomp.dg/reduction-3.c: New test.
2335 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2337         * testsuite/libgomp.dg/atomic-1.c: New test.
2338         * testsuite/libgomp.dg/atomic-2.c: New test.
2340 2005-10-09  Richard Henderson  <rth@redhat.com>
2342         * critical.c (atomic_lock): New.
2343         (initialize_critical): Initialize it.
2344         (GOMP_atomic_start, GOMP_atomic_end): New.
2345         * libgomp.map: Export them.
2346         * libgomp_g.h: Declare them.
2348         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2350 2005-10-02  Richard Henderson  <rth@redhat.com>
2352         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2353         to XCFLAGS instead of CFLAGS.
2355 2005-09-30  Richard Henderson  <rth@redhat.com>
2357         * configure.ac: Determine whether -pthread or -lpthread is needed.
2358         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2359         * Makefine.in, configure: Rebuild.
2361 2005-09-28  Richard Henderson  <rth@redhat.com>
2363         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2364         * testsuite/libgomp.dg/omp-single-3.c: New test.
2366 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2368         * testsuite/libgomp.dg/omp-single-2.c: New test.
2369         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2371 2005-09-27  Richard Henderson  <rth@redhat.com>
2373         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2374         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2376 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2378         * testsuite/libgomp.dg/omp-loop03.c: New test.
2380 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2382         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2384 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2386         * testsuite/libgomp.dg/omp-single-1.c: New test.
2387         * testsuite/libgomp.dg/shared-1.c: Return 0.
2388         Add prototype for abort.
2389         * testsuite/libgomp.dg/shared-2.c: Likewise.
2391 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2393         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2394         constructs.
2396 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2398         * testsuite/libgomp.dg/shared-1.c: New test.
2399         * testsuite/libgomp.dg/shared-2.c: New test.
2401 2005-09-24  Richard Henderson  <rth@redhat.com>
2403         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2405 2005-09-24  Richard Henderson  <rth@redhat.com>
2407         * iter.c (gomp_iter_static_next): Round up when computing number
2408         of iterations.  Don't bother distributing a remainder equally.
2410         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2411         Don't call srand.  Zero b before testing.
2412         (main): New.
2414 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2416         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2417         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2419 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2421         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2422         without !$omp end do, followed immediately by subroutine end.
2424 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2426         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2428 2005-09-22  Richard Henderson  <rth@redhat.com>
2430         * critical.c (GOMP_critical_name_start): Change argument to void**.
2431         Reuse the pointer space if the mutex fits.
2432         (GOMP_critical_name_end): Likewise.
2433         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2434         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2435         (GOMP_critical_name_end): Likewise.
2436         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2437         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2439 2005-09-20  Richard Henderson  <rth@redhat.com>
2441         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2442         (create_lock_lock): New.
2443         (initialize_critical): Initialize it.
2444         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2445         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2447 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2449         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2451 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2453         * testsuite/libgomp.dg/omp-loop01.c: New test.
2454         * testsuite/libgomp.dg/omp-loop02.c: New test.
2456 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2458         * configure.ac (AC_PROG_FC): Add.
2459         (USE_FORTRAN): New automake conditional.
2460         * configure: Rebuilt.
2461         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2462         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2463         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2464         Add rules to build them.
2465         * Makefile.in: Rebuilt.
2466         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2467         OMP_NEST_LOCK_KIND.
2468         * libgomp.map: Add Fortran wrappers.
2469         * libgomp_f.h.in: New file.
2470         * omp_lib.h.in: New file.
2471         * omp_lib.f90.in: New file.
2472         * fortran.c: New file.
2473         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2474         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2475         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2476         libgfortran has been built.
2477         * testsuite/libgomp.fortran/fortran.exp: New file.
2478         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2479         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2480         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2481         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2482         * testsuite/libgomp.fortran/omp_hello.f: New test.
2483         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2484         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2485         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2486         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2487         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2488         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2489         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2490         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2492 2005-08-30  Richard Henderson  <rth@redhat.com>
2494         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2495         function for when aliases are not usable.
2496         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2497         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2498         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2499         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2500         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2501         GOMP_loop_ordered_guided_next): Likewise.
2502         * ordered.c (GOMP_ordered_start): Likewise.
2504 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2506         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2507         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2508         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2509         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2510         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2511         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2512         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2513         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2514         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2516 2005-07-07  Eric Christopher  <echristo@redhat.com>
2517             Diego Novillo  <dnovillo@redhat.com>
2519         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2520         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2521         up code.
2522         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2523         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2524         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2525         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2526         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2527         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2528         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2530 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2532         * TOPLEVEL.patch: Remove.
2534 2005-05-16  Richard Henderson  <rth@redhat.com>
2536         * configure.ac: Test for clock_gettime.
2537         * config.h.in, configure: Rebuild.
2538         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2539         (omp_get_wtime): Use clock_gettime if available.
2540         (omp_get_wtick): Use clock_getres if available.
2542 2005-05-11  Richard Henderson  <rth@redhat.com>
2544         * config/linux/ia64/futex.h: New file.
2545         * configure.tgt: Use it.
2547         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2549 2005-05-07  Richard Henderson  <rth@redhat.com>
2551         * config/linux/powerpc/futex.h: New file.
2552         * configure.tgt: Use it.
2554         * config/linux/i486/futex.h: Merge ...
2555         * config/linux/x86_64/futex.h: ... into ...
2556         * config/linux/x86/futex.h: ... here.
2557         * configure.tgt: Update to match.
2559 2005-05-06  Richard Henderson  <rth@redhat.com>
2561         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2562         * config/linux/i486/futex.h: Likewise.
2563         * config/linux/x86_64/futex.h: Likewise.
2565         * config/linux/lock.c: New file.
2566         * config/linux/omp-lock.h: New file.
2568         * critical.c, env.h: Don't include omp.h
2569         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2570         * config/posix/time.c: Likewise.
2571         * config/posix/omp-lock.h: New file.
2572         * libgomp.h: Include omp-lock.h and omp.h.
2573         * Makefile.am (nodist_include_HEADERS): New.
2574         (omp.h): New rule.
2575         * configure.ac (PERL): New.
2576         * mkomp_h.pl: New file.
2577         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2578         with templates.
2579         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2581         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2582         build directory.  Re-add -march=i486 hack.
2584         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2585         (libgomp_link_flags): Remove.
2586         (libgomp_initialized): Remove.
2587         (libgomp_init): Don't protect from reinitialization.  Copy code
2588         from libstdc++ for getting the multilib set correctly.
2590 2005-05-05  Richard Henderson  <rth@redhat.com>
2592         * config/linux/alpha/futex.h: New file.
2593         * configure.tgt (alpha*-*-linux*): Use it.
2595         * config/posix/mutex.c: New file.
2596         * config/posix/sem.c: Use libgomp.h.
2598         * configure.tgt (x86_64-linux): Also test CC for -m32.
2599         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2601         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2602         after $gccpath.
2604         * Makefile.am (SUBDIRS): New.
2605         (libgomp_la_LDFLAGS): Add -lpthread.
2606         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2607         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2609         * libgomp_g.h: New file.
2610         * libgomp.h: Split out all public declarations to libgomp_g.h.
2611         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2612         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2613         * config/linux/sem.h: Likewise.
2614         * config/posix/sem.h: Likewise.
2616         * Makefile.am (AM_LDFLAGS): New.
2617         (libgomp_version_script): Split out from ...
2618         (libgomp_la_LDFLAGS): ... here.
2619         (libgomp_version_info): New.
2620         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2621         (LIBGOMP_ENABLE): New.
2622         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2623         (LIBGOMP_ENABLE_SYMVERS): New.
2624         * configure.ac (AC_INIT): Version 1.0.
2625         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2626         (enable-linux-futex): Likewise.  Rename from enable-futex.
2627         (libtool_VERSION): New.
2628         (LIBGOMP_ENABLE_SYMVERS): Use it.
2629         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2630         * Makefile.in, aclocal.m4, configure: Rebuild.
2632         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2633         (gomp_mutex_unlock_slow): Fix typo.
2634         * config/linux/sem.c: Similarly.
2635         (gomp_sem_post_slow): Fix typo.
2636         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2637         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2638         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2640         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2641         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2642         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2643         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2644         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2645         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2646         LDFLAGS.  Pull enable_futex check to top-level.
2647         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
2648         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2650         First attempt at real configury.
2651         * Makefile, config.h: Remove file.
2652         * Makefile.am, Makefile.in: New file.
2653         * acinclude.m4 aclocal.m4: New file.
2654         * configure.ac, configure.tgt, configure: New file.
2656         * config/posix/lock.c: Rename from sys-lock.c.
2657         * config/posix/mutex.h: Rename from sys-mutex.h.
2658         * config/posix/sem.c: Rename from sys-sem.c.
2659         * config/posix/sem.h: Rename from sys-sem.h.
2660         * config/posix/proc.c: Rename from sys-proc.c.
2661         * config/posix/time.c: Rename from sys-proc.c.
2663         * config/linux/mutex.c: New file.
2664         * config/linux/mutex.h: New file.
2665         * config/linux/sem.c: New file.
2666         * config/linux/sem.h: New file.
2667         * config/linux/i486/futex.h: New file.
2668         * config/linux/x86_64/futex.h: New file.
2670 2005-05-04  Richard Henderson  <rth@redhat.com>
2672         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2673         * libgomp.h: Declare them.
2674         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2675         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2677 2005-05-04  Richard Henderson  <rth@redhat.com>
2679         * libgomp-1 code drop
2681 2005-05-04  Richard Henderson  <rth@redhat.com>
2683         * iter.c (gomp_iter_static_next): Return tri-state on 0.
2684         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2685         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2686         (gomp_iter_static_next): Update.
2687         (gomp_ordered_static_next): Update.
2688         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2689         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
2690         totally empty range.
2691         (gomp_loop_ordered_static_next): Refine test for calling
2692         gomp_ordered_static_next.
2693         * testsuite/ordered-1.c: Add case for more threads than iterations.
2695         * iter.c (gomp_iter_runtime_next_locked): Remove.
2696         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2697         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2698         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2699         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2700         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2701         gomp_loop_ordered_guided_next): Downcase name, make static, add
2702         an external alias with the old name.
2703         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2704         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2705         switch and call one of the above static functions.
2706         * libgomp.h: Update.
2708         * work.c (gomp_work_share_start): Lock the mutex for !first too.
2709         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2710         GOMP_loop_guided_start, GOMP_loop_runtime_start,
2711         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2712         GOMP_loop_ordered_guided_start): Update to match.
2713         * sections.c (GOMP_sections_start): Likewise.
2714         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2716         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2717         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2718         Use bounds check instead of modulus.
2719         (gomp_ordered_sync): Split out of GOMP_ordered_start.
2720         (gomp_ordered_last): Don't sync with ordered_owner here.
2721         (gomp_ordered_next): Likewise.
2722         (gomp_ordered_static_loop_next): Likewise.
2723         * loop.c, libgomp.h: Update to match.
2725         * libgomp.h (GOMP_barrier): Declare.
2727         * testsuite/barrier-1.c: New file.
2728         * testsuite/critical-1.c: New file.
2729         * testsuite/ordered-2.c: New file.
2730         * testsuite/ordered-1.c: New file.
2731         * testsuite/sections-1.c: New file.
2732         * testsuite/single-1.c: New file.
2733         * testsuite/Makefile (TESTS): Add them.
2735 2005-05-04  Richard Henderson  <rth@redhat.com>
2737         * libgomp.h (struct gomp_work_share): Add ordered_owner.
2738         * loop.c (GOMP_loop_static_start): If not the startup thread,
2739         acquire the mutex to wait for initialization complete.
2740         (GOMP_loop_ordered_static_start): Likewise.
2741         (GOMP_loop_ordered_runtime_start): Likewise.
2742         (GOMP_loop_ordered_static_first): Remove.
2743         (GOMP_loop_ordered_dynamic_first): Remove.
2744         (GOMP_loop_ordered_guided_first): Remove.
2745         (GOMP_loop_ordered_runtime_first): Remove.
2746         * ordered.c (gomp_ordered_loop_first): Post to own release when
2747         we're the first thread.
2748         (gomp_ordered_loop_last): Wait on release if not owner.
2749         (gomp_ordered_loop_next): Likewise.
2750         (gomp_ordered_static_loop_init): New.
2751         (gomp_ordered_static_loop_next): Use ordered_owner.
2752         (GOMP_ordered_start): Likewise.
2753         * work.c (gomp_new_work_share): Initialize ordered_owner.
2755 2005-05-03  Richard Henderson  <rth@redhat.com>
2757         * Makefile (OPT): New.
2758         (CFLAGS): Use it.
2760         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2761         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2762         * libgomp.h, libgomp.map, NOTES: Update to match.
2764         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2765         Add initialized and thr members.
2766         (gomp_thread_start): Pause when initially spawned to wait for
2767         the whole team to be created.
2768         (gomp_team_start): Release team members at the end.
2770         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
2771         (f_foo_1): Use GOMP_loop_end.
2772         (f_foo_2): Use GOMP_loop_end_nowait.
2774         * testsuite/loop-2.c: New file.
2775         * testsuite/Makefile (TESTS): Add it.
2777 2005-05-03  Richard Henderson  <rth@redhat.com>
2779         * iter.c (gomp_iter_static_next): Fix overflow check typo.
2780         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2781         * team.c (new_team): Initialize oldest_live_gen to 1 if no
2782         initial work_share.
2784         * testsuite/Makefile: New file.
2785         * testsuite/loop-1.c: New file.
2787 2005-05-03  Richard Henderson  <rth@redhat.com>
2789         Initial implementation and checkin.