1 2012-03-01 Release Manager
5 2012-02-15 Richard Guenther <rguenther@suse.de>
8 2012-02-08 Richard Guenther <rguenther@suse.de>
10 PR tree-optimization/46886
11 * testsuite/libgomp.c/pr46886.c: New testcase.
13 2011-11-20 Andreas Tobler <andreast@fgznet.ch>
15 * configure: Regenerate.
17 2011-10-26 Release Manager
21 2011-08-19 Jakub Jelinek <jakub@redhat.com>
24 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
25 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
27 2011-07-29 Jakub Jelinek <jakub@redhat.com>
31 * testsuite/libgomp.c/pr49897-1.c: New test.
32 * testsuite/libgomp.c/pr49897-2.c: New test.
33 * testsuite/libgomp.c/pr49898-1.c: New test.
34 * testsuite/libgomp.c/pr49898-2.c: New test.
36 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
42 2011-06-27 Release Manager
46 2011-05-19 Jakub Jelinek <jakub@redhat.com>
49 * testsuite/libgomp.c++/pr49043.C: New test.
52 * testsuite/libgomp.c++/pr48869.C: New test.
54 2011-05-06 Jakub Jelinek <jakub@redhat.com>
57 * fortran.c: Include limits.h.
59 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
61 (omp_set_num_threads_8_, omp_set_schedule_8_,
62 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
63 omp_get_team_size_8_): Use TO_INT macro.
64 * testsuite/libgomp.fortran/pr48894.f90: New test.
66 2011-04-13 Jakub Jelinek <jakub@redhat.com>
69 * testsuite/libgomp.c/pr48591.c: New test.
71 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
73 Backport from mainline:
74 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
77 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
78 * configure: Regenerate.
80 2011-03-25 Release Manager
84 2011-02-27 Jakub Jelinek <jakub@redhat.com>
87 * testsuite/libgomp.fortran/task3.f90: New test.
89 2011-02-24 Tobias Burnus <burnus@net-b.de>
91 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
93 2011-02-23 Jakub Jelinek <jakub@redhat.com>
96 * libgomp.texi (omp_get_wtime): Don't say time in the past
99 2011-02-18 Jakub Jelinek <jakub@redhat.com>
102 * testsuite/libgomp.fortran/fortran.exp: Check for both
103 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
104 but $blddir != "", still append ${blddir}/${lang_library_path}
107 2011-02-16 Tobias Burnus <burnus@net-b.de>
110 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
111 of libquadmath.a before adding its libpath to ldflags.
113 2011-02-14 Jakub Jelinek <jakub@redhat.com>
116 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
117 to FUTEX_WAIT futex syscall.
118 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
120 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
122 * configure: Regenerate.
124 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
127 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
129 2011-01-16 Gerald Pfeifer
131 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
133 2010-12-14 Jakub Jelinek <jakub@redhat.com>
136 * libgomp.fortran/allocatable6.f90: New test.
138 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
140 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
141 * configure: Regenerate.
143 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
147 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
148 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
149 * aclocal.m4: Regenerate.
150 * configure: Regenerate.
151 * Makefile.in: Regenerate.
152 * testsuite/Makefile.in: Regenerate.
154 2010-12-02 Jakub Jelinek <jakub@redhat.com>
157 * libgomp.fortran/pr46753.f90: New test.
160 * env.c (initialize_env): Default to spin count 300000
161 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
165 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
166 at the end if sync builtins aren't supported.
168 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
170 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
172 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
174 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
176 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
178 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
180 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
181 Tobias Burnus <burnus@net-b.de>
185 * configure: Regenerate.
187 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
189 * config/linux/futex.h: New.
190 * config/linux/arm/mutex.h: New.
191 * configure.tgt (arm*-*-linux*): Add config path.
193 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
195 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
197 2010-09-23 Tobias Burnus <burnus@net-b.de>
199 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
200 Change Fortran datatype to LOGICAL.
201 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
202 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
204 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
206 * configure: Regenerate.
208 2010-07-26 Jakub Jelinek <jakub@redhat.com>
210 * libgomp.texi: Add function keyword to a couple of Fortran
211 interfaces, use integer instead of int for Fortran.
213 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
215 * libgomp.texi: Fix spelling and pasto problems throughout.
216 Adjust prototypes to match code.
218 2010-07-24 Tobias Burnus <burnus@net-b.de>
220 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
221 silence -fwhole-file warning.
223 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
225 * configure.tgt (*-*-solaris2.[56]*): Removed.
227 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
229 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
230 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
231 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
232 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
233 targetting solaris2*.
234 * configure: Regenerate.
235 * config.h.in: Regenerate.
237 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
238 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
239 Add libgomp_version_dep.
240 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
242 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
243 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
244 * Makefile.in: Regenerate.
246 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
247 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
248 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
249 to common block, protected by
250 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
252 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
254 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
256 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
259 * configure: Regenerate.
261 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
264 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
265 * configure: Regenerate.
266 * Makefile.in: Regenerate.
267 * testsuite/Makefile.in: Regenerate.
269 2010-04-26 Jakub Jelinek <jakub@redhat.com>
272 * testsuite/libgomp.c/pr43893.c: New test.
273 * testsuite/libgomp.c++/pr43893.C: New test.
275 2010-04-21 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.fortran/vla8.f90: New test.
280 2010-04-20 Jakub Jelinek <jakub@redhat.com>
283 * config/linux/affinity.c (gomp_init_affinity): Decrease
284 gomp_available_cpus if affinity mask confines the process to fewer
286 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
287 non-NULL, just return gomp_available_cpus.
290 * sections.c (gomp_sections_init): Initialize ws->mode.
292 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
294 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
295 not unused bar variable.
296 * configure: Regenerate.
298 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
300 * Makefile.in: Regenerate.
301 * aclocal.m4: Regenerate.
302 * testsuite/Makefile.in: Regenerate.
304 2010-03-22 Jakub Jelinek <jakub@redhat.com>
307 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
308 (initialize_env): Adjust callers.
309 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
310 when the argument is 0.
312 * testsuite/libgomp.c/pr42942.c: New test.
314 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
318 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
319 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
321 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
324 * testsuite/libgomp.c++/task-6.C: Likewise.
326 2010-01-28 Steve Ellcey <sje@cup.hp.com>
328 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
330 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
332 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
333 * configure: Regenerate.
335 2010-01-26 Jakub Jelinek <jakub@redhat.com>
338 * testsuite/libgomp.fortran/allocatable5.f90: New test.
340 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
342 * configure.ac: Test for executability of GFORTRAN.
343 * configure: Regenerate.
345 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
347 * configure: Regenerate.
349 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
352 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
354 2010-01-03 Richard Guenther <rguenther@suse.de>
356 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
358 2009-12-23 Sebastian Pop <sebpop@gmail.com>
360 * testsuite/libgomp.graphite/pr4118.c: New.
362 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
364 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
365 for darwin, protect the test with require-effective-target tls_runtime.
366 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
368 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
371 * testsuite/lib/libgomp.exp: Provide -B options to allow for
372 link spec %s substitutions for static libraries.
374 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
377 * libgomp.graphite/force-parallel-2.c: Reduce array size.
379 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
381 * Makefile.in: Regenerate.
382 * configure: Regenerate.
383 * testsuite/Makefile.in: Regenerate.
385 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
387 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
388 settings for LC_ALL and LANG.
390 2009-11-25 Jakub Jelinek <jakub@redhat.com>
393 * testsuite/libgomp.fortran/pr42162.f90: New test.
395 2009-11-13 Jakub Jelinek <jakub@redhat.com>
398 * testsuite/libgomp.c/pr42029.c: New test.
400 2009-10-26 Jakub Jelinek <jakub@redhat.com>
402 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
403 *s. Accept ld version without text in ()s.
404 * configure: Regenerated.
406 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
408 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
410 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
413 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
414 or a hyphen (happens with fortran language disabled).
415 * configure: Regenerate.
417 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
419 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
420 use sed script portable to Solaris /bin/sed for extracting ld
422 * configure: Regenerate.
424 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
426 * testsuite/libgomp.graphite/bounds.c: New test.
428 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
430 * Makefile.am (libgomp_la_LINK): New.
431 * Makefile.in: Regenerate.
433 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
435 * configure.ac (AC_PREREQ): Bump to 2.64.
437 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
439 * Makefile.am (install-html, install-pdf): Remove.
440 * Makefile.in: Regenerate.
442 * Makefile.in: Regenerate.
443 * aclocal.m4: Regenerate.
444 * config.h.in: Regenerate.
445 * configure: Regenerate.
446 * testsuite/Makefile.in: Regenerate.
448 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
450 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
451 * Makefile.in: Regenerate.
453 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
455 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
456 * Makefile.in: Regenerate.
458 2009-08-19 Tobias Burnus <burnus@net-b.de>
461 omp_lib.h.in: Fix -std=f95 errors.
464 2009-08-14 David Edelsohn <edelsohn@gnu.org>
466 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
467 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
468 * testsuite/libgomp.graphite/graphite.exp: New.
470 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
472 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
475 2009-08-04 David Daney <ddaney@caviumnetworks.com>
477 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
478 needed memory barrier semantics.
479 * config/linux/mips/mutex.h: New file.
481 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
483 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
485 2009-07-16 Joseph Myers <joseph@codesourcery.com>
487 * configure: Regenerate.
489 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
494 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
495 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
496 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
498 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
500 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
501 options when choosing a multilib.
503 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
505 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
506 ld_library_path. Use add_path. Add just find_libgcc_s to
507 ld_library_path, not every libgcc multilib directory.
508 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
509 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
510 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
512 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
514 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
516 * Makefile.am (LTLDFLAGS): Define.
518 * Makefile.in: Regenerate.
520 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
523 * testsuite/libgomp.fortran/fortran.exp: Don't link with
524 libgfortranbegin, check existence of libgfortran.a instead of
527 2009-05-20 Jakub Jelinek <jakub@redhat.com>
530 * team.c (gomp_thread_start): Destroy thr->release semaphore.
531 (gomp_free_pool_helper): Likewise.
533 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
534 Jakub Jelinek <jakub@redhat.com>
537 * testsuite/libgomp.fortran/workshare2.f90: New test.
539 2009-04-09 Nick Clifton <nickc@redhat.com>
541 * iter.c: Change copyright header to refer to version 3 of the
542 GNU General Public License with version 3.1 of the GCC Runtime
543 Library Exception and to point readers at the COPYING3 and
544 COPYING3.RUNTIME files and the FSF's license web page.
546 * barrier.c: Likewise.
547 * config/bsd/proc.c: Likewise.
548 * config/linux/affinity.c: Likewise.
549 * config/linux/alpha/futex.h: Likewise.
550 * config/linux/bar.c: Likewise.
551 * config/linux/bar.h: Likewise.
552 * config/linux/ia64/futex.h: Likewise.
553 * config/linux/ia64/mutex.h: Likewise.
554 * config/linux/lock.c: Likewise.
555 * config/linux/mips/futex.h: Likewise.
556 * config/linux/mutex.c: Likewise.
557 * config/linux/mutex.h: Likewise.
558 * config/linux/powerpc/futex.h: Likewise.
559 * config/linux/proc.c: Likewise.
560 * config/linux/ptrlock.c: Likewise.
561 * config/linux/ptrlock.h: Likewise.
562 * config/linux/s390/futex.h: Likewise.
563 * config/linux/sem.c: Likewise.
564 * config/linux/sem.h: Likewise.
565 * config/linux/sparc/futex.h: Likewise.
566 * config/linux/wait.h: Likewise.
567 * config/linux/x86/futex.h: Likewise.
568 * config/mingw32/proc.c: Likewise.
569 * config/mingw32/time.c: Likewise.
570 * config/posix/affinity.c: Likewise.
571 * config/posix/bar.c: Likewise.
572 * config/posix/bar.h: Likewise.
573 * config/posix/lock.c: Likewise.
574 * config/posix/mutex.h: Likewise.
575 * config/posix/proc.c: Likewise.
576 * config/posix/ptrlock.h: Likewise.
577 * config/posix/sem.c: Likewise.
578 * config/posix/sem.h: Likewise.
579 * config/posix/time.c: Likewise.
580 * config/posix95/lock.c: Likewise.
581 * critical.c: Likewise.
584 * fortran.c: Likewise.
585 * iter_ull.c: Likewise.
586 * libgomp.h: Likewise.
587 * libgomp_f.h.in: Likewise.
588 * libgomp_g.h: Likewise.
590 * loop_ull.c: Likewise.
591 * omp.h.in: Likewise.
592 * omp_lib.f90.in: Likewise.
593 * omp_lib.h.in: Likewise.
594 * ordered.c: Likewise.
595 * parallel.c: Likewise.
596 * sections.c: Likewise.
597 * single.c: Likewise.
602 2009-04-09 Jakub Jelinek <jakub@redhat.com>
604 * testsuite/config/default.exp: Change copyright header to refer to
605 version 3 of the GNU General Public License and to point readers
606 at the COPYING3 file and the FSF's license web page.
608 2009-04-08 Jakub Jelinek <jakub@redhat.com>
611 * libgomp.c++/pr39573.C: New test.
613 2009-04-01 Jakub Jelinek <jakub@redhat.com>
616 * testsuite/libgomp.c/pr39591-1.c: New test.
617 * testsuite/libgomp.c/pr39591-2.c: New test.
618 * testsuite/libgomp.c/pr39591-3.c: New test.
620 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
622 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
623 * testsuite/libgomp.c/atomic-6.c: Ditto.
625 2009-03-23 Jakub Jelinek <jakub@redhat.com>
628 * testsuite/libgomp.c/loop-12.c: New test.
629 * testsuite/libgomp.c/loop-11.c: New test.
630 * testsuite/libgomp.c++/loop-11.C: New test.
631 * testsuite/libgomp.c++/loop-12.C: New test.
632 * testsuite/libgomp.c++/for-8.C: New test.
634 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
636 * configure: Regenerate.
638 2009-02-11 Jakub Jelinek <jakub@redhat.com>
641 * testsuite/libgomp.c/pr39154.c: New test.
643 2009-01-30 Ian Lance Taylor <iant@google.com>
645 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
646 libgomp_ld_is_gold. Get gold version number.
647 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
648 * configure: Rebuild.
650 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
652 * testsuite/lib/libgomp.exp: Add -B option for targets that
653 use libgfortran.a%s in their specs.
655 2009-01-07 Jakub Jelinek <jakub@redhat.com>
658 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
659 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
660 HAVE_AS_SYMVER_DIRECTIVE is not defined.
661 * configure: Regenerated.
662 * config.h.in: Likewise.
664 2008-12-28 Jakub Jelinek <jakub@redhat.com>
667 * testsuite/libgomp.c/pr38650.c: New test.
668 * testsuite/libgomp.c++/pr38650.C: New test.
670 2008-12-27 Jakub Jelinek <jakub@redhat.com>
672 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
674 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
676 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
678 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
680 * configure: Regenerate.
682 2008-12-08 Jakub Jelinek <jakub@redhat.com>
685 * testsuite/libgomp.c/pr36802-1.c: New test.
686 * testsuite/libgomp.c/pr36802-2.c: New test.
687 * testsuite/libgomp.c/pr36802-3.c: New test.
689 2008-12-01 Janis Johnson <janis187@us.ibm.com>
692 * config/linux/powerpc/mutex.h: New.
694 2008-12-01 Jakub Jelinek <jakub@redhat.com>
697 * testsuite/libgomp.c++/for-7.C: New test.
700 * testsuite/libgomp.c++/for-6.C: New test.
702 2008-11-26 Janis Johnson <janis187@us.ibm.com>
705 * testsuite/lib/libgomp.exp: Include new timeout library files.
706 (libgomp_target_compile): Set timeout value from new proc.
708 2008-11-13 Steve Ellcey <sje@cup.hp.com>
711 * config/linux/ia64/mutex.h: New.
713 2008-11-04 Tobias Burnus <burnus@net-b.de>
716 * libgomp.texi (Runtime library routines, environment variables):
717 Update for OpenMP version 3.0.
719 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
720 Steve Ellcey <sje@cup.hp.com>
722 * configure: Regenerate for new libtool.
723 * Makefile.in: Ditto.
724 * testsuite/Makefile.in: Ditto.
726 2008-09-19 Jakub Jelinek <jakub@redhat.com>
727 Andreas Tobler <a.tobler@schweiz.org>
729 * config/bsd/proc.c: New file.
730 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
731 * configure.ac: Check for header <sys/sysctl.h>
732 * configure: Regenerate.
733 * config.h.in: Likewise.
735 2008-09-05 Janis Johnson <janis187@us.ibm.com>
737 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
739 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
741 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
742 * Makefile.in: Regenerated.
743 * testsuite/Makefile.in: Regenerated.
745 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
747 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
748 depend on blddir if blddir exists.
749 (libgomp_target_compile): Likewise.
750 * testsuite/libgomp.c++/c++.exp: Likewise.
751 * testsuite/libgomp.fortran/fortran.exp: Likewise.
753 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
755 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
756 Do not list GPL as Invariant Section.
758 2008-07-28 Ilie Garbacea <ilie@mips.com>
759 Chao-ying Fu <fu@mips.com>
761 * configure.tgt: Enable futex for MIPS.
762 * config/linux/mips/futex.h: New file.
764 2008-07-16 Jakub Jelinek <jakub@redhat.com>
766 * team.c (gomp_team_end): Free team immediately if it has
769 2008-07-08 David Edelsohn <edelsohn@gnu.org>
771 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
772 * testsuite/libgomp.fortran/fortran.exp: Same.
773 * testsuite/libgomp.c/c.exp: Same.
774 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
775 directory to library path first.
777 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
779 * env.c (parse_stacksize): Add cast to avoid warning.
780 (parse_spincount): Likewise.
782 2008-06-27 Jakub Jelinek <jakub@redhat.com>
784 * testsuite/libgomp.c/loop-10.c: New test.
785 * libgomp.c/loop-3.c (main): Add lastprivate clause.
786 * libgomp.c++/loop-6.C (main): Likewise.
789 * testsuite/libgomp.c/debug-1.c: New test.
791 2008-06-19 Jakub Jelinek <jakub@redhat.com>
793 * testsuite/libgomp.c/nqueens-1.c: New test.
796 * testsuite/libgomp.c++/task-7.C: New function.
798 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
800 * configure: Regenerate.
802 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
804 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
805 mutex when HAVE_SYNC_BUILTINS isn't defined.
807 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
809 * libgomp.texi (omp_test_lock): Fix typo.
811 2008-06-12 Tobias Burnus <burnus@net-b.de>
813 * omp_lib.f90.in: Add "implicit none".
815 2008-06-12 Jakub Jelinek <jakub@redhat.com>
818 * testsuite/libgomp.c/reduction-5.c: New test.
820 2008-06-11 Jakub Jelinek <jakub@redhat.com>
822 * libgomp.h (struct gomp_task): Add in_tied_task field.
823 * task.c (gomp_init_task): Initialize it.
824 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
825 unconditionally. Don't call gomp_team_barrier_wake if
826 current task is implicit or if(0) from implicit and number of
827 running tasks is equal to nthreads - 1.
830 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
831 omp_get_team_size_8): Fix pastos.
834 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
835 * configure: Regenerated.
836 * config.h.in: Regenerated.
837 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
840 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
843 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
844 (GOMP_loop_ull_dynamic_start): Likewise.
845 (GOMP_loop_ull_guided_start): Likewise.
846 (GOMP_loop_ull_ordered_static_start): Likewise.
847 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
848 (GOMP_loop_ull_ordered_guided_start): Likewise.
850 2008-06-06 Jakub Jelinek <jakub@redhat.com>
851 Richard Henderson <rth@redhat.com>
852 Ulrich Drepper <drepper@redhat.com>
853 Jakob Blomer <jakob.blomer@ira.uka.de>
855 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
856 Substitute also OMP_*LOCK_25*.
857 * configure: Regenerated.
858 * config.h.in: Regenerated.
859 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
860 ptrlock.c and task.c.
861 * Makefile.in: Regenerated.
862 * testsuite/Makefile.in: Regenerated.
864 * loop_ull.c: New file.
865 * iter_ull.c: New file.
866 * libgomp.h: Include ptrlock.h.
867 (enum gomp_task_kind): New type.
868 (struct gomp_team): Add task_lock, task_queue, task_count,
869 task_running_count, single_count fields. Add
870 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
871 Remove work_share_lock, generation_mask,
872 oldest_live_gen, num_live_gen and init_work_shares fields, add
873 work work_share_list_alloc, work_share_list_free and work_share_chunk
874 fields. Change work_shares from pointer to pointers into an array.
875 Change ordered_release field into gomp_sem_t ** from flexible array
876 member. Add implicit_task and initial_work_shares fields.
877 Move close to the end of the struct.
878 (struct gomp_team_state): Add single_count, last_work_share,
879 active_level and level fields, remove work_share_generation.
880 (gomp_barrier_handle_tasks): New prototype.
881 (gomp_finish_task): New inline function.
882 (struct gomp_work_share): Move chunk_size, end, incr into
883 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
884 next_ll fields. Reshuffle fields. Add next_alloc,
885 next_ws, next_free and inline_ordered_team_ids fields, change
886 ordered_team_ids into pointer from flexible array member.
887 Add mode field. Put lock and next into a different cache line
888 from most of the write-once fields.
889 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
890 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
891 gomp_iter_ull_guided_next): New prototypes.
892 (gomp_new_icv): New prototype.
893 (struct gomp_thread): Add thread_pool and task fields.
894 (struct gomp_thread_pool): New type.
895 (gomp_new_team): New prototype.
896 (gomp_team_start): Change type of last argument.
897 (gomp_new_work_share): Removed.
898 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
899 (gomp_work_share_init_done): New static inline.
900 (gomp_throttled_spin_count_var, gomp_available_cpus,
901 gomp_managed_threads): New extern decls.
902 (gomp_init_task): New prototype.
903 (gomp_spin_count_var): New extern var decl.
904 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
905 or no alias support, or if not PIC.
906 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
907 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
908 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
909 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
910 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
911 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
912 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
913 gomp_test_nest_lock_25): New prototypes.
914 (omp_lock_symver, strong_alias): Define.
915 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
917 (gomp_end_task): New.
918 (struct gomp_task_icv, gomp_global_icv): New.
919 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
920 (struct gomp_task): New.
921 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
922 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
924 (gomp_schedule_type): Reorder enum to match
926 * team.c (struct gomp_thread_start_data): Add thread_pool and task
928 (gomp_thread_start): Add gomp_team_barrier_wait call.
929 For non-nested case remove clearing of docked thread thr fields.
930 Use pool fields instead of global gomp_* variables. Use
931 gomp_barrier_wait_last when needed. Initialize ts.active_level.
932 Create tasks for each member thread.
933 (free_team): Only destroy team barrier, task_lock here and free it.
934 (gomp_free_thread): Free last_team if non-NULL.
935 (gomp_team_end): Call gomp_team_barrier_wait instead of
936 gomp_barrier_wait. For nested case call one extra
937 gomp_barrier_wait. Move here some destruction from free_team.
938 Call free_team on pool->last_team if any, rather than freeing
939 current team. Destroy work_share_list_free_lock ifndef
941 (gomp_new_icv): New function.
942 (gomp_threads, gomp_threads_size, gomp_threads_used,
943 gomp_threads_dock): Removed.
944 (gomp_thread_destructor): New variable.
945 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
947 (gomp_team_start): Create new pool if current thread doesn't have
948 one. Use pool fields instead of global gomp_* variables.
949 Initialize thread_pool field for new threads. Clear single_count.
950 Change last argument from ws to team, don't create
951 new team, set ts.work_share to &team->work_shares[0] and clear
952 ts.last_work_share. Don't clear ts.work_share_generation.
953 If number of threads changed, adjust atomically gomp_managed_threads.
954 Use gomp_init_task instead of gomp_new_task,
955 set thr->task to the corresponding implicit_task array entry.
956 Create tasks for each member thread. Initialize ts.level.
957 (initialize_team): Call pthread_key_create on
958 gomp_thread_destructor.
959 (team_destructor): New function.
961 (gomp_new_team): New function.
962 (free_team): Free gomp_work_share blocks chained through next_alloc,
963 instead of freeing work_shares and destroying work_share_lock.
964 (gomp_team_end): Call gomp_fini_work_share. If number of threads
965 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
966 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
967 of gomp_barrier_wait.
968 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
969 instead of gomp_barrier_wait. Call gomp_work_share_init_done
970 if gomp_work_share_start returned true. Don't unlock ws->lock.
971 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
972 of gomp_barrier_wait.
973 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
974 gomp_work_share_init_done if gomp_work_share_start returned true.
975 Don't unlock ws->lock.
976 * work.c: Include stddef.h.
977 (free_work_share): Use work_share_list_free_lock instead
978 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
979 Call gomp_fini_work_share and then either free ws if orphaned, or
980 put it into work_share_list_free list of the current team.
981 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
983 (gomp_work_share_start, gomp_work_share_end,
984 gomp_work_share_end_nowait): Rewritten.
985 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
986 (openmp_version): Set to 200805.
987 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
988 omp_sched_guided, omp_sched_auto): New parameters.
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 interfaces.
993 * omp_lib.h.in (openmp_version): Set to 200805.
994 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
995 omp_sched_guided, omp_sched_auto): New parameters.
996 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
997 omp_set_max_active_levels, omp_get_max_active_levels,
998 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
999 omp_get_active_level): New externals.
1000 * loop.c: Include limits.h.
1001 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1003 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1004 Likewise. Use gomp_icv.
1005 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1006 ts.static_trip here.
1007 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1008 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1009 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1010 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1011 don't unlock ws->lock, otherwise lock it.
1012 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1013 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1014 (gomp_parallel_loop_start): Call gomp_new_team instead of
1015 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1016 Adjust gomp_team_start caller. Pass 0 as second argument to
1017 gomp_resolve_num_threads.
1018 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1019 If adding ws->chunk_size nthreads + 1 times after end won't
1020 overflow, set ws->mode to 1.
1021 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1022 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1023 GOMP_loop_ull_ordered_static_start,
1024 GOMP_loop_ull_ordered_dynamic_start,
1025 GOMP_loop_ull_ordered_guided_start,
1026 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1027 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1028 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1029 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1030 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1032 * libgomp.map: Export lock routines also @@OMP_2.0.
1033 (GOMP_loop_ordered_dynamic_first,
1034 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1035 GOMP_loop_ordered_static_first): Remove.
1036 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1037 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1038 GOMP_loop_ull_ordered_dynamic_next,
1039 GOMP_loop_ull_ordered_dynamic_start,
1040 GOMP_loop_ull_ordered_guided_next,
1041 GOMP_loop_ull_ordered_guided_start,
1042 GOMP_loop_ull_ordered_runtime_next,
1043 GOMP_loop_ull_ordered_runtime_start,
1044 GOMP_loop_ull_ordered_static_next,
1045 GOMP_loop_ull_ordered_static_start,
1046 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1047 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1048 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1049 (omp_set_schedule, omp_get_schedule,
1050 omp_get_thread_limit, omp_set_max_active_levels,
1051 omp_get_max_active_levels, omp_get_level,
1052 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1053 omp_set_schedule_, omp_set_schedule_8_,
1054 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1055 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1056 omp_get_max_active_levels_, omp_get_level_,
1057 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1058 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1059 New exports @@OMP_3.0.
1060 * omp.h.in (omp_sched_t): New type.
1061 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1062 omp_set_max_active_levels, omp_get_max_active_levels,
1063 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1064 omp_get_active_level): New prototypes.
1065 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1066 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1067 gomp_thread_limit_var, gomp_remaining_threads_count,
1068 gomp_remaining_threads_lock): New variables.
1069 (parse_spincount): New function.
1070 (initialize_env): Call gomp_init_num_threads unconditionally.
1071 Initialize gomp_available_cpus. Call parse_spincount,
1072 initialize gomp_{,throttled_}spin_count_var
1073 depending on presence and value of OMP_WAIT_POLICY and
1074 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1075 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1076 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1077 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1078 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1079 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1080 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1081 (gomp_global_icv): New.
1082 (parse_schedule): Use it. Parse "auto".
1083 (omp_set_num_threads): Use gomp_icv.
1084 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1086 (omp_get_max_threads): Move from parallel.c.
1087 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1088 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1090 (parse_stacksize, parse_wait_policy): New functions.
1091 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1092 both wrappers for compatibility and new locks.
1093 (omp_set_schedule, omp_get_schedule,
1094 omp_get_thread_limit, omp_set_max_active_levels,
1095 omp_get_max_active_levels, omp_get_level,
1096 omp_get_ancestor_thread_num, omp_get_team_size,
1097 omp_get_active_level): New ialias_redirect.
1098 (omp_set_schedule_, omp_set_schedule_8_,
1099 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1100 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1101 omp_get_max_active_levels_, omp_get_level_,
1102 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1103 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1105 * parallel.c: Include limits.h.
1106 (gomp_resolve_num_threads): Add count argument. Rewritten.
1107 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1108 argument to gomp_team_start. Pass 0 as second argument to
1109 gomp_resolve_num_threads.
1110 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1111 if gomp_thread_limit_var != ULONG_MAX.
1112 (omp_in_parallel): Implement using ts.active_level.
1113 (omp_get_max_threads): Move to env.c.
1114 (omp_get_level, omp_get_ancestor_thread_num,
1115 omp_get_team_size, omp_get_active_level): New functions,
1117 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1118 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1119 gomp_iter_dynamic_next instead of the _locked variant and don't take
1120 lock around it, otherwise acquire it before calling
1121 gomp_iter_dynamic_next_locked.
1122 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1123 gomp_iter_dynamic_next instead of the _locked variant and don't take
1125 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1126 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1127 Adjust gomp_team_start caller. Pass count as second argument to
1128 gomp_resolve_num_threads, don't adjust num_threads after the call.
1130 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1131 ws->chunk_size by incr.
1132 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1134 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1136 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1137 (omp_check_defines): Check even the compat defines.
1138 * config/linux/ptrlock.c: New file.
1139 * config/linux/ptrlock.h: New file.
1140 * config/linux/wait.h: New file.
1141 * config/posix/ptrlock.c: New file.
1142 * config/posix/ptrlock.h: New file.
1143 * config/linux/bar.h (gomp_team_barrier_wait,
1144 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1145 (gomp_team_barrier_set_task_pending,
1146 gomp_team_barrier_clear_task_pending,
1147 gomp_team_barrier_set_waiting_for_tasks,
1148 gomp_team_barrier_waiting_for_tasks,
1149 gomp_team_barrier_done): New inlines.
1150 (gomp_barrier_t): Rewritten.
1151 (gomp_barrier_state_t): New typedef.
1152 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1153 gomp_barrier_wait_start): Rewritten.
1154 (gomp_barrier_wait_end): Change second argument to
1155 gomp_barrier_state_t.
1156 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1158 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1160 (gomp_barrier_wait_end): Rewritten.
1161 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1162 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1163 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1164 (gomp_barrier_state_t): New typedef.
1165 (gomp_team_barrier_wait,
1166 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1167 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1168 into the return value. Return gomp_barrier_state_t.
1169 (gomp_team_barrier_set_task_pending,
1170 gomp_team_barrier_clear_task_pending,
1171 gomp_team_barrier_set_waiting_for_tasks,
1172 gomp_team_barrier_waiting_for_tasks,
1173 gomp_team_barrier_done): New inlines.
1174 (gomp_barrier_wait_end): Change second argument to
1175 gomp_barrier_state_t.
1176 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1178 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1179 (gomp_barrier_wait_end): Change second argument to
1180 gomp_barrier_state_t.
1181 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1182 gomp_team_barrier_wake): New functions.
1183 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1185 (gomp_futex_wake, gomp_futex_wait): New variables.
1186 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1187 * config/linux/lock.c: Rewrite to make locks task owned,
1188 for backwards compatibility provide the old entrypoints
1189 if symbol versioning. Include wait.h instead of libgomp.h and
1191 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1192 * config/posix95/lock.c: Rewrite to make locks task owned,
1193 for backwards compatibility provide the old entrypoints
1194 if symbol versioning.
1195 * config/posix/lock.c: Rewrite to make locks task owned,
1196 for backwards compatibility provide the old entrypoints
1197 if symbol versioning.
1198 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1199 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1200 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1201 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1202 (sys_futex0): Return error code.
1203 (futex_wake, futex_wait): If ENOSYS was returned, clear
1204 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1205 (cpu_relax, atomic_write_barrier): New static inlines.
1206 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1207 (futex_wake, futex_wait): If ENOSYS was returned, clear
1208 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1209 (cpu_relax, atomic_write_barrier): New static inlines.
1210 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1211 (sys_futex0): Return error code.
1212 (futex_wake, futex_wait): If ENOSYS was returned, clear
1213 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1214 (cpu_relax, atomic_write_barrier): New static inlines.
1215 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1216 (sys_futex0): Return error code.
1217 (futex_wake, futex_wait): If ENOSYS was returned, clear
1218 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1219 (cpu_relax, atomic_write_barrier): New static inlines.
1220 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1221 (sys_futex0): Return error code.
1222 (futex_wake, futex_wait): If ENOSYS was returned, clear
1223 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1224 (cpu_relax, atomic_write_barrier): New static inlines.
1225 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1226 (sys_futex0): Return error code.
1227 (futex_wake, futex_wait): If ENOSYS was returned, clear
1228 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1229 (cpu_relax, atomic_write_barrier): New static inlines.
1230 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1232 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1233 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1234 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1236 (omp_nest_lock_t): Change owner into void *, add lock field.
1237 * config/posix95/omp-lock.h: Include semaphore.h.
1238 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1239 (omp_lock_t): Use sem_t instead of mutex if semaphores
1241 (omp_nest_lock_t): Likewise. Change owner to void *.
1242 * config/posix/omp-lock.h: Include semaphore.h.
1243 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1244 (omp_lock_t): Use sem_t instead of mutex if semaphores
1246 (omp_nest_lock_t): Likewise. Add owner field.
1248 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1250 * testsuite/libgomp.c/collapse-1.c: New test.
1251 * testsuite/libgomp.c/collapse-2.c: New test.
1252 * testsuite/libgomp.c/collapse-3.c: New test.
1253 * testsuite/libgomp.c/icv-1.c: New test.
1254 * testsuite/libgomp.c/icv-2.c: New test.
1255 * testsuite/libgomp.c/lib-2.c: New test.
1256 * testsuite/libgomp.c/lock-1.c: New test.
1257 * testsuite/libgomp.c/lock-2.c: New test.
1258 * testsuite/libgomp.c/lock-3.c: New test.
1259 * testsuite/libgomp.c/loop-4.c: New test.
1260 * testsuite/libgomp.c/loop-5.c: New test.
1261 * testsuite/libgomp.c/loop-6.c: New test.
1262 * testsuite/libgomp.c/loop-7.c: New test.
1263 * testsuite/libgomp.c/loop-8.c: New test.
1264 * testsuite/libgomp.c/loop-9.c: New test.
1265 * testsuite/libgomp.c/nested-3.c: New test.
1266 * testsuite/libgomp.c/nestedfn-6.c: New test.
1267 * testsuite/libgomp.c/sort-1.c: New test.
1268 * testsuite/libgomp.c/task-1.c: New test.
1269 * testsuite/libgomp.c/task-2.c: New test.
1270 * testsuite/libgomp.c/task-3.c: New test.
1271 * testsuite/libgomp.c/task-4.c: New test.
1272 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1273 to C++ testsuite default compiler options.
1274 * testsuite/libgomp.c++/collapse-1.C: New test.
1275 * testsuite/libgomp.c++/collapse-2.C: New test.
1276 * testsuite/libgomp.c++/ctor-10.C: New test.
1277 * testsuite/libgomp.c++/for-1.C: New test.
1278 * testsuite/libgomp.c++/for-2.C: New test.
1279 * testsuite/libgomp.c++/for-3.C: New test.
1280 * testsuite/libgomp.c++/for-4.C: New test.
1281 * testsuite/libgomp.c++/for-5.C: New test.
1282 * testsuite/libgomp.c++/loop-8.C: New test.
1283 * testsuite/libgomp.c++/loop-9.C: New test.
1284 * testsuite/libgomp.c++/loop-10.C: New test.
1285 * testsuite/libgomp.c++/task-1.C: New test.
1286 * testsuite/libgomp.c++/task-2.C: New test.
1287 * testsuite/libgomp.c++/task-3.C: New test.
1288 * testsuite/libgomp.c++/task-4.C: New test.
1289 * testsuite/libgomp.c++/task-5.C: New test.
1290 * testsuite/libgomp.c++/task-6.C: New test.
1291 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1292 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1293 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1294 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1295 * testsuite/libgomp.fortran/collapse1.f90: New test.
1296 * testsuite/libgomp.fortran/collapse2.f90: New test.
1297 * testsuite/libgomp.fortran/collapse3.f90: New test.
1298 * testsuite/libgomp.fortran/collapse4.f90: New test.
1299 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1300 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1301 * testsuite/libgomp.fortran/lib4.f90: New test.
1302 * testsuite/libgomp.fortran/lock-1.f90: New test.
1303 * testsuite/libgomp.fortran/lock-2.f90: New test.
1304 * testsuite/libgomp.fortran/nested1.f90: New test.
1305 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1306 * testsuite/libgomp.fortran/strassen.f90: New test.
1307 * testsuite/libgomp.fortran/tabs1.f90: New test.
1308 * testsuite/libgomp.fortran/tabs2.f: New test.
1309 * testsuite/libgomp.fortran/task1.f90: New test.
1310 * testsuite/libgomp.fortran/task2.f90: New test.
1311 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1312 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1313 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1314 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1315 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1317 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1320 * testsuite/libgomp.c++/ctor-11.C: New test.
1321 * testsuite/libgomp.c++/ctor-12.C: New test.
1323 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1325 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1327 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1330 * testsuite/libgomp.c/atomic-5.c: New test.
1331 * testsuite/libgomp.c/atomic-6.c: New test.
1332 * testsuite/libgomp.c/autopar-1.c: New test.
1334 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1336 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1337 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1338 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1339 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1340 * configure: Regenerate.
1341 * Makefile.in, testsuite/Makefile.in: Likewise.
1343 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1346 * aclocal.m4: Regenerate.
1347 * configure: Regenerate.
1349 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1352 * testsuite/libgomp.c/atomic-4.c: New test.
1355 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1356 (gomp_iter_guided_next): Likewise.
1357 * testsuite/libgomp.c/pr35625.c: New test.
1359 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1361 * aclocal.m4: Regenerate.
1362 * configure: Likewise.
1363 * Makefile.in: Likewise.
1364 * testsuite/Makefile.in: Likewise.
1366 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1369 * testsuite/libgomp.c++/pr35185.C: New test.
1371 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1374 * testsuite/libgomp.c/pr35549.c: New test.
1376 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1378 * testsuite/libgomp.c/atomic-3.c: New test.
1380 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1383 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1386 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1389 * configure.ac: Add ACX_HEADER_STRING.
1390 * env.c: Include strings.h.
1391 * aclocal.m4: Regenerate.
1392 * config.h.in: Regenerate.
1393 * configure: Regenerate.
1394 * Makefile.in: Regenerate.
1395 * testsuite/Makefile.in: Regenerate.
1397 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1400 * testsuite/libgomp.c/pr35196.c: New test.
1403 * testsuite/libgomp.fortran/pr35130.f90: New test.
1404 * testsuite/libgomp.c/pr35130.c: New test.
1406 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1409 * testsuite/libgomp.c/pr33880.c: New test.
1410 * testsuite/libgomp.fortran/pr33880.f90: New test.
1412 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1414 * configure: Regenerate.
1416 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1418 * configure.ac: Move futex checking into ../config/futex.m4.
1419 * configure: Rebuilt.
1420 * aclocal.m4: Rebuilt.
1421 * Makefile.in: Rebuilt.
1423 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1424 2007-10-15 ../config/tls.m4 change.
1426 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1429 * testsuite/libgomp.c/pr34513.c: New test.
1430 * testsuite/libgomp.c++/pr34513.C: New test.
1432 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1435 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1437 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1439 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1441 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1443 * testsuite/libgomp.c/private-1.c: New test.
1445 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1446 Paolo Bonzini <bonzini@gnu.org>
1448 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1449 instead of 'VPATH ='.
1450 * Makefile.in: Regenerate.
1452 2007-11-23 Matthias Klose <doko@ubuntu.com>
1454 * configure.ac: Adjust makeinfo version check.
1455 * configure: Regenerate.
1457 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1460 * testsuite/libgomp.fortran/pr34020.f90: New test.
1462 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1465 * testsuite/libgomp.c++/atomic-1.C: New test.
1467 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1470 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1471 Make x and y integers rather than (implicit) reals. Add private (j)
1472 clause to the last omp parallel.
1474 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1476 * configure: Regenerate following changes to ../config/tls.m4.
1478 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1480 * testsuite/libgomp.fortran/stack.f90: New test.
1482 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1484 * config/mingw32/proc.c: New file.
1486 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1488 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1489 (main): Use __get_cpuid to get i386 target fetaures.
1490 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1491 (main): Use __get_cpuid to get x86_64 target fetaures.
1493 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1496 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1497 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1499 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1502 * testsuite/libgomp.fortran/pr32550.f90: New test.
1503 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1505 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1507 * aclocal.m4: Regenerated.
1509 2007-07-05 Tobias Burnus <burnus@net-b.de>
1512 * testsuite/libgomp.fortran/pr32359.f90: New.
1514 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1517 * sections.c (GOMP_parallel_sections_start): Only decrease
1518 number of threads to COUNT if dyn_var is true.
1519 * testsuite/libgomp.c/pr32468.c: New test.
1521 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1524 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1526 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1529 * testsuite/libgomp.c/pr32362-1.c: New test.
1530 * testsuite/libgomp.c/pr32362-2.c: New test.
1531 * testsuite/libgomp.c/pr32362-3.c: New test.
1533 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1535 * team.c (gomp_team_start): Fix setting up thread_attr
1538 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1540 * configure: Regenerate.
1542 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1544 * Makefile.in: Regenerate.
1545 * configure: Regenerate.
1546 * aclocal.m4: Regenerate.
1547 * testsuite/Makefile.in: Regenerate.
1549 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1551 * config/linux/proc.c: New file.
1554 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1556 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1558 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1560 2007-04-16 Matthias Klose <doko@debian.org>
1562 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1563 flags if not building with -m64.
1564 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1565 flag for i?86-*-* targets, if current target matches -m64.
1567 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1569 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1570 * Makefile.in: Regenerate.
1572 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1575 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1577 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1579 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1581 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1583 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1584 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1585 (parse_affinity): New function.
1586 (initialize_env): Call it and gomp_init_affinity.
1587 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1588 create new pthread_attr_t and call gomp_init_thread_affinity
1589 on it for each thread before passing the attribute to pthread_create.
1590 * config/linux/affinity.c: New file.
1591 * config/posix/affinity.c: New file.
1592 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1593 * configure: Rebuilt.
1594 * config.h.in: Rebuilt.
1595 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1596 * Makefile.in: Rebuilt.
1598 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1600 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1602 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1603 and use it if found.
1605 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1607 * testsuite/config/default.exp: New file.
1608 * testsuite/lib/libgomp.exp: New file.
1609 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1610 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1611 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1612 (libgomp_load): Remove.
1613 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1614 always_ld_library_path, not ld_library_path. Set additional_flags
1615 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1616 (target_compile): Do not call libgomp_init. Append lang_library_path
1617 and lang_link_flags to options.
1618 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1619 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1621 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1622 always_ld_library_path. Set LD_LIBRARY_PATH here.
1623 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1624 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1625 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1627 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1628 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1629 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1630 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1631 * testsuite/libgomp.c/atomic-10.c: Ditto.
1633 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1635 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1636 dg-final cleanup-modules line.
1637 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1638 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1639 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1640 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1641 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1642 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1643 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1645 2007-03-18 Andreas Schwab <schwab@suse.de>
1647 * acinclude.m4: Adjust regular expression for ld version
1649 * configure: Regenerate.
1651 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1653 * Makefile.am: Add install-pdf target as copied from
1654 automake v1.10 rules.
1655 * Makefile.in: Regenerate
1657 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1660 * configure: Regenerate.
1663 * testsuite/libgomp.c++/pr30703.C: New test.
1665 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1668 2006-07-05 Eric Christopher <echristo@apple.com>
1669 * configure.ac: Depend addition of -pthread on host OS.
1670 * configure: Regenerate.
1672 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1674 * libgomp.texi: Fix spacing after abbreviations.
1676 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1679 * configure.ac: Add check for makeinfo
1680 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1681 if an appropiate version of makeinfo is found.
1682 * aclocal.m4: Regenerated.
1683 * configure: Regenerated.
1684 * Makefile.in: Regenerated.
1685 * testsuite/Makefile.in: Regenerated.
1687 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1690 * libgomp.texi: More about implementation-dependent settings.
1692 2007-01-26 Tobias Burnus <burnus@net-b.de>
1694 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1696 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1699 * testsuite/libgomp.c/pr30494.c: New test.
1701 2007-01-15 Tom Tromey <tromey@redhat.com>
1703 * configure: Rebuilt.
1704 * configure.ac: Fixed comment.
1706 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1708 * libgomp.texi: Document implementation specific default values of
1709 environment variables.
1711 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1714 * libgomp.texi: New file.
1715 * configure.ac: Add --enable-generated-files-in-srcdir option.
1716 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1718 * Makefile.in: Regenerated.
1719 * config.h.in: Regenerated.
1720 * testsuite/Makefile.in: Regenerated.
1723 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1726 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1728 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1730 * configure: Regenerate.
1732 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1735 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1736 start if there shouldn't be any loop iterations.
1737 (gomp_loop_ordered_static_start): Remove start == end test.
1738 * testsuite/libgomp.c/pr29947-1.c: New test.
1739 * testsuite/libgomp.c/pr29947-2.c: New test.
1741 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1743 * configure.tgt: Force initial-exec TLS model on Linux only.
1745 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1747 * configure: Regenerated.
1749 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1751 * env.c (parse_schedule): Reject out of range values.
1752 (parse_unsigned_long): Reject out of range, negative or zero values.
1754 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1757 * testsuite/libgomp.fortran/pr29629.f90: New test.
1759 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1762 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1763 * config/posix95: New directory.
1764 * config/posix95/omp-lock.h: New file.
1765 * config/posix95/lock.c: Likewise.
1767 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1769 * aclocal.m4: Regenerate.
1770 * configure: Regenerate.
1772 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1774 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1777 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1779 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1781 * configure: Regenerate.
1782 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1784 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1788 * testsuite/libgomp.c/nestedfn-4.c: New test.
1789 * testsuite/libgomp.c/nestedfn-5.c: New test.
1790 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1793 * testsuite/libgomp.fortran/condinc1.f: New test.
1794 * testsuite/libgomp.fortran/condinc2.f: New test.
1795 * testsuite/libgomp.fortran/condinc3.f90: New test.
1796 * testsuite/libgomp.fortran/condinc4.f90: New test.
1797 * testsuite/libgomp.fortran/condinc1.inc: New file.
1799 2006-09-18 Tom Tromey <tromey@redhat.com>
1801 * configure: Rebuilt.
1803 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1806 PR preprocessor/14634
1807 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1809 * configure: Regenerate.
1811 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1813 * testsuite/libgomp.fortran/reduction3.f90: Change
1814 -2147483648 to -huge(i)-1 to avoid overflow.
1815 * testsuite/libgomp.fortran/reduction4.f90: Change
1816 Z'ffffffff' to not(0) to avoid overflow.
1818 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1821 * Makefile.am (libsubincludedir): New.
1822 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1823 * Makefile.in: Regenerate.
1825 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1828 * env.c: Include ctype.h.
1829 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1830 leading and/or trailing whitespace and compare strings case
1833 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1836 * testsuite/libgomp.fortran/pr28390.f: New test.
1838 2006-07-05 Eric Christopher <echristo@apple.com>
1840 * configure.ac: Depend addition of -pthread on host OS.
1841 * configure: Regenerate.
1843 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1845 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1846 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1849 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1853 * configure.ac: If neither --enable-linux-futex nor
1854 --disable-linux-futex is passed, determine the default by checking
1855 for compiling and/or running against NPTL. With --enable-linux-futex,
1856 check if SYS_gettid and SYS_futex are defined.
1857 * configure: Rebuilt.
1859 2006-06-14 Richard Henderson <rth@redhat.com>
1862 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1863 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1865 2006-06-09 Richard Henderson <rth@redhat.com>
1867 * env.c (gomp_nthreads_var): Change to unsigned long.
1868 (gomp_run_sched_chunk): Likewise.
1869 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1870 (initialize_env): Initialize gomp_thread_attr.
1871 * libgomp.h (gomp_nthreads_var): Update decl.
1872 (gomp_run_sched_chunk): Likewise.
1873 (gomp_thread_attr): Declare.
1874 * team.c (gomp_thread_attr): Export.
1875 (initialize_team): Don't initialize it.
1877 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1880 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1881 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1883 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1885 * config/mingw32/time.c: New file.
1886 * configure.tgt: Use it.
1888 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1890 * Makefile.am: Add install-html target. Add install-html to .PHONY
1891 * Makefile.in: Regenerate.
1893 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1896 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1897 * testsuite/libgomp.c/critical-1.c: Likewise.
1898 * testsuite/libgomp.c/loop-1.c: Likewise.
1899 * testsuite/libgomp.c/loop-2.c: Likewise.
1900 * testsuite/libgomp.c/single-1.c: Likewise.
1901 * testsuite/libgomp.c/ordered-1.c: Likewise.
1902 * testsuite/libgomp.c/ordered-2.c: Likewise.
1904 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1907 * libgomp.fortran/pr27416-1.f90: New test.
1909 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1912 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1913 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1915 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1918 * testsuite/libgomp.c/pr26943-1.c: New test.
1919 * testsuite/libgomp.c/pr26943-2.c: New test.
1920 * testsuite/libgomp.c/pr26943-3.c: New test.
1921 * testsuite/libgomp.c/pr26943-4.c: New test.
1922 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1923 * testsuite/libgomp.c++/pr26943.C: New test.
1925 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1928 * testsuite/libgomp.c++/pr27337.C: New test.
1930 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1933 * testsuite/libgomp.c/pr26171.c: New test.
1935 2006-04-25 Richard Henderson <rth@redhat.com>
1938 * configure.ac: Use GCC_CHECK_TLS.
1939 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1940 * Makefile.in, aclocal.m4, configure: Regenerate.
1942 2006-04-10 Matthias Klose <doko@debian.org>
1944 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1945 directory names containing underscores.
1947 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1950 * testsuite/libgomp.c++/pr26691.C: New test.
1952 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1954 * testsuite/libgomp.fortran/retval2.f90: New test.
1956 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1958 * testsuite/libgomp.c++: New directory.
1960 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1962 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1963 * config/posix/sem.c: Implement the above.
1965 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1967 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1968 define HAVE_BROKEN_POSIX_SEMAPHORES.
1969 * configure: Rebuilt.
1970 * config.h.in: Rebuilt.
1972 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1975 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1976 for the other pthread check.
1977 * configure: Regenerate.
1978 * config.h.in: Regenerate.
1980 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1984 * Makefile.am (fincludedir): New variable.
1985 (nodist_include_HEADERS): Remove Fortran files.
1986 (nodist_finclude_HEADERS): New variable.
1987 * Makefile.in: Regenerated.
1989 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1991 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1992 Remove tests for returning assumed character length arrays.
1994 2006-02-12 Roger Sayle <roger@eyesopen.com>
1995 John David Anglin <dave@hiauly1.hia.nrc.ca>
1998 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2000 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2002 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2004 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2006 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2007 part of LD_LIBRARY_PATH manually.
2009 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2012 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2015 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2018 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2019 * configure.ac (PERL): Don't set.
2020 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2021 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2022 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2023 * omp.h.in: Wrap the new configure substitutions with @ characters.
2024 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2025 * aclocal.m4, configure, Makefile.in: Regenerate.
2026 * mkomp_h.pl: Delete.
2028 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2031 * configure.ac: Use GCC_HEADER_STDINT.
2032 * libgomp.h: Include gstdint.h.
2033 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2034 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2036 2006-01-24 Richard Henderson <rth@redhat.com>
2039 * configure.ac: Add AM_MAINTAINER_MODE.
2040 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2042 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2044 * Makefile.in: Regenerate.
2045 * testsuite/Makefile.in: Regenerate.
2046 * aclocal.m4: Regenerate.
2048 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2050 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2052 * configure.ac: Add check for loadavg.h.
2053 (link_gomp): Adjust comment.
2054 * configure: Regenerate.
2055 * config.h.in: Regenerate.
2057 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2060 * configure.ac: Remove check for alloca.h.
2061 * configure: Regenerate.
2062 * config.h.in: Regenerate.
2063 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2064 * team.c: Remove use of alloca.h.
2065 Call gomp_alloca instead of alloca.
2067 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2070 * team.c: Add include of alloca.h.
2071 * configure.ac: Add check for alloca.h.
2072 * configure: Regenerate.
2073 * config.h.in: Regenerate.
2075 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2078 * testsuite/libgomp.fortran/pr25219.f90: New test.
2080 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2082 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2083 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2084 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2085 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2086 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2087 testsuite/libgomp.fortran/threadprivate1.f90,
2088 testsuite/libgomp.fortran/threadprivate2.f90,
2089 testsuite/libgomp.fortran/threadprivate3.f90,
2090 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2091 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2092 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2093 effective-target to TLS runtime.
2095 * testsuite/libgomp.fortran/pr25162.f: Require
2096 effective-target TLS runtime.
2098 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2100 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2101 * testsuite/libgomp.c/nestedfn-3.c: New test.
2103 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2106 * testsuite/libgomp.fortran/pr25162.f: New test.
2108 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2110 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2111 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2113 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2115 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2116 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2117 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2118 single.c, team.c, work.c, config/linux/alpha/futex.h,
2119 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2120 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2121 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2122 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2123 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2124 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2125 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2128 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2130 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2131 to nodist_noinst_HEADERS.
2132 * Makefile.in: Rebuilt.
2134 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2135 add integer count field.
2136 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2137 omp_nest_lock_t type change.
2138 (omp_init_nest_lock): Likewise. Initialize count to 0.
2139 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2141 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2143 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2144 Increment count if successful and return the new nesting level.
2145 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2146 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2147 * testsuite/libgomp.c/lib-1.c: New test.
2148 * testsuite/libgomp.fortran/lib1.f90: New test.
2149 * testsuite/libgomp.fortran/lib2.f: New test.
2150 * testsuite/libgomp.fortran/lib3.f: New test.
2152 2005-11-17 Richard Henderson <rth@redhat.com>
2155 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2156 * configure.ac (link_gomp): New. Substitute it.
2157 (AC_CONFIG_FILES): Add libgomp.spec.
2158 * libgomp.spec.in: New file.
2159 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2160 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2162 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2164 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2165 reduction(-:var) behaving the same as reduction(+:var).
2166 * testsuite/libgomp.c/reduction-4.c: New test.
2168 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2170 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2171 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2172 testsuite/libgomp.c/copyin-3.c,
2173 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2174 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2175 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2176 testsuite/libgomp.c++/pr24455.C,
2177 testsuite/libgomp.fortran/threadprivate1.f90,
2178 testsuite/libgomp.fortran/threadprivate2.f90,
2179 testsuite/libgomp.fortran/threadprivate3.f90,
2180 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2181 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2182 testsuite/libgomp.fortran/omp_parse3.f90: Require
2183 effective-target TLS.
2185 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2189 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2192 * team.c (initialize_team): Pass NULL rather than free as
2193 pthread_key_create destructor. Initialize thread specific data
2194 pointer in initial thread to a static local variable rather than
2197 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2199 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2200 its location to ld_library_path.
2202 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2204 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2206 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2208 * testsuite/libgomp.c: Rename from libgomp.dg.
2210 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2212 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2213 threadprivate variable 'i'.
2215 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2217 * config/linux/s390/futex.h: New file.
2218 * configure.tgt: Use it.
2220 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2221 before the parallel.
2223 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2226 * testsuite/libgomp.c++/master-1.C: New test.
2228 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2230 * testsuite/libgomp.dg/copyin-3.c: New test.
2232 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2234 * testsuite/libgomp.fortran/retval1.f90: New test.
2235 * testsuite/libgomp.fortran/vla7.f90: New test.
2237 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2239 * testsuite/libgomp.fortran/vla2.f90: New test.
2240 * testsuite/libgomp.fortran/vla3.f90: New test.
2241 * testsuite/libgomp.fortran/vla4.f90: New test.
2242 * testsuite/libgomp.fortran/vla5.f90: New test.
2243 * testsuite/libgomp.fortran/vla6.f90: New test.
2245 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2247 * config/linux/sparc/futex.h: New file.
2248 * configure.tgt: Use it.
2249 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2251 * critical.c: Include stdlib.h.
2252 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2253 ignoring return value.
2254 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2255 LIBGOMP_CHECK_SYNC_BUILTINS check.
2256 * configure: Rebuilt.
2258 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2260 * testsuite/libgomp.fortran/vla1.f90: New test.
2262 2005-10-31 Richard Henderson <rth@redhat.com>
2264 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2265 setting 's' in different threads.
2267 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2269 * libgomp.h (attribute_hidden, ialias): Define.
2270 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2271 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2272 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2273 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2274 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2275 omp_test_lock, omp_test_nest_lock): Likewise.
2276 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2277 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2278 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2279 omp_test_lock, omp_test_nest_lock): Likewise.
2280 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2281 omp_get_dynamic, omp_get_nested): Likewise.
2282 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2283 omp_get_thread_num, omp_in_parallel): Likewise.
2284 * fortran.c (ialias_redirect): Define.
2285 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2286 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2287 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2288 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2289 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2290 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2291 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2292 omp_get_wtime): Add ialias_redirect.
2294 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2296 * fortran.c: Include stdlib.h.
2298 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2300 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2301 * Makefile.in: Regenerated.
2303 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2305 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2306 * libgomp_f.h.in (omp_check_defines): New function.
2307 * env.c: Include libgomp_f.h.
2308 (initialize_env): Call omp_check_defines.
2310 * testsuite/libgomp.dg/copyin-2.c: New test.
2311 * testsuite/libgomp.c++/copyin-2.C: New test.
2312 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2314 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2315 * testsuite/libgomp.fortran/sharing2.f90: New test.
2317 * testsuite/libgomp.dg/copyin-1.c: New test.
2318 * testsuite/libgomp.c++/copyin-1.C: New test.
2320 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2322 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2324 * testsuite/libgomp.fortran/workshare1.f90: New test.
2326 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2328 * libgomp.fortran/sharing1.f90: New test.
2330 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2333 * testsuite/libgomp.c++/loop-7.C: New test.
2335 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2337 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2338 * testsuite/libgomp.fortran/reduction6.f90: New test.
2339 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2341 2005-10-23 Richard Henderson <rth@redhat.com>
2343 * testsuite/libgomp.c++/ctor-1.C: New.
2344 * testsuite/libgomp.c++/ctor-2.C: New.
2345 * testsuite/libgomp.c++/ctor-3.C: New.
2346 * testsuite/libgomp.c++/ctor-4.C: New.
2347 * testsuite/libgomp.c++/ctor-5.C: New.
2348 * testsuite/libgomp.c++/ctor-6.C: New.
2349 * testsuite/libgomp.c++/ctor-7.C: New.
2350 * testsuite/libgomp.c++/ctor-8.C: New.
2351 * testsuite/libgomp.c++/ctor-9.C: New.
2353 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2356 * testsuite/libgomp.c++/pr24455-1.C: New test.
2357 * testsuite/libgomp.c++/pr24455.C: New test.
2358 * testsuite/libgomp.dg/pr24455-1.c: New test.
2359 * testsuite/libgomp.dg/pr24455.c: New test.
2361 2005-10-20 Richard Henderson <rth@redhat.com>
2363 * testsuite/libgomp.c++/loop-6.C: New.
2364 * testsuite/libgomp.dg/loop-3.c: New.
2366 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2368 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2370 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2373 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2375 * testsuite/libgomp.fortran/jacobi.f: New test.
2377 2005-10-19 Richard Henderson <rth@redhat.com>
2379 * configure.tgt (i?86-linux): Default to with_arch instead of
2380 CFLAGS. Add -mtune to match target_cpu.
2381 (x86_64-linux): Tune to i686.
2383 * fortran.c (omp_test_nest_lock_): Fix typo.
2385 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2387 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2388 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2389 * testsuite/libgomp.dg/ordered-3.c: New test.
2391 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2392 Remove volatile keyword.
2394 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2395 in COMMON block to avoid warnings on 64-bit targets.
2397 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2399 * testsuite/libgomp.dg/shared-3.c: New test.
2401 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2403 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2404 * testsuite/libgomp.fortran/reduction5.f90: New test.
2406 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2408 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2410 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2411 flush loop now that __sync_synchronize has proper memory barrier.
2412 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2413 Add -ffixed-form to dg-options.
2415 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2417 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2418 from subdirectories.
2419 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2420 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2421 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2422 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2423 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2424 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2425 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2426 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2427 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2428 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2429 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2430 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2431 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2432 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2433 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2434 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2435 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2436 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2437 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2438 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2439 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2440 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2441 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2442 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2443 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2445 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2447 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2448 lang_library_path exists. Use find instead of glob to gather tests.
2449 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2451 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2453 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2454 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2455 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2456 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2457 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2458 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2459 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2460 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2461 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2462 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2463 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2464 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2465 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2467 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2469 * testsuite/libgomp.dg/vla-1.c: New test.
2471 * testsuite/libgomp.fortran/reference2.f90: New test.
2473 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2474 declaration of omp_get_thread_num.
2475 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2478 * testsuite/libgomp.fortran/reduction1.f90: New test.
2479 * testsuite/libgomp.fortran/reduction2.f90: New test.
2480 * testsuite/libgomp.fortran/reduction3.f90: New test.
2481 * testsuite/libgomp.fortran/reduction4.f90: New test.
2483 2005-10-13 Richard Henderson <rth@redhat.com>
2485 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2486 * Makefile.in: Regenerate.
2487 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2488 * libgomp.h: Include bar.h.
2489 (struct gomp_barrier): Remove.
2490 (struct gomp_team): Add barrier. Replace master_barrier with
2491 master_release. Replace threads with ordered_release.
2492 (struct gomp_thread): Replace barrier with release.
2493 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2494 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2495 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2496 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2497 (GOMP_single_copy_end): Likewise.
2498 * team.c (gomp_threads_dock): New.
2499 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2500 (gomp_thread_start): Use gomp_barrier_wait.
2501 (new_team, free_team): Update for gomp_team changes.
2502 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2503 (gomp_team_end): Use gomp_barrier_wait.
2504 (initialize_team): Update for gomp_thread changes.
2505 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2506 (gomp_work_share_end_nowait): Use atomic ops when available.
2507 * config/linux/bar.c, config/linux/bar.h: New files.
2508 * config/posix/bar.c, config/posix/bar.h: New files.
2510 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2512 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2513 * testsuite/libgomp.dg/single-2.c: New test.
2515 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2516 lang_link_flags): Unset, so that they aren't inherited from previously
2519 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2521 2005-10-12 Richard Henderson <rth@redhat.com>
2523 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2524 (libgomp_init): Use lang_test_file, lang_library_path, and
2525 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2527 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2528 (lang_test_file, lang_link_flags): New.
2529 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2531 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2532 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2533 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2534 testsuite/libgomp.c++/parallel-1.C,
2535 testsuite/libgomp.c++/reduction-1.C,
2536 testsuite/libgomp.c++/reduction-2.C,
2537 testsuite/libgomp.c++/reduction-3.C,
2538 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2539 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2540 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2541 New files, largely cribbed from the C testsuite.
2543 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2545 * testsuite/libgomp.fortran/character1.f90: New test.
2546 * testsuite/libgomp.fortran/character2.f90: New test.
2548 * testsuite/libgomp.dg/nested-1.c: New test.
2549 * testsuite/libgomp.dg/nested-2.c: New test.
2550 * testsuite/libgomp.fortran/do1.f90: New test.
2551 * testsuite/libgomp.fortran/do2.f90: New test.
2553 * testsuite/libgomp.fortran/reference1.f90: New test.
2555 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2557 * testsuite/libgomp.dg/reduction-1.c: New test.
2558 * testsuite/libgomp.dg/reduction-2.c: New test.
2559 * testsuite/libgomp.dg/reduction-3.c: New test.
2561 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2563 * testsuite/libgomp.dg/atomic-1.c: New test.
2564 * testsuite/libgomp.dg/atomic-2.c: New test.
2566 2005-10-09 Richard Henderson <rth@redhat.com>
2568 * critical.c (atomic_lock): New.
2569 (initialize_critical): Initialize it.
2570 (GOMP_atomic_start, GOMP_atomic_end): New.
2571 * libgomp.map: Export them.
2572 * libgomp_g.h: Declare them.
2574 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2576 2005-10-02 Richard Henderson <rth@redhat.com>
2578 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2579 to XCFLAGS instead of CFLAGS.
2581 2005-09-30 Richard Henderson <rth@redhat.com>
2583 * configure.ac: Determine whether -pthread or -lpthread is needed.
2584 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2585 * Makefine.in, configure: Rebuild.
2587 2005-09-28 Richard Henderson <rth@redhat.com>
2589 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2590 * testsuite/libgomp.dg/omp-single-3.c: New test.
2592 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2594 * testsuite/libgomp.dg/omp-single-2.c: New test.
2595 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2597 2005-09-27 Richard Henderson <rth@redhat.com>
2599 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2600 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2602 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2604 * testsuite/libgomp.dg/omp-loop03.c: New test.
2606 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2608 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2610 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2612 * testsuite/libgomp.dg/omp-single-1.c: New test.
2613 * testsuite/libgomp.dg/shared-1.c: Return 0.
2614 Add prototype for abort.
2615 * testsuite/libgomp.dg/shared-2.c: Likewise.
2617 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2619 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2622 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2624 * testsuite/libgomp.dg/shared-1.c: New test.
2625 * testsuite/libgomp.dg/shared-2.c: New test.
2627 2005-09-24 Richard Henderson <rth@redhat.com>
2629 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2631 2005-09-24 Richard Henderson <rth@redhat.com>
2633 * iter.c (gomp_iter_static_next): Round up when computing number
2634 of iterations. Don't bother distributing a remainder equally.
2636 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2637 Don't call srand. Zero b before testing.
2640 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2642 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2643 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2645 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2647 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2648 without !$omp end do, followed immediately by subroutine end.
2650 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2652 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2654 2005-09-22 Richard Henderson <rth@redhat.com>
2656 * critical.c (GOMP_critical_name_start): Change argument to void**.
2657 Reuse the pointer space if the mutex fits.
2658 (GOMP_critical_name_end): Likewise.
2659 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2660 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2661 (GOMP_critical_name_end): Likewise.
2662 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2663 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2665 2005-09-20 Richard Henderson <rth@redhat.com>
2667 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2668 (create_lock_lock): New.
2669 (initialize_critical): Initialize it.
2670 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2671 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2673 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2675 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2677 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2679 * testsuite/libgomp.dg/omp-loop01.c: New test.
2680 * testsuite/libgomp.dg/omp-loop02.c: New test.
2682 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2684 * configure.ac (AC_PROG_FC): Add.
2685 (USE_FORTRAN): New automake conditional.
2686 * configure: Rebuilt.
2687 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2688 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2689 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2690 Add rules to build them.
2691 * Makefile.in: Rebuilt.
2692 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2694 * libgomp.map: Add Fortran wrappers.
2695 * libgomp_f.h.in: New file.
2696 * omp_lib.h.in: New file.
2697 * omp_lib.f90.in: New file.
2698 * fortran.c: New file.
2699 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2700 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2701 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2702 libgfortran has been built.
2703 * testsuite/libgomp.fortran/fortran.exp: New file.
2704 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2705 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2706 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2707 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2708 * testsuite/libgomp.fortran/omp_hello.f: New test.
2709 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2710 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2711 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2712 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2713 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2714 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2715 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2716 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2718 2005-08-30 Richard Henderson <rth@redhat.com>
2720 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2721 function for when aliases are not usable.
2722 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2723 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2724 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2725 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2726 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2727 GOMP_loop_ordered_guided_next): Likewise.
2728 * ordered.c (GOMP_ordered_start): Likewise.
2730 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2732 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2733 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2734 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2735 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2736 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2737 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2738 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2739 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2740 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2742 2005-07-07 Eric Christopher <echristo@redhat.com>
2743 Diego Novillo <dnovillo@redhat.com>
2745 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2746 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2748 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2749 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2750 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2751 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2752 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2753 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2754 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2756 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2758 * TOPLEVEL.patch: Remove.
2760 2005-05-16 Richard Henderson <rth@redhat.com>
2762 * configure.ac: Test for clock_gettime.
2763 * config.h.in, configure: Rebuild.
2764 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2765 (omp_get_wtime): Use clock_gettime if available.
2766 (omp_get_wtick): Use clock_getres if available.
2768 2005-05-11 Richard Henderson <rth@redhat.com>
2770 * config/linux/ia64/futex.h: New file.
2771 * configure.tgt: Use it.
2773 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2775 2005-05-07 Richard Henderson <rth@redhat.com>
2777 * config/linux/powerpc/futex.h: New file.
2778 * configure.tgt: Use it.
2780 * config/linux/i486/futex.h: Merge ...
2781 * config/linux/x86_64/futex.h: ... into ...
2782 * config/linux/x86/futex.h: ... here.
2783 * configure.tgt: Update to match.
2785 2005-05-06 Richard Henderson <rth@redhat.com>
2787 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2788 * config/linux/i486/futex.h: Likewise.
2789 * config/linux/x86_64/futex.h: Likewise.
2791 * config/linux/lock.c: New file.
2792 * config/linux/omp-lock.h: New file.
2794 * critical.c, env.h: Don't include omp.h
2795 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2796 * config/posix/time.c: Likewise.
2797 * config/posix/omp-lock.h: New file.
2798 * libgomp.h: Include omp-lock.h and omp.h.
2799 * Makefile.am (nodist_include_HEADERS): New.
2801 * configure.ac (PERL): New.
2802 * mkomp_h.pl: New file.
2803 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2805 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2807 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2808 build directory. Re-add -march=i486 hack.
2810 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2811 (libgomp_link_flags): Remove.
2812 (libgomp_initialized): Remove.
2813 (libgomp_init): Don't protect from reinitialization. Copy code
2814 from libstdc++ for getting the multilib set correctly.
2816 2005-05-05 Richard Henderson <rth@redhat.com>
2818 * config/linux/alpha/futex.h: New file.
2819 * configure.tgt (alpha*-*-linux*): Use it.
2821 * config/posix/mutex.c: New file.
2822 * config/posix/sem.c: Use libgomp.h.
2824 * configure.tgt (x86_64-linux): Also test CC for -m32.
2825 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2827 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2830 * Makefile.am (SUBDIRS): New.
2831 (libgomp_la_LDFLAGS): Add -lpthread.
2832 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2833 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2835 * libgomp_g.h: New file.
2836 * libgomp.h: Split out all public declarations to libgomp_g.h.
2837 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2838 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2839 * config/linux/sem.h: Likewise.
2840 * config/posix/sem.h: Likewise.
2842 * Makefile.am (AM_LDFLAGS): New.
2843 (libgomp_version_script): Split out from ...
2844 (libgomp_la_LDFLAGS): ... here.
2845 (libgomp_version_info): New.
2846 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2847 (LIBGOMP_ENABLE): New.
2848 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2849 (LIBGOMP_ENABLE_SYMVERS): New.
2850 * configure.ac (AC_INIT): Version 1.0.
2851 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2852 (enable-linux-futex): Likewise. Rename from enable-futex.
2853 (libtool_VERSION): New.
2854 (LIBGOMP_ENABLE_SYMVERS): Use it.
2855 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2856 * Makefile.in, aclocal.m4, configure: Rebuild.
2858 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2859 (gomp_mutex_unlock_slow): Fix typo.
2860 * config/linux/sem.c: Similarly.
2861 (gomp_sem_post_slow): Fix typo.
2862 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2863 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2864 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2866 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2867 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2868 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2869 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2870 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2871 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2872 LDFLAGS. Pull enable_futex check to top-level.
2873 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2874 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2876 First attempt at real configury.
2877 * Makefile, config.h: Remove file.
2878 * Makefile.am, Makefile.in: New file.
2879 * acinclude.m4 aclocal.m4: New file.
2880 * configure.ac, configure.tgt, configure: New file.
2882 * config/posix/lock.c: Rename from sys-lock.c.
2883 * config/posix/mutex.h: Rename from sys-mutex.h.
2884 * config/posix/sem.c: Rename from sys-sem.c.
2885 * config/posix/sem.h: Rename from sys-sem.h.
2886 * config/posix/proc.c: Rename from sys-proc.c.
2887 * config/posix/time.c: Rename from sys-proc.c.
2889 * config/linux/mutex.c: New file.
2890 * config/linux/mutex.h: New file.
2891 * config/linux/sem.c: New file.
2892 * config/linux/sem.h: New file.
2893 * config/linux/i486/futex.h: New file.
2894 * config/linux/x86_64/futex.h: New file.
2896 2005-05-04 Richard Henderson <rth@redhat.com>
2898 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2899 * libgomp.h: Declare them.
2900 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2901 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2903 2005-05-04 Richard Henderson <rth@redhat.com>
2905 * libgomp-1 code drop
2907 2005-05-04 Richard Henderson <rth@redhat.com>
2909 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2910 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2911 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2912 (gomp_iter_static_next): Update.
2913 (gomp_ordered_static_next): Update.
2914 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2915 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2916 totally empty range.
2917 (gomp_loop_ordered_static_next): Refine test for calling
2918 gomp_ordered_static_next.
2919 * testsuite/ordered-1.c: Add case for more threads than iterations.
2921 * iter.c (gomp_iter_runtime_next_locked): Remove.
2922 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2923 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2924 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2925 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2926 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2927 gomp_loop_ordered_guided_next): Downcase name, make static, add
2928 an external alias with the old name.
2929 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2930 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2931 switch and call one of the above static functions.
2932 * libgomp.h: Update.
2934 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2935 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2936 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2937 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2938 GOMP_loop_ordered_guided_start): Update to match.
2939 * sections.c (GOMP_sections_start): Likewise.
2940 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2942 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2943 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2944 Use bounds check instead of modulus.
2945 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2946 (gomp_ordered_last): Don't sync with ordered_owner here.
2947 (gomp_ordered_next): Likewise.
2948 (gomp_ordered_static_loop_next): Likewise.
2949 * loop.c, libgomp.h: Update to match.
2951 * libgomp.h (GOMP_barrier): Declare.
2953 * testsuite/barrier-1.c: New file.
2954 * testsuite/critical-1.c: New file.
2955 * testsuite/ordered-2.c: New file.
2956 * testsuite/ordered-1.c: New file.
2957 * testsuite/sections-1.c: New file.
2958 * testsuite/single-1.c: New file.
2959 * testsuite/Makefile (TESTS): Add them.
2961 2005-05-04 Richard Henderson <rth@redhat.com>
2963 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2964 * loop.c (GOMP_loop_static_start): If not the startup thread,
2965 acquire the mutex to wait for initialization complete.
2966 (GOMP_loop_ordered_static_start): Likewise.
2967 (GOMP_loop_ordered_runtime_start): Likewise.
2968 (GOMP_loop_ordered_static_first): Remove.
2969 (GOMP_loop_ordered_dynamic_first): Remove.
2970 (GOMP_loop_ordered_guided_first): Remove.
2971 (GOMP_loop_ordered_runtime_first): Remove.
2972 * ordered.c (gomp_ordered_loop_first): Post to own release when
2973 we're the first thread.
2974 (gomp_ordered_loop_last): Wait on release if not owner.
2975 (gomp_ordered_loop_next): Likewise.
2976 (gomp_ordered_static_loop_init): New.
2977 (gomp_ordered_static_loop_next): Use ordered_owner.
2978 (GOMP_ordered_start): Likewise.
2979 * work.c (gomp_new_work_share): Initialize ordered_owner.
2981 2005-05-03 Richard Henderson <rth@redhat.com>
2983 * Makefile (OPT): New.
2986 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2987 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2988 * libgomp.h, libgomp.map, NOTES: Update to match.
2990 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2991 Add initialized and thr members.
2992 (gomp_thread_start): Pause when initially spawned to wait for
2993 the whole team to be created.
2994 (gomp_team_start): Release team members at the end.
2996 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2997 (f_foo_1): Use GOMP_loop_end.
2998 (f_foo_2): Use GOMP_loop_end_nowait.
3000 * testsuite/loop-2.c: New file.
3001 * testsuite/Makefile (TESTS): Add it.
3003 2005-05-03 Richard Henderson <rth@redhat.com>
3005 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3006 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3007 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3010 * testsuite/Makefile: New file.
3011 * testsuite/loop-1.c: New file.
3013 2005-05-03 Richard Henderson <rth@redhat.com>
3015 Initial implementation and checkin.