* MAINTAINERS: Updated my email address.
[official-gcc.git] / libgomp / ChangeLog
blob43a13fd64bc35284ef9705adb32cc4a299f4ab70
1 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3         * config/linux/futex.h: New.
4         * config/linux/arm/mutex.h: New.
5         * configure.tgt (arm*-*-linux*): Add config path.
7 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
14         Change Fortran datatype to LOGICAL.
15         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20         * configure: Regenerate.
22 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
24         * libgomp.texi: Add function keyword to a couple of Fortran
25         interfaces, use integer instead of int for Fortran.
27 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
29         * libgomp.texi: Fix spelling and pasto problems throughout.
30         Adjust prototypes to match code.
32 2010-07-24  Tobias Burnus  <burnus@net-b.de>
34         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
35         silence -fwhole-file warning.
37 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39         * configure.tgt (*-*-solaris2.[56]*): Removed.
41 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
43         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
44         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
45         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
46         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
47         targetting solaris2*.
48         * configure: Regenerate.
49         * config.h.in: Regenerate.
51         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
52         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
53         Add libgomp_version_dep.
54         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
55         versioning.
56         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
57         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
58         * Makefile.in: Regenerate.
60         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
61         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
62         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
63         to common block, protected by
64         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
66 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
68         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
70 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
72         PR bootstrap/43170
73         * configure: Regenerate.
75 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77         PR other/43620
78         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
79         * configure: Regenerate.
80         * Makefile.in: Regenerate.
81         * testsuite/Makefile.in: Regenerate.
83 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
85         PR c/43893
86         * testsuite/libgomp.c/pr43893.c: New test.
87         * testsuite/libgomp.c++/pr43893.C: New test.
89 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
91         PR middle-end/43570
92         * testsuite/libgomp.fortran/vla8.f90: New test.
94 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
96         PR libgomp/43706
97         * config/linux/affinity.c (gomp_init_affinity): Decrease
98         gomp_available_cpus if affinity mask confines the process to fewer
99         CPUs.
100         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
101         non-NULL, just return gomp_available_cpus.
103         PR libgomp/43569
104         * sections.c (gomp_sections_init): Initialize ws->mode.
106 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
108         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
109         not unused bar variable.
110         * configure: Regenerate.
112 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114         * Makefile.in: Regenerate.
115         * aclocal.m4: Regenerate.
116         * testsuite/Makefile.in: Regenerate.
118 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
120         PR libgomp/42942
121         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
122         (initialize_env): Adjust callers.
123         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
124         when the argument is 0.
126         * testsuite/libgomp.c/pr42942.c: New test.
128 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
130         PR middle-end/42644
131         PR middle-end/42130
132         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
133         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
135 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
137         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
138         * testsuite/libgomp.c++/task-6.C: Likewise.
140 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
142         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
144 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
146         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
147         * configure: Regenerate.
149 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
151         PR fortran/42866
152         * testsuite/libgomp.fortran/allocatable5.f90: New test.
154 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
156         * configure.ac: Test for executability of GFORTRAN.
157         * configure: Regenerate.
159 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
161         * configure: Regenerate.
163 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
165         PR libgomp/42602
166         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
168 2010-01-03  Richard Guenther  <rguenther@suse.de>
170         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
172 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
174         * testsuite/libgomp.graphite/pr4118.c: New.
176 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
178         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
179         for darwin, protect the test with require-effective-target tls_runtime.
180         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
182 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
184         PR target/41605
185         * testsuite/lib/libgomp.exp: Provide -B options to allow for
186         link spec %s substitutions for static libraries.
188 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
190         PR testsuite/42135
191         * libgomp.graphite/force-parallel-2.c: Reduce array size.
193 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
195         * Makefile.in: Regenerate.
196         * configure: Regenerate.
197         * testsuite/Makefile.in: Regenerate.
199 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
201         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
202         settings for LC_ALL and LANG.
204 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
206         PR fortran/42162
207         * testsuite/libgomp.fortran/pr42162.f90: New test.
209 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
211         PR middle-end/42029
212         * testsuite/libgomp.c/pr42029.c: New test.
214 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
216         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
217         *s.  Accept ld version without text in ()s.
218         * configure: Regenerated.
220 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
222         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
224 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
226         PR libgomp/41418
227         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
228         or a hyphen (happens with fortran language disabled).
229         * configure: Regenerate.
231 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
233         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
234         use sed script portable to Solaris /bin/sed for extracting ld
235         version.
236         * configure: Regenerate.
238 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
240         * testsuite/libgomp.graphite/bounds.c: New test.
242 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
244         * Makefile.am (libgomp_la_LINK): New.
245         * Makefile.in: Regenerate.
247 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
249         * configure.ac (AC_PREREQ): Bump to 2.64.
251 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
253         * Makefile.am (install-html, install-pdf): Remove.
254         * Makefile.in: Regenerate.
256         * Makefile.in: Regenerate.
257         * aclocal.m4: Regenerate.
258         * config.h.in: Regenerate.
259         * configure: Regenerate.
260         * testsuite/Makefile.in: Regenerate.
262 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
264         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
265         * Makefile.in: Regenerate.
267 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
269         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
270         * Makefile.in: Regenerate.
272 2009-08-19  Tobias Burnus  <burnus@net-b.de>
274         PR fortran/41102
275         omp_lib.h.in: Fix -std=f95 errors.
278 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
280         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
281         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
282         * testsuite/libgomp.graphite/graphite.exp: New.
284 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
286         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
287         only build.
289 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
291         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
292         needed memory barrier semantics.
293         * config/linux/mips/mutex.h: New file.
295 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
297         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
299 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
301         * configure: Regenerate.
303 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
305         PR testsuite/40699
306         PR testsuite/40707
307         PR testsuite/40709
308         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
309         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
310         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
312 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
314         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
315         options when choosing a multilib.
317 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
319         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
320         ld_library_path.  Use add_path.  Add just find_libgcc_s to
321         ld_library_path, not every libgcc multilib directory.
322         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
323         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
324         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
325         Use add_path.
326         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
328 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
330         * Makefile.am (LTLDFLAGS): Define.
331         (LINK): Define.
332         * Makefile.in: Regenerate.
334 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
336         PR fortran/39718
337         * testsuite/libgomp.fortran/fortran.exp: Don't link with
338         libgfortranbegin, check existence of libgfortran.a instead of
339         libgfortranbegin.a.
341 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
343         PR libgomp/40174
344         * team.c (gomp_thread_start): Destroy thr->release semaphore.
345         (gomp_free_pool_helper): Likewise.
347 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
348             Jakub Jelinek  <jakub@redhat.com>
350         PR fortran/35423
351         * testsuite/libgomp.fortran/workshare2.f90: New test.
353 2009-04-09  Nick Clifton  <nickc@redhat.com>
355         * iter.c: Change copyright header to refer to version 3 of the
356         GNU General Public License with version 3.1 of the GCC Runtime
357         Library Exception and to point readers at the COPYING3 and
358         COPYING3.RUNTIME files and the FSF's license web page.
359         * alloc.c: Likewise.
360         * barrier.c: Likewise.
361         * config/bsd/proc.c: Likewise.
362         * config/linux/affinity.c: Likewise.
363         * config/linux/alpha/futex.h: Likewise.
364         * config/linux/bar.c: Likewise.
365         * config/linux/bar.h: Likewise.
366         * config/linux/ia64/futex.h: Likewise.
367         * config/linux/ia64/mutex.h: Likewise.
368         * config/linux/lock.c: Likewise.
369         * config/linux/mips/futex.h: Likewise.
370         * config/linux/mutex.c: Likewise.
371         * config/linux/mutex.h: Likewise.
372         * config/linux/powerpc/futex.h: Likewise.
373         * config/linux/proc.c: Likewise.
374         * config/linux/ptrlock.c: Likewise.
375         * config/linux/ptrlock.h: Likewise.
376         * config/linux/s390/futex.h: Likewise.
377         * config/linux/sem.c: Likewise.
378         * config/linux/sem.h: Likewise.
379         * config/linux/sparc/futex.h: Likewise.
380         * config/linux/wait.h: Likewise.
381         * config/linux/x86/futex.h: Likewise.
382         * config/mingw32/proc.c: Likewise.
383         * config/mingw32/time.c: Likewise.
384         * config/posix/affinity.c: Likewise.
385         * config/posix/bar.c: Likewise.
386         * config/posix/bar.h: Likewise.
387         * config/posix/lock.c: Likewise.
388         * config/posix/mutex.h: Likewise.
389         * config/posix/proc.c: Likewise.
390         * config/posix/ptrlock.h: Likewise.
391         * config/posix/sem.c: Likewise.
392         * config/posix/sem.h: Likewise.
393         * config/posix/time.c: Likewise.
394         * config/posix95/lock.c: Likewise.
395         * critical.c: Likewise.
396         * env.c: Likewise.
397         * error.c: Likewise.
398         * fortran.c: Likewise.
399         * iter_ull.c: Likewise.
400         * libgomp.h: Likewise.
401         * libgomp_f.h.in: Likewise.
402         * libgomp_g.h: Likewise.
403         * loop.c: Likewise.
404         * loop_ull.c: Likewise.
405         * omp.h.in: Likewise.
406         * omp_lib.f90.in: Likewise.
407         * omp_lib.h.in: Likewise.
408         * ordered.c: Likewise.
409         * parallel.c: Likewise.
410         * sections.c: Likewise.
411         * single.c: Likewise.
412         * task.c: Likewise.
413         * team.c: Likewise.
414         * work.c: Likewise.
416 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
418         * testsuite/config/default.exp: Change copyright header to refer to
419         version 3 of the GNU General Public License and to point readers
420         at the COPYING3 file and the FSF's license web page.
422 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
424         PR middle-end/39573
425         * libgomp.c++/pr39573.C: New test.
427 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
429         PR other/39591
430         * testsuite/libgomp.c/pr39591-1.c: New test.
431         * testsuite/libgomp.c/pr39591-2.c: New test.
432         * testsuite/libgomp.c/pr39591-3.c: New test.
434 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
436         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
437         * testsuite/libgomp.c/atomic-6.c: Ditto.
439 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
441         PR c/39495
442         * testsuite/libgomp.c/loop-12.c: New test.
443         * testsuite/libgomp.c/loop-11.c: New test.
444         * testsuite/libgomp.c++/loop-11.C: New test.
445         * testsuite/libgomp.c++/loop-12.C: New test.
446         * testsuite/libgomp.c++/for-8.C: New test.
448 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
450         * configure: Regenerate.
452 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
454         PR middle-end/39154
455         * testsuite/libgomp.c/pr39154.c: New test.
457 2009-01-30  Ian Lance Taylor  <iant@google.com>
459         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
460         libgomp_ld_is_gold.  Get gold version number.
461         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
462         * configure: Rebuild.
464 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
466         * testsuite/lib/libgomp.exp: Add -B option for targets that
467         use libgfortran.a%s in their specs.
469 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
471         PR libgomp/38086
472         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
473         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
474         HAVE_AS_SYMVER_DIRECTIVE is not defined.
475         * configure: Regenerated.
476         * config.h.in: Likewise.
478 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
480         PR c++/38650
481         * testsuite/libgomp.c/pr38650.c: New test.
482         * testsuite/libgomp.c++/pr38650.C: New test.
484 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
486         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
488 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
490         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
492 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
494         * configure: Regenerate.
496 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
498         PR middle-end/36802
499         * testsuite/libgomp.c/pr36802-1.c: New test.
500         * testsuite/libgomp.c/pr36802-2.c: New test.
501         * testsuite/libgomp.c/pr36802-3.c: New test.
503 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
505         PR libgomp/38270
506         * config/linux/powerpc/mutex.h: New.
508 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
510         PR c++/38257
511         * testsuite/libgomp.c++/for-7.C: New test.
513         PR c++/38348
514         * testsuite/libgomp.c++/for-6.C: New test.
516 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
518         PR testsuite/28870
519         * testsuite/lib/libgomp.exp: Include new timeout library files.
520         (libgomp_target_compile): Set timeout value from new proc.
522 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
524         PR libgomp/37938
525         * config/linux/ia64/mutex.h: New.
527 2008-11-04  Tobias Burnus  <burnus@net-b.de>
529         PR libgomp/37935
530         * libgomp.texi (Runtime library routines, environment variables):
531         Update for OpenMP version 3.0.
533 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
534             Steve Ellcey  <sje@cup.hp.com>
536         * configure: Regenerate for new libtool.
537         * Makefile.in: Ditto.
538         * testsuite/Makefile.in: Ditto.
540 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
541             Andreas Tobler  <a.tobler@schweiz.org>
543         * config/bsd/proc.c: New file.
544         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
545         * configure.ac: Check for header <sys/sysctl.h>
546         * configure: Regenerate.
547         * config.h.in: Likewise.
549 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
551         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
553 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
555         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
556         * Makefile.in: Regenerated.
557         * testsuite/Makefile.in: Regenerated.
559 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
561         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
562         depend on blddir if blddir exists.
563         (libgomp_target_compile): Likewise.
564         * testsuite/libgomp.c++/c++.exp: Likewise.
565         * testsuite/libgomp.fortran/fortran.exp: Likewise.
567 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
569         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
570         Do not list GPL as Invariant Section.
572 2008-07-28  Ilie Garbacea  <ilie@mips.com>
573             Chao-ying Fu  <fu@mips.com>
575         * configure.tgt: Enable futex for MIPS.
576         * config/linux/mips/futex.h: New file.
578 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
580         * team.c (gomp_team_end): Free team immediately if it has
581         just one thread.
583 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
585         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
586         * testsuite/libgomp.fortran/fortran.exp: Same.
587         * testsuite/libgomp.c/c.exp: Same.
588         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
589         directory to library path first.
591 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
593         * env.c (parse_stacksize): Add cast to avoid warning.
594         (parse_spincount): Likewise.
596 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
598         * testsuite/libgomp.c/loop-10.c: New test.
599         * libgomp.c/loop-3.c (main): Add lastprivate clause.
600         * libgomp.c++/loop-6.C (main): Likewise.
602         PR debug/36617
603         * testsuite/libgomp.c/debug-1.c: New test.
605 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
607         * testsuite/libgomp.c/nqueens-1.c: New test.
609         PR c++/36523
610         * testsuite/libgomp.c++/task-7.C: New function.
612 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
614         * configure: Regenerate.
616 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
618         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
619         mutex when HAVE_SYNC_BUILTINS isn't defined.
621 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
623         * libgomp.texi (omp_test_lock): Fix typo.
625 2008-06-12  Tobias Burnus  <burnus@net-b.de>
627         * omp_lib.f90.in: Add "implicit none".
629 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
631         PR middle-end/36506
632         * testsuite/libgomp.c/reduction-5.c: New test.
634 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
636         * libgomp.h (struct gomp_task): Add in_tied_task field.
637         * task.c (gomp_init_task): Initialize it.
638         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
639         unconditionally.  Don't call gomp_team_barrier_wake if
640         current task is implicit or if(0) from implicit and number of
641         running tasks is equal to nthreads - 1.
643         PR libgomp/36471
644         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
645         omp_get_team_size_8): Fix pastos.
647         PR libgomp/36469
648         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
649         * configure: Regenerated.
650         * config.h.in: Regenerated.
651         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
652         defined.
654 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
656         PR bootstrap/36452
657         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
658         (GOMP_loop_ull_dynamic_start): Likewise.
659         (GOMP_loop_ull_guided_start): Likewise.
660         (GOMP_loop_ull_ordered_static_start): Likewise.
661         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
662         (GOMP_loop_ull_ordered_guided_start): Likewise.
664 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
665             Richard Henderson  <rth@redhat.com>
666             Ulrich Drepper  <drepper@redhat.com>
667             Jakob Blomer  <jakob.blomer@ira.uka.de>
669         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
670         Substitute also OMP_*LOCK_25*.
671         * configure: Regenerated.
672         * config.h.in: Regenerated.
673         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
674         ptrlock.c and task.c.
675         * Makefile.in: Regenerated.
676         * testsuite/Makefile.in: Regenerated.
677         * task.c: New file.
678         * loop_ull.c: New file.
679         * iter_ull.c: New file.
680         * libgomp.h: Include ptrlock.h.
681         (enum gomp_task_kind): New type.
682         (struct gomp_team): Add task_lock, task_queue, task_count,
683         task_running_count, single_count fields.  Add
684         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
685         Remove work_share_lock, generation_mask,
686         oldest_live_gen, num_live_gen and init_work_shares fields, add
687         work work_share_list_alloc, work_share_list_free and work_share_chunk
688         fields.  Change work_shares from pointer to pointers into an array.
689         Change ordered_release field into gomp_sem_t ** from flexible array
690         member.  Add implicit_task and initial_work_shares fields.
691         Move close to the end of the struct.
692         (struct gomp_team_state): Add single_count, last_work_share,
693         active_level and level fields, remove work_share_generation.
694         (gomp_barrier_handle_tasks): New prototype.
695         (gomp_finish_task): New inline function.
696         (struct gomp_work_share): Move chunk_size, end, incr into
697         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
698         next_ll fields.  Reshuffle fields.  Add next_alloc,
699         next_ws, next_free and inline_ordered_team_ids fields, change
700         ordered_team_ids into pointer from flexible array member.
701         Add mode field.  Put lock and next into a different cache line
702         from most of the write-once fields.
703         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
704         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
705         gomp_iter_ull_guided_next): New prototypes.
706         (gomp_new_icv): New prototype.
707         (struct gomp_thread): Add thread_pool and task fields.
708         (struct gomp_thread_pool): New type.
709         (gomp_new_team): New prototype.
710         (gomp_team_start): Change type of last argument.
711         (gomp_new_work_share): Removed.
712         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
713         (gomp_work_share_init_done): New static inline.
714         (gomp_throttled_spin_count_var, gomp_available_cpus,
715         gomp_managed_threads): New extern decls.
716         (gomp_init_task): New prototype.
717         (gomp_spin_count_var): New extern var decl.
718         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
719         or no alias support, or if not PIC.
720         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
721         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
722         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
723         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
724         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
725         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
726         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
727         gomp_test_nest_lock_25): New prototypes.
728         (omp_lock_symver, strong_alias): Define.
729         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
730         decls.
731         (gomp_end_task): New.
732         (struct gomp_task_icv, gomp_global_icv): New.
733         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
734         (struct gomp_task): New.
735         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
736         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
737         (gomp_icv): New.
738         (gomp_schedule_type): Reorder enum to match
739         omp_sched_t.
740         * team.c (struct gomp_thread_start_data): Add thread_pool and task
741         fields.
742         (gomp_thread_start): Add gomp_team_barrier_wait call.
743         For non-nested case remove clearing of docked thread thr fields.
744         Use pool fields instead of global gomp_* variables.  Use
745         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
746         Create tasks for each member thread.
747         (free_team): Only destroy team barrier, task_lock here and free it.
748         (gomp_free_thread): Free last_team if non-NULL.
749         (gomp_team_end): Call gomp_team_barrier_wait instead of
750         gomp_barrier_wait.  For nested case call one extra
751         gomp_barrier_wait.  Move here some destruction from free_team.
752         Call free_team on pool->last_team if any, rather than freeing
753         current team.  Destroy work_share_list_free_lock ifndef
754         HAVE_SYNC_BUILTINS.
755         (gomp_new_icv): New function.
756         (gomp_threads, gomp_threads_size, gomp_threads_used,
757         gomp_threads_dock): Removed.
758         (gomp_thread_destructor): New variable.
759         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
760         functions.
761         (gomp_team_start): Create new pool if current thread doesn't have
762         one.  Use pool fields instead of global gomp_* variables. 
763         Initialize thread_pool field for new threads.  Clear single_count.
764         Change last argument from ws to team, don't create
765         new team, set ts.work_share to &team->work_shares[0] and clear
766         ts.last_work_share.  Don't clear ts.work_share_generation.
767         If number of threads changed, adjust atomically gomp_managed_threads.
768         Use gomp_init_task instead of gomp_new_task,
769         set thr->task to the corresponding implicit_task array entry.
770         Create tasks for each member thread.  Initialize ts.level.
771         (initialize_team): Call pthread_key_create on
772         gomp_thread_destructor.
773         (team_destructor): New function.
774         (new_team): Removed.
775         (gomp_new_team): New function.
776         (free_team): Free gomp_work_share blocks chained through next_alloc,
777         instead of freeing work_shares and destroying work_share_lock.
778         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
779         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
780         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
781         of gomp_barrier_wait.
782         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
783         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
784         if gomp_work_share_start returned true.  Don't unlock ws->lock.
785         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
786         of gomp_barrier_wait.
787         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
788         gomp_work_share_init_done if gomp_work_share_start returned true.
789         Don't unlock ws->lock.
790         * work.c: Include stddef.h.
791         (free_work_share): Use work_share_list_free_lock instead
792         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
793         Call gomp_fini_work_share and then either free ws if orphaned, or
794         put it into work_share_list_free list of the current team.
795         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
796         functions.
797         (gomp_work_share_start, gomp_work_share_end,
798         gomp_work_share_end_nowait): Rewritten.
799         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
800         (openmp_version): Set to 200805.
801         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
802         omp_sched_guided, omp_sched_auto): New parameters.
803         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
804         omp_set_max_active_levels, omp_get_max_active_levels,
805         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
806         omp_get_active_level): New interfaces.
807         * omp_lib.h.in (openmp_version): Set to 200805.
808         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
809         omp_sched_guided, omp_sched_auto): New parameters.
810         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
811         omp_set_max_active_levels, omp_get_max_active_levels,
812         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
813         omp_get_active_level): New externals.
814         * loop.c: Include limits.h.
815         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
816         GFS_AUTO.
817         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
818         Likewise.  Use gomp_icv.
819         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
820         ts.static_trip here.
821         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
822         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
823         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
824         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
825         don't unlock ws->lock, otherwise lock it.
826         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
827         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
828         (gomp_parallel_loop_start): Call gomp_new_team instead of
829         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
830         Adjust gomp_team_start caller.  Pass 0 as second argument to
831         gomp_resolve_num_threads.
832         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
833         If adding ws->chunk_size nthreads + 1 times after end won't
834         overflow, set ws->mode to 1.
835         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
836         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
837         GOMP_loop_ull_ordered_static_start,
838         GOMP_loop_ull_ordered_dynamic_start,
839         GOMP_loop_ull_ordered_guided_start,
840         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
841         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
842         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
843         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
844         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
845         prototypes.
846         * libgomp.map: Export lock routines also @@OMP_2.0.
847         (GOMP_loop_ordered_dynamic_first,
848         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
849         GOMP_loop_ordered_static_first): Remove.
850         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
851         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
852         GOMP_loop_ull_ordered_dynamic_next,
853         GOMP_loop_ull_ordered_dynamic_start,
854         GOMP_loop_ull_ordered_guided_next,
855         GOMP_loop_ull_ordered_guided_start,
856         GOMP_loop_ull_ordered_runtime_next,
857         GOMP_loop_ull_ordered_runtime_start,
858         GOMP_loop_ull_ordered_static_next,
859         GOMP_loop_ull_ordered_static_start,
860         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
861         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
862         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
863         (omp_set_schedule, omp_get_schedule,
864         omp_get_thread_limit, omp_set_max_active_levels,
865         omp_get_max_active_levels, omp_get_level,
866         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
867         omp_set_schedule_, omp_set_schedule_8_,
868         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
869         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
870         omp_get_max_active_levels_, omp_get_level_,
871         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
872         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
873         New exports @@OMP_3.0.
874         * omp.h.in (omp_sched_t): New type.
875         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
876         omp_set_max_active_levels, omp_get_max_active_levels,
877         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
878         omp_get_active_level): New prototypes.
879         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
880         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
881         gomp_thread_limit_var, gomp_remaining_threads_count,
882         gomp_remaining_threads_lock): New variables.
883         (parse_spincount): New function.
884         (initialize_env): Call gomp_init_num_threads unconditionally.
885         Initialize gomp_available_cpus.  Call parse_spincount,
886         initialize gomp_{,throttled_}spin_count_var
887         depending on presence and value of OMP_WAIT_POLICY and
888         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
889         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
890         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
891         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
892         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
893         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
894         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
895         (gomp_global_icv): New.
896         (parse_schedule): Use it.  Parse "auto".
897         (omp_set_num_threads): Use gomp_icv.
898         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
899         Likewise.
900         (omp_get_max_threads): Move from parallel.c.
901         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
902         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
903         add ialias.
904         (parse_stacksize, parse_wait_policy): New functions.
905         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
906         both wrappers for compatibility and new locks.
907         (omp_set_schedule, omp_get_schedule,
908         omp_get_thread_limit, omp_set_max_active_levels,
909         omp_get_max_active_levels, omp_get_level,
910         omp_get_ancestor_thread_num, omp_get_team_size,
911         omp_get_active_level): New ialias_redirect.
912         (omp_set_schedule_, omp_set_schedule_8_,
913         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
914         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
915         omp_get_max_active_levels_, omp_get_level_,
916         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
917         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
918         New functions.
919         * parallel.c: Include limits.h.
920         (gomp_resolve_num_threads): Add count argument.  Rewritten.
921         (GOMP_parallel_start): Call gomp_new_team and pass that as last
922         argument to gomp_team_start.  Pass 0 as second argument to
923         gomp_resolve_num_threads.
924         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
925         if gomp_thread_limit_var != ULONG_MAX.
926         (omp_in_parallel): Implement using ts.active_level.
927         (omp_get_max_threads): Move to env.c.
928         (omp_get_level, omp_get_ancestor_thread_num,
929         omp_get_team_size, omp_get_active_level): New functions,
930         add ialias.
931         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
932         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
933         gomp_iter_dynamic_next instead of the _locked variant and don't take
934         lock around it, otherwise acquire it before calling
935         gomp_iter_dynamic_next_locked.
936         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
937         gomp_iter_dynamic_next instead of the _locked variant and don't take
938         lock around it.
939         (GOMP_parallel_sections_start): Call gomp_new_team instead of
940         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
941         Adjust gomp_team_start caller.  Pass count as second argument to
942         gomp_resolve_num_threads, don't adjust num_threads after the call.
943         Use gomp_icv.
944         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
945         ws->chunk_size by incr.
946         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
947         code.
948         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
949         types.
950         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
951         (omp_check_defines): Check even the compat defines.
952         * config/linux/ptrlock.c: New file.
953         * config/linux/ptrlock.h: New file.
954         * config/linux/wait.h: New file.
955         * config/posix/ptrlock.c: New file.
956         * config/posix/ptrlock.h: New file.
957         * config/linux/bar.h (gomp_team_barrier_wait,
958         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
959         (gomp_team_barrier_set_task_pending,
960         gomp_team_barrier_clear_task_pending,
961         gomp_team_barrier_set_waiting_for_tasks,
962         gomp_team_barrier_waiting_for_tasks,
963         gomp_team_barrier_done): New inlines.
964         (gomp_barrier_t): Rewritten.
965         (gomp_barrier_state_t): New typedef.
966         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
967         gomp_barrier_wait_start): Rewritten.
968         (gomp_barrier_wait_end): Change second argument to
969         gomp_barrier_state_t.
970         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
971         inlines.
972         * config/linux/bar.c: Include wait.h instead of libgomp.h and
973         futex.h.
974         (gomp_barrier_wait_end): Rewritten.
975         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
976         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
977         * config/posix/bar.h (gomp_barrier_t): Add generation field.
978         (gomp_barrier_state_t): New typedef.
979         (gomp_team_barrier_wait,
980         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
981         (gomp_barrier_wait_start): Or all but low 2 bits from generation
982         into the return value.  Return gomp_barrier_state_t.
983         (gomp_team_barrier_set_task_pending,
984         gomp_team_barrier_clear_task_pending,
985         gomp_team_barrier_set_waiting_for_tasks,
986         gomp_team_barrier_waiting_for_tasks,
987         gomp_team_barrier_done): New inlines.
988         (gomp_barrier_wait_end): Change second argument to
989         gomp_barrier_state_t.
990         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
991         inlines.
992         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
993         (gomp_barrier_wait_end): Change second argument to
994         gomp_barrier_state_t. 
995         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
996         gomp_team_barrier_wake): New functions.
997         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
998         futex.h.
999         (gomp_futex_wake, gomp_futex_wait): New variables.
1000         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1001         * config/linux/lock.c: Rewrite to make locks task owned,
1002         for backwards compatibility provide the old entrypoints
1003         if symbol versioning.  Include wait.h instead of libgomp.h and
1004         futex.h.
1005         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1006         * config/posix95/lock.c: Rewrite to make locks task owned,
1007         for backwards compatibility provide the old entrypoints
1008         if symbol versioning.
1009         * config/posix/lock.c: Rewrite to make locks task owned,
1010         for backwards compatibility provide the old entrypoints
1011         if symbol versioning.
1012         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1013         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1014         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1015         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1016         (sys_futex0): Return error code.
1017         (futex_wake, futex_wait): If ENOSYS was returned, clear
1018         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1019         (cpu_relax, atomic_write_barrier): New static inlines.
1020         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1021         (futex_wake, futex_wait): If ENOSYS was returned, clear
1022         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1023         (cpu_relax, atomic_write_barrier): New static inlines.
1024         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1025         (sys_futex0): Return error code.
1026         (futex_wake, futex_wait): If ENOSYS was returned, clear
1027         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1028         (cpu_relax, atomic_write_barrier): New static inlines.
1029         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1030         (sys_futex0): Return error code.
1031         (futex_wake, futex_wait): If ENOSYS was returned, clear
1032         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1033         (cpu_relax, atomic_write_barrier): New static inlines.
1034         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1035         (sys_futex0): Return error code.
1036         (futex_wake, futex_wait): If ENOSYS was returned, clear
1037         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1038         (cpu_relax, atomic_write_barrier): New static inlines.
1039         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1040         (sys_futex0): Return error code.
1041         (futex_wake, futex_wait): If ENOSYS was returned, clear
1042         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1043         (cpu_relax, atomic_write_barrier): New static inlines.
1044         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1045         futex.h.
1046         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1047         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1048         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1049         types.
1050         (omp_nest_lock_t): Change owner into void *, add lock field.
1051         * config/posix95/omp-lock.h: Include semaphore.h.
1052         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1053         (omp_lock_t): Use sem_t instead of mutex if semaphores
1054         aren't broken.
1055         (omp_nest_lock_t): Likewise.  Change owner to void *.
1056         * config/posix/omp-lock.h: Include semaphore.h.
1057         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1058         (omp_lock_t): Use sem_t instead of mutex if semaphores
1059         aren't broken.
1060         (omp_nest_lock_t): Likewise.  Add owner field.
1062 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1064         * testsuite/libgomp.c/collapse-1.c: New test.
1065         * testsuite/libgomp.c/collapse-2.c: New test.
1066         * testsuite/libgomp.c/collapse-3.c: New test.
1067         * testsuite/libgomp.c/icv-1.c: New test.
1068         * testsuite/libgomp.c/icv-2.c: New test.
1069         * testsuite/libgomp.c/lib-2.c: New test.
1070         * testsuite/libgomp.c/lock-1.c: New test.
1071         * testsuite/libgomp.c/lock-2.c: New test.
1072         * testsuite/libgomp.c/lock-3.c: New test.
1073         * testsuite/libgomp.c/loop-4.c: New test.
1074         * testsuite/libgomp.c/loop-5.c: New test.
1075         * testsuite/libgomp.c/loop-6.c: New test.
1076         * testsuite/libgomp.c/loop-7.c: New test.
1077         * testsuite/libgomp.c/loop-8.c: New test.
1078         * testsuite/libgomp.c/loop-9.c: New test.
1079         * testsuite/libgomp.c/nested-3.c: New test.
1080         * testsuite/libgomp.c/nestedfn-6.c: New test.
1081         * testsuite/libgomp.c/sort-1.c: New test.
1082         * testsuite/libgomp.c/task-1.c: New test.
1083         * testsuite/libgomp.c/task-2.c: New test.
1084         * testsuite/libgomp.c/task-3.c: New test.
1085         * testsuite/libgomp.c/task-4.c: New test.
1086         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1087         to C++ testsuite default compiler options.
1088         * testsuite/libgomp.c++/collapse-1.C: New test.
1089         * testsuite/libgomp.c++/collapse-2.C: New test.
1090         * testsuite/libgomp.c++/ctor-10.C: New test.
1091         * testsuite/libgomp.c++/for-1.C: New test.
1092         * testsuite/libgomp.c++/for-2.C: New test.
1093         * testsuite/libgomp.c++/for-3.C: New test.
1094         * testsuite/libgomp.c++/for-4.C: New test.
1095         * testsuite/libgomp.c++/for-5.C: New test.
1096         * testsuite/libgomp.c++/loop-8.C: New test.
1097         * testsuite/libgomp.c++/loop-9.C: New test.
1098         * testsuite/libgomp.c++/loop-10.C: New test.
1099         * testsuite/libgomp.c++/task-1.C: New test.
1100         * testsuite/libgomp.c++/task-2.C: New test.
1101         * testsuite/libgomp.c++/task-3.C: New test.
1102         * testsuite/libgomp.c++/task-4.C: New test.
1103         * testsuite/libgomp.c++/task-5.C: New test.
1104         * testsuite/libgomp.c++/task-6.C: New test.
1105         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1106         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1107         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1108         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1109         * testsuite/libgomp.fortran/collapse1.f90: New test.
1110         * testsuite/libgomp.fortran/collapse2.f90: New test.
1111         * testsuite/libgomp.fortran/collapse3.f90: New test.
1112         * testsuite/libgomp.fortran/collapse4.f90: New test.
1113         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1114         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1115         * testsuite/libgomp.fortran/lib4.f90: New test.
1116         * testsuite/libgomp.fortran/lock-1.f90: New test.
1117         * testsuite/libgomp.fortran/lock-2.f90: New test.
1118         * testsuite/libgomp.fortran/nested1.f90: New test.
1119         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1120         * testsuite/libgomp.fortran/strassen.f90: New test.
1121         * testsuite/libgomp.fortran/tabs1.f90: New test.
1122         * testsuite/libgomp.fortran/tabs2.f: New test.
1123         * testsuite/libgomp.fortran/task1.f90: New test.
1124         * testsuite/libgomp.fortran/task2.f90: New test.
1125         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1126         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1127         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1128         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1129         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1131 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1133         PR c++/36308
1134         * testsuite/libgomp.c++/ctor-11.C: New test.
1135         * testsuite/libgomp.c++/ctor-12.C: New test.
1137 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1139         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1141 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1143         PR middle-end/36106
1144         * testsuite/libgomp.c/atomic-5.c: New test.
1145         * testsuite/libgomp.c/atomic-6.c: New test.
1146         * testsuite/libgomp.c/autopar-1.c: New test.
1148 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1150         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1151         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1152         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1153         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1154         * configure: Regenerate.
1155         * Makefile.in, testsuite/Makefile.in: Likewise.
1157 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1159         PR bootstrap/35457
1160         * aclocal.m4: Regenerate.
1161         * configure: Regenerate.
1163 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1165         PR middle-end/35611
1166         * testsuite/libgomp.c/atomic-4.c: New test.
1168         PR libgomp/35625
1169         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1170         (gomp_iter_guided_next): Likewise.
1171         * testsuite/libgomp.c/pr35625.c: New test.
1173 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1175         * aclocal.m4: Regenerate.
1176         * configure: Likewise.
1177         * Makefile.in: Likewise.
1178         * testsuite/Makefile.in: Likewise.
1180 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1182         PR middle-end/35185
1183         * testsuite/libgomp.c++/pr35185.C: New test.
1185 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1187         PR middle-end/35549
1188         * testsuite/libgomp.c/pr35549.c: New test.
1190 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1192         * testsuite/libgomp.c/atomic-3.c: New test.
1194 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1196         PR fortran/33197
1197         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1198         .F08 file suffixes.
1200 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1202         PR libgomp/33131
1203         * configure.ac: Add ACX_HEADER_STRING.
1204         * env.c: Include strings.h.
1205         * aclocal.m4: Regenerate.
1206         * config.h.in: Regenerate.
1207         * configure: Regenerate.
1208         * Makefile.in: Regenerate.
1209         * testsuite/Makefile.in: Regenerate.
1211 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1213         PR middle-end/35196
1214         * testsuite/libgomp.c/pr35196.c: New test.
1216         PR middle-end/35130
1217         * testsuite/libgomp.fortran/pr35130.f90: New test.
1218         * testsuite/libgomp.c/pr35130.c: New test.
1220 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1222         PR middle-end/33880
1223         * testsuite/libgomp.c/pr33880.c: New test.
1224         * testsuite/libgomp.fortran/pr33880.f90: New test.
1226 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1228         * configure: Regenerate.
1230 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1232         * configure.ac: Move futex checking into ../config/futex.m4.
1233         * configure: Rebuilt.
1234         * aclocal.m4: Rebuilt.
1235         * Makefile.in: Rebuilt.
1237         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1238         2007-10-15 ../config/tls.m4 change.
1240 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1242         PR c++/34513
1243         * testsuite/libgomp.c/pr34513.c: New test.
1244         * testsuite/libgomp.c++/pr34513.C: New test.
1246 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1248         PR target/32765
1249         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1251 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1253         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1255 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1257         * testsuite/libgomp.c/private-1.c: New test.
1259 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1260             Paolo Bonzini  <bonzini@gnu.org>
1262         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1263         instead of 'VPATH ='.
1264         * Makefile.in: Regenerate.
1266 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1268         * configure.ac: Adjust makeinfo version check.
1269         * configure: Regenerate.
1271 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1273         PR fortran/34020
1274         * testsuite/libgomp.fortran/pr34020.f90: New test.
1276 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1278         PR c++/33894
1279         * testsuite/libgomp.c++/atomic-1.C: New test.
1281 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1283         PR libgomp/33275
1284         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1285         Make x and y integers rather than (implicit) reals.  Add private (j)
1286         clause to the last omp parallel.
1288 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1290         * configure: Regenerate following changes to ../config/tls.m4.
1292 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1294         * testsuite/libgomp.fortran/stack.f90: New test.
1296 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1298         * config/mingw32/proc.c: New file.
1300 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1302         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1303         (main): Use __get_cpuid to get i386 target fetaures.
1304         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1305         (main): Use __get_cpuid to get x86_64 target fetaures.
1307 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1309         PR target/32765
1310         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1311         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1313 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1315         PR fortran/32550
1316         * testsuite/libgomp.fortran/pr32550.f90: New test.
1317         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1319 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1321         * aclocal.m4: Regenerated.
1323 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1325         PR fortran/32359
1326         * testsuite/libgomp.fortran/pr32359.f90: New.
1328 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1330         PR libgomp/32468
1331         * sections.c (GOMP_parallel_sections_start): Only decrease
1332         number of threads to COUNT if dyn_var is true.
1333         * testsuite/libgomp.c/pr32468.c: New test.
1335 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1337         PR libgomp/26308
1338         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1340 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1342         PR middle-end/32362
1343         * testsuite/libgomp.c/pr32362-1.c: New test.
1344         * testsuite/libgomp.c/pr32362-2.c: New test.
1345         * testsuite/libgomp.c/pr32362-3.c: New test.
1347 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1349         * team.c (gomp_team_start): Fix setting up thread_attr
1350         stack size.
1352 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1354         * configure: Regenerate.
1356 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1358         * Makefile.in: Regenerate.
1359         * configure: Regenerate.
1360         * aclocal.m4: Regenerate.
1361         * testsuite/Makefile.in: Regenerate.
1363 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1365         * config/linux/proc.c: New file.
1367         PR libgomp/28482
1368         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1370 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1372         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1374 2007-04-16  Matthias Klose  <doko@debian.org>
1376         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1377         flags if not building with -m64.
1378         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1379         flag for i?86-*-* targets, if current target matches -m64.
1381 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1383         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1384         * Makefile.in: Regenerate.
1386 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1388         PR testsuite/31369
1389         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1390         ld_library_path.
1391         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1393 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1395         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1396         decls.
1397         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1398         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1399         (parse_affinity): New function.
1400         (initialize_env): Call it and gomp_init_affinity.
1401         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1402         create new pthread_attr_t and call gomp_init_thread_affinity
1403         on it for each thread before passing the attribute to pthread_create.
1404         * config/linux/affinity.c: New file.
1405         * config/posix/affinity.c: New file.
1406         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1407         * configure: Rebuilt.
1408         * config.h.in: Rebuilt.
1409         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1410         * Makefile.in: Rebuilt.
1412 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1414         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1415         *-*-darwin*.
1416         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1417         and use it if found.
1419 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1421         * testsuite/config/default.exp: New file.
1422         * testsuite/lib/libgomp.exp: New file.
1423         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1424         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1425         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1426         (libgomp_load): Remove.
1427         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1428         always_ld_library_path, not ld_library_path.  Set additional_flags
1429         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1430         (target_compile): Do not call libgomp_init.  Append lang_library_path
1431         and lang_link_flags to options.
1432         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1433         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1434         here.
1435         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1436         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1437         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1438         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1439         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1440         CX8 flag.
1441         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1442         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1443         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1444         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1445         * testsuite/libgomp.c/atomic-10.c: Ditto.
1447 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1449         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1450         dg-final cleanup-modules line.
1451         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1452         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1453         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1454         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1455         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1456         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1457         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1459 2007-03-18  Andreas Schwab  <schwab@suse.de>
1461         * acinclude.m4: Adjust regular expression for ld version
1462         extraction.
1463         * configure: Regenerate.
1465 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1467         * Makefile.am: Add install-pdf target as copied from
1468         automake v1.10 rules.
1469         * Makefile.in: Regenerate
1471 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1473         PR libgomp/28486
1474         * configure: Regenerate.
1476         PR c++/30703
1477         * testsuite/libgomp.c++/pr30703.C: New test.
1479 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1481         Revert:
1482         2006-07-05  Eric Christopher  <echristo@apple.com>
1483         * configure.ac: Depend addition of -pthread on host OS.
1484         * configure: Regenerate.
1486 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1488         * libgomp.texi: Fix spacing after abbreviations.
1490 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1492         PR libgomp/30546
1493         * configure.ac: Add check for makeinfo
1494         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1495         if an appropiate version of makeinfo is found.
1496         * aclocal.m4: Regenerated.
1497         * configure: Regenerated.
1498         * Makefile.in: Regenerated.
1499         * testsuite/Makefile.in: Regenerated.
1501 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1503         PR libgomp/30540
1504         * libgomp.texi: More about implementation-dependent settings.
1506 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1508         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1510 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1512         PR middle-end/30494
1513         * testsuite/libgomp.c/pr30494.c: New test.
1515 2007-01-15  Tom Tromey  <tromey@redhat.com>
1517         * configure: Rebuilt.
1518         * configure.ac: Fixed comment.
1520 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1522         * libgomp.texi: Document implementation specific default values of
1523         environment variables.
1525 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1527         PR libgomp/28209
1528         * libgomp.texi: New file.
1529         * configure.ac: Add --enable-generated-files-in-srcdir option.
1530         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1531         files to srcdir.
1532         * Makefile.in: Regenerated.
1533         * config.h.in: Regenerated.
1534         * testsuite/Makefile.in: Regenerated.
1535         * NOTES: Removed.
1537 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1539         PR libgomp/29949
1540         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1542 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1544         * configure: Regenerate.
1546 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1548         PR libgomp/29947
1549         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1550         start if there shouldn't be any loop iterations.
1551         (gomp_loop_ordered_static_start): Remove start == end test.
1552         * testsuite/libgomp.c/pr29947-1.c: New test.
1553         * testsuite/libgomp.c/pr29947-2.c: New test.
1555 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1557         * configure.tgt: Force initial-exec TLS model on Linux only.
1559 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1561         * configure: Regenerated.
1563 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1565         * env.c (parse_schedule): Reject out of range values.
1566         (parse_unsigned_long): Reject out of range, negative or zero values.
1568 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1570         PR fortran/29629
1571         * testsuite/libgomp.fortran/pr29629.f90: New test.
1573 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1575         PR libgomp/29494
1576         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1577         * config/posix95: New directory.
1578         * config/posix95/omp-lock.h: New file.
1579         * config/posix95/lock.c: Likewise.
1581 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1583         * aclocal.m4: Regenerate.
1584         * configure: Regenerate.
1586 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1588         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1589         '<' to '<='.
1591 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1593         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1594         test.
1595         * configure: Regenerate.
1596         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1598 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1600         PR middle-end/25261
1601         PR middle-end/28790
1602         * testsuite/libgomp.c/nestedfn-4.c: New test.
1603         * testsuite/libgomp.c/nestedfn-5.c: New test.
1604         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1606         PR fortran/29097
1607         * testsuite/libgomp.fortran/condinc1.f: New test.
1608         * testsuite/libgomp.fortran/condinc2.f: New test.
1609         * testsuite/libgomp.fortran/condinc3.f90: New test.
1610         * testsuite/libgomp.fortran/condinc4.f90: New test.
1611         * testsuite/libgomp.fortran/condinc1.inc: New file.
1613 2006-09-18  Tom Tromey  <tromey@redhat.com>
1615         * configure: Rebuilt.
1617 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1619         PR c/28768
1620         PR preprocessor/14634
1621         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1622         to AC_DEFINE.
1623         * configure: Regenerate.
1625 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1627         * testsuite/libgomp.fortran/reduction3.f90: Change
1628         -2147483648 to -huge(i)-1 to avoid overflow.
1629         * testsuite/libgomp.fortran/reduction4.f90: Change
1630         Z'ffffffff' to not(0) to avoid overflow.
1632 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1634         PR libgomp/25938
1635         * Makefile.am (libsubincludedir): New.
1636         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1637         * Makefile.in: Regenerate.
1639 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1641         PR libgomp/28725
1642         * env.c: Include ctype.h.
1643         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1644         leading and/or trailing whitespace and compare strings case
1645         insensitively.
1647 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1649         PR fortran/28390
1650         * testsuite/libgomp.fortran/pr28390.f: New test.
1652 2006-07-05  Eric Christopher  <echristo@apple.com>
1654         * configure.ac: Depend addition of -pthread on host OS.
1655         * configure: Regenerate.
1657 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1659         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1660         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1661         defined.
1663 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1665         PR libgomp/26175
1666         PR libgomp/26477
1667         * configure.ac: If neither --enable-linux-futex nor
1668         --disable-linux-futex is passed, determine the default by checking
1669         for compiling and/or running against NPTL.  With --enable-linux-futex,
1670         check if SYS_gettid and SYS_futex are defined.
1671         * configure: Rebuilt.
1673 2006-06-14  Richard Henderson  <rth@redhat.com>
1675         PR libgomp/28008
1676         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1677         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1679 2006-06-09  Richard Henderson  <rth@redhat.com>
1681         * env.c (gomp_nthreads_var): Change to unsigned long.
1682         (gomp_run_sched_chunk): Likewise.
1683         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1684         (initialize_env): Initialize gomp_thread_attr.
1685         * libgomp.h (gomp_nthreads_var): Update decl.
1686         (gomp_run_sched_chunk): Likewise.
1687         (gomp_thread_attr): Declare.
1688         * team.c (gomp_thread_attr): Export.
1689         (initialize_team): Don't initialize it.
1691 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
1693         PR fortran/27916
1694         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1695         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1697 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1699         * config/mingw32/time.c: New file.
1700         * configure.tgt: Use it.
1702 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1704         * Makefile.am: Add install-html target. Add install-html to .PHONY
1705         * Makefile.in: Regenerate.
1707 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1709         PR libgomp/27612
1710         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1711         * testsuite/libgomp.c/critical-1.c: Likewise.
1712         * testsuite/libgomp.c/loop-1.c: Likewise.
1713         * testsuite/libgomp.c/loop-2.c: Likewise.
1714         * testsuite/libgomp.c/single-1.c: Likewise.
1715         * testsuite/libgomp.c/ordered-1.c: Likewise.
1716         * testsuite/libgomp.c/ordered-2.c: Likewise.
1718 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1720         PR middle-end/27416
1721         * libgomp.fortran/pr27416-1.f90: New test.
1723 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
1725         PR fortran/27395
1726         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1727         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1729 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1731         PR c++/26943
1732         * testsuite/libgomp.c/pr26943-1.c: New test.
1733         * testsuite/libgomp.c/pr26943-2.c: New test.
1734         * testsuite/libgomp.c/pr26943-3.c: New test.
1735         * testsuite/libgomp.c/pr26943-4.c: New test.
1736         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1737         * testsuite/libgomp.c++/pr26943.C: New test.
1739 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1741         PR middle-end/27337
1742         * testsuite/libgomp.c++/pr27337.C: New test.
1744 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1746         PR c/26171
1747         * testsuite/libgomp.c/pr26171.c: New test.
1749 2006-04-25  Richard Henderson  <rth@redhat.com>
1751         PR libgomp/25865
1752         * configure.ac: Use GCC_CHECK_TLS.
1753         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1754         * Makefile.in, aclocal.m4, configure: Regenerate.
1756 2006-04-10  Matthias Klose  <doko@debian.org>
1758         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1759         directory names containing underscores.
1761 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1763         PR c++/26691
1764         * testsuite/libgomp.c++/pr26691.C: New test.
1766 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1768         * testsuite/libgomp.fortran/retval2.f90: New test.
1770 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1772         * testsuite/libgomp.c++: New directory.
1774 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
1776         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1777         * config/posix/sem.c: Implement the above.
1779 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
1781         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1782         define HAVE_BROKEN_POSIX_SEMAPHORES.
1783         * configure: Rebuilt.
1784         * config.h.in: Rebuilt.
1786 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1788         PR bootstrap/26161
1789         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1790         for the other pthread check.
1791         * configure: Regenerate.
1792         * config.h.in: Regenerate.
1794 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1796         PR libgomp/25938
1797         PR libgomp/25984
1798         * Makefile.am (fincludedir): New variable.
1799         (nodist_include_HEADERS): Remove Fortran files.
1800         (nodist_finclude_HEADERS): New variable.
1801         * Makefile.in: Regenerated.
1803 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1805         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1806         Remove tests for returning assumed character length arrays.
1808 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1809             John David Anglin  <dave@hiauly1.hia.nrc.ca>
1811         PR libgomp/25936
1812         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1814 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1816         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1818 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1820         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1821         part of LD_LIBRARY_PATH manually.
1823 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1825         PR libgomp/25852
1826         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1827         libgomp_init.
1829 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
1831         PR libgomp/25884
1832         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1833         * configure.ac (PERL): Don't set.
1834         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1835         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1836         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1837         * omp.h.in: Wrap the new configure substitutions with @ characters.
1838         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1839         * aclocal.m4, configure, Makefile.in: Regenerate.
1840         * mkomp_h.pl: Delete.
1842 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
1844         PR libgomp/25259
1845         * configure.ac: Use GCC_HEADER_STDINT.
1846         * libgomp.h: Include gstdint.h.
1847         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1848         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1850 2006-01-24  Richard Henderson  <rth@redhat.com>
1852         PR libgomp/25942
1853         * configure.ac: Add AM_MAINTAINER_MODE.
1854         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1856 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
1858         * Makefile.in: Regenerate.
1859         * testsuite/Makefile.in: Regenerate.
1860         * aclocal.m4: Regenerate.
1862 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
1864         * config/posix/proc.c: Conditional include of sys/loadavg.h for
1865         Solaris.
1866         * configure.ac: Add check for loadavg.h.
1867         (link_gomp): Adjust comment.
1868         * configure: Regenerate.
1869         * config.h.in: Regenerate.
1871 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
1873         PR libgomp/25877
1874         * configure.ac: Remove check for alloca.h.
1875         * configure: Regenerate.
1876         * config.h.in: Regenerate.
1877         * libgomp.h: define gomp_alloca to be __builtin_alloca.
1878         * team.c: Remove use of alloca.h.
1879         Call gomp_alloca instead of alloca.
1881 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
1883         PR libgomp/25877
1884         * team.c: Add include of alloca.h.
1885         * configure.ac: Add check for alloca.h.
1886         * configure: Regenerate.
1887         * config.h.in: Regenerate.
1889 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
1891         PR fortran/25219
1892         * testsuite/libgomp.fortran/pr25219.f90: New test.
1894 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
1896         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1897         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1898         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1899         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1900         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1901         testsuite/libgomp.fortran/threadprivate1.f90,
1902         testsuite/libgomp.fortran/threadprivate2.f90,
1903         testsuite/libgomp.fortran/threadprivate3.f90,
1904         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1905         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1906         testsuite/libgomp.fortran/omp_parse3.f90: Change required
1907         effective-target to TLS runtime.
1909         * testsuite/libgomp.fortran/pr25162.f: Require
1910         effective-target TLS runtime.
1912 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
1914         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1915         * testsuite/libgomp.c/nestedfn-3.c: New test.
1917 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
1919         PR fortran/25162
1920         * testsuite/libgomp.fortran/pr25162.f: New test.
1922 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
1924         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1925         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1927 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
1929         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1930         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1931         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1932         single.c, team.c, work.c, config/linux/alpha/futex.h,
1933         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1934         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1935         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1936         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1937         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1938         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1939         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1940         FSF address.
1942 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
1944         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1945         to nodist_noinst_HEADERS.
1946         * Makefile.in: Rebuilt.
1948         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1949         add integer count field.
1950         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1951         omp_nest_lock_t type change.
1952         (omp_init_nest_lock): Likewise.  Initialize count to 0.
1953         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1954         Increment count.
1955         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1956         Decrement count.
1957         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1958         Increment count if successful and return the new nesting level.
1959         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1960         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1961         * testsuite/libgomp.c/lib-1.c: New test.
1962         * testsuite/libgomp.fortran/lib1.f90: New test.
1963         * testsuite/libgomp.fortran/lib2.f: New test.
1964         * testsuite/libgomp.fortran/lib3.f: New test.
1966 2005-11-17  Richard Henderson  <rth@redhat.com>
1968         PR 24845
1969         * Makefile.am (nodist_toolexeclib_HEADERS): New.
1970         * configure.ac (link_gomp): New.  Substitute it.
1971         (AC_CONFIG_FILES): Add libgomp.spec.
1972         * libgomp.spec.in: New file.
1973         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1974         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1976 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
1978         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1979         reduction(-:var) behaving the same as reduction(+:var).
1980         * testsuite/libgomp.c/reduction-4.c: New test.
1982 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
1984         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1985         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1986         testsuite/libgomp.c/copyin-3.c,
1987         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1988         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1989         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1990         testsuite/libgomp.c++/pr24455.C,
1991         testsuite/libgomp.fortran/threadprivate1.f90,
1992         testsuite/libgomp.fortran/threadprivate2.f90,
1993         testsuite/libgomp.fortran/threadprivate3.f90,
1994         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1995         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1996         testsuite/libgomp.fortran/omp_parse3.f90: Require
1997         effective-target TLS.
1999 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2001         * HEADER: Remove.
2003 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2005         PR libgomp/24797
2006         * team.c (initialize_team): Pass NULL rather than free as
2007         pthread_key_create destructor.  Initialize thread specific data
2008         pointer in initial thread to a static local variable rather than
2009         malloced memory.
2011 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2013         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2014         its location to ld_library_path.
2016 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2018         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2020 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2022         * testsuite/libgomp.c: Rename from libgomp.dg.
2024 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2026         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2027         threadprivate variable 'i'.
2029 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2031         * config/linux/s390/futex.h: New file.
2032         * configure.tgt: Use it.
2034         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2035         before the parallel.
2037 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2039         PR c++/24734
2040         * testsuite/libgomp.c++/master-1.C: New test.
2042 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2044         * testsuite/libgomp.dg/copyin-3.c: New test.
2046 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2048         * testsuite/libgomp.fortran/retval1.f90: New test.
2049         * testsuite/libgomp.fortran/vla7.f90: New test.
2051 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2053         * testsuite/libgomp.fortran/vla2.f90: New test.
2054         * testsuite/libgomp.fortran/vla3.f90: New test.
2055         * testsuite/libgomp.fortran/vla4.f90: New test.
2056         * testsuite/libgomp.fortran/vla5.f90: New test.
2057         * testsuite/libgomp.fortran/vla6.f90: New test.
2059 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2061         * config/linux/sparc/futex.h: New file.
2062         * configure.tgt: Use it.
2063         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2065         * critical.c: Include stdlib.h.
2066         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2067         ignoring return value.
2068         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2069         LIBGOMP_CHECK_SYNC_BUILTINS check.
2070         * configure: Rebuilt.
2072 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2074         * testsuite/libgomp.fortran/vla1.f90: New test.
2076 2005-10-31  Richard Henderson  <rth@redhat.com>
2078         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2079         setting 's' in different threads.
2081 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2083         * libgomp.h (attribute_hidden, ialias): Define.
2084         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2085         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2086         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2087         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2088         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2089         omp_test_lock, omp_test_nest_lock): Likewise.
2090         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2091         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2092         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2093         omp_test_lock, omp_test_nest_lock): Likewise.
2094         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2095         omp_get_dynamic, omp_get_nested): Likewise.
2096         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2097         omp_get_thread_num, omp_in_parallel): Likewise.
2098         * fortran.c (ialias_redirect): Define.
2099         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2100         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2101         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2102         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2103         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2104         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2105         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2106         omp_get_wtime): Add ialias_redirect.
2108 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2110         * fortran.c: Include stdlib.h.
2112 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2114         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2115         * Makefile.in: Regenerated.
2117 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2119         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2120         * libgomp_f.h.in (omp_check_defines): New function.
2121         * env.c: Include libgomp_f.h.
2122         (initialize_env): Call omp_check_defines.
2124         * testsuite/libgomp.dg/copyin-2.c: New test.
2125         * testsuite/libgomp.c++/copyin-2.C: New test.
2126         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2128         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2129         * testsuite/libgomp.fortran/sharing2.f90: New test.
2131         * testsuite/libgomp.dg/copyin-1.c: New test.
2132         * testsuite/libgomp.c++/copyin-1.C: New test.
2134 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2136         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2138         * testsuite/libgomp.fortran/workshare1.f90: New test.
2140         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2141         only test.
2142         * libgomp.fortran/sharing1.f90: New test.
2144 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2146         PR c++/24502
2147         * testsuite/libgomp.c++/loop-7.C: New test.
2149         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2151         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2152         * testsuite/libgomp.fortran/reduction6.f90: New test.
2153         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2155 2005-10-23  Richard Henderson  <rth@redhat.com>
2157         * testsuite/libgomp.c++/ctor-1.C: New.
2158         * testsuite/libgomp.c++/ctor-2.C: New.
2159         * testsuite/libgomp.c++/ctor-3.C: New.
2160         * testsuite/libgomp.c++/ctor-4.C: New.
2161         * testsuite/libgomp.c++/ctor-5.C: New.
2162         * testsuite/libgomp.c++/ctor-6.C: New.
2163         * testsuite/libgomp.c++/ctor-7.C: New.
2164         * testsuite/libgomp.c++/ctor-8.C: New.
2165         * testsuite/libgomp.c++/ctor-9.C: New.
2167 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2169         PR 24455
2170         * testsuite/libgomp.c++/pr24455-1.C: New test.
2171         * testsuite/libgomp.c++/pr24455.C: New test.
2172         * testsuite/libgomp.dg/pr24455-1.c: New test.
2173         * testsuite/libgomp.dg/pr24455.c: New test.
2175 2005-10-20  Richard Henderson  <rth@redhat.com>
2177         * testsuite/libgomp.c++/loop-6.C: New.
2178         * testsuite/libgomp.dg/loop-3.c: New.
2180 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2182         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2183         explicitly private.
2184         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2185         explicitly shared.
2187 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2189         * testsuite/libgomp.fortran/jacobi.f: New test.
2191 2005-10-19  Richard Henderson  <rth@redhat.com>
2193         * configure.tgt (i?86-linux): Default to with_arch instead of
2194         CFLAGS.  Add -mtune to match target_cpu.
2195         (x86_64-linux): Tune to i686.
2197         * fortran.c (omp_test_nest_lock_): Fix typo.
2199 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2201         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2202         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2203         * testsuite/libgomp.dg/ordered-3.c: New test.
2205         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2206         Remove volatile keyword.
2208         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2209         in COMMON block to avoid warnings on 64-bit targets.
2211 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2213         * testsuite/libgomp.dg/shared-3.c: New test.
2215 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2217         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2218         * testsuite/libgomp.fortran/reduction5.f90: New test.
2220 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2222         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2223         dg-options.
2224         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2225         flush loop now that __sync_synchronize has proper memory barrier.
2226         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2227         Add -ffixed-form to dg-options.
2229 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2231         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2232         from subdirectories.
2233         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2234         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2235         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2236         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2237         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2238         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2239         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2240         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2241         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2242         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2243         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2244         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2245         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2246         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2247         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2248         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2249         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2250         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2251         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2252         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2253         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2254         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2255         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2256         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2257         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2259 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2261         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2262         lang_library_path exists.  Use find instead of glob to gather tests.
2263         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2265 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2267         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2268         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2269         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2270         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2271         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2272         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2273         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2274         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2275         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2276         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2277         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2278         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2279         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2281 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2283         * testsuite/libgomp.dg/vla-1.c: New test.
2285         * testsuite/libgomp.fortran/reference2.f90: New test.
2287         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2288         declaration of omp_get_thread_num.
2289         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2290         use omp_lib.
2292         * testsuite/libgomp.fortran/reduction1.f90: New test.
2293         * testsuite/libgomp.fortran/reduction2.f90: New test.
2294         * testsuite/libgomp.fortran/reduction3.f90: New test.
2295         * testsuite/libgomp.fortran/reduction4.f90: New test.
2297 2005-10-13  Richard Henderson  <rth@redhat.com>
2299         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2300         * Makefile.in: Regenerate.
2301         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2302         * libgomp.h: Include bar.h.
2303         (struct gomp_barrier): Remove.
2304         (struct gomp_team): Add barrier.  Replace master_barrier with
2305         master_release.  Replace threads with ordered_release.
2306         (struct gomp_thread): Replace barrier with release.
2307         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2308         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2309         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2310         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2311         (GOMP_single_copy_end): Likewise.
2312         * team.c (gomp_threads_dock): New.
2313         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2314         (gomp_thread_start): Use gomp_barrier_wait.
2315         (new_team, free_team): Update for gomp_team changes.
2316         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2317         (gomp_team_end): Use gomp_barrier_wait.
2318         (initialize_team): Update for gomp_thread changes.
2319         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2320         (gomp_work_share_end_nowait): Use atomic ops when available.
2321         * config/linux/bar.c, config/linux/bar.h: New files.
2322         * config/posix/bar.c, config/posix/bar.h: New files.
2324 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2326         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2327         * testsuite/libgomp.dg/single-2.c: New test.
2329         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2330         lang_link_flags): Unset, so that they aren't inherited from previously
2331         sourced *.exp.
2333         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2335 2005-10-12  Richard Henderson  <rth@redhat.com>
2337         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2338         (libgomp_init): Use lang_test_file, lang_library_path, and
2339         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2341         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2342         (lang_test_file, lang_link_flags): New.
2343         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2345         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2346         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2347         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2348         testsuite/libgomp.c++/parallel-1.C,
2349         testsuite/libgomp.c++/reduction-1.C,
2350         testsuite/libgomp.c++/reduction-2.C,
2351         testsuite/libgomp.c++/reduction-3.C,
2352         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2353         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2354         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2355         New files, largely cribbed from the C testsuite.
2357 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2359         * testsuite/libgomp.fortran/character1.f90: New test.
2360         * testsuite/libgomp.fortran/character2.f90: New test.
2362         * testsuite/libgomp.dg/nested-1.c: New test.
2363         * testsuite/libgomp.dg/nested-2.c: New test.
2364         * testsuite/libgomp.fortran/do1.f90: New test.
2365         * testsuite/libgomp.fortran/do2.f90: New test.
2367         * testsuite/libgomp.fortran/reference1.f90: New test.
2369 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2371         * testsuite/libgomp.dg/reduction-1.c: New test.
2372         * testsuite/libgomp.dg/reduction-2.c: New test.
2373         * testsuite/libgomp.dg/reduction-3.c: New test.
2375 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2377         * testsuite/libgomp.dg/atomic-1.c: New test.
2378         * testsuite/libgomp.dg/atomic-2.c: New test.
2380 2005-10-09  Richard Henderson  <rth@redhat.com>
2382         * critical.c (atomic_lock): New.
2383         (initialize_critical): Initialize it.
2384         (GOMP_atomic_start, GOMP_atomic_end): New.
2385         * libgomp.map: Export them.
2386         * libgomp_g.h: Declare them.
2388         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2390 2005-10-02  Richard Henderson  <rth@redhat.com>
2392         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2393         to XCFLAGS instead of CFLAGS.
2395 2005-09-30  Richard Henderson  <rth@redhat.com>
2397         * configure.ac: Determine whether -pthread or -lpthread is needed.
2398         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2399         * Makefine.in, configure: Rebuild.
2401 2005-09-28  Richard Henderson  <rth@redhat.com>
2403         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2404         * testsuite/libgomp.dg/omp-single-3.c: New test.
2406 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2408         * testsuite/libgomp.dg/omp-single-2.c: New test.
2409         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2411 2005-09-27  Richard Henderson  <rth@redhat.com>
2413         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2414         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2416 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2418         * testsuite/libgomp.dg/omp-loop03.c: New test.
2420 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2422         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2424 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2426         * testsuite/libgomp.dg/omp-single-1.c: New test.
2427         * testsuite/libgomp.dg/shared-1.c: Return 0.
2428         Add prototype for abort.
2429         * testsuite/libgomp.dg/shared-2.c: Likewise.
2431 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2433         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2434         constructs.
2436 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2438         * testsuite/libgomp.dg/shared-1.c: New test.
2439         * testsuite/libgomp.dg/shared-2.c: New test.
2441 2005-09-24  Richard Henderson  <rth@redhat.com>
2443         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2445 2005-09-24  Richard Henderson  <rth@redhat.com>
2447         * iter.c (gomp_iter_static_next): Round up when computing number
2448         of iterations.  Don't bother distributing a remainder equally.
2450         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2451         Don't call srand.  Zero b before testing.
2452         (main): New.
2454 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2456         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2457         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2459 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2461         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2462         without !$omp end do, followed immediately by subroutine end.
2464 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2466         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2468 2005-09-22  Richard Henderson  <rth@redhat.com>
2470         * critical.c (GOMP_critical_name_start): Change argument to void**.
2471         Reuse the pointer space if the mutex fits.
2472         (GOMP_critical_name_end): Likewise.
2473         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2474         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2475         (GOMP_critical_name_end): Likewise.
2476         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2477         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2479 2005-09-20  Richard Henderson  <rth@redhat.com>
2481         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2482         (create_lock_lock): New.
2483         (initialize_critical): Initialize it.
2484         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2485         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2487 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2489         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2491 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2493         * testsuite/libgomp.dg/omp-loop01.c: New test.
2494         * testsuite/libgomp.dg/omp-loop02.c: New test.
2496 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2498         * configure.ac (AC_PROG_FC): Add.
2499         (USE_FORTRAN): New automake conditional.
2500         * configure: Rebuilt.
2501         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2502         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2503         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2504         Add rules to build them.
2505         * Makefile.in: Rebuilt.
2506         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2507         OMP_NEST_LOCK_KIND.
2508         * libgomp.map: Add Fortran wrappers.
2509         * libgomp_f.h.in: New file.
2510         * omp_lib.h.in: New file.
2511         * omp_lib.f90.in: New file.
2512         * fortran.c: New file.
2513         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2514         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2515         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2516         libgfortran has been built.
2517         * testsuite/libgomp.fortran/fortran.exp: New file.
2518         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2519         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2520         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2521         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2522         * testsuite/libgomp.fortran/omp_hello.f: New test.
2523         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2524         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2525         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2526         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2527         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2528         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2529         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2530         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2532 2005-08-30  Richard Henderson  <rth@redhat.com>
2534         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2535         function for when aliases are not usable.
2536         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2537         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2538         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2539         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2540         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2541         GOMP_loop_ordered_guided_next): Likewise.
2542         * ordered.c (GOMP_ordered_start): Likewise.
2544 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2546         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2547         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2548         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2549         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2550         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2551         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2552         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2553         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2554         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2556 2005-07-07  Eric Christopher  <echristo@redhat.com>
2557             Diego Novillo  <dnovillo@redhat.com>
2559         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2560         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2561         up code.
2562         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2563         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2564         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2565         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2566         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2567         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2568         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2570 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2572         * TOPLEVEL.patch: Remove.
2574 2005-05-16  Richard Henderson  <rth@redhat.com>
2576         * configure.ac: Test for clock_gettime.
2577         * config.h.in, configure: Rebuild.
2578         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2579         (omp_get_wtime): Use clock_gettime if available.
2580         (omp_get_wtick): Use clock_getres if available.
2582 2005-05-11  Richard Henderson  <rth@redhat.com>
2584         * config/linux/ia64/futex.h: New file.
2585         * configure.tgt: Use it.
2587         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2589 2005-05-07  Richard Henderson  <rth@redhat.com>
2591         * config/linux/powerpc/futex.h: New file.
2592         * configure.tgt: Use it.
2594         * config/linux/i486/futex.h: Merge ...
2595         * config/linux/x86_64/futex.h: ... into ...
2596         * config/linux/x86/futex.h: ... here.
2597         * configure.tgt: Update to match.
2599 2005-05-06  Richard Henderson  <rth@redhat.com>
2601         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2602         * config/linux/i486/futex.h: Likewise.
2603         * config/linux/x86_64/futex.h: Likewise.
2605         * config/linux/lock.c: New file.
2606         * config/linux/omp-lock.h: New file.
2608         * critical.c, env.h: Don't include omp.h
2609         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2610         * config/posix/time.c: Likewise.
2611         * config/posix/omp-lock.h: New file.
2612         * libgomp.h: Include omp-lock.h and omp.h.
2613         * Makefile.am (nodist_include_HEADERS): New.
2614         (omp.h): New rule.
2615         * configure.ac (PERL): New.
2616         * mkomp_h.pl: New file.
2617         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2618         with templates.
2619         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2621         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2622         build directory.  Re-add -march=i486 hack.
2624         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2625         (libgomp_link_flags): Remove.
2626         (libgomp_initialized): Remove.
2627         (libgomp_init): Don't protect from reinitialization.  Copy code
2628         from libstdc++ for getting the multilib set correctly.
2630 2005-05-05  Richard Henderson  <rth@redhat.com>
2632         * config/linux/alpha/futex.h: New file.
2633         * configure.tgt (alpha*-*-linux*): Use it.
2635         * config/posix/mutex.c: New file.
2636         * config/posix/sem.c: Use libgomp.h.
2638         * configure.tgt (x86_64-linux): Also test CC for -m32.
2639         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2641         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2642         after $gccpath.
2644         * Makefile.am (SUBDIRS): New.
2645         (libgomp_la_LDFLAGS): Add -lpthread.
2646         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2647         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2649         * libgomp_g.h: New file.
2650         * libgomp.h: Split out all public declarations to libgomp_g.h.
2651         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2652         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2653         * config/linux/sem.h: Likewise.
2654         * config/posix/sem.h: Likewise.
2656         * Makefile.am (AM_LDFLAGS): New.
2657         (libgomp_version_script): Split out from ...
2658         (libgomp_la_LDFLAGS): ... here.
2659         (libgomp_version_info): New.
2660         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2661         (LIBGOMP_ENABLE): New.
2662         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2663         (LIBGOMP_ENABLE_SYMVERS): New.
2664         * configure.ac (AC_INIT): Version 1.0.
2665         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2666         (enable-linux-futex): Likewise.  Rename from enable-futex.
2667         (libtool_VERSION): New.
2668         (LIBGOMP_ENABLE_SYMVERS): Use it.
2669         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2670         * Makefile.in, aclocal.m4, configure: Rebuild.
2672         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2673         (gomp_mutex_unlock_slow): Fix typo.
2674         * config/linux/sem.c: Similarly.
2675         (gomp_sem_post_slow): Fix typo.
2676         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2677         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2678         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2680         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2681         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2682         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2683         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2684         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2685         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2686         LDFLAGS.  Pull enable_futex check to top-level.
2687         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
2688         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2690         First attempt at real configury.
2691         * Makefile, config.h: Remove file.
2692         * Makefile.am, Makefile.in: New file.
2693         * acinclude.m4 aclocal.m4: New file.
2694         * configure.ac, configure.tgt, configure: New file.
2696         * config/posix/lock.c: Rename from sys-lock.c.
2697         * config/posix/mutex.h: Rename from sys-mutex.h.
2698         * config/posix/sem.c: Rename from sys-sem.c.
2699         * config/posix/sem.h: Rename from sys-sem.h.
2700         * config/posix/proc.c: Rename from sys-proc.c.
2701         * config/posix/time.c: Rename from sys-proc.c.
2703         * config/linux/mutex.c: New file.
2704         * config/linux/mutex.h: New file.
2705         * config/linux/sem.c: New file.
2706         * config/linux/sem.h: New file.
2707         * config/linux/i486/futex.h: New file.
2708         * config/linux/x86_64/futex.h: New file.
2710 2005-05-04  Richard Henderson  <rth@redhat.com>
2712         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2713         * libgomp.h: Declare them.
2714         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2715         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2717 2005-05-04  Richard Henderson  <rth@redhat.com>
2719         * libgomp-1 code drop
2721 2005-05-04  Richard Henderson  <rth@redhat.com>
2723         * iter.c (gomp_iter_static_next): Return tri-state on 0.
2724         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2725         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2726         (gomp_iter_static_next): Update.
2727         (gomp_ordered_static_next): Update.
2728         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2729         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
2730         totally empty range.
2731         (gomp_loop_ordered_static_next): Refine test for calling
2732         gomp_ordered_static_next.
2733         * testsuite/ordered-1.c: Add case for more threads than iterations.
2735         * iter.c (gomp_iter_runtime_next_locked): Remove.
2736         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2737         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2738         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2739         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2740         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2741         gomp_loop_ordered_guided_next): Downcase name, make static, add
2742         an external alias with the old name.
2743         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2744         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2745         switch and call one of the above static functions.
2746         * libgomp.h: Update.
2748         * work.c (gomp_work_share_start): Lock the mutex for !first too.
2749         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2750         GOMP_loop_guided_start, GOMP_loop_runtime_start,
2751         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2752         GOMP_loop_ordered_guided_start): Update to match.
2753         * sections.c (GOMP_sections_start): Likewise.
2754         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2756         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2757         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2758         Use bounds check instead of modulus.
2759         (gomp_ordered_sync): Split out of GOMP_ordered_start.
2760         (gomp_ordered_last): Don't sync with ordered_owner here.
2761         (gomp_ordered_next): Likewise.
2762         (gomp_ordered_static_loop_next): Likewise.
2763         * loop.c, libgomp.h: Update to match.
2765         * libgomp.h (GOMP_barrier): Declare.
2767         * testsuite/barrier-1.c: New file.
2768         * testsuite/critical-1.c: New file.
2769         * testsuite/ordered-2.c: New file.
2770         * testsuite/ordered-1.c: New file.
2771         * testsuite/sections-1.c: New file.
2772         * testsuite/single-1.c: New file.
2773         * testsuite/Makefile (TESTS): Add them.
2775 2005-05-04  Richard Henderson  <rth@redhat.com>
2777         * libgomp.h (struct gomp_work_share): Add ordered_owner.
2778         * loop.c (GOMP_loop_static_start): If not the startup thread,
2779         acquire the mutex to wait for initialization complete.
2780         (GOMP_loop_ordered_static_start): Likewise.
2781         (GOMP_loop_ordered_runtime_start): Likewise.
2782         (GOMP_loop_ordered_static_first): Remove.
2783         (GOMP_loop_ordered_dynamic_first): Remove.
2784         (GOMP_loop_ordered_guided_first): Remove.
2785         (GOMP_loop_ordered_runtime_first): Remove.
2786         * ordered.c (gomp_ordered_loop_first): Post to own release when
2787         we're the first thread.
2788         (gomp_ordered_loop_last): Wait on release if not owner.
2789         (gomp_ordered_loop_next): Likewise.
2790         (gomp_ordered_static_loop_init): New.
2791         (gomp_ordered_static_loop_next): Use ordered_owner.
2792         (GOMP_ordered_start): Likewise.
2793         * work.c (gomp_new_work_share): Initialize ordered_owner.
2795 2005-05-03  Richard Henderson  <rth@redhat.com>
2797         * Makefile (OPT): New.
2798         (CFLAGS): Use it.
2800         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2801         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2802         * libgomp.h, libgomp.map, NOTES: Update to match.
2804         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2805         Add initialized and thr members.
2806         (gomp_thread_start): Pause when initially spawned to wait for
2807         the whole team to be created.
2808         (gomp_team_start): Release team members at the end.
2810         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
2811         (f_foo_1): Use GOMP_loop_end.
2812         (f_foo_2): Use GOMP_loop_end_nowait.
2814         * testsuite/loop-2.c: New file.
2815         * testsuite/Makefile (TESTS): Add it.
2817 2005-05-03  Richard Henderson  <rth@redhat.com>
2819         * iter.c (gomp_iter_static_next): Fix overflow check typo.
2820         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2821         * team.c (new_team): Initialize oldest_live_gen to 1 if no
2822         initial work_share.
2824         * testsuite/Makefile: New file.
2825         * testsuite/loop-1.c: New file.
2827 2005-05-03  Richard Henderson  <rth@redhat.com>
2829         Initial implementation and checkin.