1 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr48591.c: New test.
6 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10 * configure: Regenerate.
12 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15 * testsuite/libgomp.fortran/task3.f90: New test.
17 2011-02-24 Tobias Burnus <burnus@net-b.de>
19 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
21 2011-02-23 Jakub Jelinek <jakub@redhat.com>
24 * libgomp.texi (omp_get_wtime): Don't say time in the past
27 2011-02-18 Jakub Jelinek <jakub@redhat.com>
30 * testsuite/libgomp.fortran/fortran.exp: Check for both
31 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
32 but $blddir != "", still append ${blddir}/${lang_library_path}
35 2011-02-16 Tobias Burnus <burnus@net-b.de>
38 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
39 of libquadmath.a before adding its libpath to ldflags.
41 2011-02-14 Jakub Jelinek <jakub@redhat.com>
44 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
45 to FUTEX_WAIT futex syscall.
46 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
48 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50 * configure: Regenerate.
52 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
55 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
57 2011-01-16 Gerald Pfeifer
59 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
61 2010-12-14 Jakub Jelinek <jakub@redhat.com>
64 * libgomp.fortran/allocatable6.f90: New test.
66 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
68 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
69 * configure: Regenerate.
71 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
75 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
76 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
77 * aclocal.m4: Regenerate.
78 * configure: Regenerate.
79 * Makefile.in: Regenerate.
80 * testsuite/Makefile.in: Regenerate.
82 2010-12-02 Jakub Jelinek <jakub@redhat.com>
85 * libgomp.fortran/pr46753.f90: New test.
88 * env.c (initialize_env): Default to spin count 300000
89 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
93 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
94 at the end if sync builtins aren't supported.
96 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
98 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
100 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
102 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
104 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
106 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
108 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
109 Tobias Burnus <burnus@net-b.de>
113 * configure: Regenerate.
115 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
117 * config/linux/futex.h: New.
118 * config/linux/arm/mutex.h: New.
119 * configure.tgt (arm*-*-linux*): Add config path.
121 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
123 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
125 2010-09-23 Tobias Burnus <burnus@net-b.de>
127 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
128 Change Fortran datatype to LOGICAL.
129 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
130 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
132 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
134 * configure: Regenerate.
136 2010-07-26 Jakub Jelinek <jakub@redhat.com>
138 * libgomp.texi: Add function keyword to a couple of Fortran
139 interfaces, use integer instead of int for Fortran.
141 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
143 * libgomp.texi: Fix spelling and pasto problems throughout.
144 Adjust prototypes to match code.
146 2010-07-24 Tobias Burnus <burnus@net-b.de>
148 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
149 silence -fwhole-file warning.
151 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153 * configure.tgt (*-*-solaris2.[56]*): Removed.
155 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
157 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
158 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
159 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
160 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
161 targetting solaris2*.
162 * configure: Regenerate.
163 * config.h.in: Regenerate.
165 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
166 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
167 Add libgomp_version_dep.
168 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
170 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
171 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
172 * Makefile.in: Regenerate.
174 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
175 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
176 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
177 to common block, protected by
178 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
180 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
182 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
184 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
187 * configure: Regenerate.
189 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
192 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
193 * configure: Regenerate.
194 * Makefile.in: Regenerate.
195 * testsuite/Makefile.in: Regenerate.
197 2010-04-26 Jakub Jelinek <jakub@redhat.com>
200 * testsuite/libgomp.c/pr43893.c: New test.
201 * testsuite/libgomp.c++/pr43893.C: New test.
203 2010-04-21 Jakub Jelinek <jakub@redhat.com>
206 * testsuite/libgomp.fortran/vla8.f90: New test.
208 2010-04-20 Jakub Jelinek <jakub@redhat.com>
211 * config/linux/affinity.c (gomp_init_affinity): Decrease
212 gomp_available_cpus if affinity mask confines the process to fewer
214 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
215 non-NULL, just return gomp_available_cpus.
218 * sections.c (gomp_sections_init): Initialize ws->mode.
220 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
222 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
223 not unused bar variable.
224 * configure: Regenerate.
226 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
228 * Makefile.in: Regenerate.
229 * aclocal.m4: Regenerate.
230 * testsuite/Makefile.in: Regenerate.
232 2010-03-22 Jakub Jelinek <jakub@redhat.com>
235 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
236 (initialize_env): Adjust callers.
237 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
238 when the argument is 0.
240 * testsuite/libgomp.c/pr42942.c: New test.
242 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
246 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
247 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
249 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
252 * testsuite/libgomp.c++/task-6.C: Likewise.
254 2010-01-28 Steve Ellcey <sje@cup.hp.com>
256 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
258 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
260 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
261 * configure: Regenerate.
263 2010-01-26 Jakub Jelinek <jakub@redhat.com>
266 * testsuite/libgomp.fortran/allocatable5.f90: New test.
268 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
270 * configure.ac: Test for executability of GFORTRAN.
271 * configure: Regenerate.
273 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
275 * configure: Regenerate.
277 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
280 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
282 2010-01-03 Richard Guenther <rguenther@suse.de>
284 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
286 2009-12-23 Sebastian Pop <sebpop@gmail.com>
288 * testsuite/libgomp.graphite/pr4118.c: New.
290 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
292 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
293 for darwin, protect the test with require-effective-target tls_runtime.
294 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
296 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
299 * testsuite/lib/libgomp.exp: Provide -B options to allow for
300 link spec %s substitutions for static libraries.
302 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
305 * libgomp.graphite/force-parallel-2.c: Reduce array size.
307 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
309 * Makefile.in: Regenerate.
310 * configure: Regenerate.
311 * testsuite/Makefile.in: Regenerate.
313 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
315 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
316 settings for LC_ALL and LANG.
318 2009-11-25 Jakub Jelinek <jakub@redhat.com>
321 * testsuite/libgomp.fortran/pr42162.f90: New test.
323 2009-11-13 Jakub Jelinek <jakub@redhat.com>
326 * testsuite/libgomp.c/pr42029.c: New test.
328 2009-10-26 Jakub Jelinek <jakub@redhat.com>
330 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
331 *s. Accept ld version without text in ()s.
332 * configure: Regenerated.
334 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
336 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
338 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
341 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
342 or a hyphen (happens with fortran language disabled).
343 * configure: Regenerate.
345 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
347 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
348 use sed script portable to Solaris /bin/sed for extracting ld
350 * configure: Regenerate.
352 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
354 * testsuite/libgomp.graphite/bounds.c: New test.
356 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
358 * Makefile.am (libgomp_la_LINK): New.
359 * Makefile.in: Regenerate.
361 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
363 * configure.ac (AC_PREREQ): Bump to 2.64.
365 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
367 * Makefile.am (install-html, install-pdf): Remove.
368 * Makefile.in: Regenerate.
370 * Makefile.in: Regenerate.
371 * aclocal.m4: Regenerate.
372 * config.h.in: Regenerate.
373 * configure: Regenerate.
374 * testsuite/Makefile.in: Regenerate.
376 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
378 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
379 * Makefile.in: Regenerate.
381 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
383 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
384 * Makefile.in: Regenerate.
386 2009-08-19 Tobias Burnus <burnus@net-b.de>
389 omp_lib.h.in: Fix -std=f95 errors.
392 2009-08-14 David Edelsohn <edelsohn@gnu.org>
394 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
395 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
396 * testsuite/libgomp.graphite/graphite.exp: New.
398 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
400 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
403 2009-08-04 David Daney <ddaney@caviumnetworks.com>
405 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
406 needed memory barrier semantics.
407 * config/linux/mips/mutex.h: New file.
409 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
411 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
413 2009-07-16 Joseph Myers <joseph@codesourcery.com>
415 * configure: Regenerate.
417 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
422 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
423 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
424 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
426 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
428 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
429 options when choosing a multilib.
431 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
433 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
434 ld_library_path. Use add_path. Add just find_libgcc_s to
435 ld_library_path, not every libgcc multilib directory.
436 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
437 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
438 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
440 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
442 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
444 * Makefile.am (LTLDFLAGS): Define.
446 * Makefile.in: Regenerate.
448 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
451 * testsuite/libgomp.fortran/fortran.exp: Don't link with
452 libgfortranbegin, check existence of libgfortran.a instead of
455 2009-05-20 Jakub Jelinek <jakub@redhat.com>
458 * team.c (gomp_thread_start): Destroy thr->release semaphore.
459 (gomp_free_pool_helper): Likewise.
461 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
462 Jakub Jelinek <jakub@redhat.com>
465 * testsuite/libgomp.fortran/workshare2.f90: New test.
467 2009-04-09 Nick Clifton <nickc@redhat.com>
469 * iter.c: Change copyright header to refer to version 3 of the
470 GNU General Public License with version 3.1 of the GCC Runtime
471 Library Exception and to point readers at the COPYING3 and
472 COPYING3.RUNTIME files and the FSF's license web page.
474 * barrier.c: Likewise.
475 * config/bsd/proc.c: Likewise.
476 * config/linux/affinity.c: Likewise.
477 * config/linux/alpha/futex.h: Likewise.
478 * config/linux/bar.c: Likewise.
479 * config/linux/bar.h: Likewise.
480 * config/linux/ia64/futex.h: Likewise.
481 * config/linux/ia64/mutex.h: Likewise.
482 * config/linux/lock.c: Likewise.
483 * config/linux/mips/futex.h: Likewise.
484 * config/linux/mutex.c: Likewise.
485 * config/linux/mutex.h: Likewise.
486 * config/linux/powerpc/futex.h: Likewise.
487 * config/linux/proc.c: Likewise.
488 * config/linux/ptrlock.c: Likewise.
489 * config/linux/ptrlock.h: Likewise.
490 * config/linux/s390/futex.h: Likewise.
491 * config/linux/sem.c: Likewise.
492 * config/linux/sem.h: Likewise.
493 * config/linux/sparc/futex.h: Likewise.
494 * config/linux/wait.h: Likewise.
495 * config/linux/x86/futex.h: Likewise.
496 * config/mingw32/proc.c: Likewise.
497 * config/mingw32/time.c: Likewise.
498 * config/posix/affinity.c: Likewise.
499 * config/posix/bar.c: Likewise.
500 * config/posix/bar.h: Likewise.
501 * config/posix/lock.c: Likewise.
502 * config/posix/mutex.h: Likewise.
503 * config/posix/proc.c: Likewise.
504 * config/posix/ptrlock.h: Likewise.
505 * config/posix/sem.c: Likewise.
506 * config/posix/sem.h: Likewise.
507 * config/posix/time.c: Likewise.
508 * config/posix95/lock.c: Likewise.
509 * critical.c: Likewise.
512 * fortran.c: Likewise.
513 * iter_ull.c: Likewise.
514 * libgomp.h: Likewise.
515 * libgomp_f.h.in: Likewise.
516 * libgomp_g.h: Likewise.
518 * loop_ull.c: Likewise.
519 * omp.h.in: Likewise.
520 * omp_lib.f90.in: Likewise.
521 * omp_lib.h.in: Likewise.
522 * ordered.c: Likewise.
523 * parallel.c: Likewise.
524 * sections.c: Likewise.
525 * single.c: Likewise.
530 2009-04-09 Jakub Jelinek <jakub@redhat.com>
532 * testsuite/config/default.exp: Change copyright header to refer to
533 version 3 of the GNU General Public License and to point readers
534 at the COPYING3 file and the FSF's license web page.
536 2009-04-08 Jakub Jelinek <jakub@redhat.com>
539 * libgomp.c++/pr39573.C: New test.
541 2009-04-01 Jakub Jelinek <jakub@redhat.com>
544 * testsuite/libgomp.c/pr39591-1.c: New test.
545 * testsuite/libgomp.c/pr39591-2.c: New test.
546 * testsuite/libgomp.c/pr39591-3.c: New test.
548 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
550 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
551 * testsuite/libgomp.c/atomic-6.c: Ditto.
553 2009-03-23 Jakub Jelinek <jakub@redhat.com>
556 * testsuite/libgomp.c/loop-12.c: New test.
557 * testsuite/libgomp.c/loop-11.c: New test.
558 * testsuite/libgomp.c++/loop-11.C: New test.
559 * testsuite/libgomp.c++/loop-12.C: New test.
560 * testsuite/libgomp.c++/for-8.C: New test.
562 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
564 * configure: Regenerate.
566 2009-02-11 Jakub Jelinek <jakub@redhat.com>
569 * testsuite/libgomp.c/pr39154.c: New test.
571 2009-01-30 Ian Lance Taylor <iant@google.com>
573 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
574 libgomp_ld_is_gold. Get gold version number.
575 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
576 * configure: Rebuild.
578 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
580 * testsuite/lib/libgomp.exp: Add -B option for targets that
581 use libgfortran.a%s in their specs.
583 2009-01-07 Jakub Jelinek <jakub@redhat.com>
586 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
587 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
588 HAVE_AS_SYMVER_DIRECTIVE is not defined.
589 * configure: Regenerated.
590 * config.h.in: Likewise.
592 2008-12-28 Jakub Jelinek <jakub@redhat.com>
595 * testsuite/libgomp.c/pr38650.c: New test.
596 * testsuite/libgomp.c++/pr38650.C: New test.
598 2008-12-27 Jakub Jelinek <jakub@redhat.com>
600 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
602 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
604 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
606 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
608 * configure: Regenerate.
610 2008-12-08 Jakub Jelinek <jakub@redhat.com>
613 * testsuite/libgomp.c/pr36802-1.c: New test.
614 * testsuite/libgomp.c/pr36802-2.c: New test.
615 * testsuite/libgomp.c/pr36802-3.c: New test.
617 2008-12-01 Janis Johnson <janis187@us.ibm.com>
620 * config/linux/powerpc/mutex.h: New.
622 2008-12-01 Jakub Jelinek <jakub@redhat.com>
625 * testsuite/libgomp.c++/for-7.C: New test.
628 * testsuite/libgomp.c++/for-6.C: New test.
630 2008-11-26 Janis Johnson <janis187@us.ibm.com>
633 * testsuite/lib/libgomp.exp: Include new timeout library files.
634 (libgomp_target_compile): Set timeout value from new proc.
636 2008-11-13 Steve Ellcey <sje@cup.hp.com>
639 * config/linux/ia64/mutex.h: New.
641 2008-11-04 Tobias Burnus <burnus@net-b.de>
644 * libgomp.texi (Runtime library routines, environment variables):
645 Update for OpenMP version 3.0.
647 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
648 Steve Ellcey <sje@cup.hp.com>
650 * configure: Regenerate for new libtool.
651 * Makefile.in: Ditto.
652 * testsuite/Makefile.in: Ditto.
654 2008-09-19 Jakub Jelinek <jakub@redhat.com>
655 Andreas Tobler <a.tobler@schweiz.org>
657 * config/bsd/proc.c: New file.
658 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
659 * configure.ac: Check for header <sys/sysctl.h>
660 * configure: Regenerate.
661 * config.h.in: Likewise.
663 2008-09-05 Janis Johnson <janis187@us.ibm.com>
665 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
667 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
669 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
670 * Makefile.in: Regenerated.
671 * testsuite/Makefile.in: Regenerated.
673 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
675 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
676 depend on blddir if blddir exists.
677 (libgomp_target_compile): Likewise.
678 * testsuite/libgomp.c++/c++.exp: Likewise.
679 * testsuite/libgomp.fortran/fortran.exp: Likewise.
681 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
683 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
684 Do not list GPL as Invariant Section.
686 2008-07-28 Ilie Garbacea <ilie@mips.com>
687 Chao-ying Fu <fu@mips.com>
689 * configure.tgt: Enable futex for MIPS.
690 * config/linux/mips/futex.h: New file.
692 2008-07-16 Jakub Jelinek <jakub@redhat.com>
694 * team.c (gomp_team_end): Free team immediately if it has
697 2008-07-08 David Edelsohn <edelsohn@gnu.org>
699 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
700 * testsuite/libgomp.fortran/fortran.exp: Same.
701 * testsuite/libgomp.c/c.exp: Same.
702 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
703 directory to library path first.
705 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
707 * env.c (parse_stacksize): Add cast to avoid warning.
708 (parse_spincount): Likewise.
710 2008-06-27 Jakub Jelinek <jakub@redhat.com>
712 * testsuite/libgomp.c/loop-10.c: New test.
713 * libgomp.c/loop-3.c (main): Add lastprivate clause.
714 * libgomp.c++/loop-6.C (main): Likewise.
717 * testsuite/libgomp.c/debug-1.c: New test.
719 2008-06-19 Jakub Jelinek <jakub@redhat.com>
721 * testsuite/libgomp.c/nqueens-1.c: New test.
724 * testsuite/libgomp.c++/task-7.C: New function.
726 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
728 * configure: Regenerate.
730 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
732 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
733 mutex when HAVE_SYNC_BUILTINS isn't defined.
735 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
737 * libgomp.texi (omp_test_lock): Fix typo.
739 2008-06-12 Tobias Burnus <burnus@net-b.de>
741 * omp_lib.f90.in: Add "implicit none".
743 2008-06-12 Jakub Jelinek <jakub@redhat.com>
746 * testsuite/libgomp.c/reduction-5.c: New test.
748 2008-06-11 Jakub Jelinek <jakub@redhat.com>
750 * libgomp.h (struct gomp_task): Add in_tied_task field.
751 * task.c (gomp_init_task): Initialize it.
752 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
753 unconditionally. Don't call gomp_team_barrier_wake if
754 current task is implicit or if(0) from implicit and number of
755 running tasks is equal to nthreads - 1.
758 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
759 omp_get_team_size_8): Fix pastos.
762 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
763 * configure: Regenerated.
764 * config.h.in: Regenerated.
765 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
768 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
771 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
772 (GOMP_loop_ull_dynamic_start): Likewise.
773 (GOMP_loop_ull_guided_start): Likewise.
774 (GOMP_loop_ull_ordered_static_start): Likewise.
775 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
776 (GOMP_loop_ull_ordered_guided_start): Likewise.
778 2008-06-06 Jakub Jelinek <jakub@redhat.com>
779 Richard Henderson <rth@redhat.com>
780 Ulrich Drepper <drepper@redhat.com>
781 Jakob Blomer <jakob.blomer@ira.uka.de>
783 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
784 Substitute also OMP_*LOCK_25*.
785 * configure: Regenerated.
786 * config.h.in: Regenerated.
787 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
788 ptrlock.c and task.c.
789 * Makefile.in: Regenerated.
790 * testsuite/Makefile.in: Regenerated.
792 * loop_ull.c: New file.
793 * iter_ull.c: New file.
794 * libgomp.h: Include ptrlock.h.
795 (enum gomp_task_kind): New type.
796 (struct gomp_team): Add task_lock, task_queue, task_count,
797 task_running_count, single_count fields. Add
798 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
799 Remove work_share_lock, generation_mask,
800 oldest_live_gen, num_live_gen and init_work_shares fields, add
801 work work_share_list_alloc, work_share_list_free and work_share_chunk
802 fields. Change work_shares from pointer to pointers into an array.
803 Change ordered_release field into gomp_sem_t ** from flexible array
804 member. Add implicit_task and initial_work_shares fields.
805 Move close to the end of the struct.
806 (struct gomp_team_state): Add single_count, last_work_share,
807 active_level and level fields, remove work_share_generation.
808 (gomp_barrier_handle_tasks): New prototype.
809 (gomp_finish_task): New inline function.
810 (struct gomp_work_share): Move chunk_size, end, incr into
811 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
812 next_ll fields. Reshuffle fields. Add next_alloc,
813 next_ws, next_free and inline_ordered_team_ids fields, change
814 ordered_team_ids into pointer from flexible array member.
815 Add mode field. Put lock and next into a different cache line
816 from most of the write-once fields.
817 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
818 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
819 gomp_iter_ull_guided_next): New prototypes.
820 (gomp_new_icv): New prototype.
821 (struct gomp_thread): Add thread_pool and task fields.
822 (struct gomp_thread_pool): New type.
823 (gomp_new_team): New prototype.
824 (gomp_team_start): Change type of last argument.
825 (gomp_new_work_share): Removed.
826 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
827 (gomp_work_share_init_done): New static inline.
828 (gomp_throttled_spin_count_var, gomp_available_cpus,
829 gomp_managed_threads): New extern decls.
830 (gomp_init_task): New prototype.
831 (gomp_spin_count_var): New extern var decl.
832 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
833 or no alias support, or if not PIC.
834 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
835 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
836 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
837 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
838 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
839 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
840 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
841 gomp_test_nest_lock_25): New prototypes.
842 (omp_lock_symver, strong_alias): Define.
843 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
845 (gomp_end_task): New.
846 (struct gomp_task_icv, gomp_global_icv): New.
847 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
848 (struct gomp_task): New.
849 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
850 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
852 (gomp_schedule_type): Reorder enum to match
854 * team.c (struct gomp_thread_start_data): Add thread_pool and task
856 (gomp_thread_start): Add gomp_team_barrier_wait call.
857 For non-nested case remove clearing of docked thread thr fields.
858 Use pool fields instead of global gomp_* variables. Use
859 gomp_barrier_wait_last when needed. Initialize ts.active_level.
860 Create tasks for each member thread.
861 (free_team): Only destroy team barrier, task_lock here and free it.
862 (gomp_free_thread): Free last_team if non-NULL.
863 (gomp_team_end): Call gomp_team_barrier_wait instead of
864 gomp_barrier_wait. For nested case call one extra
865 gomp_barrier_wait. Move here some destruction from free_team.
866 Call free_team on pool->last_team if any, rather than freeing
867 current team. Destroy work_share_list_free_lock ifndef
869 (gomp_new_icv): New function.
870 (gomp_threads, gomp_threads_size, gomp_threads_used,
871 gomp_threads_dock): Removed.
872 (gomp_thread_destructor): New variable.
873 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
875 (gomp_team_start): Create new pool if current thread doesn't have
876 one. Use pool fields instead of global gomp_* variables.
877 Initialize thread_pool field for new threads. Clear single_count.
878 Change last argument from ws to team, don't create
879 new team, set ts.work_share to &team->work_shares[0] and clear
880 ts.last_work_share. Don't clear ts.work_share_generation.
881 If number of threads changed, adjust atomically gomp_managed_threads.
882 Use gomp_init_task instead of gomp_new_task,
883 set thr->task to the corresponding implicit_task array entry.
884 Create tasks for each member thread. Initialize ts.level.
885 (initialize_team): Call pthread_key_create on
886 gomp_thread_destructor.
887 (team_destructor): New function.
889 (gomp_new_team): New function.
890 (free_team): Free gomp_work_share blocks chained through next_alloc,
891 instead of freeing work_shares and destroying work_share_lock.
892 (gomp_team_end): Call gomp_fini_work_share. If number of threads
893 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
894 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
895 of gomp_barrier_wait.
896 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
897 instead of gomp_barrier_wait. Call gomp_work_share_init_done
898 if gomp_work_share_start returned true. Don't unlock ws->lock.
899 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
900 of gomp_barrier_wait.
901 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
902 gomp_work_share_init_done if gomp_work_share_start returned true.
903 Don't unlock ws->lock.
904 * work.c: Include stddef.h.
905 (free_work_share): Use work_share_list_free_lock instead
906 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
907 Call gomp_fini_work_share and then either free ws if orphaned, or
908 put it into work_share_list_free list of the current team.
909 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
911 (gomp_work_share_start, gomp_work_share_end,
912 gomp_work_share_end_nowait): Rewritten.
913 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
914 (openmp_version): Set to 200805.
915 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
916 omp_sched_guided, omp_sched_auto): New parameters.
917 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
918 omp_set_max_active_levels, omp_get_max_active_levels,
919 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
920 omp_get_active_level): New interfaces.
921 * omp_lib.h.in (openmp_version): Set to 200805.
922 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
923 omp_sched_guided, omp_sched_auto): New parameters.
924 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
925 omp_set_max_active_levels, omp_get_max_active_levels,
926 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
927 omp_get_active_level): New externals.
928 * loop.c: Include limits.h.
929 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
931 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
932 Likewise. Use gomp_icv.
933 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
935 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
936 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
937 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
938 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
939 don't unlock ws->lock, otherwise lock it.
940 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
941 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
942 (gomp_parallel_loop_start): Call gomp_new_team instead of
943 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
944 Adjust gomp_team_start caller. Pass 0 as second argument to
945 gomp_resolve_num_threads.
946 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
947 If adding ws->chunk_size nthreads + 1 times after end won't
948 overflow, set ws->mode to 1.
949 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
950 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
951 GOMP_loop_ull_ordered_static_start,
952 GOMP_loop_ull_ordered_dynamic_start,
953 GOMP_loop_ull_ordered_guided_start,
954 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
955 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
956 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
957 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
958 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
960 * libgomp.map: Export lock routines also @@OMP_2.0.
961 (GOMP_loop_ordered_dynamic_first,
962 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
963 GOMP_loop_ordered_static_first): Remove.
964 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
965 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
966 GOMP_loop_ull_ordered_dynamic_next,
967 GOMP_loop_ull_ordered_dynamic_start,
968 GOMP_loop_ull_ordered_guided_next,
969 GOMP_loop_ull_ordered_guided_start,
970 GOMP_loop_ull_ordered_runtime_next,
971 GOMP_loop_ull_ordered_runtime_start,
972 GOMP_loop_ull_ordered_static_next,
973 GOMP_loop_ull_ordered_static_start,
974 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
975 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
976 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
977 (omp_set_schedule, omp_get_schedule,
978 omp_get_thread_limit, omp_set_max_active_levels,
979 omp_get_max_active_levels, omp_get_level,
980 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
981 omp_set_schedule_, omp_set_schedule_8_,
982 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
983 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
984 omp_get_max_active_levels_, omp_get_level_,
985 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
986 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
987 New exports @@OMP_3.0.
988 * omp.h.in (omp_sched_t): New type.
989 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
990 omp_set_max_active_levels, omp_get_max_active_levels,
991 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
992 omp_get_active_level): New prototypes.
993 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
994 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
995 gomp_thread_limit_var, gomp_remaining_threads_count,
996 gomp_remaining_threads_lock): New variables.
997 (parse_spincount): New function.
998 (initialize_env): Call gomp_init_num_threads unconditionally.
999 Initialize gomp_available_cpus. Call parse_spincount,
1000 initialize gomp_{,throttled_}spin_count_var
1001 depending on presence and value of OMP_WAIT_POLICY and
1002 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1003 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1004 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1005 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1006 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1007 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1008 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1009 (gomp_global_icv): New.
1010 (parse_schedule): Use it. Parse "auto".
1011 (omp_set_num_threads): Use gomp_icv.
1012 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1014 (omp_get_max_threads): Move from parallel.c.
1015 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1016 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1018 (parse_stacksize, parse_wait_policy): New functions.
1019 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1020 both wrappers for compatibility and new locks.
1021 (omp_set_schedule, omp_get_schedule,
1022 omp_get_thread_limit, omp_set_max_active_levels,
1023 omp_get_max_active_levels, omp_get_level,
1024 omp_get_ancestor_thread_num, omp_get_team_size,
1025 omp_get_active_level): New ialias_redirect.
1026 (omp_set_schedule_, omp_set_schedule_8_,
1027 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1028 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1029 omp_get_max_active_levels_, omp_get_level_,
1030 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1031 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1033 * parallel.c: Include limits.h.
1034 (gomp_resolve_num_threads): Add count argument. Rewritten.
1035 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1036 argument to gomp_team_start. Pass 0 as second argument to
1037 gomp_resolve_num_threads.
1038 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1039 if gomp_thread_limit_var != ULONG_MAX.
1040 (omp_in_parallel): Implement using ts.active_level.
1041 (omp_get_max_threads): Move to env.c.
1042 (omp_get_level, omp_get_ancestor_thread_num,
1043 omp_get_team_size, omp_get_active_level): New functions,
1045 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1046 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1047 gomp_iter_dynamic_next instead of the _locked variant and don't take
1048 lock around it, otherwise acquire it before calling
1049 gomp_iter_dynamic_next_locked.
1050 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1051 gomp_iter_dynamic_next instead of the _locked variant and don't take
1053 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1054 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1055 Adjust gomp_team_start caller. Pass count as second argument to
1056 gomp_resolve_num_threads, don't adjust num_threads after the call.
1058 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1059 ws->chunk_size by incr.
1060 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1062 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1064 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1065 (omp_check_defines): Check even the compat defines.
1066 * config/linux/ptrlock.c: New file.
1067 * config/linux/ptrlock.h: New file.
1068 * config/linux/wait.h: New file.
1069 * config/posix/ptrlock.c: New file.
1070 * config/posix/ptrlock.h: New file.
1071 * config/linux/bar.h (gomp_team_barrier_wait,
1072 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1073 (gomp_team_barrier_set_task_pending,
1074 gomp_team_barrier_clear_task_pending,
1075 gomp_team_barrier_set_waiting_for_tasks,
1076 gomp_team_barrier_waiting_for_tasks,
1077 gomp_team_barrier_done): New inlines.
1078 (gomp_barrier_t): Rewritten.
1079 (gomp_barrier_state_t): New typedef.
1080 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1081 gomp_barrier_wait_start): Rewritten.
1082 (gomp_barrier_wait_end): Change second argument to
1083 gomp_barrier_state_t.
1084 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1086 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1088 (gomp_barrier_wait_end): Rewritten.
1089 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1090 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1091 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1092 (gomp_barrier_state_t): New typedef.
1093 (gomp_team_barrier_wait,
1094 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1095 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1096 into the return value. Return gomp_barrier_state_t.
1097 (gomp_team_barrier_set_task_pending,
1098 gomp_team_barrier_clear_task_pending,
1099 gomp_team_barrier_set_waiting_for_tasks,
1100 gomp_team_barrier_waiting_for_tasks,
1101 gomp_team_barrier_done): New inlines.
1102 (gomp_barrier_wait_end): Change second argument to
1103 gomp_barrier_state_t.
1104 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1106 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1107 (gomp_barrier_wait_end): Change second argument to
1108 gomp_barrier_state_t.
1109 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1110 gomp_team_barrier_wake): New functions.
1111 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1113 (gomp_futex_wake, gomp_futex_wait): New variables.
1114 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1115 * config/linux/lock.c: Rewrite to make locks task owned,
1116 for backwards compatibility provide the old entrypoints
1117 if symbol versioning. Include wait.h instead of libgomp.h and
1119 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1120 * config/posix95/lock.c: Rewrite to make locks task owned,
1121 for backwards compatibility provide the old entrypoints
1122 if symbol versioning.
1123 * config/posix/lock.c: Rewrite to make locks task owned,
1124 for backwards compatibility provide the old entrypoints
1125 if symbol versioning.
1126 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1127 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1128 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1129 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1130 (sys_futex0): Return error code.
1131 (futex_wake, futex_wait): If ENOSYS was returned, clear
1132 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1133 (cpu_relax, atomic_write_barrier): New static inlines.
1134 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1135 (futex_wake, futex_wait): If ENOSYS was returned, clear
1136 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1137 (cpu_relax, atomic_write_barrier): New static inlines.
1138 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1139 (sys_futex0): Return error code.
1140 (futex_wake, futex_wait): If ENOSYS was returned, clear
1141 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1142 (cpu_relax, atomic_write_barrier): New static inlines.
1143 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1144 (sys_futex0): Return error code.
1145 (futex_wake, futex_wait): If ENOSYS was returned, clear
1146 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1147 (cpu_relax, atomic_write_barrier): New static inlines.
1148 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1149 (sys_futex0): Return error code.
1150 (futex_wake, futex_wait): If ENOSYS was returned, clear
1151 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1152 (cpu_relax, atomic_write_barrier): New static inlines.
1153 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1154 (sys_futex0): Return error code.
1155 (futex_wake, futex_wait): If ENOSYS was returned, clear
1156 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1157 (cpu_relax, atomic_write_barrier): New static inlines.
1158 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1160 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1161 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1162 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1164 (omp_nest_lock_t): Change owner into void *, add lock field.
1165 * config/posix95/omp-lock.h: Include semaphore.h.
1166 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1167 (omp_lock_t): Use sem_t instead of mutex if semaphores
1169 (omp_nest_lock_t): Likewise. Change owner to void *.
1170 * config/posix/omp-lock.h: Include semaphore.h.
1171 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1172 (omp_lock_t): Use sem_t instead of mutex if semaphores
1174 (omp_nest_lock_t): Likewise. Add owner field.
1176 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1178 * testsuite/libgomp.c/collapse-1.c: New test.
1179 * testsuite/libgomp.c/collapse-2.c: New test.
1180 * testsuite/libgomp.c/collapse-3.c: New test.
1181 * testsuite/libgomp.c/icv-1.c: New test.
1182 * testsuite/libgomp.c/icv-2.c: New test.
1183 * testsuite/libgomp.c/lib-2.c: New test.
1184 * testsuite/libgomp.c/lock-1.c: New test.
1185 * testsuite/libgomp.c/lock-2.c: New test.
1186 * testsuite/libgomp.c/lock-3.c: New test.
1187 * testsuite/libgomp.c/loop-4.c: New test.
1188 * testsuite/libgomp.c/loop-5.c: New test.
1189 * testsuite/libgomp.c/loop-6.c: New test.
1190 * testsuite/libgomp.c/loop-7.c: New test.
1191 * testsuite/libgomp.c/loop-8.c: New test.
1192 * testsuite/libgomp.c/loop-9.c: New test.
1193 * testsuite/libgomp.c/nested-3.c: New test.
1194 * testsuite/libgomp.c/nestedfn-6.c: New test.
1195 * testsuite/libgomp.c/sort-1.c: New test.
1196 * testsuite/libgomp.c/task-1.c: New test.
1197 * testsuite/libgomp.c/task-2.c: New test.
1198 * testsuite/libgomp.c/task-3.c: New test.
1199 * testsuite/libgomp.c/task-4.c: New test.
1200 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1201 to C++ testsuite default compiler options.
1202 * testsuite/libgomp.c++/collapse-1.C: New test.
1203 * testsuite/libgomp.c++/collapse-2.C: New test.
1204 * testsuite/libgomp.c++/ctor-10.C: New test.
1205 * testsuite/libgomp.c++/for-1.C: New test.
1206 * testsuite/libgomp.c++/for-2.C: New test.
1207 * testsuite/libgomp.c++/for-3.C: New test.
1208 * testsuite/libgomp.c++/for-4.C: New test.
1209 * testsuite/libgomp.c++/for-5.C: New test.
1210 * testsuite/libgomp.c++/loop-8.C: New test.
1211 * testsuite/libgomp.c++/loop-9.C: New test.
1212 * testsuite/libgomp.c++/loop-10.C: New test.
1213 * testsuite/libgomp.c++/task-1.C: New test.
1214 * testsuite/libgomp.c++/task-2.C: New test.
1215 * testsuite/libgomp.c++/task-3.C: New test.
1216 * testsuite/libgomp.c++/task-4.C: New test.
1217 * testsuite/libgomp.c++/task-5.C: New test.
1218 * testsuite/libgomp.c++/task-6.C: New test.
1219 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1220 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1221 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1222 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1223 * testsuite/libgomp.fortran/collapse1.f90: New test.
1224 * testsuite/libgomp.fortran/collapse2.f90: New test.
1225 * testsuite/libgomp.fortran/collapse3.f90: New test.
1226 * testsuite/libgomp.fortran/collapse4.f90: New test.
1227 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1228 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1229 * testsuite/libgomp.fortran/lib4.f90: New test.
1230 * testsuite/libgomp.fortran/lock-1.f90: New test.
1231 * testsuite/libgomp.fortran/lock-2.f90: New test.
1232 * testsuite/libgomp.fortran/nested1.f90: New test.
1233 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1234 * testsuite/libgomp.fortran/strassen.f90: New test.
1235 * testsuite/libgomp.fortran/tabs1.f90: New test.
1236 * testsuite/libgomp.fortran/tabs2.f: New test.
1237 * testsuite/libgomp.fortran/task1.f90: New test.
1238 * testsuite/libgomp.fortran/task2.f90: New test.
1239 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1240 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1241 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1242 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1243 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1245 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1248 * testsuite/libgomp.c++/ctor-11.C: New test.
1249 * testsuite/libgomp.c++/ctor-12.C: New test.
1251 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1253 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1255 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1258 * testsuite/libgomp.c/atomic-5.c: New test.
1259 * testsuite/libgomp.c/atomic-6.c: New test.
1260 * testsuite/libgomp.c/autopar-1.c: New test.
1262 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1264 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1265 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1266 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1267 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1268 * configure: Regenerate.
1269 * Makefile.in, testsuite/Makefile.in: Likewise.
1271 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1274 * aclocal.m4: Regenerate.
1275 * configure: Regenerate.
1277 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1280 * testsuite/libgomp.c/atomic-4.c: New test.
1283 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1284 (gomp_iter_guided_next): Likewise.
1285 * testsuite/libgomp.c/pr35625.c: New test.
1287 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1289 * aclocal.m4: Regenerate.
1290 * configure: Likewise.
1291 * Makefile.in: Likewise.
1292 * testsuite/Makefile.in: Likewise.
1294 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1297 * testsuite/libgomp.c++/pr35185.C: New test.
1299 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1302 * testsuite/libgomp.c/pr35549.c: New test.
1304 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1306 * testsuite/libgomp.c/atomic-3.c: New test.
1308 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1311 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1314 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1317 * configure.ac: Add ACX_HEADER_STRING.
1318 * env.c: Include strings.h.
1319 * aclocal.m4: Regenerate.
1320 * config.h.in: Regenerate.
1321 * configure: Regenerate.
1322 * Makefile.in: Regenerate.
1323 * testsuite/Makefile.in: Regenerate.
1325 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1328 * testsuite/libgomp.c/pr35196.c: New test.
1331 * testsuite/libgomp.fortran/pr35130.f90: New test.
1332 * testsuite/libgomp.c/pr35130.c: New test.
1334 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1337 * testsuite/libgomp.c/pr33880.c: New test.
1338 * testsuite/libgomp.fortran/pr33880.f90: New test.
1340 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1342 * configure: Regenerate.
1344 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1346 * configure.ac: Move futex checking into ../config/futex.m4.
1347 * configure: Rebuilt.
1348 * aclocal.m4: Rebuilt.
1349 * Makefile.in: Rebuilt.
1351 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1352 2007-10-15 ../config/tls.m4 change.
1354 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1357 * testsuite/libgomp.c/pr34513.c: New test.
1358 * testsuite/libgomp.c++/pr34513.C: New test.
1360 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1363 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1365 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1367 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1369 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1371 * testsuite/libgomp.c/private-1.c: New test.
1373 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1374 Paolo Bonzini <bonzini@gnu.org>
1376 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1377 instead of 'VPATH ='.
1378 * Makefile.in: Regenerate.
1380 2007-11-23 Matthias Klose <doko@ubuntu.com>
1382 * configure.ac: Adjust makeinfo version check.
1383 * configure: Regenerate.
1385 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1388 * testsuite/libgomp.fortran/pr34020.f90: New test.
1390 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1393 * testsuite/libgomp.c++/atomic-1.C: New test.
1395 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1398 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1399 Make x and y integers rather than (implicit) reals. Add private (j)
1400 clause to the last omp parallel.
1402 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1404 * configure: Regenerate following changes to ../config/tls.m4.
1406 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1408 * testsuite/libgomp.fortran/stack.f90: New test.
1410 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1412 * config/mingw32/proc.c: New file.
1414 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1416 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1417 (main): Use __get_cpuid to get i386 target fetaures.
1418 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1419 (main): Use __get_cpuid to get x86_64 target fetaures.
1421 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1424 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1425 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1427 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1430 * testsuite/libgomp.fortran/pr32550.f90: New test.
1431 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1433 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1435 * aclocal.m4: Regenerated.
1437 2007-07-05 Tobias Burnus <burnus@net-b.de>
1440 * testsuite/libgomp.fortran/pr32359.f90: New.
1442 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1445 * sections.c (GOMP_parallel_sections_start): Only decrease
1446 number of threads to COUNT if dyn_var is true.
1447 * testsuite/libgomp.c/pr32468.c: New test.
1449 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1452 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1454 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1457 * testsuite/libgomp.c/pr32362-1.c: New test.
1458 * testsuite/libgomp.c/pr32362-2.c: New test.
1459 * testsuite/libgomp.c/pr32362-3.c: New test.
1461 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1463 * team.c (gomp_team_start): Fix setting up thread_attr
1466 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1468 * configure: Regenerate.
1470 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1472 * Makefile.in: Regenerate.
1473 * configure: Regenerate.
1474 * aclocal.m4: Regenerate.
1475 * testsuite/Makefile.in: Regenerate.
1477 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1479 * config/linux/proc.c: New file.
1482 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1484 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1486 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1488 2007-04-16 Matthias Klose <doko@debian.org>
1490 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1491 flags if not building with -m64.
1492 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1493 flag for i?86-*-* targets, if current target matches -m64.
1495 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1497 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1498 * Makefile.in: Regenerate.
1500 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1503 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1505 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1507 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1509 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1511 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1512 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1513 (parse_affinity): New function.
1514 (initialize_env): Call it and gomp_init_affinity.
1515 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1516 create new pthread_attr_t and call gomp_init_thread_affinity
1517 on it for each thread before passing the attribute to pthread_create.
1518 * config/linux/affinity.c: New file.
1519 * config/posix/affinity.c: New file.
1520 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1521 * configure: Rebuilt.
1522 * config.h.in: Rebuilt.
1523 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1524 * Makefile.in: Rebuilt.
1526 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1528 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1530 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1531 and use it if found.
1533 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1535 * testsuite/config/default.exp: New file.
1536 * testsuite/lib/libgomp.exp: New file.
1537 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1538 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1539 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1540 (libgomp_load): Remove.
1541 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1542 always_ld_library_path, not ld_library_path. Set additional_flags
1543 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1544 (target_compile): Do not call libgomp_init. Append lang_library_path
1545 and lang_link_flags to options.
1546 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1547 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1549 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1550 always_ld_library_path. Set LD_LIBRARY_PATH here.
1551 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1552 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1553 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1555 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1556 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1557 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1558 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1559 * testsuite/libgomp.c/atomic-10.c: Ditto.
1561 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1563 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1564 dg-final cleanup-modules line.
1565 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1566 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1567 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1568 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1569 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1570 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1571 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1573 2007-03-18 Andreas Schwab <schwab@suse.de>
1575 * acinclude.m4: Adjust regular expression for ld version
1577 * configure: Regenerate.
1579 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1581 * Makefile.am: Add install-pdf target as copied from
1582 automake v1.10 rules.
1583 * Makefile.in: Regenerate
1585 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1588 * configure: Regenerate.
1591 * testsuite/libgomp.c++/pr30703.C: New test.
1593 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1596 2006-07-05 Eric Christopher <echristo@apple.com>
1597 * configure.ac: Depend addition of -pthread on host OS.
1598 * configure: Regenerate.
1600 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1602 * libgomp.texi: Fix spacing after abbreviations.
1604 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1607 * configure.ac: Add check for makeinfo
1608 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1609 if an appropiate version of makeinfo is found.
1610 * aclocal.m4: Regenerated.
1611 * configure: Regenerated.
1612 * Makefile.in: Regenerated.
1613 * testsuite/Makefile.in: Regenerated.
1615 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1618 * libgomp.texi: More about implementation-dependent settings.
1620 2007-01-26 Tobias Burnus <burnus@net-b.de>
1622 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1624 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1627 * testsuite/libgomp.c/pr30494.c: New test.
1629 2007-01-15 Tom Tromey <tromey@redhat.com>
1631 * configure: Rebuilt.
1632 * configure.ac: Fixed comment.
1634 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1636 * libgomp.texi: Document implementation specific default values of
1637 environment variables.
1639 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1642 * libgomp.texi: New file.
1643 * configure.ac: Add --enable-generated-files-in-srcdir option.
1644 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1646 * Makefile.in: Regenerated.
1647 * config.h.in: Regenerated.
1648 * testsuite/Makefile.in: Regenerated.
1651 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1654 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1656 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1658 * configure: Regenerate.
1660 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1663 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1664 start if there shouldn't be any loop iterations.
1665 (gomp_loop_ordered_static_start): Remove start == end test.
1666 * testsuite/libgomp.c/pr29947-1.c: New test.
1667 * testsuite/libgomp.c/pr29947-2.c: New test.
1669 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1671 * configure.tgt: Force initial-exec TLS model on Linux only.
1673 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1675 * configure: Regenerated.
1677 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1679 * env.c (parse_schedule): Reject out of range values.
1680 (parse_unsigned_long): Reject out of range, negative or zero values.
1682 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1685 * testsuite/libgomp.fortran/pr29629.f90: New test.
1687 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1690 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1691 * config/posix95: New directory.
1692 * config/posix95/omp-lock.h: New file.
1693 * config/posix95/lock.c: Likewise.
1695 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1697 * aclocal.m4: Regenerate.
1698 * configure: Regenerate.
1700 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1702 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1705 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1707 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1709 * configure: Regenerate.
1710 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1712 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1716 * testsuite/libgomp.c/nestedfn-4.c: New test.
1717 * testsuite/libgomp.c/nestedfn-5.c: New test.
1718 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1721 * testsuite/libgomp.fortran/condinc1.f: New test.
1722 * testsuite/libgomp.fortran/condinc2.f: New test.
1723 * testsuite/libgomp.fortran/condinc3.f90: New test.
1724 * testsuite/libgomp.fortran/condinc4.f90: New test.
1725 * testsuite/libgomp.fortran/condinc1.inc: New file.
1727 2006-09-18 Tom Tromey <tromey@redhat.com>
1729 * configure: Rebuilt.
1731 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1734 PR preprocessor/14634
1735 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1737 * configure: Regenerate.
1739 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1741 * testsuite/libgomp.fortran/reduction3.f90: Change
1742 -2147483648 to -huge(i)-1 to avoid overflow.
1743 * testsuite/libgomp.fortran/reduction4.f90: Change
1744 Z'ffffffff' to not(0) to avoid overflow.
1746 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1749 * Makefile.am (libsubincludedir): New.
1750 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1751 * Makefile.in: Regenerate.
1753 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1756 * env.c: Include ctype.h.
1757 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1758 leading and/or trailing whitespace and compare strings case
1761 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1764 * testsuite/libgomp.fortran/pr28390.f: New test.
1766 2006-07-05 Eric Christopher <echristo@apple.com>
1768 * configure.ac: Depend addition of -pthread on host OS.
1769 * configure: Regenerate.
1771 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1773 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1774 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1777 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1781 * configure.ac: If neither --enable-linux-futex nor
1782 --disable-linux-futex is passed, determine the default by checking
1783 for compiling and/or running against NPTL. With --enable-linux-futex,
1784 check if SYS_gettid and SYS_futex are defined.
1785 * configure: Rebuilt.
1787 2006-06-14 Richard Henderson <rth@redhat.com>
1790 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1791 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1793 2006-06-09 Richard Henderson <rth@redhat.com>
1795 * env.c (gomp_nthreads_var): Change to unsigned long.
1796 (gomp_run_sched_chunk): Likewise.
1797 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1798 (initialize_env): Initialize gomp_thread_attr.
1799 * libgomp.h (gomp_nthreads_var): Update decl.
1800 (gomp_run_sched_chunk): Likewise.
1801 (gomp_thread_attr): Declare.
1802 * team.c (gomp_thread_attr): Export.
1803 (initialize_team): Don't initialize it.
1805 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1808 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1809 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1811 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1813 * config/mingw32/time.c: New file.
1814 * configure.tgt: Use it.
1816 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1818 * Makefile.am: Add install-html target. Add install-html to .PHONY
1819 * Makefile.in: Regenerate.
1821 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1824 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1825 * testsuite/libgomp.c/critical-1.c: Likewise.
1826 * testsuite/libgomp.c/loop-1.c: Likewise.
1827 * testsuite/libgomp.c/loop-2.c: Likewise.
1828 * testsuite/libgomp.c/single-1.c: Likewise.
1829 * testsuite/libgomp.c/ordered-1.c: Likewise.
1830 * testsuite/libgomp.c/ordered-2.c: Likewise.
1832 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1835 * libgomp.fortran/pr27416-1.f90: New test.
1837 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1840 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1841 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1843 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1846 * testsuite/libgomp.c/pr26943-1.c: New test.
1847 * testsuite/libgomp.c/pr26943-2.c: New test.
1848 * testsuite/libgomp.c/pr26943-3.c: New test.
1849 * testsuite/libgomp.c/pr26943-4.c: New test.
1850 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1851 * testsuite/libgomp.c++/pr26943.C: New test.
1853 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1856 * testsuite/libgomp.c++/pr27337.C: New test.
1858 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1861 * testsuite/libgomp.c/pr26171.c: New test.
1863 2006-04-25 Richard Henderson <rth@redhat.com>
1866 * configure.ac: Use GCC_CHECK_TLS.
1867 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1868 * Makefile.in, aclocal.m4, configure: Regenerate.
1870 2006-04-10 Matthias Klose <doko@debian.org>
1872 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1873 directory names containing underscores.
1875 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1878 * testsuite/libgomp.c++/pr26691.C: New test.
1880 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1882 * testsuite/libgomp.fortran/retval2.f90: New test.
1884 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1886 * testsuite/libgomp.c++: New directory.
1888 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1890 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1891 * config/posix/sem.c: Implement the above.
1893 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1895 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1896 define HAVE_BROKEN_POSIX_SEMAPHORES.
1897 * configure: Rebuilt.
1898 * config.h.in: Rebuilt.
1900 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1903 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1904 for the other pthread check.
1905 * configure: Regenerate.
1906 * config.h.in: Regenerate.
1908 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1912 * Makefile.am (fincludedir): New variable.
1913 (nodist_include_HEADERS): Remove Fortran files.
1914 (nodist_finclude_HEADERS): New variable.
1915 * Makefile.in: Regenerated.
1917 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1919 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1920 Remove tests for returning assumed character length arrays.
1922 2006-02-12 Roger Sayle <roger@eyesopen.com>
1923 John David Anglin <dave@hiauly1.hia.nrc.ca>
1926 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1928 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1930 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1932 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1934 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1935 part of LD_LIBRARY_PATH manually.
1937 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1940 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1943 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1946 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1947 * configure.ac (PERL): Don't set.
1948 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1949 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1950 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1951 * omp.h.in: Wrap the new configure substitutions with @ characters.
1952 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1953 * aclocal.m4, configure, Makefile.in: Regenerate.
1954 * mkomp_h.pl: Delete.
1956 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1959 * configure.ac: Use GCC_HEADER_STDINT.
1960 * libgomp.h: Include gstdint.h.
1961 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1962 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1964 2006-01-24 Richard Henderson <rth@redhat.com>
1967 * configure.ac: Add AM_MAINTAINER_MODE.
1968 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1970 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1972 * Makefile.in: Regenerate.
1973 * testsuite/Makefile.in: Regenerate.
1974 * aclocal.m4: Regenerate.
1976 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1978 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1980 * configure.ac: Add check for loadavg.h.
1981 (link_gomp): Adjust comment.
1982 * configure: Regenerate.
1983 * config.h.in: Regenerate.
1985 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1988 * configure.ac: Remove check for alloca.h.
1989 * configure: Regenerate.
1990 * config.h.in: Regenerate.
1991 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1992 * team.c: Remove use of alloca.h.
1993 Call gomp_alloca instead of alloca.
1995 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1998 * team.c: Add include of alloca.h.
1999 * configure.ac: Add check for alloca.h.
2000 * configure: Regenerate.
2001 * config.h.in: Regenerate.
2003 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2006 * testsuite/libgomp.fortran/pr25219.f90: New test.
2008 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2010 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2011 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2012 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2013 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2014 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2015 testsuite/libgomp.fortran/threadprivate1.f90,
2016 testsuite/libgomp.fortran/threadprivate2.f90,
2017 testsuite/libgomp.fortran/threadprivate3.f90,
2018 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2019 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2020 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2021 effective-target to TLS runtime.
2023 * testsuite/libgomp.fortran/pr25162.f: Require
2024 effective-target TLS runtime.
2026 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2028 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2029 * testsuite/libgomp.c/nestedfn-3.c: New test.
2031 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2034 * testsuite/libgomp.fortran/pr25162.f: New test.
2036 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2038 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2039 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2041 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2043 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2044 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2045 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2046 single.c, team.c, work.c, config/linux/alpha/futex.h,
2047 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2048 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2049 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2050 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2051 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2052 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2053 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2056 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2058 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2059 to nodist_noinst_HEADERS.
2060 * Makefile.in: Rebuilt.
2062 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2063 add integer count field.
2064 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2065 omp_nest_lock_t type change.
2066 (omp_init_nest_lock): Likewise. Initialize count to 0.
2067 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2069 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2071 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2072 Increment count if successful and return the new nesting level.
2073 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2074 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2075 * testsuite/libgomp.c/lib-1.c: New test.
2076 * testsuite/libgomp.fortran/lib1.f90: New test.
2077 * testsuite/libgomp.fortran/lib2.f: New test.
2078 * testsuite/libgomp.fortran/lib3.f: New test.
2080 2005-11-17 Richard Henderson <rth@redhat.com>
2083 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2084 * configure.ac (link_gomp): New. Substitute it.
2085 (AC_CONFIG_FILES): Add libgomp.spec.
2086 * libgomp.spec.in: New file.
2087 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2088 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2090 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2092 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2093 reduction(-:var) behaving the same as reduction(+:var).
2094 * testsuite/libgomp.c/reduction-4.c: New test.
2096 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2098 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2099 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2100 testsuite/libgomp.c/copyin-3.c,
2101 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2102 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2103 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2104 testsuite/libgomp.c++/pr24455.C,
2105 testsuite/libgomp.fortran/threadprivate1.f90,
2106 testsuite/libgomp.fortran/threadprivate2.f90,
2107 testsuite/libgomp.fortran/threadprivate3.f90,
2108 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2109 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2110 testsuite/libgomp.fortran/omp_parse3.f90: Require
2111 effective-target TLS.
2113 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2117 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2120 * team.c (initialize_team): Pass NULL rather than free as
2121 pthread_key_create destructor. Initialize thread specific data
2122 pointer in initial thread to a static local variable rather than
2125 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2127 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2128 its location to ld_library_path.
2130 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2132 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2134 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2136 * testsuite/libgomp.c: Rename from libgomp.dg.
2138 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2140 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2141 threadprivate variable 'i'.
2143 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2145 * config/linux/s390/futex.h: New file.
2146 * configure.tgt: Use it.
2148 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2149 before the parallel.
2151 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2154 * testsuite/libgomp.c++/master-1.C: New test.
2156 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2158 * testsuite/libgomp.dg/copyin-3.c: New test.
2160 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2162 * testsuite/libgomp.fortran/retval1.f90: New test.
2163 * testsuite/libgomp.fortran/vla7.f90: New test.
2165 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2167 * testsuite/libgomp.fortran/vla2.f90: New test.
2168 * testsuite/libgomp.fortran/vla3.f90: New test.
2169 * testsuite/libgomp.fortran/vla4.f90: New test.
2170 * testsuite/libgomp.fortran/vla5.f90: New test.
2171 * testsuite/libgomp.fortran/vla6.f90: New test.
2173 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2175 * config/linux/sparc/futex.h: New file.
2176 * configure.tgt: Use it.
2177 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2179 * critical.c: Include stdlib.h.
2180 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2181 ignoring return value.
2182 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2183 LIBGOMP_CHECK_SYNC_BUILTINS check.
2184 * configure: Rebuilt.
2186 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2188 * testsuite/libgomp.fortran/vla1.f90: New test.
2190 2005-10-31 Richard Henderson <rth@redhat.com>
2192 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2193 setting 's' in different threads.
2195 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2197 * libgomp.h (attribute_hidden, ialias): Define.
2198 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2199 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2200 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2201 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2202 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2203 omp_test_lock, omp_test_nest_lock): Likewise.
2204 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2205 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2206 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2207 omp_test_lock, omp_test_nest_lock): Likewise.
2208 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2209 omp_get_dynamic, omp_get_nested): Likewise.
2210 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2211 omp_get_thread_num, omp_in_parallel): Likewise.
2212 * fortran.c (ialias_redirect): Define.
2213 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2214 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2215 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2216 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2217 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2218 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2219 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2220 omp_get_wtime): Add ialias_redirect.
2222 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2224 * fortran.c: Include stdlib.h.
2226 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2228 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2229 * Makefile.in: Regenerated.
2231 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2233 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2234 * libgomp_f.h.in (omp_check_defines): New function.
2235 * env.c: Include libgomp_f.h.
2236 (initialize_env): Call omp_check_defines.
2238 * testsuite/libgomp.dg/copyin-2.c: New test.
2239 * testsuite/libgomp.c++/copyin-2.C: New test.
2240 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2242 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2243 * testsuite/libgomp.fortran/sharing2.f90: New test.
2245 * testsuite/libgomp.dg/copyin-1.c: New test.
2246 * testsuite/libgomp.c++/copyin-1.C: New test.
2248 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2250 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2252 * testsuite/libgomp.fortran/workshare1.f90: New test.
2254 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2256 * libgomp.fortran/sharing1.f90: New test.
2258 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2261 * testsuite/libgomp.c++/loop-7.C: New test.
2263 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2265 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2266 * testsuite/libgomp.fortran/reduction6.f90: New test.
2267 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2269 2005-10-23 Richard Henderson <rth@redhat.com>
2271 * testsuite/libgomp.c++/ctor-1.C: New.
2272 * testsuite/libgomp.c++/ctor-2.C: New.
2273 * testsuite/libgomp.c++/ctor-3.C: New.
2274 * testsuite/libgomp.c++/ctor-4.C: New.
2275 * testsuite/libgomp.c++/ctor-5.C: New.
2276 * testsuite/libgomp.c++/ctor-6.C: New.
2277 * testsuite/libgomp.c++/ctor-7.C: New.
2278 * testsuite/libgomp.c++/ctor-8.C: New.
2279 * testsuite/libgomp.c++/ctor-9.C: New.
2281 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2284 * testsuite/libgomp.c++/pr24455-1.C: New test.
2285 * testsuite/libgomp.c++/pr24455.C: New test.
2286 * testsuite/libgomp.dg/pr24455-1.c: New test.
2287 * testsuite/libgomp.dg/pr24455.c: New test.
2289 2005-10-20 Richard Henderson <rth@redhat.com>
2291 * testsuite/libgomp.c++/loop-6.C: New.
2292 * testsuite/libgomp.dg/loop-3.c: New.
2294 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2296 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2298 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2301 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2303 * testsuite/libgomp.fortran/jacobi.f: New test.
2305 2005-10-19 Richard Henderson <rth@redhat.com>
2307 * configure.tgt (i?86-linux): Default to with_arch instead of
2308 CFLAGS. Add -mtune to match target_cpu.
2309 (x86_64-linux): Tune to i686.
2311 * fortran.c (omp_test_nest_lock_): Fix typo.
2313 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2315 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2316 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2317 * testsuite/libgomp.dg/ordered-3.c: New test.
2319 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2320 Remove volatile keyword.
2322 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2323 in COMMON block to avoid warnings on 64-bit targets.
2325 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2327 * testsuite/libgomp.dg/shared-3.c: New test.
2329 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2331 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2332 * testsuite/libgomp.fortran/reduction5.f90: New test.
2334 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2336 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2338 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2339 flush loop now that __sync_synchronize has proper memory barrier.
2340 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2341 Add -ffixed-form to dg-options.
2343 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2345 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2346 from subdirectories.
2347 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2348 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2349 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2350 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2351 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2352 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2353 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2354 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2355 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2356 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2357 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2358 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2359 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2360 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2361 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2362 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2363 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2364 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2365 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2366 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2367 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2368 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2369 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2370 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2371 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2373 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2375 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2376 lang_library_path exists. Use find instead of glob to gather tests.
2377 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2379 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2381 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2382 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2383 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2384 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2385 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2386 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2387 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2388 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2389 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2390 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2391 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2392 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2393 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2395 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2397 * testsuite/libgomp.dg/vla-1.c: New test.
2399 * testsuite/libgomp.fortran/reference2.f90: New test.
2401 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2402 declaration of omp_get_thread_num.
2403 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2406 * testsuite/libgomp.fortran/reduction1.f90: New test.
2407 * testsuite/libgomp.fortran/reduction2.f90: New test.
2408 * testsuite/libgomp.fortran/reduction3.f90: New test.
2409 * testsuite/libgomp.fortran/reduction4.f90: New test.
2411 2005-10-13 Richard Henderson <rth@redhat.com>
2413 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2414 * Makefile.in: Regenerate.
2415 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2416 * libgomp.h: Include bar.h.
2417 (struct gomp_barrier): Remove.
2418 (struct gomp_team): Add barrier. Replace master_barrier with
2419 master_release. Replace threads with ordered_release.
2420 (struct gomp_thread): Replace barrier with release.
2421 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2422 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2423 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2424 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2425 (GOMP_single_copy_end): Likewise.
2426 * team.c (gomp_threads_dock): New.
2427 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2428 (gomp_thread_start): Use gomp_barrier_wait.
2429 (new_team, free_team): Update for gomp_team changes.
2430 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2431 (gomp_team_end): Use gomp_barrier_wait.
2432 (initialize_team): Update for gomp_thread changes.
2433 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2434 (gomp_work_share_end_nowait): Use atomic ops when available.
2435 * config/linux/bar.c, config/linux/bar.h: New files.
2436 * config/posix/bar.c, config/posix/bar.h: New files.
2438 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2440 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2441 * testsuite/libgomp.dg/single-2.c: New test.
2443 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2444 lang_link_flags): Unset, so that they aren't inherited from previously
2447 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2449 2005-10-12 Richard Henderson <rth@redhat.com>
2451 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2452 (libgomp_init): Use lang_test_file, lang_library_path, and
2453 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2455 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2456 (lang_test_file, lang_link_flags): New.
2457 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2459 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2460 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2461 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2462 testsuite/libgomp.c++/parallel-1.C,
2463 testsuite/libgomp.c++/reduction-1.C,
2464 testsuite/libgomp.c++/reduction-2.C,
2465 testsuite/libgomp.c++/reduction-3.C,
2466 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2467 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2468 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2469 New files, largely cribbed from the C testsuite.
2471 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2473 * testsuite/libgomp.fortran/character1.f90: New test.
2474 * testsuite/libgomp.fortran/character2.f90: New test.
2476 * testsuite/libgomp.dg/nested-1.c: New test.
2477 * testsuite/libgomp.dg/nested-2.c: New test.
2478 * testsuite/libgomp.fortran/do1.f90: New test.
2479 * testsuite/libgomp.fortran/do2.f90: New test.
2481 * testsuite/libgomp.fortran/reference1.f90: New test.
2483 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2485 * testsuite/libgomp.dg/reduction-1.c: New test.
2486 * testsuite/libgomp.dg/reduction-2.c: New test.
2487 * testsuite/libgomp.dg/reduction-3.c: New test.
2489 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2491 * testsuite/libgomp.dg/atomic-1.c: New test.
2492 * testsuite/libgomp.dg/atomic-2.c: New test.
2494 2005-10-09 Richard Henderson <rth@redhat.com>
2496 * critical.c (atomic_lock): New.
2497 (initialize_critical): Initialize it.
2498 (GOMP_atomic_start, GOMP_atomic_end): New.
2499 * libgomp.map: Export them.
2500 * libgomp_g.h: Declare them.
2502 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2504 2005-10-02 Richard Henderson <rth@redhat.com>
2506 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2507 to XCFLAGS instead of CFLAGS.
2509 2005-09-30 Richard Henderson <rth@redhat.com>
2511 * configure.ac: Determine whether -pthread or -lpthread is needed.
2512 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2513 * Makefine.in, configure: Rebuild.
2515 2005-09-28 Richard Henderson <rth@redhat.com>
2517 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2518 * testsuite/libgomp.dg/omp-single-3.c: New test.
2520 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2522 * testsuite/libgomp.dg/omp-single-2.c: New test.
2523 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2525 2005-09-27 Richard Henderson <rth@redhat.com>
2527 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2528 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2530 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2532 * testsuite/libgomp.dg/omp-loop03.c: New test.
2534 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2536 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2538 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2540 * testsuite/libgomp.dg/omp-single-1.c: New test.
2541 * testsuite/libgomp.dg/shared-1.c: Return 0.
2542 Add prototype for abort.
2543 * testsuite/libgomp.dg/shared-2.c: Likewise.
2545 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2547 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2550 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2552 * testsuite/libgomp.dg/shared-1.c: New test.
2553 * testsuite/libgomp.dg/shared-2.c: New test.
2555 2005-09-24 Richard Henderson <rth@redhat.com>
2557 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2559 2005-09-24 Richard Henderson <rth@redhat.com>
2561 * iter.c (gomp_iter_static_next): Round up when computing number
2562 of iterations. Don't bother distributing a remainder equally.
2564 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2565 Don't call srand. Zero b before testing.
2568 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2570 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2571 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2573 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2575 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2576 without !$omp end do, followed immediately by subroutine end.
2578 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2580 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2582 2005-09-22 Richard Henderson <rth@redhat.com>
2584 * critical.c (GOMP_critical_name_start): Change argument to void**.
2585 Reuse the pointer space if the mutex fits.
2586 (GOMP_critical_name_end): Likewise.
2587 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2588 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2589 (GOMP_critical_name_end): Likewise.
2590 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2591 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2593 2005-09-20 Richard Henderson <rth@redhat.com>
2595 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2596 (create_lock_lock): New.
2597 (initialize_critical): Initialize it.
2598 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2599 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2601 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2603 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2605 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2607 * testsuite/libgomp.dg/omp-loop01.c: New test.
2608 * testsuite/libgomp.dg/omp-loop02.c: New test.
2610 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2612 * configure.ac (AC_PROG_FC): Add.
2613 (USE_FORTRAN): New automake conditional.
2614 * configure: Rebuilt.
2615 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2616 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2617 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2618 Add rules to build them.
2619 * Makefile.in: Rebuilt.
2620 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2622 * libgomp.map: Add Fortran wrappers.
2623 * libgomp_f.h.in: New file.
2624 * omp_lib.h.in: New file.
2625 * omp_lib.f90.in: New file.
2626 * fortran.c: New file.
2627 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2628 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2629 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2630 libgfortran has been built.
2631 * testsuite/libgomp.fortran/fortran.exp: New file.
2632 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2633 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2634 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2635 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2636 * testsuite/libgomp.fortran/omp_hello.f: New test.
2637 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2638 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2639 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2640 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2641 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2642 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2643 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2644 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2646 2005-08-30 Richard Henderson <rth@redhat.com>
2648 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2649 function for when aliases are not usable.
2650 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2651 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2652 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2653 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2654 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2655 GOMP_loop_ordered_guided_next): Likewise.
2656 * ordered.c (GOMP_ordered_start): Likewise.
2658 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2660 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2661 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2662 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2663 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2664 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2665 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2666 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2667 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2668 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2670 2005-07-07 Eric Christopher <echristo@redhat.com>
2671 Diego Novillo <dnovillo@redhat.com>
2673 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2674 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2676 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2677 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2678 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2679 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2680 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2681 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2682 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2684 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2686 * TOPLEVEL.patch: Remove.
2688 2005-05-16 Richard Henderson <rth@redhat.com>
2690 * configure.ac: Test for clock_gettime.
2691 * config.h.in, configure: Rebuild.
2692 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2693 (omp_get_wtime): Use clock_gettime if available.
2694 (omp_get_wtick): Use clock_getres if available.
2696 2005-05-11 Richard Henderson <rth@redhat.com>
2698 * config/linux/ia64/futex.h: New file.
2699 * configure.tgt: Use it.
2701 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2703 2005-05-07 Richard Henderson <rth@redhat.com>
2705 * config/linux/powerpc/futex.h: New file.
2706 * configure.tgt: Use it.
2708 * config/linux/i486/futex.h: Merge ...
2709 * config/linux/x86_64/futex.h: ... into ...
2710 * config/linux/x86/futex.h: ... here.
2711 * configure.tgt: Update to match.
2713 2005-05-06 Richard Henderson <rth@redhat.com>
2715 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2716 * config/linux/i486/futex.h: Likewise.
2717 * config/linux/x86_64/futex.h: Likewise.
2719 * config/linux/lock.c: New file.
2720 * config/linux/omp-lock.h: New file.
2722 * critical.c, env.h: Don't include omp.h
2723 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2724 * config/posix/time.c: Likewise.
2725 * config/posix/omp-lock.h: New file.
2726 * libgomp.h: Include omp-lock.h and omp.h.
2727 * Makefile.am (nodist_include_HEADERS): New.
2729 * configure.ac (PERL): New.
2730 * mkomp_h.pl: New file.
2731 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2733 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2735 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2736 build directory. Re-add -march=i486 hack.
2738 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2739 (libgomp_link_flags): Remove.
2740 (libgomp_initialized): Remove.
2741 (libgomp_init): Don't protect from reinitialization. Copy code
2742 from libstdc++ for getting the multilib set correctly.
2744 2005-05-05 Richard Henderson <rth@redhat.com>
2746 * config/linux/alpha/futex.h: New file.
2747 * configure.tgt (alpha*-*-linux*): Use it.
2749 * config/posix/mutex.c: New file.
2750 * config/posix/sem.c: Use libgomp.h.
2752 * configure.tgt (x86_64-linux): Also test CC for -m32.
2753 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2755 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2758 * Makefile.am (SUBDIRS): New.
2759 (libgomp_la_LDFLAGS): Add -lpthread.
2760 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2761 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2763 * libgomp_g.h: New file.
2764 * libgomp.h: Split out all public declarations to libgomp_g.h.
2765 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2766 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2767 * config/linux/sem.h: Likewise.
2768 * config/posix/sem.h: Likewise.
2770 * Makefile.am (AM_LDFLAGS): New.
2771 (libgomp_version_script): Split out from ...
2772 (libgomp_la_LDFLAGS): ... here.
2773 (libgomp_version_info): New.
2774 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2775 (LIBGOMP_ENABLE): New.
2776 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2777 (LIBGOMP_ENABLE_SYMVERS): New.
2778 * configure.ac (AC_INIT): Version 1.0.
2779 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2780 (enable-linux-futex): Likewise. Rename from enable-futex.
2781 (libtool_VERSION): New.
2782 (LIBGOMP_ENABLE_SYMVERS): Use it.
2783 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2784 * Makefile.in, aclocal.m4, configure: Rebuild.
2786 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2787 (gomp_mutex_unlock_slow): Fix typo.
2788 * config/linux/sem.c: Similarly.
2789 (gomp_sem_post_slow): Fix typo.
2790 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2791 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2792 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2794 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2795 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2796 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2797 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2798 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2799 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2800 LDFLAGS. Pull enable_futex check to top-level.
2801 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2802 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2804 First attempt at real configury.
2805 * Makefile, config.h: Remove file.
2806 * Makefile.am, Makefile.in: New file.
2807 * acinclude.m4 aclocal.m4: New file.
2808 * configure.ac, configure.tgt, configure: New file.
2810 * config/posix/lock.c: Rename from sys-lock.c.
2811 * config/posix/mutex.h: Rename from sys-mutex.h.
2812 * config/posix/sem.c: Rename from sys-sem.c.
2813 * config/posix/sem.h: Rename from sys-sem.h.
2814 * config/posix/proc.c: Rename from sys-proc.c.
2815 * config/posix/time.c: Rename from sys-proc.c.
2817 * config/linux/mutex.c: New file.
2818 * config/linux/mutex.h: New file.
2819 * config/linux/sem.c: New file.
2820 * config/linux/sem.h: New file.
2821 * config/linux/i486/futex.h: New file.
2822 * config/linux/x86_64/futex.h: New file.
2824 2005-05-04 Richard Henderson <rth@redhat.com>
2826 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2827 * libgomp.h: Declare them.
2828 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2829 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2831 2005-05-04 Richard Henderson <rth@redhat.com>
2833 * libgomp-1 code drop
2835 2005-05-04 Richard Henderson <rth@redhat.com>
2837 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2838 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2839 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2840 (gomp_iter_static_next): Update.
2841 (gomp_ordered_static_next): Update.
2842 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2843 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2844 totally empty range.
2845 (gomp_loop_ordered_static_next): Refine test for calling
2846 gomp_ordered_static_next.
2847 * testsuite/ordered-1.c: Add case for more threads than iterations.
2849 * iter.c (gomp_iter_runtime_next_locked): Remove.
2850 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2851 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2852 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2853 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2854 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2855 gomp_loop_ordered_guided_next): Downcase name, make static, add
2856 an external alias with the old name.
2857 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2858 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2859 switch and call one of the above static functions.
2860 * libgomp.h: Update.
2862 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2863 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2864 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2865 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2866 GOMP_loop_ordered_guided_start): Update to match.
2867 * sections.c (GOMP_sections_start): Likewise.
2868 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2870 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2871 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2872 Use bounds check instead of modulus.
2873 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2874 (gomp_ordered_last): Don't sync with ordered_owner here.
2875 (gomp_ordered_next): Likewise.
2876 (gomp_ordered_static_loop_next): Likewise.
2877 * loop.c, libgomp.h: Update to match.
2879 * libgomp.h (GOMP_barrier): Declare.
2881 * testsuite/barrier-1.c: New file.
2882 * testsuite/critical-1.c: New file.
2883 * testsuite/ordered-2.c: New file.
2884 * testsuite/ordered-1.c: New file.
2885 * testsuite/sections-1.c: New file.
2886 * testsuite/single-1.c: New file.
2887 * testsuite/Makefile (TESTS): Add them.
2889 2005-05-04 Richard Henderson <rth@redhat.com>
2891 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2892 * loop.c (GOMP_loop_static_start): If not the startup thread,
2893 acquire the mutex to wait for initialization complete.
2894 (GOMP_loop_ordered_static_start): Likewise.
2895 (GOMP_loop_ordered_runtime_start): Likewise.
2896 (GOMP_loop_ordered_static_first): Remove.
2897 (GOMP_loop_ordered_dynamic_first): Remove.
2898 (GOMP_loop_ordered_guided_first): Remove.
2899 (GOMP_loop_ordered_runtime_first): Remove.
2900 * ordered.c (gomp_ordered_loop_first): Post to own release when
2901 we're the first thread.
2902 (gomp_ordered_loop_last): Wait on release if not owner.
2903 (gomp_ordered_loop_next): Likewise.
2904 (gomp_ordered_static_loop_init): New.
2905 (gomp_ordered_static_loop_next): Use ordered_owner.
2906 (GOMP_ordered_start): Likewise.
2907 * work.c (gomp_new_work_share): Initialize ordered_owner.
2909 2005-05-03 Richard Henderson <rth@redhat.com>
2911 * Makefile (OPT): New.
2914 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2915 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2916 * libgomp.h, libgomp.map, NOTES: Update to match.
2918 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2919 Add initialized and thr members.
2920 (gomp_thread_start): Pause when initially spawned to wait for
2921 the whole team to be created.
2922 (gomp_team_start): Release team members at the end.
2924 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2925 (f_foo_1): Use GOMP_loop_end.
2926 (f_foo_2): Use GOMP_loop_end_nowait.
2928 * testsuite/loop-2.c: New file.
2929 * testsuite/Makefile (TESTS): Add it.
2931 2005-05-03 Richard Henderson <rth@redhat.com>
2933 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2934 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2935 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2938 * testsuite/Makefile: New file.
2939 * testsuite/loop-1.c: New file.
2941 2005-05-03 Richard Henderson <rth@redhat.com>
2943 Initial implementation and checkin.