1 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4 * fortran.c: Include limits.h.
6 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8 (omp_set_num_threads_8_, omp_set_schedule_8_,
9 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10 omp_get_team_size_8_): Use TO_INT macro.
11 * testsuite/libgomp.fortran/pr48894.f90: New test.
13 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.c/pr48591.c: New test.
18 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
22 * configure: Regenerate.
24 2011-02-27 Jakub Jelinek <jakub@redhat.com>
27 * testsuite/libgomp.fortran/task3.f90: New test.
29 2011-02-24 Tobias Burnus <burnus@net-b.de>
31 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
33 2011-02-23 Jakub Jelinek <jakub@redhat.com>
36 * libgomp.texi (omp_get_wtime): Don't say time in the past
39 2011-02-18 Jakub Jelinek <jakub@redhat.com>
42 * testsuite/libgomp.fortran/fortran.exp: Check for both
43 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
44 but $blddir != "", still append ${blddir}/${lang_library_path}
47 2011-02-16 Tobias Burnus <burnus@net-b.de>
50 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
51 of libquadmath.a before adding its libpath to ldflags.
53 2011-02-14 Jakub Jelinek <jakub@redhat.com>
56 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
57 to FUTEX_WAIT futex syscall.
58 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
60 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62 * configure: Regenerate.
64 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
67 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
69 2011-01-16 Gerald Pfeifer
71 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
73 2010-12-14 Jakub Jelinek <jakub@redhat.com>
76 * libgomp.fortran/allocatable6.f90: New test.
78 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
80 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
81 * configure: Regenerate.
83 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
87 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
88 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
89 * aclocal.m4: Regenerate.
90 * configure: Regenerate.
91 * Makefile.in: Regenerate.
92 * testsuite/Makefile.in: Regenerate.
94 2010-12-02 Jakub Jelinek <jakub@redhat.com>
97 * libgomp.fortran/pr46753.f90: New test.
100 * env.c (initialize_env): Default to spin count 300000
101 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
105 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
106 at the end if sync builtins aren't supported.
108 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
110 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
112 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
114 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
116 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
118 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
120 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
121 Tobias Burnus <burnus@net-b.de>
125 * configure: Regenerate.
127 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
129 * config/linux/futex.h: New.
130 * config/linux/arm/mutex.h: New.
131 * configure.tgt (arm*-*-linux*): Add config path.
133 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
135 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
137 2010-09-23 Tobias Burnus <burnus@net-b.de>
139 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
140 Change Fortran datatype to LOGICAL.
141 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
142 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
144 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
146 * configure: Regenerate.
148 2010-07-26 Jakub Jelinek <jakub@redhat.com>
150 * libgomp.texi: Add function keyword to a couple of Fortran
151 interfaces, use integer instead of int for Fortran.
153 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
155 * libgomp.texi: Fix spelling and pasto problems throughout.
156 Adjust prototypes to match code.
158 2010-07-24 Tobias Burnus <burnus@net-b.de>
160 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
161 silence -fwhole-file warning.
163 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
165 * configure.tgt (*-*-solaris2.[56]*): Removed.
167 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
169 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
170 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
171 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
172 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
173 targetting solaris2*.
174 * configure: Regenerate.
175 * config.h.in: Regenerate.
177 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
178 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
179 Add libgomp_version_dep.
180 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
182 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
183 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
184 * Makefile.in: Regenerate.
186 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
187 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
188 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
189 to common block, protected by
190 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
192 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
194 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
196 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
199 * configure: Regenerate.
201 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
204 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
205 * configure: Regenerate.
206 * Makefile.in: Regenerate.
207 * testsuite/Makefile.in: Regenerate.
209 2010-04-26 Jakub Jelinek <jakub@redhat.com>
212 * testsuite/libgomp.c/pr43893.c: New test.
213 * testsuite/libgomp.c++/pr43893.C: New test.
215 2010-04-21 Jakub Jelinek <jakub@redhat.com>
218 * testsuite/libgomp.fortran/vla8.f90: New test.
220 2010-04-20 Jakub Jelinek <jakub@redhat.com>
223 * config/linux/affinity.c (gomp_init_affinity): Decrease
224 gomp_available_cpus if affinity mask confines the process to fewer
226 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
227 non-NULL, just return gomp_available_cpus.
230 * sections.c (gomp_sections_init): Initialize ws->mode.
232 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
234 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
235 not unused bar variable.
236 * configure: Regenerate.
238 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
240 * Makefile.in: Regenerate.
241 * aclocal.m4: Regenerate.
242 * testsuite/Makefile.in: Regenerate.
244 2010-03-22 Jakub Jelinek <jakub@redhat.com>
247 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
248 (initialize_env): Adjust callers.
249 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
250 when the argument is 0.
252 * testsuite/libgomp.c/pr42942.c: New test.
254 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
258 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
259 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
261 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
263 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
264 * testsuite/libgomp.c++/task-6.C: Likewise.
266 2010-01-28 Steve Ellcey <sje@cup.hp.com>
268 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
270 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
272 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
273 * configure: Regenerate.
275 2010-01-26 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.fortran/allocatable5.f90: New test.
280 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
282 * configure.ac: Test for executability of GFORTRAN.
283 * configure: Regenerate.
285 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
287 * configure: Regenerate.
289 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
292 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
294 2010-01-03 Richard Guenther <rguenther@suse.de>
296 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
298 2009-12-23 Sebastian Pop <sebpop@gmail.com>
300 * testsuite/libgomp.graphite/pr4118.c: New.
302 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
304 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
305 for darwin, protect the test with require-effective-target tls_runtime.
306 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
308 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
311 * testsuite/lib/libgomp.exp: Provide -B options to allow for
312 link spec %s substitutions for static libraries.
314 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
317 * libgomp.graphite/force-parallel-2.c: Reduce array size.
319 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
321 * Makefile.in: Regenerate.
322 * configure: Regenerate.
323 * testsuite/Makefile.in: Regenerate.
325 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
327 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
328 settings for LC_ALL and LANG.
330 2009-11-25 Jakub Jelinek <jakub@redhat.com>
333 * testsuite/libgomp.fortran/pr42162.f90: New test.
335 2009-11-13 Jakub Jelinek <jakub@redhat.com>
338 * testsuite/libgomp.c/pr42029.c: New test.
340 2009-10-26 Jakub Jelinek <jakub@redhat.com>
342 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
343 *s. Accept ld version without text in ()s.
344 * configure: Regenerated.
346 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
348 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
350 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
353 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
354 or a hyphen (happens with fortran language disabled).
355 * configure: Regenerate.
357 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
359 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
360 use sed script portable to Solaris /bin/sed for extracting ld
362 * configure: Regenerate.
364 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
366 * testsuite/libgomp.graphite/bounds.c: New test.
368 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
370 * Makefile.am (libgomp_la_LINK): New.
371 * Makefile.in: Regenerate.
373 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
375 * configure.ac (AC_PREREQ): Bump to 2.64.
377 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
379 * Makefile.am (install-html, install-pdf): Remove.
380 * Makefile.in: Regenerate.
382 * Makefile.in: Regenerate.
383 * aclocal.m4: Regenerate.
384 * config.h.in: Regenerate.
385 * configure: Regenerate.
386 * testsuite/Makefile.in: Regenerate.
388 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
390 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
391 * Makefile.in: Regenerate.
393 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
395 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
396 * Makefile.in: Regenerate.
398 2009-08-19 Tobias Burnus <burnus@net-b.de>
401 omp_lib.h.in: Fix -std=f95 errors.
404 2009-08-14 David Edelsohn <edelsohn@gnu.org>
406 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
407 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
408 * testsuite/libgomp.graphite/graphite.exp: New.
410 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
412 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
415 2009-08-04 David Daney <ddaney@caviumnetworks.com>
417 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
418 needed memory barrier semantics.
419 * config/linux/mips/mutex.h: New file.
421 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
423 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
425 2009-07-16 Joseph Myers <joseph@codesourcery.com>
427 * configure: Regenerate.
429 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
434 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
435 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
436 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
438 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
440 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
441 options when choosing a multilib.
443 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
445 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
446 ld_library_path. Use add_path. Add just find_libgcc_s to
447 ld_library_path, not every libgcc multilib directory.
448 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
449 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
450 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
452 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
454 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
456 * Makefile.am (LTLDFLAGS): Define.
458 * Makefile.in: Regenerate.
460 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
463 * testsuite/libgomp.fortran/fortran.exp: Don't link with
464 libgfortranbegin, check existence of libgfortran.a instead of
467 2009-05-20 Jakub Jelinek <jakub@redhat.com>
470 * team.c (gomp_thread_start): Destroy thr->release semaphore.
471 (gomp_free_pool_helper): Likewise.
473 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
474 Jakub Jelinek <jakub@redhat.com>
477 * testsuite/libgomp.fortran/workshare2.f90: New test.
479 2009-04-09 Nick Clifton <nickc@redhat.com>
481 * iter.c: Change copyright header to refer to version 3 of the
482 GNU General Public License with version 3.1 of the GCC Runtime
483 Library Exception and to point readers at the COPYING3 and
484 COPYING3.RUNTIME files and the FSF's license web page.
486 * barrier.c: Likewise.
487 * config/bsd/proc.c: Likewise.
488 * config/linux/affinity.c: Likewise.
489 * config/linux/alpha/futex.h: Likewise.
490 * config/linux/bar.c: Likewise.
491 * config/linux/bar.h: Likewise.
492 * config/linux/ia64/futex.h: Likewise.
493 * config/linux/ia64/mutex.h: Likewise.
494 * config/linux/lock.c: Likewise.
495 * config/linux/mips/futex.h: Likewise.
496 * config/linux/mutex.c: Likewise.
497 * config/linux/mutex.h: Likewise.
498 * config/linux/powerpc/futex.h: Likewise.
499 * config/linux/proc.c: Likewise.
500 * config/linux/ptrlock.c: Likewise.
501 * config/linux/ptrlock.h: Likewise.
502 * config/linux/s390/futex.h: Likewise.
503 * config/linux/sem.c: Likewise.
504 * config/linux/sem.h: Likewise.
505 * config/linux/sparc/futex.h: Likewise.
506 * config/linux/wait.h: Likewise.
507 * config/linux/x86/futex.h: Likewise.
508 * config/mingw32/proc.c: Likewise.
509 * config/mingw32/time.c: Likewise.
510 * config/posix/affinity.c: Likewise.
511 * config/posix/bar.c: Likewise.
512 * config/posix/bar.h: Likewise.
513 * config/posix/lock.c: Likewise.
514 * config/posix/mutex.h: Likewise.
515 * config/posix/proc.c: Likewise.
516 * config/posix/ptrlock.h: Likewise.
517 * config/posix/sem.c: Likewise.
518 * config/posix/sem.h: Likewise.
519 * config/posix/time.c: Likewise.
520 * config/posix95/lock.c: Likewise.
521 * critical.c: Likewise.
524 * fortran.c: Likewise.
525 * iter_ull.c: Likewise.
526 * libgomp.h: Likewise.
527 * libgomp_f.h.in: Likewise.
528 * libgomp_g.h: Likewise.
530 * loop_ull.c: Likewise.
531 * omp.h.in: Likewise.
532 * omp_lib.f90.in: Likewise.
533 * omp_lib.h.in: Likewise.
534 * ordered.c: Likewise.
535 * parallel.c: Likewise.
536 * sections.c: Likewise.
537 * single.c: Likewise.
542 2009-04-09 Jakub Jelinek <jakub@redhat.com>
544 * testsuite/config/default.exp: Change copyright header to refer to
545 version 3 of the GNU General Public License and to point readers
546 at the COPYING3 file and the FSF's license web page.
548 2009-04-08 Jakub Jelinek <jakub@redhat.com>
551 * libgomp.c++/pr39573.C: New test.
553 2009-04-01 Jakub Jelinek <jakub@redhat.com>
556 * testsuite/libgomp.c/pr39591-1.c: New test.
557 * testsuite/libgomp.c/pr39591-2.c: New test.
558 * testsuite/libgomp.c/pr39591-3.c: New test.
560 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
562 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
563 * testsuite/libgomp.c/atomic-6.c: Ditto.
565 2009-03-23 Jakub Jelinek <jakub@redhat.com>
568 * testsuite/libgomp.c/loop-12.c: New test.
569 * testsuite/libgomp.c/loop-11.c: New test.
570 * testsuite/libgomp.c++/loop-11.C: New test.
571 * testsuite/libgomp.c++/loop-12.C: New test.
572 * testsuite/libgomp.c++/for-8.C: New test.
574 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
576 * configure: Regenerate.
578 2009-02-11 Jakub Jelinek <jakub@redhat.com>
581 * testsuite/libgomp.c/pr39154.c: New test.
583 2009-01-30 Ian Lance Taylor <iant@google.com>
585 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
586 libgomp_ld_is_gold. Get gold version number.
587 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
588 * configure: Rebuild.
590 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
592 * testsuite/lib/libgomp.exp: Add -B option for targets that
593 use libgfortran.a%s in their specs.
595 2009-01-07 Jakub Jelinek <jakub@redhat.com>
598 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
599 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
600 HAVE_AS_SYMVER_DIRECTIVE is not defined.
601 * configure: Regenerated.
602 * config.h.in: Likewise.
604 2008-12-28 Jakub Jelinek <jakub@redhat.com>
607 * testsuite/libgomp.c/pr38650.c: New test.
608 * testsuite/libgomp.c++/pr38650.C: New test.
610 2008-12-27 Jakub Jelinek <jakub@redhat.com>
612 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
614 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
616 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
618 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
620 * configure: Regenerate.
622 2008-12-08 Jakub Jelinek <jakub@redhat.com>
625 * testsuite/libgomp.c/pr36802-1.c: New test.
626 * testsuite/libgomp.c/pr36802-2.c: New test.
627 * testsuite/libgomp.c/pr36802-3.c: New test.
629 2008-12-01 Janis Johnson <janis187@us.ibm.com>
632 * config/linux/powerpc/mutex.h: New.
634 2008-12-01 Jakub Jelinek <jakub@redhat.com>
637 * testsuite/libgomp.c++/for-7.C: New test.
640 * testsuite/libgomp.c++/for-6.C: New test.
642 2008-11-26 Janis Johnson <janis187@us.ibm.com>
645 * testsuite/lib/libgomp.exp: Include new timeout library files.
646 (libgomp_target_compile): Set timeout value from new proc.
648 2008-11-13 Steve Ellcey <sje@cup.hp.com>
651 * config/linux/ia64/mutex.h: New.
653 2008-11-04 Tobias Burnus <burnus@net-b.de>
656 * libgomp.texi (Runtime library routines, environment variables):
657 Update for OpenMP version 3.0.
659 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
660 Steve Ellcey <sje@cup.hp.com>
662 * configure: Regenerate for new libtool.
663 * Makefile.in: Ditto.
664 * testsuite/Makefile.in: Ditto.
666 2008-09-19 Jakub Jelinek <jakub@redhat.com>
667 Andreas Tobler <a.tobler@schweiz.org>
669 * config/bsd/proc.c: New file.
670 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
671 * configure.ac: Check for header <sys/sysctl.h>
672 * configure: Regenerate.
673 * config.h.in: Likewise.
675 2008-09-05 Janis Johnson <janis187@us.ibm.com>
677 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
679 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
681 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
682 * Makefile.in: Regenerated.
683 * testsuite/Makefile.in: Regenerated.
685 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
687 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
688 depend on blddir if blddir exists.
689 (libgomp_target_compile): Likewise.
690 * testsuite/libgomp.c++/c++.exp: Likewise.
691 * testsuite/libgomp.fortran/fortran.exp: Likewise.
693 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
695 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
696 Do not list GPL as Invariant Section.
698 2008-07-28 Ilie Garbacea <ilie@mips.com>
699 Chao-ying Fu <fu@mips.com>
701 * configure.tgt: Enable futex for MIPS.
702 * config/linux/mips/futex.h: New file.
704 2008-07-16 Jakub Jelinek <jakub@redhat.com>
706 * team.c (gomp_team_end): Free team immediately if it has
709 2008-07-08 David Edelsohn <edelsohn@gnu.org>
711 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
712 * testsuite/libgomp.fortran/fortran.exp: Same.
713 * testsuite/libgomp.c/c.exp: Same.
714 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
715 directory to library path first.
717 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
719 * env.c (parse_stacksize): Add cast to avoid warning.
720 (parse_spincount): Likewise.
722 2008-06-27 Jakub Jelinek <jakub@redhat.com>
724 * testsuite/libgomp.c/loop-10.c: New test.
725 * libgomp.c/loop-3.c (main): Add lastprivate clause.
726 * libgomp.c++/loop-6.C (main): Likewise.
729 * testsuite/libgomp.c/debug-1.c: New test.
731 2008-06-19 Jakub Jelinek <jakub@redhat.com>
733 * testsuite/libgomp.c/nqueens-1.c: New test.
736 * testsuite/libgomp.c++/task-7.C: New function.
738 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
740 * configure: Regenerate.
742 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
744 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
745 mutex when HAVE_SYNC_BUILTINS isn't defined.
747 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
749 * libgomp.texi (omp_test_lock): Fix typo.
751 2008-06-12 Tobias Burnus <burnus@net-b.de>
753 * omp_lib.f90.in: Add "implicit none".
755 2008-06-12 Jakub Jelinek <jakub@redhat.com>
758 * testsuite/libgomp.c/reduction-5.c: New test.
760 2008-06-11 Jakub Jelinek <jakub@redhat.com>
762 * libgomp.h (struct gomp_task): Add in_tied_task field.
763 * task.c (gomp_init_task): Initialize it.
764 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
765 unconditionally. Don't call gomp_team_barrier_wake if
766 current task is implicit or if(0) from implicit and number of
767 running tasks is equal to nthreads - 1.
770 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
771 omp_get_team_size_8): Fix pastos.
774 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
775 * configure: Regenerated.
776 * config.h.in: Regenerated.
777 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
780 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
783 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
784 (GOMP_loop_ull_dynamic_start): Likewise.
785 (GOMP_loop_ull_guided_start): Likewise.
786 (GOMP_loop_ull_ordered_static_start): Likewise.
787 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
788 (GOMP_loop_ull_ordered_guided_start): Likewise.
790 2008-06-06 Jakub Jelinek <jakub@redhat.com>
791 Richard Henderson <rth@redhat.com>
792 Ulrich Drepper <drepper@redhat.com>
793 Jakob Blomer <jakob.blomer@ira.uka.de>
795 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
796 Substitute also OMP_*LOCK_25*.
797 * configure: Regenerated.
798 * config.h.in: Regenerated.
799 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
800 ptrlock.c and task.c.
801 * Makefile.in: Regenerated.
802 * testsuite/Makefile.in: Regenerated.
804 * loop_ull.c: New file.
805 * iter_ull.c: New file.
806 * libgomp.h: Include ptrlock.h.
807 (enum gomp_task_kind): New type.
808 (struct gomp_team): Add task_lock, task_queue, task_count,
809 task_running_count, single_count fields. Add
810 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
811 Remove work_share_lock, generation_mask,
812 oldest_live_gen, num_live_gen and init_work_shares fields, add
813 work work_share_list_alloc, work_share_list_free and work_share_chunk
814 fields. Change work_shares from pointer to pointers into an array.
815 Change ordered_release field into gomp_sem_t ** from flexible array
816 member. Add implicit_task and initial_work_shares fields.
817 Move close to the end of the struct.
818 (struct gomp_team_state): Add single_count, last_work_share,
819 active_level and level fields, remove work_share_generation.
820 (gomp_barrier_handle_tasks): New prototype.
821 (gomp_finish_task): New inline function.
822 (struct gomp_work_share): Move chunk_size, end, incr into
823 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
824 next_ll fields. Reshuffle fields. Add next_alloc,
825 next_ws, next_free and inline_ordered_team_ids fields, change
826 ordered_team_ids into pointer from flexible array member.
827 Add mode field. Put lock and next into a different cache line
828 from most of the write-once fields.
829 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
830 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
831 gomp_iter_ull_guided_next): New prototypes.
832 (gomp_new_icv): New prototype.
833 (struct gomp_thread): Add thread_pool and task fields.
834 (struct gomp_thread_pool): New type.
835 (gomp_new_team): New prototype.
836 (gomp_team_start): Change type of last argument.
837 (gomp_new_work_share): Removed.
838 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
839 (gomp_work_share_init_done): New static inline.
840 (gomp_throttled_spin_count_var, gomp_available_cpus,
841 gomp_managed_threads): New extern decls.
842 (gomp_init_task): New prototype.
843 (gomp_spin_count_var): New extern var decl.
844 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
845 or no alias support, or if not PIC.
846 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
847 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
848 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
849 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
850 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
851 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
852 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
853 gomp_test_nest_lock_25): New prototypes.
854 (omp_lock_symver, strong_alias): Define.
855 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
857 (gomp_end_task): New.
858 (struct gomp_task_icv, gomp_global_icv): New.
859 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
860 (struct gomp_task): New.
861 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
862 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
864 (gomp_schedule_type): Reorder enum to match
866 * team.c (struct gomp_thread_start_data): Add thread_pool and task
868 (gomp_thread_start): Add gomp_team_barrier_wait call.
869 For non-nested case remove clearing of docked thread thr fields.
870 Use pool fields instead of global gomp_* variables. Use
871 gomp_barrier_wait_last when needed. Initialize ts.active_level.
872 Create tasks for each member thread.
873 (free_team): Only destroy team barrier, task_lock here and free it.
874 (gomp_free_thread): Free last_team if non-NULL.
875 (gomp_team_end): Call gomp_team_barrier_wait instead of
876 gomp_barrier_wait. For nested case call one extra
877 gomp_barrier_wait. Move here some destruction from free_team.
878 Call free_team on pool->last_team if any, rather than freeing
879 current team. Destroy work_share_list_free_lock ifndef
881 (gomp_new_icv): New function.
882 (gomp_threads, gomp_threads_size, gomp_threads_used,
883 gomp_threads_dock): Removed.
884 (gomp_thread_destructor): New variable.
885 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
887 (gomp_team_start): Create new pool if current thread doesn't have
888 one. Use pool fields instead of global gomp_* variables.
889 Initialize thread_pool field for new threads. Clear single_count.
890 Change last argument from ws to team, don't create
891 new team, set ts.work_share to &team->work_shares[0] and clear
892 ts.last_work_share. Don't clear ts.work_share_generation.
893 If number of threads changed, adjust atomically gomp_managed_threads.
894 Use gomp_init_task instead of gomp_new_task,
895 set thr->task to the corresponding implicit_task array entry.
896 Create tasks for each member thread. Initialize ts.level.
897 (initialize_team): Call pthread_key_create on
898 gomp_thread_destructor.
899 (team_destructor): New function.
901 (gomp_new_team): New function.
902 (free_team): Free gomp_work_share blocks chained through next_alloc,
903 instead of freeing work_shares and destroying work_share_lock.
904 (gomp_team_end): Call gomp_fini_work_share. If number of threads
905 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
906 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
907 of gomp_barrier_wait.
908 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
909 instead of gomp_barrier_wait. Call gomp_work_share_init_done
910 if gomp_work_share_start returned true. Don't unlock ws->lock.
911 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
912 of gomp_barrier_wait.
913 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
914 gomp_work_share_init_done if gomp_work_share_start returned true.
915 Don't unlock ws->lock.
916 * work.c: Include stddef.h.
917 (free_work_share): Use work_share_list_free_lock instead
918 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
919 Call gomp_fini_work_share and then either free ws if orphaned, or
920 put it into work_share_list_free list of the current team.
921 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
923 (gomp_work_share_start, gomp_work_share_end,
924 gomp_work_share_end_nowait): Rewritten.
925 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
926 (openmp_version): Set to 200805.
927 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
928 omp_sched_guided, omp_sched_auto): New parameters.
929 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
930 omp_set_max_active_levels, omp_get_max_active_levels,
931 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
932 omp_get_active_level): New interfaces.
933 * omp_lib.h.in (openmp_version): Set to 200805.
934 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
935 omp_sched_guided, omp_sched_auto): New parameters.
936 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
937 omp_set_max_active_levels, omp_get_max_active_levels,
938 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
939 omp_get_active_level): New externals.
940 * loop.c: Include limits.h.
941 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
943 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
944 Likewise. Use gomp_icv.
945 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
947 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
948 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
949 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
950 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
951 don't unlock ws->lock, otherwise lock it.
952 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
953 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
954 (gomp_parallel_loop_start): Call gomp_new_team instead of
955 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
956 Adjust gomp_team_start caller. Pass 0 as second argument to
957 gomp_resolve_num_threads.
958 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
959 If adding ws->chunk_size nthreads + 1 times after end won't
960 overflow, set ws->mode to 1.
961 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
962 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
963 GOMP_loop_ull_ordered_static_start,
964 GOMP_loop_ull_ordered_dynamic_start,
965 GOMP_loop_ull_ordered_guided_start,
966 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
967 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
968 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
969 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
970 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
972 * libgomp.map: Export lock routines also @@OMP_2.0.
973 (GOMP_loop_ordered_dynamic_first,
974 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
975 GOMP_loop_ordered_static_first): Remove.
976 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
977 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
978 GOMP_loop_ull_ordered_dynamic_next,
979 GOMP_loop_ull_ordered_dynamic_start,
980 GOMP_loop_ull_ordered_guided_next,
981 GOMP_loop_ull_ordered_guided_start,
982 GOMP_loop_ull_ordered_runtime_next,
983 GOMP_loop_ull_ordered_runtime_start,
984 GOMP_loop_ull_ordered_static_next,
985 GOMP_loop_ull_ordered_static_start,
986 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
987 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
988 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
989 (omp_set_schedule, omp_get_schedule,
990 omp_get_thread_limit, omp_set_max_active_levels,
991 omp_get_max_active_levels, omp_get_level,
992 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
993 omp_set_schedule_, omp_set_schedule_8_,
994 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
995 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
996 omp_get_max_active_levels_, omp_get_level_,
997 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
998 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
999 New exports @@OMP_3.0.
1000 * omp.h.in (omp_sched_t): New type.
1001 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1002 omp_set_max_active_levels, omp_get_max_active_levels,
1003 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1004 omp_get_active_level): New prototypes.
1005 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1006 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1007 gomp_thread_limit_var, gomp_remaining_threads_count,
1008 gomp_remaining_threads_lock): New variables.
1009 (parse_spincount): New function.
1010 (initialize_env): Call gomp_init_num_threads unconditionally.
1011 Initialize gomp_available_cpus. Call parse_spincount,
1012 initialize gomp_{,throttled_}spin_count_var
1013 depending on presence and value of OMP_WAIT_POLICY and
1014 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1015 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1016 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1017 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1018 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1019 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1020 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1021 (gomp_global_icv): New.
1022 (parse_schedule): Use it. Parse "auto".
1023 (omp_set_num_threads): Use gomp_icv.
1024 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1026 (omp_get_max_threads): Move from parallel.c.
1027 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1028 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1030 (parse_stacksize, parse_wait_policy): New functions.
1031 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1032 both wrappers for compatibility and new locks.
1033 (omp_set_schedule, omp_get_schedule,
1034 omp_get_thread_limit, omp_set_max_active_levels,
1035 omp_get_max_active_levels, omp_get_level,
1036 omp_get_ancestor_thread_num, omp_get_team_size,
1037 omp_get_active_level): New ialias_redirect.
1038 (omp_set_schedule_, omp_set_schedule_8_,
1039 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1040 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1041 omp_get_max_active_levels_, omp_get_level_,
1042 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1043 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1045 * parallel.c: Include limits.h.
1046 (gomp_resolve_num_threads): Add count argument. Rewritten.
1047 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1048 argument to gomp_team_start. Pass 0 as second argument to
1049 gomp_resolve_num_threads.
1050 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1051 if gomp_thread_limit_var != ULONG_MAX.
1052 (omp_in_parallel): Implement using ts.active_level.
1053 (omp_get_max_threads): Move to env.c.
1054 (omp_get_level, omp_get_ancestor_thread_num,
1055 omp_get_team_size, omp_get_active_level): New functions,
1057 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1058 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1059 gomp_iter_dynamic_next instead of the _locked variant and don't take
1060 lock around it, otherwise acquire it before calling
1061 gomp_iter_dynamic_next_locked.
1062 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1063 gomp_iter_dynamic_next instead of the _locked variant and don't take
1065 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1066 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1067 Adjust gomp_team_start caller. Pass count as second argument to
1068 gomp_resolve_num_threads, don't adjust num_threads after the call.
1070 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1071 ws->chunk_size by incr.
1072 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1074 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1076 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1077 (omp_check_defines): Check even the compat defines.
1078 * config/linux/ptrlock.c: New file.
1079 * config/linux/ptrlock.h: New file.
1080 * config/linux/wait.h: New file.
1081 * config/posix/ptrlock.c: New file.
1082 * config/posix/ptrlock.h: New file.
1083 * config/linux/bar.h (gomp_team_barrier_wait,
1084 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1085 (gomp_team_barrier_set_task_pending,
1086 gomp_team_barrier_clear_task_pending,
1087 gomp_team_barrier_set_waiting_for_tasks,
1088 gomp_team_barrier_waiting_for_tasks,
1089 gomp_team_barrier_done): New inlines.
1090 (gomp_barrier_t): Rewritten.
1091 (gomp_barrier_state_t): New typedef.
1092 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1093 gomp_barrier_wait_start): Rewritten.
1094 (gomp_barrier_wait_end): Change second argument to
1095 gomp_barrier_state_t.
1096 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1098 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1100 (gomp_barrier_wait_end): Rewritten.
1101 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1102 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1103 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1104 (gomp_barrier_state_t): New typedef.
1105 (gomp_team_barrier_wait,
1106 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1107 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1108 into the return value. Return gomp_barrier_state_t.
1109 (gomp_team_barrier_set_task_pending,
1110 gomp_team_barrier_clear_task_pending,
1111 gomp_team_barrier_set_waiting_for_tasks,
1112 gomp_team_barrier_waiting_for_tasks,
1113 gomp_team_barrier_done): New inlines.
1114 (gomp_barrier_wait_end): Change second argument to
1115 gomp_barrier_state_t.
1116 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1118 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1119 (gomp_barrier_wait_end): Change second argument to
1120 gomp_barrier_state_t.
1121 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1122 gomp_team_barrier_wake): New functions.
1123 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1125 (gomp_futex_wake, gomp_futex_wait): New variables.
1126 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1127 * config/linux/lock.c: Rewrite to make locks task owned,
1128 for backwards compatibility provide the old entrypoints
1129 if symbol versioning. Include wait.h instead of libgomp.h and
1131 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1132 * config/posix95/lock.c: Rewrite to make locks task owned,
1133 for backwards compatibility provide the old entrypoints
1134 if symbol versioning.
1135 * config/posix/lock.c: Rewrite to make locks task owned,
1136 for backwards compatibility provide the old entrypoints
1137 if symbol versioning.
1138 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1139 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1140 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1141 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1142 (sys_futex0): Return error code.
1143 (futex_wake, futex_wait): If ENOSYS was returned, clear
1144 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1145 (cpu_relax, atomic_write_barrier): New static inlines.
1146 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1147 (futex_wake, futex_wait): If ENOSYS was returned, clear
1148 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1149 (cpu_relax, atomic_write_barrier): New static inlines.
1150 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1151 (sys_futex0): Return error code.
1152 (futex_wake, futex_wait): If ENOSYS was returned, clear
1153 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1154 (cpu_relax, atomic_write_barrier): New static inlines.
1155 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1156 (sys_futex0): Return error code.
1157 (futex_wake, futex_wait): If ENOSYS was returned, clear
1158 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1159 (cpu_relax, atomic_write_barrier): New static inlines.
1160 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1161 (sys_futex0): Return error code.
1162 (futex_wake, futex_wait): If ENOSYS was returned, clear
1163 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1164 (cpu_relax, atomic_write_barrier): New static inlines.
1165 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1166 (sys_futex0): Return error code.
1167 (futex_wake, futex_wait): If ENOSYS was returned, clear
1168 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1169 (cpu_relax, atomic_write_barrier): New static inlines.
1170 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1172 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1173 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1174 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1176 (omp_nest_lock_t): Change owner into void *, add lock field.
1177 * config/posix95/omp-lock.h: Include semaphore.h.
1178 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1179 (omp_lock_t): Use sem_t instead of mutex if semaphores
1181 (omp_nest_lock_t): Likewise. Change owner to void *.
1182 * config/posix/omp-lock.h: Include semaphore.h.
1183 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1184 (omp_lock_t): Use sem_t instead of mutex if semaphores
1186 (omp_nest_lock_t): Likewise. Add owner field.
1188 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1190 * testsuite/libgomp.c/collapse-1.c: New test.
1191 * testsuite/libgomp.c/collapse-2.c: New test.
1192 * testsuite/libgomp.c/collapse-3.c: New test.
1193 * testsuite/libgomp.c/icv-1.c: New test.
1194 * testsuite/libgomp.c/icv-2.c: New test.
1195 * testsuite/libgomp.c/lib-2.c: New test.
1196 * testsuite/libgomp.c/lock-1.c: New test.
1197 * testsuite/libgomp.c/lock-2.c: New test.
1198 * testsuite/libgomp.c/lock-3.c: New test.
1199 * testsuite/libgomp.c/loop-4.c: New test.
1200 * testsuite/libgomp.c/loop-5.c: New test.
1201 * testsuite/libgomp.c/loop-6.c: New test.
1202 * testsuite/libgomp.c/loop-7.c: New test.
1203 * testsuite/libgomp.c/loop-8.c: New test.
1204 * testsuite/libgomp.c/loop-9.c: New test.
1205 * testsuite/libgomp.c/nested-3.c: New test.
1206 * testsuite/libgomp.c/nestedfn-6.c: New test.
1207 * testsuite/libgomp.c/sort-1.c: New test.
1208 * testsuite/libgomp.c/task-1.c: New test.
1209 * testsuite/libgomp.c/task-2.c: New test.
1210 * testsuite/libgomp.c/task-3.c: New test.
1211 * testsuite/libgomp.c/task-4.c: New test.
1212 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1213 to C++ testsuite default compiler options.
1214 * testsuite/libgomp.c++/collapse-1.C: New test.
1215 * testsuite/libgomp.c++/collapse-2.C: New test.
1216 * testsuite/libgomp.c++/ctor-10.C: New test.
1217 * testsuite/libgomp.c++/for-1.C: New test.
1218 * testsuite/libgomp.c++/for-2.C: New test.
1219 * testsuite/libgomp.c++/for-3.C: New test.
1220 * testsuite/libgomp.c++/for-4.C: New test.
1221 * testsuite/libgomp.c++/for-5.C: New test.
1222 * testsuite/libgomp.c++/loop-8.C: New test.
1223 * testsuite/libgomp.c++/loop-9.C: New test.
1224 * testsuite/libgomp.c++/loop-10.C: New test.
1225 * testsuite/libgomp.c++/task-1.C: New test.
1226 * testsuite/libgomp.c++/task-2.C: New test.
1227 * testsuite/libgomp.c++/task-3.C: New test.
1228 * testsuite/libgomp.c++/task-4.C: New test.
1229 * testsuite/libgomp.c++/task-5.C: New test.
1230 * testsuite/libgomp.c++/task-6.C: New test.
1231 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1232 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1233 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1234 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1235 * testsuite/libgomp.fortran/collapse1.f90: New test.
1236 * testsuite/libgomp.fortran/collapse2.f90: New test.
1237 * testsuite/libgomp.fortran/collapse3.f90: New test.
1238 * testsuite/libgomp.fortran/collapse4.f90: New test.
1239 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1240 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1241 * testsuite/libgomp.fortran/lib4.f90: New test.
1242 * testsuite/libgomp.fortran/lock-1.f90: New test.
1243 * testsuite/libgomp.fortran/lock-2.f90: New test.
1244 * testsuite/libgomp.fortran/nested1.f90: New test.
1245 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1246 * testsuite/libgomp.fortran/strassen.f90: New test.
1247 * testsuite/libgomp.fortran/tabs1.f90: New test.
1248 * testsuite/libgomp.fortran/tabs2.f: New test.
1249 * testsuite/libgomp.fortran/task1.f90: New test.
1250 * testsuite/libgomp.fortran/task2.f90: New test.
1251 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1252 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1253 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1254 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1255 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1257 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1260 * testsuite/libgomp.c++/ctor-11.C: New test.
1261 * testsuite/libgomp.c++/ctor-12.C: New test.
1263 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1265 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1267 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1270 * testsuite/libgomp.c/atomic-5.c: New test.
1271 * testsuite/libgomp.c/atomic-6.c: New test.
1272 * testsuite/libgomp.c/autopar-1.c: New test.
1274 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1276 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1277 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1278 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1279 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1280 * configure: Regenerate.
1281 * Makefile.in, testsuite/Makefile.in: Likewise.
1283 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1286 * aclocal.m4: Regenerate.
1287 * configure: Regenerate.
1289 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1292 * testsuite/libgomp.c/atomic-4.c: New test.
1295 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1296 (gomp_iter_guided_next): Likewise.
1297 * testsuite/libgomp.c/pr35625.c: New test.
1299 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1301 * aclocal.m4: Regenerate.
1302 * configure: Likewise.
1303 * Makefile.in: Likewise.
1304 * testsuite/Makefile.in: Likewise.
1306 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1309 * testsuite/libgomp.c++/pr35185.C: New test.
1311 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1314 * testsuite/libgomp.c/pr35549.c: New test.
1316 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1318 * testsuite/libgomp.c/atomic-3.c: New test.
1320 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1323 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1326 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1329 * configure.ac: Add ACX_HEADER_STRING.
1330 * env.c: Include strings.h.
1331 * aclocal.m4: Regenerate.
1332 * config.h.in: Regenerate.
1333 * configure: Regenerate.
1334 * Makefile.in: Regenerate.
1335 * testsuite/Makefile.in: Regenerate.
1337 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1340 * testsuite/libgomp.c/pr35196.c: New test.
1343 * testsuite/libgomp.fortran/pr35130.f90: New test.
1344 * testsuite/libgomp.c/pr35130.c: New test.
1346 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1349 * testsuite/libgomp.c/pr33880.c: New test.
1350 * testsuite/libgomp.fortran/pr33880.f90: New test.
1352 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1354 * configure: Regenerate.
1356 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1358 * configure.ac: Move futex checking into ../config/futex.m4.
1359 * configure: Rebuilt.
1360 * aclocal.m4: Rebuilt.
1361 * Makefile.in: Rebuilt.
1363 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1364 2007-10-15 ../config/tls.m4 change.
1366 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1369 * testsuite/libgomp.c/pr34513.c: New test.
1370 * testsuite/libgomp.c++/pr34513.C: New test.
1372 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1375 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1377 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1379 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1381 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1383 * testsuite/libgomp.c/private-1.c: New test.
1385 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1386 Paolo Bonzini <bonzini@gnu.org>
1388 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1389 instead of 'VPATH ='.
1390 * Makefile.in: Regenerate.
1392 2007-11-23 Matthias Klose <doko@ubuntu.com>
1394 * configure.ac: Adjust makeinfo version check.
1395 * configure: Regenerate.
1397 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1400 * testsuite/libgomp.fortran/pr34020.f90: New test.
1402 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1405 * testsuite/libgomp.c++/atomic-1.C: New test.
1407 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1410 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1411 Make x and y integers rather than (implicit) reals. Add private (j)
1412 clause to the last omp parallel.
1414 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1416 * configure: Regenerate following changes to ../config/tls.m4.
1418 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1420 * testsuite/libgomp.fortran/stack.f90: New test.
1422 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1424 * config/mingw32/proc.c: New file.
1426 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1428 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1429 (main): Use __get_cpuid to get i386 target fetaures.
1430 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1431 (main): Use __get_cpuid to get x86_64 target fetaures.
1433 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1436 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1437 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1439 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1442 * testsuite/libgomp.fortran/pr32550.f90: New test.
1443 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1445 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1447 * aclocal.m4: Regenerated.
1449 2007-07-05 Tobias Burnus <burnus@net-b.de>
1452 * testsuite/libgomp.fortran/pr32359.f90: New.
1454 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1457 * sections.c (GOMP_parallel_sections_start): Only decrease
1458 number of threads to COUNT if dyn_var is true.
1459 * testsuite/libgomp.c/pr32468.c: New test.
1461 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1464 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1466 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1469 * testsuite/libgomp.c/pr32362-1.c: New test.
1470 * testsuite/libgomp.c/pr32362-2.c: New test.
1471 * testsuite/libgomp.c/pr32362-3.c: New test.
1473 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1475 * team.c (gomp_team_start): Fix setting up thread_attr
1478 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1480 * configure: Regenerate.
1482 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1484 * Makefile.in: Regenerate.
1485 * configure: Regenerate.
1486 * aclocal.m4: Regenerate.
1487 * testsuite/Makefile.in: Regenerate.
1489 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1491 * config/linux/proc.c: New file.
1494 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1496 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1498 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1500 2007-04-16 Matthias Klose <doko@debian.org>
1502 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1503 flags if not building with -m64.
1504 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1505 flag for i?86-*-* targets, if current target matches -m64.
1507 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1509 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1510 * Makefile.in: Regenerate.
1512 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1515 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1517 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1519 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1521 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1523 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1524 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1525 (parse_affinity): New function.
1526 (initialize_env): Call it and gomp_init_affinity.
1527 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1528 create new pthread_attr_t and call gomp_init_thread_affinity
1529 on it for each thread before passing the attribute to pthread_create.
1530 * config/linux/affinity.c: New file.
1531 * config/posix/affinity.c: New file.
1532 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1533 * configure: Rebuilt.
1534 * config.h.in: Rebuilt.
1535 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1536 * Makefile.in: Rebuilt.
1538 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1540 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1542 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1543 and use it if found.
1545 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1547 * testsuite/config/default.exp: New file.
1548 * testsuite/lib/libgomp.exp: New file.
1549 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1550 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1551 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1552 (libgomp_load): Remove.
1553 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1554 always_ld_library_path, not ld_library_path. Set additional_flags
1555 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1556 (target_compile): Do not call libgomp_init. Append lang_library_path
1557 and lang_link_flags to options.
1558 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1559 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1561 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1562 always_ld_library_path. Set LD_LIBRARY_PATH here.
1563 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1564 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1565 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1567 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1568 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1569 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1570 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1571 * testsuite/libgomp.c/atomic-10.c: Ditto.
1573 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1575 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1576 dg-final cleanup-modules line.
1577 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1578 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1579 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1580 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1581 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1582 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1583 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1585 2007-03-18 Andreas Schwab <schwab@suse.de>
1587 * acinclude.m4: Adjust regular expression for ld version
1589 * configure: Regenerate.
1591 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1593 * Makefile.am: Add install-pdf target as copied from
1594 automake v1.10 rules.
1595 * Makefile.in: Regenerate
1597 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1600 * configure: Regenerate.
1603 * testsuite/libgomp.c++/pr30703.C: New test.
1605 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1608 2006-07-05 Eric Christopher <echristo@apple.com>
1609 * configure.ac: Depend addition of -pthread on host OS.
1610 * configure: Regenerate.
1612 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1614 * libgomp.texi: Fix spacing after abbreviations.
1616 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1619 * configure.ac: Add check for makeinfo
1620 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1621 if an appropiate version of makeinfo is found.
1622 * aclocal.m4: Regenerated.
1623 * configure: Regenerated.
1624 * Makefile.in: Regenerated.
1625 * testsuite/Makefile.in: Regenerated.
1627 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1630 * libgomp.texi: More about implementation-dependent settings.
1632 2007-01-26 Tobias Burnus <burnus@net-b.de>
1634 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1636 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1639 * testsuite/libgomp.c/pr30494.c: New test.
1641 2007-01-15 Tom Tromey <tromey@redhat.com>
1643 * configure: Rebuilt.
1644 * configure.ac: Fixed comment.
1646 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1648 * libgomp.texi: Document implementation specific default values of
1649 environment variables.
1651 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1654 * libgomp.texi: New file.
1655 * configure.ac: Add --enable-generated-files-in-srcdir option.
1656 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1658 * Makefile.in: Regenerated.
1659 * config.h.in: Regenerated.
1660 * testsuite/Makefile.in: Regenerated.
1663 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1666 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1668 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1670 * configure: Regenerate.
1672 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1675 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1676 start if there shouldn't be any loop iterations.
1677 (gomp_loop_ordered_static_start): Remove start == end test.
1678 * testsuite/libgomp.c/pr29947-1.c: New test.
1679 * testsuite/libgomp.c/pr29947-2.c: New test.
1681 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1683 * configure.tgt: Force initial-exec TLS model on Linux only.
1685 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1687 * configure: Regenerated.
1689 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1691 * env.c (parse_schedule): Reject out of range values.
1692 (parse_unsigned_long): Reject out of range, negative or zero values.
1694 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1697 * testsuite/libgomp.fortran/pr29629.f90: New test.
1699 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1702 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1703 * config/posix95: New directory.
1704 * config/posix95/omp-lock.h: New file.
1705 * config/posix95/lock.c: Likewise.
1707 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1709 * aclocal.m4: Regenerate.
1710 * configure: Regenerate.
1712 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1714 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1717 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1719 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1721 * configure: Regenerate.
1722 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1724 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1728 * testsuite/libgomp.c/nestedfn-4.c: New test.
1729 * testsuite/libgomp.c/nestedfn-5.c: New test.
1730 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1733 * testsuite/libgomp.fortran/condinc1.f: New test.
1734 * testsuite/libgomp.fortran/condinc2.f: New test.
1735 * testsuite/libgomp.fortran/condinc3.f90: New test.
1736 * testsuite/libgomp.fortran/condinc4.f90: New test.
1737 * testsuite/libgomp.fortran/condinc1.inc: New file.
1739 2006-09-18 Tom Tromey <tromey@redhat.com>
1741 * configure: Rebuilt.
1743 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1746 PR preprocessor/14634
1747 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1749 * configure: Regenerate.
1751 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1753 * testsuite/libgomp.fortran/reduction3.f90: Change
1754 -2147483648 to -huge(i)-1 to avoid overflow.
1755 * testsuite/libgomp.fortran/reduction4.f90: Change
1756 Z'ffffffff' to not(0) to avoid overflow.
1758 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1761 * Makefile.am (libsubincludedir): New.
1762 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1763 * Makefile.in: Regenerate.
1765 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1768 * env.c: Include ctype.h.
1769 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1770 leading and/or trailing whitespace and compare strings case
1773 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1776 * testsuite/libgomp.fortran/pr28390.f: New test.
1778 2006-07-05 Eric Christopher <echristo@apple.com>
1780 * configure.ac: Depend addition of -pthread on host OS.
1781 * configure: Regenerate.
1783 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1785 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1786 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1789 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1793 * configure.ac: If neither --enable-linux-futex nor
1794 --disable-linux-futex is passed, determine the default by checking
1795 for compiling and/or running against NPTL. With --enable-linux-futex,
1796 check if SYS_gettid and SYS_futex are defined.
1797 * configure: Rebuilt.
1799 2006-06-14 Richard Henderson <rth@redhat.com>
1802 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1803 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1805 2006-06-09 Richard Henderson <rth@redhat.com>
1807 * env.c (gomp_nthreads_var): Change to unsigned long.
1808 (gomp_run_sched_chunk): Likewise.
1809 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1810 (initialize_env): Initialize gomp_thread_attr.
1811 * libgomp.h (gomp_nthreads_var): Update decl.
1812 (gomp_run_sched_chunk): Likewise.
1813 (gomp_thread_attr): Declare.
1814 * team.c (gomp_thread_attr): Export.
1815 (initialize_team): Don't initialize it.
1817 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1820 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1821 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1823 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1825 * config/mingw32/time.c: New file.
1826 * configure.tgt: Use it.
1828 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1830 * Makefile.am: Add install-html target. Add install-html to .PHONY
1831 * Makefile.in: Regenerate.
1833 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1836 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1837 * testsuite/libgomp.c/critical-1.c: Likewise.
1838 * testsuite/libgomp.c/loop-1.c: Likewise.
1839 * testsuite/libgomp.c/loop-2.c: Likewise.
1840 * testsuite/libgomp.c/single-1.c: Likewise.
1841 * testsuite/libgomp.c/ordered-1.c: Likewise.
1842 * testsuite/libgomp.c/ordered-2.c: Likewise.
1844 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1847 * libgomp.fortran/pr27416-1.f90: New test.
1849 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1852 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1853 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1855 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1858 * testsuite/libgomp.c/pr26943-1.c: New test.
1859 * testsuite/libgomp.c/pr26943-2.c: New test.
1860 * testsuite/libgomp.c/pr26943-3.c: New test.
1861 * testsuite/libgomp.c/pr26943-4.c: New test.
1862 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1863 * testsuite/libgomp.c++/pr26943.C: New test.
1865 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1868 * testsuite/libgomp.c++/pr27337.C: New test.
1870 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1873 * testsuite/libgomp.c/pr26171.c: New test.
1875 2006-04-25 Richard Henderson <rth@redhat.com>
1878 * configure.ac: Use GCC_CHECK_TLS.
1879 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1880 * Makefile.in, aclocal.m4, configure: Regenerate.
1882 2006-04-10 Matthias Klose <doko@debian.org>
1884 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1885 directory names containing underscores.
1887 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1890 * testsuite/libgomp.c++/pr26691.C: New test.
1892 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1894 * testsuite/libgomp.fortran/retval2.f90: New test.
1896 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1898 * testsuite/libgomp.c++: New directory.
1900 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1902 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1903 * config/posix/sem.c: Implement the above.
1905 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1907 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1908 define HAVE_BROKEN_POSIX_SEMAPHORES.
1909 * configure: Rebuilt.
1910 * config.h.in: Rebuilt.
1912 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1915 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1916 for the other pthread check.
1917 * configure: Regenerate.
1918 * config.h.in: Regenerate.
1920 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1924 * Makefile.am (fincludedir): New variable.
1925 (nodist_include_HEADERS): Remove Fortran files.
1926 (nodist_finclude_HEADERS): New variable.
1927 * Makefile.in: Regenerated.
1929 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1931 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1932 Remove tests for returning assumed character length arrays.
1934 2006-02-12 Roger Sayle <roger@eyesopen.com>
1935 John David Anglin <dave@hiauly1.hia.nrc.ca>
1938 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1940 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1942 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1944 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1946 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1947 part of LD_LIBRARY_PATH manually.
1949 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1952 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1955 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1958 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1959 * configure.ac (PERL): Don't set.
1960 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1961 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1962 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1963 * omp.h.in: Wrap the new configure substitutions with @ characters.
1964 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1965 * aclocal.m4, configure, Makefile.in: Regenerate.
1966 * mkomp_h.pl: Delete.
1968 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1971 * configure.ac: Use GCC_HEADER_STDINT.
1972 * libgomp.h: Include gstdint.h.
1973 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1974 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1976 2006-01-24 Richard Henderson <rth@redhat.com>
1979 * configure.ac: Add AM_MAINTAINER_MODE.
1980 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1982 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1984 * Makefile.in: Regenerate.
1985 * testsuite/Makefile.in: Regenerate.
1986 * aclocal.m4: Regenerate.
1988 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1990 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1992 * configure.ac: Add check for loadavg.h.
1993 (link_gomp): Adjust comment.
1994 * configure: Regenerate.
1995 * config.h.in: Regenerate.
1997 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2000 * configure.ac: Remove check for alloca.h.
2001 * configure: Regenerate.
2002 * config.h.in: Regenerate.
2003 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2004 * team.c: Remove use of alloca.h.
2005 Call gomp_alloca instead of alloca.
2007 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2010 * team.c: Add include of alloca.h.
2011 * configure.ac: Add check for alloca.h.
2012 * configure: Regenerate.
2013 * config.h.in: Regenerate.
2015 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2018 * testsuite/libgomp.fortran/pr25219.f90: New test.
2020 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2022 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2023 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2024 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2025 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2026 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2027 testsuite/libgomp.fortran/threadprivate1.f90,
2028 testsuite/libgomp.fortran/threadprivate2.f90,
2029 testsuite/libgomp.fortran/threadprivate3.f90,
2030 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2031 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2032 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2033 effective-target to TLS runtime.
2035 * testsuite/libgomp.fortran/pr25162.f: Require
2036 effective-target TLS runtime.
2038 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2040 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2041 * testsuite/libgomp.c/nestedfn-3.c: New test.
2043 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2046 * testsuite/libgomp.fortran/pr25162.f: New test.
2048 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2050 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2051 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2053 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2055 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2056 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2057 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2058 single.c, team.c, work.c, config/linux/alpha/futex.h,
2059 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2060 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2061 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2062 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2063 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2064 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2065 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2068 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2070 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2071 to nodist_noinst_HEADERS.
2072 * Makefile.in: Rebuilt.
2074 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2075 add integer count field.
2076 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2077 omp_nest_lock_t type change.
2078 (omp_init_nest_lock): Likewise. Initialize count to 0.
2079 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2081 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2083 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2084 Increment count if successful and return the new nesting level.
2085 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2086 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2087 * testsuite/libgomp.c/lib-1.c: New test.
2088 * testsuite/libgomp.fortran/lib1.f90: New test.
2089 * testsuite/libgomp.fortran/lib2.f: New test.
2090 * testsuite/libgomp.fortran/lib3.f: New test.
2092 2005-11-17 Richard Henderson <rth@redhat.com>
2095 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2096 * configure.ac (link_gomp): New. Substitute it.
2097 (AC_CONFIG_FILES): Add libgomp.spec.
2098 * libgomp.spec.in: New file.
2099 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2100 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2102 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2104 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2105 reduction(-:var) behaving the same as reduction(+:var).
2106 * testsuite/libgomp.c/reduction-4.c: New test.
2108 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2110 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2111 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2112 testsuite/libgomp.c/copyin-3.c,
2113 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2114 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2115 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2116 testsuite/libgomp.c++/pr24455.C,
2117 testsuite/libgomp.fortran/threadprivate1.f90,
2118 testsuite/libgomp.fortran/threadprivate2.f90,
2119 testsuite/libgomp.fortran/threadprivate3.f90,
2120 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2121 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2122 testsuite/libgomp.fortran/omp_parse3.f90: Require
2123 effective-target TLS.
2125 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2129 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2132 * team.c (initialize_team): Pass NULL rather than free as
2133 pthread_key_create destructor. Initialize thread specific data
2134 pointer in initial thread to a static local variable rather than
2137 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2139 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2140 its location to ld_library_path.
2142 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2144 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2146 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2148 * testsuite/libgomp.c: Rename from libgomp.dg.
2150 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2152 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2153 threadprivate variable 'i'.
2155 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2157 * config/linux/s390/futex.h: New file.
2158 * configure.tgt: Use it.
2160 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2161 before the parallel.
2163 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2166 * testsuite/libgomp.c++/master-1.C: New test.
2168 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2170 * testsuite/libgomp.dg/copyin-3.c: New test.
2172 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2174 * testsuite/libgomp.fortran/retval1.f90: New test.
2175 * testsuite/libgomp.fortran/vla7.f90: New test.
2177 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2179 * testsuite/libgomp.fortran/vla2.f90: New test.
2180 * testsuite/libgomp.fortran/vla3.f90: New test.
2181 * testsuite/libgomp.fortran/vla4.f90: New test.
2182 * testsuite/libgomp.fortran/vla5.f90: New test.
2183 * testsuite/libgomp.fortran/vla6.f90: New test.
2185 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2187 * config/linux/sparc/futex.h: New file.
2188 * configure.tgt: Use it.
2189 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2191 * critical.c: Include stdlib.h.
2192 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2193 ignoring return value.
2194 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2195 LIBGOMP_CHECK_SYNC_BUILTINS check.
2196 * configure: Rebuilt.
2198 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2200 * testsuite/libgomp.fortran/vla1.f90: New test.
2202 2005-10-31 Richard Henderson <rth@redhat.com>
2204 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2205 setting 's' in different threads.
2207 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2209 * libgomp.h (attribute_hidden, ialias): Define.
2210 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2211 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2212 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2213 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2214 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2215 omp_test_lock, omp_test_nest_lock): Likewise.
2216 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2217 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2218 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2219 omp_test_lock, omp_test_nest_lock): Likewise.
2220 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2221 omp_get_dynamic, omp_get_nested): Likewise.
2222 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2223 omp_get_thread_num, omp_in_parallel): Likewise.
2224 * fortran.c (ialias_redirect): Define.
2225 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2226 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2227 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2228 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2229 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2230 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2231 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2232 omp_get_wtime): Add ialias_redirect.
2234 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2236 * fortran.c: Include stdlib.h.
2238 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2240 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2241 * Makefile.in: Regenerated.
2243 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2245 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2246 * libgomp_f.h.in (omp_check_defines): New function.
2247 * env.c: Include libgomp_f.h.
2248 (initialize_env): Call omp_check_defines.
2250 * testsuite/libgomp.dg/copyin-2.c: New test.
2251 * testsuite/libgomp.c++/copyin-2.C: New test.
2252 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2254 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2255 * testsuite/libgomp.fortran/sharing2.f90: New test.
2257 * testsuite/libgomp.dg/copyin-1.c: New test.
2258 * testsuite/libgomp.c++/copyin-1.C: New test.
2260 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2262 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2264 * testsuite/libgomp.fortran/workshare1.f90: New test.
2266 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2268 * libgomp.fortran/sharing1.f90: New test.
2270 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2273 * testsuite/libgomp.c++/loop-7.C: New test.
2275 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2277 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2278 * testsuite/libgomp.fortran/reduction6.f90: New test.
2279 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2281 2005-10-23 Richard Henderson <rth@redhat.com>
2283 * testsuite/libgomp.c++/ctor-1.C: New.
2284 * testsuite/libgomp.c++/ctor-2.C: New.
2285 * testsuite/libgomp.c++/ctor-3.C: New.
2286 * testsuite/libgomp.c++/ctor-4.C: New.
2287 * testsuite/libgomp.c++/ctor-5.C: New.
2288 * testsuite/libgomp.c++/ctor-6.C: New.
2289 * testsuite/libgomp.c++/ctor-7.C: New.
2290 * testsuite/libgomp.c++/ctor-8.C: New.
2291 * testsuite/libgomp.c++/ctor-9.C: New.
2293 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2296 * testsuite/libgomp.c++/pr24455-1.C: New test.
2297 * testsuite/libgomp.c++/pr24455.C: New test.
2298 * testsuite/libgomp.dg/pr24455-1.c: New test.
2299 * testsuite/libgomp.dg/pr24455.c: New test.
2301 2005-10-20 Richard Henderson <rth@redhat.com>
2303 * testsuite/libgomp.c++/loop-6.C: New.
2304 * testsuite/libgomp.dg/loop-3.c: New.
2306 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2308 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2310 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2313 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2315 * testsuite/libgomp.fortran/jacobi.f: New test.
2317 2005-10-19 Richard Henderson <rth@redhat.com>
2319 * configure.tgt (i?86-linux): Default to with_arch instead of
2320 CFLAGS. Add -mtune to match target_cpu.
2321 (x86_64-linux): Tune to i686.
2323 * fortran.c (omp_test_nest_lock_): Fix typo.
2325 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2327 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2328 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2329 * testsuite/libgomp.dg/ordered-3.c: New test.
2331 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2332 Remove volatile keyword.
2334 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2335 in COMMON block to avoid warnings on 64-bit targets.
2337 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2339 * testsuite/libgomp.dg/shared-3.c: New test.
2341 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2343 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2344 * testsuite/libgomp.fortran/reduction5.f90: New test.
2346 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2348 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2350 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2351 flush loop now that __sync_synchronize has proper memory barrier.
2352 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2353 Add -ffixed-form to dg-options.
2355 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2357 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2358 from subdirectories.
2359 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2360 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2361 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2362 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2363 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2364 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2365 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2366 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2367 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2368 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2369 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2370 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2371 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2372 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2373 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2374 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2375 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2376 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2377 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2378 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2379 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2380 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2381 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2382 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2383 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2385 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2387 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2388 lang_library_path exists. Use find instead of glob to gather tests.
2389 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2391 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2393 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2394 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2395 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2396 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2397 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2398 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2399 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2400 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2401 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2402 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2403 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2404 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2405 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2407 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2409 * testsuite/libgomp.dg/vla-1.c: New test.
2411 * testsuite/libgomp.fortran/reference2.f90: New test.
2413 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2414 declaration of omp_get_thread_num.
2415 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2418 * testsuite/libgomp.fortran/reduction1.f90: New test.
2419 * testsuite/libgomp.fortran/reduction2.f90: New test.
2420 * testsuite/libgomp.fortran/reduction3.f90: New test.
2421 * testsuite/libgomp.fortran/reduction4.f90: New test.
2423 2005-10-13 Richard Henderson <rth@redhat.com>
2425 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2426 * Makefile.in: Regenerate.
2427 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2428 * libgomp.h: Include bar.h.
2429 (struct gomp_barrier): Remove.
2430 (struct gomp_team): Add barrier. Replace master_barrier with
2431 master_release. Replace threads with ordered_release.
2432 (struct gomp_thread): Replace barrier with release.
2433 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2434 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2435 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2436 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2437 (GOMP_single_copy_end): Likewise.
2438 * team.c (gomp_threads_dock): New.
2439 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2440 (gomp_thread_start): Use gomp_barrier_wait.
2441 (new_team, free_team): Update for gomp_team changes.
2442 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2443 (gomp_team_end): Use gomp_barrier_wait.
2444 (initialize_team): Update for gomp_thread changes.
2445 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2446 (gomp_work_share_end_nowait): Use atomic ops when available.
2447 * config/linux/bar.c, config/linux/bar.h: New files.
2448 * config/posix/bar.c, config/posix/bar.h: New files.
2450 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2452 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2453 * testsuite/libgomp.dg/single-2.c: New test.
2455 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2456 lang_link_flags): Unset, so that they aren't inherited from previously
2459 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2461 2005-10-12 Richard Henderson <rth@redhat.com>
2463 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2464 (libgomp_init): Use lang_test_file, lang_library_path, and
2465 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2467 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2468 (lang_test_file, lang_link_flags): New.
2469 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2471 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2472 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2473 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2474 testsuite/libgomp.c++/parallel-1.C,
2475 testsuite/libgomp.c++/reduction-1.C,
2476 testsuite/libgomp.c++/reduction-2.C,
2477 testsuite/libgomp.c++/reduction-3.C,
2478 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2479 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2480 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2481 New files, largely cribbed from the C testsuite.
2483 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2485 * testsuite/libgomp.fortran/character1.f90: New test.
2486 * testsuite/libgomp.fortran/character2.f90: New test.
2488 * testsuite/libgomp.dg/nested-1.c: New test.
2489 * testsuite/libgomp.dg/nested-2.c: New test.
2490 * testsuite/libgomp.fortran/do1.f90: New test.
2491 * testsuite/libgomp.fortran/do2.f90: New test.
2493 * testsuite/libgomp.fortran/reference1.f90: New test.
2495 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2497 * testsuite/libgomp.dg/reduction-1.c: New test.
2498 * testsuite/libgomp.dg/reduction-2.c: New test.
2499 * testsuite/libgomp.dg/reduction-3.c: New test.
2501 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2503 * testsuite/libgomp.dg/atomic-1.c: New test.
2504 * testsuite/libgomp.dg/atomic-2.c: New test.
2506 2005-10-09 Richard Henderson <rth@redhat.com>
2508 * critical.c (atomic_lock): New.
2509 (initialize_critical): Initialize it.
2510 (GOMP_atomic_start, GOMP_atomic_end): New.
2511 * libgomp.map: Export them.
2512 * libgomp_g.h: Declare them.
2514 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2516 2005-10-02 Richard Henderson <rth@redhat.com>
2518 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2519 to XCFLAGS instead of CFLAGS.
2521 2005-09-30 Richard Henderson <rth@redhat.com>
2523 * configure.ac: Determine whether -pthread or -lpthread is needed.
2524 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2525 * Makefine.in, configure: Rebuild.
2527 2005-09-28 Richard Henderson <rth@redhat.com>
2529 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2530 * testsuite/libgomp.dg/omp-single-3.c: New test.
2532 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2534 * testsuite/libgomp.dg/omp-single-2.c: New test.
2535 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2537 2005-09-27 Richard Henderson <rth@redhat.com>
2539 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2540 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2542 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2544 * testsuite/libgomp.dg/omp-loop03.c: New test.
2546 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2548 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2550 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2552 * testsuite/libgomp.dg/omp-single-1.c: New test.
2553 * testsuite/libgomp.dg/shared-1.c: Return 0.
2554 Add prototype for abort.
2555 * testsuite/libgomp.dg/shared-2.c: Likewise.
2557 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2559 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2562 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2564 * testsuite/libgomp.dg/shared-1.c: New test.
2565 * testsuite/libgomp.dg/shared-2.c: New test.
2567 2005-09-24 Richard Henderson <rth@redhat.com>
2569 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2571 2005-09-24 Richard Henderson <rth@redhat.com>
2573 * iter.c (gomp_iter_static_next): Round up when computing number
2574 of iterations. Don't bother distributing a remainder equally.
2576 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2577 Don't call srand. Zero b before testing.
2580 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2582 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2583 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2585 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2587 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2588 without !$omp end do, followed immediately by subroutine end.
2590 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2592 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2594 2005-09-22 Richard Henderson <rth@redhat.com>
2596 * critical.c (GOMP_critical_name_start): Change argument to void**.
2597 Reuse the pointer space if the mutex fits.
2598 (GOMP_critical_name_end): Likewise.
2599 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2600 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2601 (GOMP_critical_name_end): Likewise.
2602 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2603 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2605 2005-09-20 Richard Henderson <rth@redhat.com>
2607 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2608 (create_lock_lock): New.
2609 (initialize_critical): Initialize it.
2610 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2611 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2613 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2615 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2617 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2619 * testsuite/libgomp.dg/omp-loop01.c: New test.
2620 * testsuite/libgomp.dg/omp-loop02.c: New test.
2622 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2624 * configure.ac (AC_PROG_FC): Add.
2625 (USE_FORTRAN): New automake conditional.
2626 * configure: Rebuilt.
2627 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2628 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2629 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2630 Add rules to build them.
2631 * Makefile.in: Rebuilt.
2632 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2634 * libgomp.map: Add Fortran wrappers.
2635 * libgomp_f.h.in: New file.
2636 * omp_lib.h.in: New file.
2637 * omp_lib.f90.in: New file.
2638 * fortran.c: New file.
2639 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2640 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2641 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2642 libgfortran has been built.
2643 * testsuite/libgomp.fortran/fortran.exp: New file.
2644 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2645 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2646 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2647 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2648 * testsuite/libgomp.fortran/omp_hello.f: New test.
2649 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2650 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2651 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2652 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2653 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2654 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2655 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2656 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2658 2005-08-30 Richard Henderson <rth@redhat.com>
2660 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2661 function for when aliases are not usable.
2662 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2663 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2664 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2665 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2666 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2667 GOMP_loop_ordered_guided_next): Likewise.
2668 * ordered.c (GOMP_ordered_start): Likewise.
2670 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2672 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2673 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2674 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2675 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2676 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2677 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2678 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2679 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2680 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2682 2005-07-07 Eric Christopher <echristo@redhat.com>
2683 Diego Novillo <dnovillo@redhat.com>
2685 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2686 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2688 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2689 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2690 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2691 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2692 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2693 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2694 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2696 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2698 * TOPLEVEL.patch: Remove.
2700 2005-05-16 Richard Henderson <rth@redhat.com>
2702 * configure.ac: Test for clock_gettime.
2703 * config.h.in, configure: Rebuild.
2704 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2705 (omp_get_wtime): Use clock_gettime if available.
2706 (omp_get_wtick): Use clock_getres if available.
2708 2005-05-11 Richard Henderson <rth@redhat.com>
2710 * config/linux/ia64/futex.h: New file.
2711 * configure.tgt: Use it.
2713 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2715 2005-05-07 Richard Henderson <rth@redhat.com>
2717 * config/linux/powerpc/futex.h: New file.
2718 * configure.tgt: Use it.
2720 * config/linux/i486/futex.h: Merge ...
2721 * config/linux/x86_64/futex.h: ... into ...
2722 * config/linux/x86/futex.h: ... here.
2723 * configure.tgt: Update to match.
2725 2005-05-06 Richard Henderson <rth@redhat.com>
2727 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2728 * config/linux/i486/futex.h: Likewise.
2729 * config/linux/x86_64/futex.h: Likewise.
2731 * config/linux/lock.c: New file.
2732 * config/linux/omp-lock.h: New file.
2734 * critical.c, env.h: Don't include omp.h
2735 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2736 * config/posix/time.c: Likewise.
2737 * config/posix/omp-lock.h: New file.
2738 * libgomp.h: Include omp-lock.h and omp.h.
2739 * Makefile.am (nodist_include_HEADERS): New.
2741 * configure.ac (PERL): New.
2742 * mkomp_h.pl: New file.
2743 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2745 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2747 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2748 build directory. Re-add -march=i486 hack.
2750 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2751 (libgomp_link_flags): Remove.
2752 (libgomp_initialized): Remove.
2753 (libgomp_init): Don't protect from reinitialization. Copy code
2754 from libstdc++ for getting the multilib set correctly.
2756 2005-05-05 Richard Henderson <rth@redhat.com>
2758 * config/linux/alpha/futex.h: New file.
2759 * configure.tgt (alpha*-*-linux*): Use it.
2761 * config/posix/mutex.c: New file.
2762 * config/posix/sem.c: Use libgomp.h.
2764 * configure.tgt (x86_64-linux): Also test CC for -m32.
2765 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2767 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2770 * Makefile.am (SUBDIRS): New.
2771 (libgomp_la_LDFLAGS): Add -lpthread.
2772 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2773 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2775 * libgomp_g.h: New file.
2776 * libgomp.h: Split out all public declarations to libgomp_g.h.
2777 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2778 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2779 * config/linux/sem.h: Likewise.
2780 * config/posix/sem.h: Likewise.
2782 * Makefile.am (AM_LDFLAGS): New.
2783 (libgomp_version_script): Split out from ...
2784 (libgomp_la_LDFLAGS): ... here.
2785 (libgomp_version_info): New.
2786 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2787 (LIBGOMP_ENABLE): New.
2788 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2789 (LIBGOMP_ENABLE_SYMVERS): New.
2790 * configure.ac (AC_INIT): Version 1.0.
2791 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2792 (enable-linux-futex): Likewise. Rename from enable-futex.
2793 (libtool_VERSION): New.
2794 (LIBGOMP_ENABLE_SYMVERS): Use it.
2795 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2796 * Makefile.in, aclocal.m4, configure: Rebuild.
2798 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2799 (gomp_mutex_unlock_slow): Fix typo.
2800 * config/linux/sem.c: Similarly.
2801 (gomp_sem_post_slow): Fix typo.
2802 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2803 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2804 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2806 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2807 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2808 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2809 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2810 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2811 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2812 LDFLAGS. Pull enable_futex check to top-level.
2813 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2814 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2816 First attempt at real configury.
2817 * Makefile, config.h: Remove file.
2818 * Makefile.am, Makefile.in: New file.
2819 * acinclude.m4 aclocal.m4: New file.
2820 * configure.ac, configure.tgt, configure: New file.
2822 * config/posix/lock.c: Rename from sys-lock.c.
2823 * config/posix/mutex.h: Rename from sys-mutex.h.
2824 * config/posix/sem.c: Rename from sys-sem.c.
2825 * config/posix/sem.h: Rename from sys-sem.h.
2826 * config/posix/proc.c: Rename from sys-proc.c.
2827 * config/posix/time.c: Rename from sys-proc.c.
2829 * config/linux/mutex.c: New file.
2830 * config/linux/mutex.h: New file.
2831 * config/linux/sem.c: New file.
2832 * config/linux/sem.h: New file.
2833 * config/linux/i486/futex.h: New file.
2834 * config/linux/x86_64/futex.h: New file.
2836 2005-05-04 Richard Henderson <rth@redhat.com>
2838 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2839 * libgomp.h: Declare them.
2840 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2841 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2843 2005-05-04 Richard Henderson <rth@redhat.com>
2845 * libgomp-1 code drop
2847 2005-05-04 Richard Henderson <rth@redhat.com>
2849 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2850 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2851 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2852 (gomp_iter_static_next): Update.
2853 (gomp_ordered_static_next): Update.
2854 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2855 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2856 totally empty range.
2857 (gomp_loop_ordered_static_next): Refine test for calling
2858 gomp_ordered_static_next.
2859 * testsuite/ordered-1.c: Add case for more threads than iterations.
2861 * iter.c (gomp_iter_runtime_next_locked): Remove.
2862 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2863 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2864 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2865 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2866 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2867 gomp_loop_ordered_guided_next): Downcase name, make static, add
2868 an external alias with the old name.
2869 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2870 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2871 switch and call one of the above static functions.
2872 * libgomp.h: Update.
2874 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2875 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2876 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2877 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2878 GOMP_loop_ordered_guided_start): Update to match.
2879 * sections.c (GOMP_sections_start): Likewise.
2880 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2882 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2883 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2884 Use bounds check instead of modulus.
2885 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2886 (gomp_ordered_last): Don't sync with ordered_owner here.
2887 (gomp_ordered_next): Likewise.
2888 (gomp_ordered_static_loop_next): Likewise.
2889 * loop.c, libgomp.h: Update to match.
2891 * libgomp.h (GOMP_barrier): Declare.
2893 * testsuite/barrier-1.c: New file.
2894 * testsuite/critical-1.c: New file.
2895 * testsuite/ordered-2.c: New file.
2896 * testsuite/ordered-1.c: New file.
2897 * testsuite/sections-1.c: New file.
2898 * testsuite/single-1.c: New file.
2899 * testsuite/Makefile (TESTS): Add them.
2901 2005-05-04 Richard Henderson <rth@redhat.com>
2903 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2904 * loop.c (GOMP_loop_static_start): If not the startup thread,
2905 acquire the mutex to wait for initialization complete.
2906 (GOMP_loop_ordered_static_start): Likewise.
2907 (GOMP_loop_ordered_runtime_start): Likewise.
2908 (GOMP_loop_ordered_static_first): Remove.
2909 (GOMP_loop_ordered_dynamic_first): Remove.
2910 (GOMP_loop_ordered_guided_first): Remove.
2911 (GOMP_loop_ordered_runtime_first): Remove.
2912 * ordered.c (gomp_ordered_loop_first): Post to own release when
2913 we're the first thread.
2914 (gomp_ordered_loop_last): Wait on release if not owner.
2915 (gomp_ordered_loop_next): Likewise.
2916 (gomp_ordered_static_loop_init): New.
2917 (gomp_ordered_static_loop_next): Use ordered_owner.
2918 (GOMP_ordered_start): Likewise.
2919 * work.c (gomp_new_work_share): Initialize ordered_owner.
2921 2005-05-03 Richard Henderson <rth@redhat.com>
2923 * Makefile (OPT): New.
2926 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2927 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2928 * libgomp.h, libgomp.map, NOTES: Update to match.
2930 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2931 Add initialized and thr members.
2932 (gomp_thread_start): Pause when initially spawned to wait for
2933 the whole team to be created.
2934 (gomp_team_start): Release team members at the end.
2936 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2937 (f_foo_1): Use GOMP_loop_end.
2938 (f_foo_2): Use GOMP_loop_end_nowait.
2940 * testsuite/loop-2.c: New file.
2941 * testsuite/Makefile (TESTS): Add it.
2943 2005-05-03 Richard Henderson <rth@redhat.com>
2945 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2946 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2947 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2950 * testsuite/Makefile: New file.
2951 * testsuite/loop-1.c: New file.
2953 2005-05-03 Richard Henderson <rth@redhat.com>
2955 Initial implementation and checkin.