1 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
5 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
11 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
15 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
20 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
22 * config/linux/proc.h: New.
23 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
24 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
25 (gomp_init_num_threads): Update call to cpuset_popcount.
26 (get_num_procs): Ditto.
27 * config/linux/affinity.c (gomp_init_affinity): Call
30 2011-08-02 Jakub Jelinek <jakub@redhat.com>
34 * omp.h.in (omp_in_final): New prototype.
35 * omp_lib.f90.in (omp_in_final): New interface.
36 (omp_integer_kind, omp_logical_kind): Remove
37 and replace all its uses in the module with 4.
38 (openmp_version): Change to 201107.
39 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
40 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
41 kind for the parameters.
42 (omp_in_final): New external.
43 (openmp_version): Change to 201107.
44 * task.c (omp_in_final): New function.
45 (gomp_init_task): Initialize final_task.
46 (GOMP_task): Remove unused attribute from flags. Handle final
48 (GOMP_taskyield): New function.
49 (omp_in_final): Return true if if (false) or final (true) task
50 or descendant of final (true).
51 * fortran.c (omp_in_final_): New function.
52 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
53 (GOMP_3.0): Export GOMP_taskyield.
54 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
56 (parse_unsigned_long_list): New function.
57 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
58 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
59 even if parse_affinity returned false.
60 * config/linux/affinity.c (gomp_init_affinity): Handle
61 gomp_cpu_affinity_len == 0.
62 * libgomp_g.h (GOMP_taskyield): New prototype.
63 * libgomp.h (struct gomp_task): Add final_task field.
64 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
65 * team.c (gomp_team_start): Override new task's nthreads_var icv
66 if list form OMP_NUM_THREADS has been used and it has value for
67 the new nesting level.
69 * testsuite/libgomp.c/atomic-11.c: New test.
70 * testsuite/libgomp.c/atomic-12.c: New test.
71 * testsuite/libgomp.c/atomic-13.c: New test.
72 * testsuite/libgomp.c/atomic-14.c: New test.
73 * testsuite/libgomp.c/reduction-6.c: New test.
74 * testsuite/libgomp.c/task-5.c: New test.
75 * testsuite/libgomp.c++/atomic-2.C: New test.
76 * testsuite/libgomp.c++/atomic-3.C: New test.
77 * testsuite/libgomp.c++/atomic-4.C: New test.
78 * testsuite/libgomp.c++/atomic-5.C: New test.
79 * testsuite/libgomp.c++/atomic-6.C: New test.
80 * testsuite/libgomp.c++/atomic-7.C: New test.
81 * testsuite/libgomp.c++/atomic-8.C: New test.
82 * testsuite/libgomp.c++/atomic-9.C: New test.
83 * testsuite/libgomp.c++/task-8.C: New test.
84 * testsuite/libgomp.c++/reduction-4.C: New test.
85 * testsuite/libgomp.fortran/allocatable7.f90: New test.
86 * testsuite/libgomp.fortran/allocatable8.f90: New test.
87 * testsuite/libgomp.fortran/crayptr3.f90: New test.
88 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
89 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
90 * testsuite/libgomp.fortran/pointer1.f90: New test.
91 * testsuite/libgomp.fortran/pointer2.f90: New test.
92 * testsuite/libgomp.fortran/task4.f90: New test.
94 2011-08-02 Tobias Burnus <burnus@net-b.de>
96 * libgomp.texi: Update OpenMP spec references to 3.1.
97 (omp_in_final,OMP_PROC_BIND): New sections.
98 (OMP_NUM_THREADS): Document that the value can be now a list.
99 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
101 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
103 * config/linux/x86/futex.h: Check __x86_64__ instead of
106 2011-07-29 Jakub Jelinek <jakub@redhat.com>
110 * testsuite/libgomp.c/pr49897-1.c: New test.
111 * testsuite/libgomp.c/pr49897-2.c: New test.
112 * testsuite/libgomp.c/pr49898-1.c: New test.
113 * testsuite/libgomp.c/pr49898-2.c: New test.
115 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
117 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
118 for ia32 instead of ilp32.
120 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
121 * testsuite/libgomp.c/atomic-6.c: Likewise.
123 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
125 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
126 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
128 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131 * config/osf/sem.h: New file.
132 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
134 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
140 2011-07-15 Jakub Jelinek <jakub@redhat.com>
142 * config/linux/wait.h (do_spin): New inline, largely copied
143 from do_wait, just don't do futex_wait here, instead return true if
145 (do_wait): Implement using do_spin.
146 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
148 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
149 __sync_bool_compare_and_swap, pass the oldval to
150 gomp_mutex_lock_slow.
151 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
152 If all mutex contenders are just spinning and not sleeping, don't
153 change state to 2 unnecessarily. Optimize the loop when state has
154 already become 2 to use just one atomic operation per loop instead
156 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
158 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
159 __sync_bool_compare_and_swap, pass the oldval to
160 gomp_mutex_lock_slow.
162 2011-06-22 Jakub Jelinek <jakub@redhat.com>
165 * iter.c (gomp_iter_static_next): For chunk size 0
166 only use n ceil/ nthreads size for the first
167 n % nthreads threads in the team instead of
168 all threads except for the last few ones which
169 get less work or none at all.
170 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
171 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
172 chunk argument, set run_sched_modifier to 0 for static
173 resp. 1 for other kinds. If chunk argument is 0
174 and not static, set value to 1.
176 2011-05-19 Jakub Jelinek <jakub@redhat.com>
179 * testsuite/libgomp.c++/pr49043.C: New test.
182 * testsuite/libgomp.c++/pr48869.C: New test.
184 2011-05-06 Jakub Jelinek <jakub@redhat.com>
187 * fortran.c: Include limits.h.
189 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
191 (omp_set_num_threads_8_, omp_set_schedule_8_,
192 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
193 omp_get_team_size_8_): Use TO_INT macro.
194 * testsuite/libgomp.fortran/pr48894.f90: New test.
196 2011-04-13 Jakub Jelinek <jakub@redhat.com>
199 * testsuite/libgomp.c/pr48591.c: New test.
201 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
204 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
205 * configure: Regenerate.
207 2011-02-27 Jakub Jelinek <jakub@redhat.com>
210 * testsuite/libgomp.fortran/task3.f90: New test.
212 2011-02-24 Tobias Burnus <burnus@net-b.de>
214 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
216 2011-02-23 Jakub Jelinek <jakub@redhat.com>
219 * libgomp.texi (omp_get_wtime): Don't say time in the past
222 2011-02-18 Jakub Jelinek <jakub@redhat.com>
225 * testsuite/libgomp.fortran/fortran.exp: Check for both
226 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
227 but $blddir != "", still append ${blddir}/${lang_library_path}
230 2011-02-16 Tobias Burnus <burnus@net-b.de>
233 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
234 of libquadmath.a before adding its libpath to ldflags.
236 2011-02-14 Jakub Jelinek <jakub@redhat.com>
239 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
240 to FUTEX_WAIT futex syscall.
241 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
243 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
245 * configure: Regenerate.
247 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
250 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
252 2011-01-16 Gerald Pfeifer
254 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
256 2010-12-14 Jakub Jelinek <jakub@redhat.com>
259 * libgomp.fortran/allocatable6.f90: New test.
261 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
263 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
264 * configure: Regenerate.
266 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
270 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
271 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
272 * aclocal.m4: Regenerate.
273 * configure: Regenerate.
274 * Makefile.in: Regenerate.
275 * testsuite/Makefile.in: Regenerate.
277 2010-12-02 Jakub Jelinek <jakub@redhat.com>
280 * libgomp.fortran/pr46753.f90: New test.
283 * env.c (initialize_env): Default to spin count 300000
284 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
288 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
289 at the end if sync builtins aren't supported.
291 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
293 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
295 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
297 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
299 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
301 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
303 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
304 Tobias Burnus <burnus@net-b.de>
308 * configure: Regenerate.
310 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
312 * config/linux/futex.h: New.
313 * config/linux/arm/mutex.h: New.
314 * configure.tgt (arm*-*-linux*): Add config path.
316 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
318 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
320 2010-09-23 Tobias Burnus <burnus@net-b.de>
322 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
323 Change Fortran datatype to LOGICAL.
324 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
325 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
327 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
329 * configure: Regenerate.
331 2010-07-26 Jakub Jelinek <jakub@redhat.com>
333 * libgomp.texi: Add function keyword to a couple of Fortran
334 interfaces, use integer instead of int for Fortran.
336 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
338 * libgomp.texi: Fix spelling and pasto problems throughout.
339 Adjust prototypes to match code.
341 2010-07-24 Tobias Burnus <burnus@net-b.de>
343 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
344 silence -fwhole-file warning.
346 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
348 * configure.tgt (*-*-solaris2.[56]*): Removed.
350 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
352 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
353 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
354 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
355 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
356 targetting solaris2*.
357 * configure: Regenerate.
358 * config.h.in: Regenerate.
360 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
361 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
362 Add libgomp_version_dep.
363 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
365 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
366 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
367 * Makefile.in: Regenerate.
369 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
370 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
371 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
372 to common block, protected by
373 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
375 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
377 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
379 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
382 * configure: Regenerate.
384 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
387 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
388 * configure: Regenerate.
389 * Makefile.in: Regenerate.
390 * testsuite/Makefile.in: Regenerate.
392 2010-04-26 Jakub Jelinek <jakub@redhat.com>
395 * testsuite/libgomp.c/pr43893.c: New test.
396 * testsuite/libgomp.c++/pr43893.C: New test.
398 2010-04-21 Jakub Jelinek <jakub@redhat.com>
401 * testsuite/libgomp.fortran/vla8.f90: New test.
403 2010-04-20 Jakub Jelinek <jakub@redhat.com>
406 * config/linux/affinity.c (gomp_init_affinity): Decrease
407 gomp_available_cpus if affinity mask confines the process to fewer
409 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
410 non-NULL, just return gomp_available_cpus.
413 * sections.c (gomp_sections_init): Initialize ws->mode.
415 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
417 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
418 not unused bar variable.
419 * configure: Regenerate.
421 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
423 * Makefile.in: Regenerate.
424 * aclocal.m4: Regenerate.
425 * testsuite/Makefile.in: Regenerate.
427 2010-03-22 Jakub Jelinek <jakub@redhat.com>
430 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
431 (initialize_env): Adjust callers.
432 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
433 when the argument is 0.
435 * testsuite/libgomp.c/pr42942.c: New test.
437 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
441 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
442 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
444 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
446 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
447 * testsuite/libgomp.c++/task-6.C: Likewise.
449 2010-01-28 Steve Ellcey <sje@cup.hp.com>
451 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
453 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
455 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
456 * configure: Regenerate.
458 2010-01-26 Jakub Jelinek <jakub@redhat.com>
461 * testsuite/libgomp.fortran/allocatable5.f90: New test.
463 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
465 * configure.ac: Test for executability of GFORTRAN.
466 * configure: Regenerate.
468 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
470 * configure: Regenerate.
472 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
475 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
477 2010-01-03 Richard Guenther <rguenther@suse.de>
479 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
481 2009-12-23 Sebastian Pop <sebpop@gmail.com>
483 * testsuite/libgomp.graphite/pr4118.c: New.
485 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
487 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
488 for darwin, protect the test with require-effective-target tls_runtime.
489 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
491 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
494 * testsuite/lib/libgomp.exp: Provide -B options to allow for
495 link spec %s substitutions for static libraries.
497 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
500 * libgomp.graphite/force-parallel-2.c: Reduce array size.
502 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
504 * Makefile.in: Regenerate.
505 * configure: Regenerate.
506 * testsuite/Makefile.in: Regenerate.
508 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
510 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
511 settings for LC_ALL and LANG.
513 2009-11-25 Jakub Jelinek <jakub@redhat.com>
516 * testsuite/libgomp.fortran/pr42162.f90: New test.
518 2009-11-13 Jakub Jelinek <jakub@redhat.com>
521 * testsuite/libgomp.c/pr42029.c: New test.
523 2009-10-26 Jakub Jelinek <jakub@redhat.com>
525 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
526 *s. Accept ld version without text in ()s.
527 * configure: Regenerated.
529 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
531 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
533 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
536 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
537 or a hyphen (happens with fortran language disabled).
538 * configure: Regenerate.
540 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
542 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
543 use sed script portable to Solaris /bin/sed for extracting ld
545 * configure: Regenerate.
547 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
549 * testsuite/libgomp.graphite/bounds.c: New test.
551 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
553 * Makefile.am (libgomp_la_LINK): New.
554 * Makefile.in: Regenerate.
556 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
558 * configure.ac (AC_PREREQ): Bump to 2.64.
560 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
562 * Makefile.am (install-html, install-pdf): Remove.
563 * Makefile.in: Regenerate.
565 * Makefile.in: Regenerate.
566 * aclocal.m4: Regenerate.
567 * config.h.in: Regenerate.
568 * configure: Regenerate.
569 * testsuite/Makefile.in: Regenerate.
571 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
573 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
574 * Makefile.in: Regenerate.
576 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
578 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
579 * Makefile.in: Regenerate.
581 2009-08-19 Tobias Burnus <burnus@net-b.de>
584 omp_lib.h.in: Fix -std=f95 errors.
587 2009-08-14 David Edelsohn <edelsohn@gnu.org>
589 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
590 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
591 * testsuite/libgomp.graphite/graphite.exp: New.
593 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
595 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
598 2009-08-04 David Daney <ddaney@caviumnetworks.com>
600 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
601 needed memory barrier semantics.
602 * config/linux/mips/mutex.h: New file.
604 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
606 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
608 2009-07-16 Joseph Myers <joseph@codesourcery.com>
610 * configure: Regenerate.
612 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
617 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
618 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
619 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
621 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
623 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
624 options when choosing a multilib.
626 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
628 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
629 ld_library_path. Use add_path. Add just find_libgcc_s to
630 ld_library_path, not every libgcc multilib directory.
631 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
632 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
633 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
635 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
637 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
639 * Makefile.am (LTLDFLAGS): Define.
641 * Makefile.in: Regenerate.
643 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
646 * testsuite/libgomp.fortran/fortran.exp: Don't link with
647 libgfortranbegin, check existence of libgfortran.a instead of
650 2009-05-20 Jakub Jelinek <jakub@redhat.com>
653 * team.c (gomp_thread_start): Destroy thr->release semaphore.
654 (gomp_free_pool_helper): Likewise.
656 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
657 Jakub Jelinek <jakub@redhat.com>
660 * testsuite/libgomp.fortran/workshare2.f90: New test.
662 2009-04-09 Nick Clifton <nickc@redhat.com>
664 * iter.c: Change copyright header to refer to version 3 of the
665 GNU General Public License with version 3.1 of the GCC Runtime
666 Library Exception and to point readers at the COPYING3 and
667 COPYING3.RUNTIME files and the FSF's license web page.
669 * barrier.c: Likewise.
670 * config/bsd/proc.c: Likewise.
671 * config/linux/affinity.c: Likewise.
672 * config/linux/alpha/futex.h: Likewise.
673 * config/linux/bar.c: Likewise.
674 * config/linux/bar.h: Likewise.
675 * config/linux/ia64/futex.h: Likewise.
676 * config/linux/ia64/mutex.h: Likewise.
677 * config/linux/lock.c: Likewise.
678 * config/linux/mips/futex.h: Likewise.
679 * config/linux/mutex.c: Likewise.
680 * config/linux/mutex.h: Likewise.
681 * config/linux/powerpc/futex.h: Likewise.
682 * config/linux/proc.c: Likewise.
683 * config/linux/ptrlock.c: Likewise.
684 * config/linux/ptrlock.h: Likewise.
685 * config/linux/s390/futex.h: Likewise.
686 * config/linux/sem.c: Likewise.
687 * config/linux/sem.h: Likewise.
688 * config/linux/sparc/futex.h: Likewise.
689 * config/linux/wait.h: Likewise.
690 * config/linux/x86/futex.h: Likewise.
691 * config/mingw32/proc.c: Likewise.
692 * config/mingw32/time.c: Likewise.
693 * config/posix/affinity.c: Likewise.
694 * config/posix/bar.c: Likewise.
695 * config/posix/bar.h: Likewise.
696 * config/posix/lock.c: Likewise.
697 * config/posix/mutex.h: Likewise.
698 * config/posix/proc.c: Likewise.
699 * config/posix/ptrlock.h: Likewise.
700 * config/posix/sem.c: Likewise.
701 * config/posix/sem.h: Likewise.
702 * config/posix/time.c: Likewise.
703 * config/posix95/lock.c: Likewise.
704 * critical.c: Likewise.
707 * fortran.c: Likewise.
708 * iter_ull.c: Likewise.
709 * libgomp.h: Likewise.
710 * libgomp_f.h.in: Likewise.
711 * libgomp_g.h: Likewise.
713 * loop_ull.c: Likewise.
714 * omp.h.in: Likewise.
715 * omp_lib.f90.in: Likewise.
716 * omp_lib.h.in: Likewise.
717 * ordered.c: Likewise.
718 * parallel.c: Likewise.
719 * sections.c: Likewise.
720 * single.c: Likewise.
725 2009-04-09 Jakub Jelinek <jakub@redhat.com>
727 * testsuite/config/default.exp: Change copyright header to refer to
728 version 3 of the GNU General Public License and to point readers
729 at the COPYING3 file and the FSF's license web page.
731 2009-04-08 Jakub Jelinek <jakub@redhat.com>
734 * libgomp.c++/pr39573.C: New test.
736 2009-04-01 Jakub Jelinek <jakub@redhat.com>
739 * testsuite/libgomp.c/pr39591-1.c: New test.
740 * testsuite/libgomp.c/pr39591-2.c: New test.
741 * testsuite/libgomp.c/pr39591-3.c: New test.
743 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
745 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
746 * testsuite/libgomp.c/atomic-6.c: Ditto.
748 2009-03-23 Jakub Jelinek <jakub@redhat.com>
751 * testsuite/libgomp.c/loop-12.c: New test.
752 * testsuite/libgomp.c/loop-11.c: New test.
753 * testsuite/libgomp.c++/loop-11.C: New test.
754 * testsuite/libgomp.c++/loop-12.C: New test.
755 * testsuite/libgomp.c++/for-8.C: New test.
757 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
759 * configure: Regenerate.
761 2009-02-11 Jakub Jelinek <jakub@redhat.com>
764 * testsuite/libgomp.c/pr39154.c: New test.
766 2009-01-30 Ian Lance Taylor <iant@google.com>
768 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
769 libgomp_ld_is_gold. Get gold version number.
770 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
771 * configure: Rebuild.
773 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
775 * testsuite/lib/libgomp.exp: Add -B option for targets that
776 use libgfortran.a%s in their specs.
778 2009-01-07 Jakub Jelinek <jakub@redhat.com>
781 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
782 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
783 HAVE_AS_SYMVER_DIRECTIVE is not defined.
784 * configure: Regenerated.
785 * config.h.in: Likewise.
787 2008-12-28 Jakub Jelinek <jakub@redhat.com>
790 * testsuite/libgomp.c/pr38650.c: New test.
791 * testsuite/libgomp.c++/pr38650.C: New test.
793 2008-12-27 Jakub Jelinek <jakub@redhat.com>
795 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
797 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
799 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
801 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
803 * configure: Regenerate.
805 2008-12-08 Jakub Jelinek <jakub@redhat.com>
808 * testsuite/libgomp.c/pr36802-1.c: New test.
809 * testsuite/libgomp.c/pr36802-2.c: New test.
810 * testsuite/libgomp.c/pr36802-3.c: New test.
812 2008-12-01 Janis Johnson <janis187@us.ibm.com>
815 * config/linux/powerpc/mutex.h: New.
817 2008-12-01 Jakub Jelinek <jakub@redhat.com>
820 * testsuite/libgomp.c++/for-7.C: New test.
823 * testsuite/libgomp.c++/for-6.C: New test.
825 2008-11-26 Janis Johnson <janis187@us.ibm.com>
828 * testsuite/lib/libgomp.exp: Include new timeout library files.
829 (libgomp_target_compile): Set timeout value from new proc.
831 2008-11-13 Steve Ellcey <sje@cup.hp.com>
834 * config/linux/ia64/mutex.h: New.
836 2008-11-04 Tobias Burnus <burnus@net-b.de>
839 * libgomp.texi (Runtime library routines, environment variables):
840 Update for OpenMP version 3.0.
842 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
843 Steve Ellcey <sje@cup.hp.com>
845 * configure: Regenerate for new libtool.
846 * Makefile.in: Ditto.
847 * testsuite/Makefile.in: Ditto.
849 2008-09-19 Jakub Jelinek <jakub@redhat.com>
850 Andreas Tobler <a.tobler@schweiz.org>
852 * config/bsd/proc.c: New file.
853 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
854 * configure.ac: Check for header <sys/sysctl.h>
855 * configure: Regenerate.
856 * config.h.in: Likewise.
858 2008-09-05 Janis Johnson <janis187@us.ibm.com>
860 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
862 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
864 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
865 * Makefile.in: Regenerated.
866 * testsuite/Makefile.in: Regenerated.
868 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
870 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
871 depend on blddir if blddir exists.
872 (libgomp_target_compile): Likewise.
873 * testsuite/libgomp.c++/c++.exp: Likewise.
874 * testsuite/libgomp.fortran/fortran.exp: Likewise.
876 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
878 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
879 Do not list GPL as Invariant Section.
881 2008-07-28 Ilie Garbacea <ilie@mips.com>
882 Chao-ying Fu <fu@mips.com>
884 * configure.tgt: Enable futex for MIPS.
885 * config/linux/mips/futex.h: New file.
887 2008-07-16 Jakub Jelinek <jakub@redhat.com>
889 * team.c (gomp_team_end): Free team immediately if it has
892 2008-07-08 David Edelsohn <edelsohn@gnu.org>
894 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
895 * testsuite/libgomp.fortran/fortran.exp: Same.
896 * testsuite/libgomp.c/c.exp: Same.
897 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
898 directory to library path first.
900 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
902 * env.c (parse_stacksize): Add cast to avoid warning.
903 (parse_spincount): Likewise.
905 2008-06-27 Jakub Jelinek <jakub@redhat.com>
907 * testsuite/libgomp.c/loop-10.c: New test.
908 * libgomp.c/loop-3.c (main): Add lastprivate clause.
909 * libgomp.c++/loop-6.C (main): Likewise.
912 * testsuite/libgomp.c/debug-1.c: New test.
914 2008-06-19 Jakub Jelinek <jakub@redhat.com>
916 * testsuite/libgomp.c/nqueens-1.c: New test.
919 * testsuite/libgomp.c++/task-7.C: New function.
921 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
923 * configure: Regenerate.
925 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
927 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
928 mutex when HAVE_SYNC_BUILTINS isn't defined.
930 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
932 * libgomp.texi (omp_test_lock): Fix typo.
934 2008-06-12 Tobias Burnus <burnus@net-b.de>
936 * omp_lib.f90.in: Add "implicit none".
938 2008-06-12 Jakub Jelinek <jakub@redhat.com>
941 * testsuite/libgomp.c/reduction-5.c: New test.
943 2008-06-11 Jakub Jelinek <jakub@redhat.com>
945 * libgomp.h (struct gomp_task): Add in_tied_task field.
946 * task.c (gomp_init_task): Initialize it.
947 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
948 unconditionally. Don't call gomp_team_barrier_wake if
949 current task is implicit or if(0) from implicit and number of
950 running tasks is equal to nthreads - 1.
953 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
954 omp_get_team_size_8): Fix pastos.
957 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
958 * configure: Regenerated.
959 * config.h.in: Regenerated.
960 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
963 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
966 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
967 (GOMP_loop_ull_dynamic_start): Likewise.
968 (GOMP_loop_ull_guided_start): Likewise.
969 (GOMP_loop_ull_ordered_static_start): Likewise.
970 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
971 (GOMP_loop_ull_ordered_guided_start): Likewise.
973 2008-06-06 Jakub Jelinek <jakub@redhat.com>
974 Richard Henderson <rth@redhat.com>
975 Ulrich Drepper <drepper@redhat.com>
976 Jakob Blomer <jakob.blomer@ira.uka.de>
978 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
979 Substitute also OMP_*LOCK_25*.
980 * configure: Regenerated.
981 * config.h.in: Regenerated.
982 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
983 ptrlock.c and task.c.
984 * Makefile.in: Regenerated.
985 * testsuite/Makefile.in: Regenerated.
987 * loop_ull.c: New file.
988 * iter_ull.c: New file.
989 * libgomp.h: Include ptrlock.h.
990 (enum gomp_task_kind): New type.
991 (struct gomp_team): Add task_lock, task_queue, task_count,
992 task_running_count, single_count fields. Add
993 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
994 Remove work_share_lock, generation_mask,
995 oldest_live_gen, num_live_gen and init_work_shares fields, add
996 work work_share_list_alloc, work_share_list_free and work_share_chunk
997 fields. Change work_shares from pointer to pointers into an array.
998 Change ordered_release field into gomp_sem_t ** from flexible array
999 member. Add implicit_task and initial_work_shares fields.
1000 Move close to the end of the struct.
1001 (struct gomp_team_state): Add single_count, last_work_share,
1002 active_level and level fields, remove work_share_generation.
1003 (gomp_barrier_handle_tasks): New prototype.
1004 (gomp_finish_task): New inline function.
1005 (struct gomp_work_share): Move chunk_size, end, incr into
1006 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1007 next_ll fields. Reshuffle fields. Add next_alloc,
1008 next_ws, next_free and inline_ordered_team_ids fields, change
1009 ordered_team_ids into pointer from flexible array member.
1010 Add mode field. Put lock and next into a different cache line
1011 from most of the write-once fields.
1012 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1013 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1014 gomp_iter_ull_guided_next): New prototypes.
1015 (gomp_new_icv): New prototype.
1016 (struct gomp_thread): Add thread_pool and task fields.
1017 (struct gomp_thread_pool): New type.
1018 (gomp_new_team): New prototype.
1019 (gomp_team_start): Change type of last argument.
1020 (gomp_new_work_share): Removed.
1021 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1022 (gomp_work_share_init_done): New static inline.
1023 (gomp_throttled_spin_count_var, gomp_available_cpus,
1024 gomp_managed_threads): New extern decls.
1025 (gomp_init_task): New prototype.
1026 (gomp_spin_count_var): New extern var decl.
1027 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1028 or no alias support, or if not PIC.
1029 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1030 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1031 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1032 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1033 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1034 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1035 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1036 gomp_test_nest_lock_25): New prototypes.
1037 (omp_lock_symver, strong_alias): Define.
1038 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1040 (gomp_end_task): New.
1041 (struct gomp_task_icv, gomp_global_icv): New.
1042 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1043 (struct gomp_task): New.
1044 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1045 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1047 (gomp_schedule_type): Reorder enum to match
1049 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1051 (gomp_thread_start): Add gomp_team_barrier_wait call.
1052 For non-nested case remove clearing of docked thread thr fields.
1053 Use pool fields instead of global gomp_* variables. Use
1054 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1055 Create tasks for each member thread.
1056 (free_team): Only destroy team barrier, task_lock here and free it.
1057 (gomp_free_thread): Free last_team if non-NULL.
1058 (gomp_team_end): Call gomp_team_barrier_wait instead of
1059 gomp_barrier_wait. For nested case call one extra
1060 gomp_barrier_wait. Move here some destruction from free_team.
1061 Call free_team on pool->last_team if any, rather than freeing
1062 current team. Destroy work_share_list_free_lock ifndef
1064 (gomp_new_icv): New function.
1065 (gomp_threads, gomp_threads_size, gomp_threads_used,
1066 gomp_threads_dock): Removed.
1067 (gomp_thread_destructor): New variable.
1068 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1070 (gomp_team_start): Create new pool if current thread doesn't have
1071 one. Use pool fields instead of global gomp_* variables.
1072 Initialize thread_pool field for new threads. Clear single_count.
1073 Change last argument from ws to team, don't create
1074 new team, set ts.work_share to &team->work_shares[0] and clear
1075 ts.last_work_share. Don't clear ts.work_share_generation.
1076 If number of threads changed, adjust atomically gomp_managed_threads.
1077 Use gomp_init_task instead of gomp_new_task,
1078 set thr->task to the corresponding implicit_task array entry.
1079 Create tasks for each member thread. Initialize ts.level.
1080 (initialize_team): Call pthread_key_create on
1081 gomp_thread_destructor.
1082 (team_destructor): New function.
1083 (new_team): Removed.
1084 (gomp_new_team): New function.
1085 (free_team): Free gomp_work_share blocks chained through next_alloc,
1086 instead of freeing work_shares and destroying work_share_lock.
1087 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1088 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1089 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1090 of gomp_barrier_wait.
1091 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1092 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1093 if gomp_work_share_start returned true. Don't unlock ws->lock.
1094 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1095 of gomp_barrier_wait.
1096 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1097 gomp_work_share_init_done if gomp_work_share_start returned true.
1098 Don't unlock ws->lock.
1099 * work.c: Include stddef.h.
1100 (free_work_share): Use work_share_list_free_lock instead
1101 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1102 Call gomp_fini_work_share and then either free ws if orphaned, or
1103 put it into work_share_list_free list of the current team.
1104 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1106 (gomp_work_share_start, gomp_work_share_end,
1107 gomp_work_share_end_nowait): Rewritten.
1108 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1109 (openmp_version): Set to 200805.
1110 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1111 omp_sched_guided, omp_sched_auto): New parameters.
1112 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1113 omp_set_max_active_levels, omp_get_max_active_levels,
1114 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1115 omp_get_active_level): New interfaces.
1116 * omp_lib.h.in (openmp_version): Set to 200805.
1117 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1118 omp_sched_guided, omp_sched_auto): New parameters.
1119 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1120 omp_set_max_active_levels, omp_get_max_active_levels,
1121 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1122 omp_get_active_level): New externals.
1123 * loop.c: Include limits.h.
1124 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1126 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1127 Likewise. Use gomp_icv.
1128 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1129 ts.static_trip here.
1130 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1131 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1132 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1133 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1134 don't unlock ws->lock, otherwise lock it.
1135 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1136 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1137 (gomp_parallel_loop_start): Call gomp_new_team instead of
1138 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1139 Adjust gomp_team_start caller. Pass 0 as second argument to
1140 gomp_resolve_num_threads.
1141 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1142 If adding ws->chunk_size nthreads + 1 times after end won't
1143 overflow, set ws->mode to 1.
1144 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1145 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1146 GOMP_loop_ull_ordered_static_start,
1147 GOMP_loop_ull_ordered_dynamic_start,
1148 GOMP_loop_ull_ordered_guided_start,
1149 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1150 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1151 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1152 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1153 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1155 * libgomp.map: Export lock routines also @@OMP_2.0.
1156 (GOMP_loop_ordered_dynamic_first,
1157 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1158 GOMP_loop_ordered_static_first): Remove.
1159 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1160 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1161 GOMP_loop_ull_ordered_dynamic_next,
1162 GOMP_loop_ull_ordered_dynamic_start,
1163 GOMP_loop_ull_ordered_guided_next,
1164 GOMP_loop_ull_ordered_guided_start,
1165 GOMP_loop_ull_ordered_runtime_next,
1166 GOMP_loop_ull_ordered_runtime_start,
1167 GOMP_loop_ull_ordered_static_next,
1168 GOMP_loop_ull_ordered_static_start,
1169 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1170 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1171 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1172 (omp_set_schedule, omp_get_schedule,
1173 omp_get_thread_limit, omp_set_max_active_levels,
1174 omp_get_max_active_levels, omp_get_level,
1175 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1176 omp_set_schedule_, omp_set_schedule_8_,
1177 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1178 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1179 omp_get_max_active_levels_, omp_get_level_,
1180 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1181 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1182 New exports @@OMP_3.0.
1183 * omp.h.in (omp_sched_t): New type.
1184 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1185 omp_set_max_active_levels, omp_get_max_active_levels,
1186 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1187 omp_get_active_level): New prototypes.
1188 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1189 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1190 gomp_thread_limit_var, gomp_remaining_threads_count,
1191 gomp_remaining_threads_lock): New variables.
1192 (parse_spincount): New function.
1193 (initialize_env): Call gomp_init_num_threads unconditionally.
1194 Initialize gomp_available_cpus. Call parse_spincount,
1195 initialize gomp_{,throttled_}spin_count_var
1196 depending on presence and value of OMP_WAIT_POLICY and
1197 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1198 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1199 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1200 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1201 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1202 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1203 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1204 (gomp_global_icv): New.
1205 (parse_schedule): Use it. Parse "auto".
1206 (omp_set_num_threads): Use gomp_icv.
1207 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1209 (omp_get_max_threads): Move from parallel.c.
1210 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1211 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1213 (parse_stacksize, parse_wait_policy): New functions.
1214 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1215 both wrappers for compatibility and new locks.
1216 (omp_set_schedule, omp_get_schedule,
1217 omp_get_thread_limit, omp_set_max_active_levels,
1218 omp_get_max_active_levels, omp_get_level,
1219 omp_get_ancestor_thread_num, omp_get_team_size,
1220 omp_get_active_level): New ialias_redirect.
1221 (omp_set_schedule_, omp_set_schedule_8_,
1222 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1223 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1224 omp_get_max_active_levels_, omp_get_level_,
1225 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1226 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1228 * parallel.c: Include limits.h.
1229 (gomp_resolve_num_threads): Add count argument. Rewritten.
1230 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1231 argument to gomp_team_start. Pass 0 as second argument to
1232 gomp_resolve_num_threads.
1233 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1234 if gomp_thread_limit_var != ULONG_MAX.
1235 (omp_in_parallel): Implement using ts.active_level.
1236 (omp_get_max_threads): Move to env.c.
1237 (omp_get_level, omp_get_ancestor_thread_num,
1238 omp_get_team_size, omp_get_active_level): New functions,
1240 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1241 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1242 gomp_iter_dynamic_next instead of the _locked variant and don't take
1243 lock around it, otherwise acquire it before calling
1244 gomp_iter_dynamic_next_locked.
1245 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1246 gomp_iter_dynamic_next instead of the _locked variant and don't take
1248 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1249 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1250 Adjust gomp_team_start caller. Pass count as second argument to
1251 gomp_resolve_num_threads, don't adjust num_threads after the call.
1253 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1254 ws->chunk_size by incr.
1255 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1257 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1259 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1260 (omp_check_defines): Check even the compat defines.
1261 * config/linux/ptrlock.c: New file.
1262 * config/linux/ptrlock.h: New file.
1263 * config/linux/wait.h: New file.
1264 * config/posix/ptrlock.c: New file.
1265 * config/posix/ptrlock.h: New file.
1266 * config/linux/bar.h (gomp_team_barrier_wait,
1267 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1268 (gomp_team_barrier_set_task_pending,
1269 gomp_team_barrier_clear_task_pending,
1270 gomp_team_barrier_set_waiting_for_tasks,
1271 gomp_team_barrier_waiting_for_tasks,
1272 gomp_team_barrier_done): New inlines.
1273 (gomp_barrier_t): Rewritten.
1274 (gomp_barrier_state_t): New typedef.
1275 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1276 gomp_barrier_wait_start): Rewritten.
1277 (gomp_barrier_wait_end): Change second argument to
1278 gomp_barrier_state_t.
1279 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1281 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1283 (gomp_barrier_wait_end): Rewritten.
1284 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1285 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1286 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1287 (gomp_barrier_state_t): New typedef.
1288 (gomp_team_barrier_wait,
1289 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1290 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1291 into the return value. Return gomp_barrier_state_t.
1292 (gomp_team_barrier_set_task_pending,
1293 gomp_team_barrier_clear_task_pending,
1294 gomp_team_barrier_set_waiting_for_tasks,
1295 gomp_team_barrier_waiting_for_tasks,
1296 gomp_team_barrier_done): New inlines.
1297 (gomp_barrier_wait_end): Change second argument to
1298 gomp_barrier_state_t.
1299 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1301 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1302 (gomp_barrier_wait_end): Change second argument to
1303 gomp_barrier_state_t.
1304 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1305 gomp_team_barrier_wake): New functions.
1306 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1308 (gomp_futex_wake, gomp_futex_wait): New variables.
1309 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1310 * config/linux/lock.c: Rewrite to make locks task owned,
1311 for backwards compatibility provide the old entrypoints
1312 if symbol versioning. Include wait.h instead of libgomp.h and
1314 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1315 * config/posix95/lock.c: Rewrite to make locks task owned,
1316 for backwards compatibility provide the old entrypoints
1317 if symbol versioning.
1318 * config/posix/lock.c: Rewrite to make locks task owned,
1319 for backwards compatibility provide the old entrypoints
1320 if symbol versioning.
1321 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1322 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1323 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1324 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1325 (sys_futex0): Return error code.
1326 (futex_wake, futex_wait): If ENOSYS was returned, clear
1327 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1328 (cpu_relax, atomic_write_barrier): New static inlines.
1329 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1330 (futex_wake, futex_wait): If ENOSYS was returned, clear
1331 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1332 (cpu_relax, atomic_write_barrier): New static inlines.
1333 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1334 (sys_futex0): Return error code.
1335 (futex_wake, futex_wait): If ENOSYS was returned, clear
1336 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1337 (cpu_relax, atomic_write_barrier): New static inlines.
1338 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1339 (sys_futex0): Return error code.
1340 (futex_wake, futex_wait): If ENOSYS was returned, clear
1341 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1342 (cpu_relax, atomic_write_barrier): New static inlines.
1343 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1344 (sys_futex0): Return error code.
1345 (futex_wake, futex_wait): If ENOSYS was returned, clear
1346 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1347 (cpu_relax, atomic_write_barrier): New static inlines.
1348 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1349 (sys_futex0): Return error code.
1350 (futex_wake, futex_wait): If ENOSYS was returned, clear
1351 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1352 (cpu_relax, atomic_write_barrier): New static inlines.
1353 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1355 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1356 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1357 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1359 (omp_nest_lock_t): Change owner into void *, add lock field.
1360 * config/posix95/omp-lock.h: Include semaphore.h.
1361 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1362 (omp_lock_t): Use sem_t instead of mutex if semaphores
1364 (omp_nest_lock_t): Likewise. Change owner to void *.
1365 * config/posix/omp-lock.h: Include semaphore.h.
1366 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1367 (omp_lock_t): Use sem_t instead of mutex if semaphores
1369 (omp_nest_lock_t): Likewise. Add owner field.
1371 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1373 * testsuite/libgomp.c/collapse-1.c: New test.
1374 * testsuite/libgomp.c/collapse-2.c: New test.
1375 * testsuite/libgomp.c/collapse-3.c: New test.
1376 * testsuite/libgomp.c/icv-1.c: New test.
1377 * testsuite/libgomp.c/icv-2.c: New test.
1378 * testsuite/libgomp.c/lib-2.c: New test.
1379 * testsuite/libgomp.c/lock-1.c: New test.
1380 * testsuite/libgomp.c/lock-2.c: New test.
1381 * testsuite/libgomp.c/lock-3.c: New test.
1382 * testsuite/libgomp.c/loop-4.c: New test.
1383 * testsuite/libgomp.c/loop-5.c: New test.
1384 * testsuite/libgomp.c/loop-6.c: New test.
1385 * testsuite/libgomp.c/loop-7.c: New test.
1386 * testsuite/libgomp.c/loop-8.c: New test.
1387 * testsuite/libgomp.c/loop-9.c: New test.
1388 * testsuite/libgomp.c/nested-3.c: New test.
1389 * testsuite/libgomp.c/nestedfn-6.c: New test.
1390 * testsuite/libgomp.c/sort-1.c: New test.
1391 * testsuite/libgomp.c/task-1.c: New test.
1392 * testsuite/libgomp.c/task-2.c: New test.
1393 * testsuite/libgomp.c/task-3.c: New test.
1394 * testsuite/libgomp.c/task-4.c: New test.
1395 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1396 to C++ testsuite default compiler options.
1397 * testsuite/libgomp.c++/collapse-1.C: New test.
1398 * testsuite/libgomp.c++/collapse-2.C: New test.
1399 * testsuite/libgomp.c++/ctor-10.C: New test.
1400 * testsuite/libgomp.c++/for-1.C: New test.
1401 * testsuite/libgomp.c++/for-2.C: New test.
1402 * testsuite/libgomp.c++/for-3.C: New test.
1403 * testsuite/libgomp.c++/for-4.C: New test.
1404 * testsuite/libgomp.c++/for-5.C: New test.
1405 * testsuite/libgomp.c++/loop-8.C: New test.
1406 * testsuite/libgomp.c++/loop-9.C: New test.
1407 * testsuite/libgomp.c++/loop-10.C: New test.
1408 * testsuite/libgomp.c++/task-1.C: New test.
1409 * testsuite/libgomp.c++/task-2.C: New test.
1410 * testsuite/libgomp.c++/task-3.C: New test.
1411 * testsuite/libgomp.c++/task-4.C: New test.
1412 * testsuite/libgomp.c++/task-5.C: New test.
1413 * testsuite/libgomp.c++/task-6.C: New test.
1414 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1415 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1416 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1417 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1418 * testsuite/libgomp.fortran/collapse1.f90: New test.
1419 * testsuite/libgomp.fortran/collapse2.f90: New test.
1420 * testsuite/libgomp.fortran/collapse3.f90: New test.
1421 * testsuite/libgomp.fortran/collapse4.f90: New test.
1422 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1423 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1424 * testsuite/libgomp.fortran/lib4.f90: New test.
1425 * testsuite/libgomp.fortran/lock-1.f90: New test.
1426 * testsuite/libgomp.fortran/lock-2.f90: New test.
1427 * testsuite/libgomp.fortran/nested1.f90: New test.
1428 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1429 * testsuite/libgomp.fortran/strassen.f90: New test.
1430 * testsuite/libgomp.fortran/tabs1.f90: New test.
1431 * testsuite/libgomp.fortran/tabs2.f: New test.
1432 * testsuite/libgomp.fortran/task1.f90: New test.
1433 * testsuite/libgomp.fortran/task2.f90: New test.
1434 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1435 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1436 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1437 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1438 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1440 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1443 * testsuite/libgomp.c++/ctor-11.C: New test.
1444 * testsuite/libgomp.c++/ctor-12.C: New test.
1446 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1448 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1450 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1453 * testsuite/libgomp.c/atomic-5.c: New test.
1454 * testsuite/libgomp.c/atomic-6.c: New test.
1455 * testsuite/libgomp.c/autopar-1.c: New test.
1457 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1459 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1460 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1461 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1462 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1463 * configure: Regenerate.
1464 * Makefile.in, testsuite/Makefile.in: Likewise.
1466 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1469 * aclocal.m4: Regenerate.
1470 * configure: Regenerate.
1472 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1475 * testsuite/libgomp.c/atomic-4.c: New test.
1478 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1479 (gomp_iter_guided_next): Likewise.
1480 * testsuite/libgomp.c/pr35625.c: New test.
1482 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1484 * aclocal.m4: Regenerate.
1485 * configure: Likewise.
1486 * Makefile.in: Likewise.
1487 * testsuite/Makefile.in: Likewise.
1489 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1492 * testsuite/libgomp.c++/pr35185.C: New test.
1494 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1497 * testsuite/libgomp.c/pr35549.c: New test.
1499 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1501 * testsuite/libgomp.c/atomic-3.c: New test.
1503 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1506 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1509 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1512 * configure.ac: Add ACX_HEADER_STRING.
1513 * env.c: Include strings.h.
1514 * aclocal.m4: Regenerate.
1515 * config.h.in: Regenerate.
1516 * configure: Regenerate.
1517 * Makefile.in: Regenerate.
1518 * testsuite/Makefile.in: Regenerate.
1520 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1523 * testsuite/libgomp.c/pr35196.c: New test.
1526 * testsuite/libgomp.fortran/pr35130.f90: New test.
1527 * testsuite/libgomp.c/pr35130.c: New test.
1529 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1532 * testsuite/libgomp.c/pr33880.c: New test.
1533 * testsuite/libgomp.fortran/pr33880.f90: New test.
1535 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1537 * configure: Regenerate.
1539 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1541 * configure.ac: Move futex checking into ../config/futex.m4.
1542 * configure: Rebuilt.
1543 * aclocal.m4: Rebuilt.
1544 * Makefile.in: Rebuilt.
1546 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1547 2007-10-15 ../config/tls.m4 change.
1549 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1552 * testsuite/libgomp.c/pr34513.c: New test.
1553 * testsuite/libgomp.c++/pr34513.C: New test.
1555 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1558 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1560 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1562 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1564 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1566 * testsuite/libgomp.c/private-1.c: New test.
1568 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1569 Paolo Bonzini <bonzini@gnu.org>
1571 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1572 instead of 'VPATH ='.
1573 * Makefile.in: Regenerate.
1575 2007-11-23 Matthias Klose <doko@ubuntu.com>
1577 * configure.ac: Adjust makeinfo version check.
1578 * configure: Regenerate.
1580 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1583 * testsuite/libgomp.fortran/pr34020.f90: New test.
1585 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1588 * testsuite/libgomp.c++/atomic-1.C: New test.
1590 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1593 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1594 Make x and y integers rather than (implicit) reals. Add private (j)
1595 clause to the last omp parallel.
1597 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1599 * configure: Regenerate following changes to ../config/tls.m4.
1601 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1603 * testsuite/libgomp.fortran/stack.f90: New test.
1605 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1607 * config/mingw32/proc.c: New file.
1609 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1611 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1612 (main): Use __get_cpuid to get i386 target fetaures.
1613 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1614 (main): Use __get_cpuid to get x86_64 target fetaures.
1616 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1619 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1620 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1622 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.fortran/pr32550.f90: New test.
1626 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1628 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1630 * aclocal.m4: Regenerated.
1632 2007-07-05 Tobias Burnus <burnus@net-b.de>
1635 * testsuite/libgomp.fortran/pr32359.f90: New.
1637 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1640 * sections.c (GOMP_parallel_sections_start): Only decrease
1641 number of threads to COUNT if dyn_var is true.
1642 * testsuite/libgomp.c/pr32468.c: New test.
1644 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1647 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1649 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1652 * testsuite/libgomp.c/pr32362-1.c: New test.
1653 * testsuite/libgomp.c/pr32362-2.c: New test.
1654 * testsuite/libgomp.c/pr32362-3.c: New test.
1656 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1658 * team.c (gomp_team_start): Fix setting up thread_attr
1661 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1663 * configure: Regenerate.
1665 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1667 * Makefile.in: Regenerate.
1668 * configure: Regenerate.
1669 * aclocal.m4: Regenerate.
1670 * testsuite/Makefile.in: Regenerate.
1672 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1674 * config/linux/proc.c: New file.
1677 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1679 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1681 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1683 2007-04-16 Matthias Klose <doko@debian.org>
1685 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1686 flags if not building with -m64.
1687 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1688 flag for i?86-*-* targets, if current target matches -m64.
1690 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1692 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1693 * Makefile.in: Regenerate.
1695 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1698 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1700 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1702 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1704 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1706 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1707 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1708 (parse_affinity): New function.
1709 (initialize_env): Call it and gomp_init_affinity.
1710 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1711 create new pthread_attr_t and call gomp_init_thread_affinity
1712 on it for each thread before passing the attribute to pthread_create.
1713 * config/linux/affinity.c: New file.
1714 * config/posix/affinity.c: New file.
1715 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1716 * configure: Rebuilt.
1717 * config.h.in: Rebuilt.
1718 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1719 * Makefile.in: Rebuilt.
1721 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1723 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1725 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1726 and use it if found.
1728 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1730 * testsuite/config/default.exp: New file.
1731 * testsuite/lib/libgomp.exp: New file.
1732 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1733 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1734 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1735 (libgomp_load): Remove.
1736 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1737 always_ld_library_path, not ld_library_path. Set additional_flags
1738 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1739 (target_compile): Do not call libgomp_init. Append lang_library_path
1740 and lang_link_flags to options.
1741 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1742 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1744 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1745 always_ld_library_path. Set LD_LIBRARY_PATH here.
1746 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1747 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1748 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1750 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1751 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1752 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1753 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1754 * testsuite/libgomp.c/atomic-10.c: Ditto.
1756 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1758 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1759 dg-final cleanup-modules line.
1760 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1761 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1762 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1763 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1764 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1765 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1766 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1768 2007-03-18 Andreas Schwab <schwab@suse.de>
1770 * acinclude.m4: Adjust regular expression for ld version
1772 * configure: Regenerate.
1774 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1776 * Makefile.am: Add install-pdf target as copied from
1777 automake v1.10 rules.
1778 * Makefile.in: Regenerate
1780 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1783 * configure: Regenerate.
1786 * testsuite/libgomp.c++/pr30703.C: New test.
1788 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1791 2006-07-05 Eric Christopher <echristo@apple.com>
1792 * configure.ac: Depend addition of -pthread on host OS.
1793 * configure: Regenerate.
1795 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1797 * libgomp.texi: Fix spacing after abbreviations.
1799 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1802 * configure.ac: Add check for makeinfo
1803 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1804 if an appropiate version of makeinfo is found.
1805 * aclocal.m4: Regenerated.
1806 * configure: Regenerated.
1807 * Makefile.in: Regenerated.
1808 * testsuite/Makefile.in: Regenerated.
1810 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1813 * libgomp.texi: More about implementation-dependent settings.
1815 2007-01-26 Tobias Burnus <burnus@net-b.de>
1817 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1819 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1822 * testsuite/libgomp.c/pr30494.c: New test.
1824 2007-01-15 Tom Tromey <tromey@redhat.com>
1826 * configure: Rebuilt.
1827 * configure.ac: Fixed comment.
1829 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1831 * libgomp.texi: Document implementation specific default values of
1832 environment variables.
1834 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1837 * libgomp.texi: New file.
1838 * configure.ac: Add --enable-generated-files-in-srcdir option.
1839 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1841 * Makefile.in: Regenerated.
1842 * config.h.in: Regenerated.
1843 * testsuite/Makefile.in: Regenerated.
1846 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1849 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1851 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1853 * configure: Regenerate.
1855 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1858 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1859 start if there shouldn't be any loop iterations.
1860 (gomp_loop_ordered_static_start): Remove start == end test.
1861 * testsuite/libgomp.c/pr29947-1.c: New test.
1862 * testsuite/libgomp.c/pr29947-2.c: New test.
1864 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1866 * configure.tgt: Force initial-exec TLS model on Linux only.
1868 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1870 * configure: Regenerated.
1872 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1874 * env.c (parse_schedule): Reject out of range values.
1875 (parse_unsigned_long): Reject out of range, negative or zero values.
1877 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1880 * testsuite/libgomp.fortran/pr29629.f90: New test.
1882 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1885 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1886 * config/posix95: New directory.
1887 * config/posix95/omp-lock.h: New file.
1888 * config/posix95/lock.c: Likewise.
1890 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1892 * aclocal.m4: Regenerate.
1893 * configure: Regenerate.
1895 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1897 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1900 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1902 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1904 * configure: Regenerate.
1905 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1907 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1911 * testsuite/libgomp.c/nestedfn-4.c: New test.
1912 * testsuite/libgomp.c/nestedfn-5.c: New test.
1913 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1916 * testsuite/libgomp.fortran/condinc1.f: New test.
1917 * testsuite/libgomp.fortran/condinc2.f: New test.
1918 * testsuite/libgomp.fortran/condinc3.f90: New test.
1919 * testsuite/libgomp.fortran/condinc4.f90: New test.
1920 * testsuite/libgomp.fortran/condinc1.inc: New file.
1922 2006-09-18 Tom Tromey <tromey@redhat.com>
1924 * configure: Rebuilt.
1926 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1929 PR preprocessor/14634
1930 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1932 * configure: Regenerate.
1934 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1936 * testsuite/libgomp.fortran/reduction3.f90: Change
1937 -2147483648 to -huge(i)-1 to avoid overflow.
1938 * testsuite/libgomp.fortran/reduction4.f90: Change
1939 Z'ffffffff' to not(0) to avoid overflow.
1941 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1944 * Makefile.am (libsubincludedir): New.
1945 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1946 * Makefile.in: Regenerate.
1948 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1951 * env.c: Include ctype.h.
1952 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1953 leading and/or trailing whitespace and compare strings case
1956 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1959 * testsuite/libgomp.fortran/pr28390.f: New test.
1961 2006-07-05 Eric Christopher <echristo@apple.com>
1963 * configure.ac: Depend addition of -pthread on host OS.
1964 * configure: Regenerate.
1966 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1968 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1969 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1972 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1976 * configure.ac: If neither --enable-linux-futex nor
1977 --disable-linux-futex is passed, determine the default by checking
1978 for compiling and/or running against NPTL. With --enable-linux-futex,
1979 check if SYS_gettid and SYS_futex are defined.
1980 * configure: Rebuilt.
1982 2006-06-14 Richard Henderson <rth@redhat.com>
1985 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1986 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1988 2006-06-09 Richard Henderson <rth@redhat.com>
1990 * env.c (gomp_nthreads_var): Change to unsigned long.
1991 (gomp_run_sched_chunk): Likewise.
1992 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1993 (initialize_env): Initialize gomp_thread_attr.
1994 * libgomp.h (gomp_nthreads_var): Update decl.
1995 (gomp_run_sched_chunk): Likewise.
1996 (gomp_thread_attr): Declare.
1997 * team.c (gomp_thread_attr): Export.
1998 (initialize_team): Don't initialize it.
2000 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2003 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2004 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2006 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2008 * config/mingw32/time.c: New file.
2009 * configure.tgt: Use it.
2011 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2013 * Makefile.am: Add install-html target. Add install-html to .PHONY
2014 * Makefile.in: Regenerate.
2016 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2019 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2020 * testsuite/libgomp.c/critical-1.c: Likewise.
2021 * testsuite/libgomp.c/loop-1.c: Likewise.
2022 * testsuite/libgomp.c/loop-2.c: Likewise.
2023 * testsuite/libgomp.c/single-1.c: Likewise.
2024 * testsuite/libgomp.c/ordered-1.c: Likewise.
2025 * testsuite/libgomp.c/ordered-2.c: Likewise.
2027 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2030 * libgomp.fortran/pr27416-1.f90: New test.
2032 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2035 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2036 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2038 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2041 * testsuite/libgomp.c/pr26943-1.c: New test.
2042 * testsuite/libgomp.c/pr26943-2.c: New test.
2043 * testsuite/libgomp.c/pr26943-3.c: New test.
2044 * testsuite/libgomp.c/pr26943-4.c: New test.
2045 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2046 * testsuite/libgomp.c++/pr26943.C: New test.
2048 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2051 * testsuite/libgomp.c++/pr27337.C: New test.
2053 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2056 * testsuite/libgomp.c/pr26171.c: New test.
2058 2006-04-25 Richard Henderson <rth@redhat.com>
2061 * configure.ac: Use GCC_CHECK_TLS.
2062 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2063 * Makefile.in, aclocal.m4, configure: Regenerate.
2065 2006-04-10 Matthias Klose <doko@debian.org>
2067 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2068 directory names containing underscores.
2070 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2073 * testsuite/libgomp.c++/pr26691.C: New test.
2075 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2077 * testsuite/libgomp.fortran/retval2.f90: New test.
2079 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2081 * testsuite/libgomp.c++: New directory.
2083 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2085 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2086 * config/posix/sem.c: Implement the above.
2088 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2090 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2091 define HAVE_BROKEN_POSIX_SEMAPHORES.
2092 * configure: Rebuilt.
2093 * config.h.in: Rebuilt.
2095 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2098 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2099 for the other pthread check.
2100 * configure: Regenerate.
2101 * config.h.in: Regenerate.
2103 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2107 * Makefile.am (fincludedir): New variable.
2108 (nodist_include_HEADERS): Remove Fortran files.
2109 (nodist_finclude_HEADERS): New variable.
2110 * Makefile.in: Regenerated.
2112 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2114 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2115 Remove tests for returning assumed character length arrays.
2117 2006-02-12 Roger Sayle <roger@eyesopen.com>
2118 John David Anglin <dave@hiauly1.hia.nrc.ca>
2121 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2123 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2125 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2127 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2129 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2130 part of LD_LIBRARY_PATH manually.
2132 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2135 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2138 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2141 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2142 * configure.ac (PERL): Don't set.
2143 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2144 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2145 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2146 * omp.h.in: Wrap the new configure substitutions with @ characters.
2147 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2148 * aclocal.m4, configure, Makefile.in: Regenerate.
2149 * mkomp_h.pl: Delete.
2151 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2154 * configure.ac: Use GCC_HEADER_STDINT.
2155 * libgomp.h: Include gstdint.h.
2156 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2157 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2159 2006-01-24 Richard Henderson <rth@redhat.com>
2162 * configure.ac: Add AM_MAINTAINER_MODE.
2163 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2165 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2167 * Makefile.in: Regenerate.
2168 * testsuite/Makefile.in: Regenerate.
2169 * aclocal.m4: Regenerate.
2171 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2173 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2175 * configure.ac: Add check for loadavg.h.
2176 (link_gomp): Adjust comment.
2177 * configure: Regenerate.
2178 * config.h.in: Regenerate.
2180 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2183 * configure.ac: Remove check for alloca.h.
2184 * configure: Regenerate.
2185 * config.h.in: Regenerate.
2186 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2187 * team.c: Remove use of alloca.h.
2188 Call gomp_alloca instead of alloca.
2190 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2193 * team.c: Add include of alloca.h.
2194 * configure.ac: Add check for alloca.h.
2195 * configure: Regenerate.
2196 * config.h.in: Regenerate.
2198 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2201 * testsuite/libgomp.fortran/pr25219.f90: New test.
2203 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2205 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2206 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2207 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2208 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2209 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2210 testsuite/libgomp.fortran/threadprivate1.f90,
2211 testsuite/libgomp.fortran/threadprivate2.f90,
2212 testsuite/libgomp.fortran/threadprivate3.f90,
2213 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2214 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2215 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2216 effective-target to TLS runtime.
2218 * testsuite/libgomp.fortran/pr25162.f: Require
2219 effective-target TLS runtime.
2221 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2223 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2224 * testsuite/libgomp.c/nestedfn-3.c: New test.
2226 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2229 * testsuite/libgomp.fortran/pr25162.f: New test.
2231 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2233 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2234 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2236 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2238 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2239 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2240 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2241 single.c, team.c, work.c, config/linux/alpha/futex.h,
2242 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2243 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2244 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2245 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2246 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2247 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2248 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2251 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2253 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2254 to nodist_noinst_HEADERS.
2255 * Makefile.in: Rebuilt.
2257 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2258 add integer count field.
2259 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2260 omp_nest_lock_t type change.
2261 (omp_init_nest_lock): Likewise. Initialize count to 0.
2262 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2264 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2266 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2267 Increment count if successful and return the new nesting level.
2268 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2269 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2270 * testsuite/libgomp.c/lib-1.c: New test.
2271 * testsuite/libgomp.fortran/lib1.f90: New test.
2272 * testsuite/libgomp.fortran/lib2.f: New test.
2273 * testsuite/libgomp.fortran/lib3.f: New test.
2275 2005-11-17 Richard Henderson <rth@redhat.com>
2278 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2279 * configure.ac (link_gomp): New. Substitute it.
2280 (AC_CONFIG_FILES): Add libgomp.spec.
2281 * libgomp.spec.in: New file.
2282 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2283 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2285 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2287 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2288 reduction(-:var) behaving the same as reduction(+:var).
2289 * testsuite/libgomp.c/reduction-4.c: New test.
2291 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2293 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2294 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2295 testsuite/libgomp.c/copyin-3.c,
2296 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2297 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2298 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2299 testsuite/libgomp.c++/pr24455.C,
2300 testsuite/libgomp.fortran/threadprivate1.f90,
2301 testsuite/libgomp.fortran/threadprivate2.f90,
2302 testsuite/libgomp.fortran/threadprivate3.f90,
2303 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2304 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2305 testsuite/libgomp.fortran/omp_parse3.f90: Require
2306 effective-target TLS.
2308 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2312 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2315 * team.c (initialize_team): Pass NULL rather than free as
2316 pthread_key_create destructor. Initialize thread specific data
2317 pointer in initial thread to a static local variable rather than
2320 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2322 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2323 its location to ld_library_path.
2325 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2327 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2329 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2331 * testsuite/libgomp.c: Rename from libgomp.dg.
2333 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2335 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2336 threadprivate variable 'i'.
2338 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2340 * config/linux/s390/futex.h: New file.
2341 * configure.tgt: Use it.
2343 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2344 before the parallel.
2346 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2349 * testsuite/libgomp.c++/master-1.C: New test.
2351 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2353 * testsuite/libgomp.dg/copyin-3.c: New test.
2355 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2357 * testsuite/libgomp.fortran/retval1.f90: New test.
2358 * testsuite/libgomp.fortran/vla7.f90: New test.
2360 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2362 * testsuite/libgomp.fortran/vla2.f90: New test.
2363 * testsuite/libgomp.fortran/vla3.f90: New test.
2364 * testsuite/libgomp.fortran/vla4.f90: New test.
2365 * testsuite/libgomp.fortran/vla5.f90: New test.
2366 * testsuite/libgomp.fortran/vla6.f90: New test.
2368 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2370 * config/linux/sparc/futex.h: New file.
2371 * configure.tgt: Use it.
2372 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2374 * critical.c: Include stdlib.h.
2375 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2376 ignoring return value.
2377 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2378 LIBGOMP_CHECK_SYNC_BUILTINS check.
2379 * configure: Rebuilt.
2381 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2383 * testsuite/libgomp.fortran/vla1.f90: New test.
2385 2005-10-31 Richard Henderson <rth@redhat.com>
2387 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2388 setting 's' in different threads.
2390 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2392 * libgomp.h (attribute_hidden, ialias): Define.
2393 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2394 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2395 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2396 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2397 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2398 omp_test_lock, omp_test_nest_lock): Likewise.
2399 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2400 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2401 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2402 omp_test_lock, omp_test_nest_lock): Likewise.
2403 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2404 omp_get_dynamic, omp_get_nested): Likewise.
2405 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2406 omp_get_thread_num, omp_in_parallel): Likewise.
2407 * fortran.c (ialias_redirect): Define.
2408 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2409 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2410 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2411 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2412 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2413 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2414 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2415 omp_get_wtime): Add ialias_redirect.
2417 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2419 * fortran.c: Include stdlib.h.
2421 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2423 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2424 * Makefile.in: Regenerated.
2426 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2428 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2429 * libgomp_f.h.in (omp_check_defines): New function.
2430 * env.c: Include libgomp_f.h.
2431 (initialize_env): Call omp_check_defines.
2433 * testsuite/libgomp.dg/copyin-2.c: New test.
2434 * testsuite/libgomp.c++/copyin-2.C: New test.
2435 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2437 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2438 * testsuite/libgomp.fortran/sharing2.f90: New test.
2440 * testsuite/libgomp.dg/copyin-1.c: New test.
2441 * testsuite/libgomp.c++/copyin-1.C: New test.
2443 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2445 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2447 * testsuite/libgomp.fortran/workshare1.f90: New test.
2449 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2451 * libgomp.fortran/sharing1.f90: New test.
2453 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2456 * testsuite/libgomp.c++/loop-7.C: New test.
2458 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2460 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2461 * testsuite/libgomp.fortran/reduction6.f90: New test.
2462 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2464 2005-10-23 Richard Henderson <rth@redhat.com>
2466 * testsuite/libgomp.c++/ctor-1.C: New.
2467 * testsuite/libgomp.c++/ctor-2.C: New.
2468 * testsuite/libgomp.c++/ctor-3.C: New.
2469 * testsuite/libgomp.c++/ctor-4.C: New.
2470 * testsuite/libgomp.c++/ctor-5.C: New.
2471 * testsuite/libgomp.c++/ctor-6.C: New.
2472 * testsuite/libgomp.c++/ctor-7.C: New.
2473 * testsuite/libgomp.c++/ctor-8.C: New.
2474 * testsuite/libgomp.c++/ctor-9.C: New.
2476 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2479 * testsuite/libgomp.c++/pr24455-1.C: New test.
2480 * testsuite/libgomp.c++/pr24455.C: New test.
2481 * testsuite/libgomp.dg/pr24455-1.c: New test.
2482 * testsuite/libgomp.dg/pr24455.c: New test.
2484 2005-10-20 Richard Henderson <rth@redhat.com>
2486 * testsuite/libgomp.c++/loop-6.C: New.
2487 * testsuite/libgomp.dg/loop-3.c: New.
2489 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2491 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2493 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2496 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2498 * testsuite/libgomp.fortran/jacobi.f: New test.
2500 2005-10-19 Richard Henderson <rth@redhat.com>
2502 * configure.tgt (i?86-linux): Default to with_arch instead of
2503 CFLAGS. Add -mtune to match target_cpu.
2504 (x86_64-linux): Tune to i686.
2506 * fortran.c (omp_test_nest_lock_): Fix typo.
2508 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2510 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2511 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2512 * testsuite/libgomp.dg/ordered-3.c: New test.
2514 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2515 Remove volatile keyword.
2517 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2518 in COMMON block to avoid warnings on 64-bit targets.
2520 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2522 * testsuite/libgomp.dg/shared-3.c: New test.
2524 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2526 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2527 * testsuite/libgomp.fortran/reduction5.f90: New test.
2529 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2531 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2533 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2534 flush loop now that __sync_synchronize has proper memory barrier.
2535 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2536 Add -ffixed-form to dg-options.
2538 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2540 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2541 from subdirectories.
2542 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2543 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2544 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2545 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2546 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2547 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2548 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2549 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2550 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2551 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2552 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2553 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2554 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2555 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2556 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2557 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2558 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2559 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2560 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2561 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2562 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2563 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2564 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2565 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2566 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2568 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2570 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2571 lang_library_path exists. Use find instead of glob to gather tests.
2572 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2574 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2576 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2577 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2578 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2579 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2580 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2581 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2582 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2583 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2584 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2585 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2586 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2587 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2588 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2590 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2592 * testsuite/libgomp.dg/vla-1.c: New test.
2594 * testsuite/libgomp.fortran/reference2.f90: New test.
2596 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2597 declaration of omp_get_thread_num.
2598 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2601 * testsuite/libgomp.fortran/reduction1.f90: New test.
2602 * testsuite/libgomp.fortran/reduction2.f90: New test.
2603 * testsuite/libgomp.fortran/reduction3.f90: New test.
2604 * testsuite/libgomp.fortran/reduction4.f90: New test.
2606 2005-10-13 Richard Henderson <rth@redhat.com>
2608 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2609 * Makefile.in: Regenerate.
2610 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2611 * libgomp.h: Include bar.h.
2612 (struct gomp_barrier): Remove.
2613 (struct gomp_team): Add barrier. Replace master_barrier with
2614 master_release. Replace threads with ordered_release.
2615 (struct gomp_thread): Replace barrier with release.
2616 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2617 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2618 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2619 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2620 (GOMP_single_copy_end): Likewise.
2621 * team.c (gomp_threads_dock): New.
2622 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2623 (gomp_thread_start): Use gomp_barrier_wait.
2624 (new_team, free_team): Update for gomp_team changes.
2625 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2626 (gomp_team_end): Use gomp_barrier_wait.
2627 (initialize_team): Update for gomp_thread changes.
2628 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2629 (gomp_work_share_end_nowait): Use atomic ops when available.
2630 * config/linux/bar.c, config/linux/bar.h: New files.
2631 * config/posix/bar.c, config/posix/bar.h: New files.
2633 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2635 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2636 * testsuite/libgomp.dg/single-2.c: New test.
2638 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2639 lang_link_flags): Unset, so that they aren't inherited from previously
2642 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2644 2005-10-12 Richard Henderson <rth@redhat.com>
2646 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2647 (libgomp_init): Use lang_test_file, lang_library_path, and
2648 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2650 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2651 (lang_test_file, lang_link_flags): New.
2652 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2654 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2655 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2656 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2657 testsuite/libgomp.c++/parallel-1.C,
2658 testsuite/libgomp.c++/reduction-1.C,
2659 testsuite/libgomp.c++/reduction-2.C,
2660 testsuite/libgomp.c++/reduction-3.C,
2661 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2662 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2663 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2664 New files, largely cribbed from the C testsuite.
2666 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2668 * testsuite/libgomp.fortran/character1.f90: New test.
2669 * testsuite/libgomp.fortran/character2.f90: New test.
2671 * testsuite/libgomp.dg/nested-1.c: New test.
2672 * testsuite/libgomp.dg/nested-2.c: New test.
2673 * testsuite/libgomp.fortran/do1.f90: New test.
2674 * testsuite/libgomp.fortran/do2.f90: New test.
2676 * testsuite/libgomp.fortran/reference1.f90: New test.
2678 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2680 * testsuite/libgomp.dg/reduction-1.c: New test.
2681 * testsuite/libgomp.dg/reduction-2.c: New test.
2682 * testsuite/libgomp.dg/reduction-3.c: New test.
2684 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2686 * testsuite/libgomp.dg/atomic-1.c: New test.
2687 * testsuite/libgomp.dg/atomic-2.c: New test.
2689 2005-10-09 Richard Henderson <rth@redhat.com>
2691 * critical.c (atomic_lock): New.
2692 (initialize_critical): Initialize it.
2693 (GOMP_atomic_start, GOMP_atomic_end): New.
2694 * libgomp.map: Export them.
2695 * libgomp_g.h: Declare them.
2697 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2699 2005-10-02 Richard Henderson <rth@redhat.com>
2701 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2702 to XCFLAGS instead of CFLAGS.
2704 2005-09-30 Richard Henderson <rth@redhat.com>
2706 * configure.ac: Determine whether -pthread or -lpthread is needed.
2707 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2708 * Makefine.in, configure: Rebuild.
2710 2005-09-28 Richard Henderson <rth@redhat.com>
2712 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2713 * testsuite/libgomp.dg/omp-single-3.c: New test.
2715 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2717 * testsuite/libgomp.dg/omp-single-2.c: New test.
2718 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2720 2005-09-27 Richard Henderson <rth@redhat.com>
2722 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2723 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2725 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2727 * testsuite/libgomp.dg/omp-loop03.c: New test.
2729 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2731 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2733 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2735 * testsuite/libgomp.dg/omp-single-1.c: New test.
2736 * testsuite/libgomp.dg/shared-1.c: Return 0.
2737 Add prototype for abort.
2738 * testsuite/libgomp.dg/shared-2.c: Likewise.
2740 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2742 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2745 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2747 * testsuite/libgomp.dg/shared-1.c: New test.
2748 * testsuite/libgomp.dg/shared-2.c: New test.
2750 2005-09-24 Richard Henderson <rth@redhat.com>
2752 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2754 2005-09-24 Richard Henderson <rth@redhat.com>
2756 * iter.c (gomp_iter_static_next): Round up when computing number
2757 of iterations. Don't bother distributing a remainder equally.
2759 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2760 Don't call srand. Zero b before testing.
2763 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2765 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2766 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2768 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2770 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2771 without !$omp end do, followed immediately by subroutine end.
2773 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2775 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2777 2005-09-22 Richard Henderson <rth@redhat.com>
2779 * critical.c (GOMP_critical_name_start): Change argument to void**.
2780 Reuse the pointer space if the mutex fits.
2781 (GOMP_critical_name_end): Likewise.
2782 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2783 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2784 (GOMP_critical_name_end): Likewise.
2785 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2786 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2788 2005-09-20 Richard Henderson <rth@redhat.com>
2790 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2791 (create_lock_lock): New.
2792 (initialize_critical): Initialize it.
2793 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2794 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2796 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2798 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2800 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2802 * testsuite/libgomp.dg/omp-loop01.c: New test.
2803 * testsuite/libgomp.dg/omp-loop02.c: New test.
2805 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2807 * configure.ac (AC_PROG_FC): Add.
2808 (USE_FORTRAN): New automake conditional.
2809 * configure: Rebuilt.
2810 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2811 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2812 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2813 Add rules to build them.
2814 * Makefile.in: Rebuilt.
2815 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2817 * libgomp.map: Add Fortran wrappers.
2818 * libgomp_f.h.in: New file.
2819 * omp_lib.h.in: New file.
2820 * omp_lib.f90.in: New file.
2821 * fortran.c: New file.
2822 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2823 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2824 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2825 libgfortran has been built.
2826 * testsuite/libgomp.fortran/fortran.exp: New file.
2827 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2828 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2829 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2830 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2831 * testsuite/libgomp.fortran/omp_hello.f: New test.
2832 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2833 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2834 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2835 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2836 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2837 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2838 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2839 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2841 2005-08-30 Richard Henderson <rth@redhat.com>
2843 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2844 function for when aliases are not usable.
2845 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2846 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2847 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2848 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2849 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2850 GOMP_loop_ordered_guided_next): Likewise.
2851 * ordered.c (GOMP_ordered_start): Likewise.
2853 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2855 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2856 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2857 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2858 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2859 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2860 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2861 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2862 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2863 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2865 2005-07-07 Eric Christopher <echristo@redhat.com>
2866 Diego Novillo <dnovillo@redhat.com>
2868 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2869 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2871 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2872 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2873 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2874 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2875 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2876 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2877 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2879 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2881 * TOPLEVEL.patch: Remove.
2883 2005-05-16 Richard Henderson <rth@redhat.com>
2885 * configure.ac: Test for clock_gettime.
2886 * config.h.in, configure: Rebuild.
2887 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2888 (omp_get_wtime): Use clock_gettime if available.
2889 (omp_get_wtick): Use clock_getres if available.
2891 2005-05-11 Richard Henderson <rth@redhat.com>
2893 * config/linux/ia64/futex.h: New file.
2894 * configure.tgt: Use it.
2896 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2898 2005-05-07 Richard Henderson <rth@redhat.com>
2900 * config/linux/powerpc/futex.h: New file.
2901 * configure.tgt: Use it.
2903 * config/linux/i486/futex.h: Merge ...
2904 * config/linux/x86_64/futex.h: ... into ...
2905 * config/linux/x86/futex.h: ... here.
2906 * configure.tgt: Update to match.
2908 2005-05-06 Richard Henderson <rth@redhat.com>
2910 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2911 * config/linux/i486/futex.h: Likewise.
2912 * config/linux/x86_64/futex.h: Likewise.
2914 * config/linux/lock.c: New file.
2915 * config/linux/omp-lock.h: New file.
2917 * critical.c, env.h: Don't include omp.h
2918 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2919 * config/posix/time.c: Likewise.
2920 * config/posix/omp-lock.h: New file.
2921 * libgomp.h: Include omp-lock.h and omp.h.
2922 * Makefile.am (nodist_include_HEADERS): New.
2924 * configure.ac (PERL): New.
2925 * mkomp_h.pl: New file.
2926 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2928 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2930 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2931 build directory. Re-add -march=i486 hack.
2933 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2934 (libgomp_link_flags): Remove.
2935 (libgomp_initialized): Remove.
2936 (libgomp_init): Don't protect from reinitialization. Copy code
2937 from libstdc++ for getting the multilib set correctly.
2939 2005-05-05 Richard Henderson <rth@redhat.com>
2941 * config/linux/alpha/futex.h: New file.
2942 * configure.tgt (alpha*-*-linux*): Use it.
2944 * config/posix/mutex.c: New file.
2945 * config/posix/sem.c: Use libgomp.h.
2947 * configure.tgt (x86_64-linux): Also test CC for -m32.
2948 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2950 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2953 * Makefile.am (SUBDIRS): New.
2954 (libgomp_la_LDFLAGS): Add -lpthread.
2955 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2956 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2958 * libgomp_g.h: New file.
2959 * libgomp.h: Split out all public declarations to libgomp_g.h.
2960 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2961 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2962 * config/linux/sem.h: Likewise.
2963 * config/posix/sem.h: Likewise.
2965 * Makefile.am (AM_LDFLAGS): New.
2966 (libgomp_version_script): Split out from ...
2967 (libgomp_la_LDFLAGS): ... here.
2968 (libgomp_version_info): New.
2969 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2970 (LIBGOMP_ENABLE): New.
2971 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2972 (LIBGOMP_ENABLE_SYMVERS): New.
2973 * configure.ac (AC_INIT): Version 1.0.
2974 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2975 (enable-linux-futex): Likewise. Rename from enable-futex.
2976 (libtool_VERSION): New.
2977 (LIBGOMP_ENABLE_SYMVERS): Use it.
2978 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2979 * Makefile.in, aclocal.m4, configure: Rebuild.
2981 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2982 (gomp_mutex_unlock_slow): Fix typo.
2983 * config/linux/sem.c: Similarly.
2984 (gomp_sem_post_slow): Fix typo.
2985 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2986 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2987 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2989 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2990 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2991 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2992 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2993 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2994 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2995 LDFLAGS. Pull enable_futex check to top-level.
2996 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2997 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2999 First attempt at real configury.
3000 * Makefile, config.h: Remove file.
3001 * Makefile.am, Makefile.in: New file.
3002 * acinclude.m4 aclocal.m4: New file.
3003 * configure.ac, configure.tgt, configure: New file.
3005 * config/posix/lock.c: Rename from sys-lock.c.
3006 * config/posix/mutex.h: Rename from sys-mutex.h.
3007 * config/posix/sem.c: Rename from sys-sem.c.
3008 * config/posix/sem.h: Rename from sys-sem.h.
3009 * config/posix/proc.c: Rename from sys-proc.c.
3010 * config/posix/time.c: Rename from sys-proc.c.
3012 * config/linux/mutex.c: New file.
3013 * config/linux/mutex.h: New file.
3014 * config/linux/sem.c: New file.
3015 * config/linux/sem.h: New file.
3016 * config/linux/i486/futex.h: New file.
3017 * config/linux/x86_64/futex.h: New file.
3019 2005-05-04 Richard Henderson <rth@redhat.com>
3021 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3022 * libgomp.h: Declare them.
3023 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3024 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3026 2005-05-04 Richard Henderson <rth@redhat.com>
3028 * libgomp-1 code drop
3030 2005-05-04 Richard Henderson <rth@redhat.com>
3032 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3033 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3034 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3035 (gomp_iter_static_next): Update.
3036 (gomp_ordered_static_next): Update.
3037 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3038 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3039 totally empty range.
3040 (gomp_loop_ordered_static_next): Refine test for calling
3041 gomp_ordered_static_next.
3042 * testsuite/ordered-1.c: Add case for more threads than iterations.
3044 * iter.c (gomp_iter_runtime_next_locked): Remove.
3045 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3046 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3047 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3048 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3049 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3050 gomp_loop_ordered_guided_next): Downcase name, make static, add
3051 an external alias with the old name.
3052 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3053 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3054 switch and call one of the above static functions.
3055 * libgomp.h: Update.
3057 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3058 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3059 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3060 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3061 GOMP_loop_ordered_guided_start): Update to match.
3062 * sections.c (GOMP_sections_start): Likewise.
3063 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3065 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3066 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3067 Use bounds check instead of modulus.
3068 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3069 (gomp_ordered_last): Don't sync with ordered_owner here.
3070 (gomp_ordered_next): Likewise.
3071 (gomp_ordered_static_loop_next): Likewise.
3072 * loop.c, libgomp.h: Update to match.
3074 * libgomp.h (GOMP_barrier): Declare.
3076 * testsuite/barrier-1.c: New file.
3077 * testsuite/critical-1.c: New file.
3078 * testsuite/ordered-2.c: New file.
3079 * testsuite/ordered-1.c: New file.
3080 * testsuite/sections-1.c: New file.
3081 * testsuite/single-1.c: New file.
3082 * testsuite/Makefile (TESTS): Add them.
3084 2005-05-04 Richard Henderson <rth@redhat.com>
3086 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3087 * loop.c (GOMP_loop_static_start): If not the startup thread,
3088 acquire the mutex to wait for initialization complete.
3089 (GOMP_loop_ordered_static_start): Likewise.
3090 (GOMP_loop_ordered_runtime_start): Likewise.
3091 (GOMP_loop_ordered_static_first): Remove.
3092 (GOMP_loop_ordered_dynamic_first): Remove.
3093 (GOMP_loop_ordered_guided_first): Remove.
3094 (GOMP_loop_ordered_runtime_first): Remove.
3095 * ordered.c (gomp_ordered_loop_first): Post to own release when
3096 we're the first thread.
3097 (gomp_ordered_loop_last): Wait on release if not owner.
3098 (gomp_ordered_loop_next): Likewise.
3099 (gomp_ordered_static_loop_init): New.
3100 (gomp_ordered_static_loop_next): Use ordered_owner.
3101 (GOMP_ordered_start): Likewise.
3102 * work.c (gomp_new_work_share): Initialize ordered_owner.
3104 2005-05-03 Richard Henderson <rth@redhat.com>
3106 * Makefile (OPT): New.
3109 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3110 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3111 * libgomp.h, libgomp.map, NOTES: Update to match.
3113 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3114 Add initialized and thr members.
3115 (gomp_thread_start): Pause when initially spawned to wait for
3116 the whole team to be created.
3117 (gomp_team_start): Release team members at the end.
3119 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3120 (f_foo_1): Use GOMP_loop_end.
3121 (f_foo_2): Use GOMP_loop_end_nowait.
3123 * testsuite/loop-2.c: New file.
3124 * testsuite/Makefile (TESTS): Add it.
3126 2005-05-03 Richard Henderson <rth@redhat.com>
3128 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3129 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3130 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3133 * testsuite/Makefile: New file.
3134 * testsuite/loop-1.c: New file.
3136 2005-05-03 Richard Henderson <rth@redhat.com>
3138 Initial implementation and checkin.