1 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
5 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
12 * config/linux/proc.h: New.
13 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
14 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
15 (gomp_init_num_threads): Update call to cpuset_popcount.
16 (get_num_procs): Ditto.
17 * config/linux/affinity.c (gomp_init_affinity): Call
20 2011-08-02 Jakub Jelinek <jakub@redhat.com>
24 * omp.h.in (omp_in_final): New prototype.
25 * omp_lib.f90.in (omp_in_final): New interface.
26 (omp_integer_kind, omp_logical_kind): Remove
27 and replace all its uses in the module with 4.
28 (openmp_version): Change to 201107.
29 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
30 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
31 kind for the parameters.
32 (omp_in_final): New external.
33 (openmp_version): Change to 201107.
34 * task.c (omp_in_final): New function.
35 (gomp_init_task): Initialize final_task.
36 (GOMP_task): Remove unused attribute from flags. Handle final
38 (GOMP_taskyield): New function.
39 (omp_in_final): Return true if if (false) or final (true) task
40 or descendant of final (true).
41 * fortran.c (omp_in_final_): New function.
42 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
43 (GOMP_3.0): Export GOMP_taskyield.
44 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
46 (parse_unsigned_long_list): New function.
47 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
48 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
49 even if parse_affinity returned false.
50 * config/linux/affinity.c (gomp_init_affinity): Handle
51 gomp_cpu_affinity_len == 0.
52 * libgomp_g.h (GOMP_taskyield): New prototype.
53 * libgomp.h (struct gomp_task): Add final_task field.
54 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
55 * team.c (gomp_team_start): Override new task's nthreads_var icv
56 if list form OMP_NUM_THREADS has been used and it has value for
57 the new nesting level.
59 * testsuite/libgomp.c/atomic-11.c: New test.
60 * testsuite/libgomp.c/atomic-12.c: New test.
61 * testsuite/libgomp.c/atomic-13.c: New test.
62 * testsuite/libgomp.c/atomic-14.c: New test.
63 * testsuite/libgomp.c/reduction-6.c: New test.
64 * testsuite/libgomp.c/task-5.c: New test.
65 * testsuite/libgomp.c++/atomic-2.C: New test.
66 * testsuite/libgomp.c++/atomic-3.C: New test.
67 * testsuite/libgomp.c++/atomic-4.C: New test.
68 * testsuite/libgomp.c++/atomic-5.C: New test.
69 * testsuite/libgomp.c++/atomic-6.C: New test.
70 * testsuite/libgomp.c++/atomic-7.C: New test.
71 * testsuite/libgomp.c++/atomic-8.C: New test.
72 * testsuite/libgomp.c++/atomic-9.C: New test.
73 * testsuite/libgomp.c++/task-8.C: New test.
74 * testsuite/libgomp.c++/reduction-4.C: New test.
75 * testsuite/libgomp.fortran/allocatable7.f90: New test.
76 * testsuite/libgomp.fortran/allocatable8.f90: New test.
77 * testsuite/libgomp.fortran/crayptr3.f90: New test.
78 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
79 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
80 * testsuite/libgomp.fortran/pointer1.f90: New test.
81 * testsuite/libgomp.fortran/pointer2.f90: New test.
82 * testsuite/libgomp.fortran/task4.f90: New test.
84 2011-08-02 Tobias Burnus <burnus@net-b.de>
86 * libgomp.texi: Update OpenMP spec references to 3.1.
87 (omp_in_final,OMP_PROC_BIND): New sections.
88 (OMP_NUM_THREADS): Document that the value can be now a list.
89 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
91 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
93 * config/linux/x86/futex.h: Check __x86_64__ instead of
96 2011-07-29 Jakub Jelinek <jakub@redhat.com>
100 * testsuite/libgomp.c/pr49897-1.c: New test.
101 * testsuite/libgomp.c/pr49897-2.c: New test.
102 * testsuite/libgomp.c/pr49898-1.c: New test.
103 * testsuite/libgomp.c/pr49898-2.c: New test.
105 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
107 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
108 for ia32 instead of ilp32.
110 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
111 * testsuite/libgomp.c/atomic-6.c: Likewise.
113 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
115 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
116 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
118 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
121 * config/osf/sem.h: New file.
122 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
124 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
127 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
130 2011-07-15 Jakub Jelinek <jakub@redhat.com>
132 * config/linux/wait.h (do_spin): New inline, largely copied
133 from do_wait, just don't do futex_wait here, instead return true if
135 (do_wait): Implement using do_spin.
136 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
138 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
139 __sync_bool_compare_and_swap, pass the oldval to
140 gomp_mutex_lock_slow.
141 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
142 If all mutex contenders are just spinning and not sleeping, don't
143 change state to 2 unnecessarily. Optimize the loop when state has
144 already become 2 to use just one atomic operation per loop instead
146 * config/linux/ia64/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.
152 2011-06-22 Jakub Jelinek <jakub@redhat.com>
155 * iter.c (gomp_iter_static_next): For chunk size 0
156 only use n ceil/ nthreads size for the first
157 n % nthreads threads in the team instead of
158 all threads except for the last few ones which
159 get less work or none at all.
160 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
161 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
162 chunk argument, set run_sched_modifier to 0 for static
163 resp. 1 for other kinds. If chunk argument is 0
164 and not static, set value to 1.
166 2011-05-19 Jakub Jelinek <jakub@redhat.com>
169 * testsuite/libgomp.c++/pr49043.C: New test.
172 * testsuite/libgomp.c++/pr48869.C: New test.
174 2011-05-06 Jakub Jelinek <jakub@redhat.com>
177 * fortran.c: Include limits.h.
179 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
181 (omp_set_num_threads_8_, omp_set_schedule_8_,
182 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
183 omp_get_team_size_8_): Use TO_INT macro.
184 * testsuite/libgomp.fortran/pr48894.f90: New test.
186 2011-04-13 Jakub Jelinek <jakub@redhat.com>
189 * testsuite/libgomp.c/pr48591.c: New test.
191 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
194 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
195 * configure: Regenerate.
197 2011-02-27 Jakub Jelinek <jakub@redhat.com>
200 * testsuite/libgomp.fortran/task3.f90: New test.
202 2011-02-24 Tobias Burnus <burnus@net-b.de>
204 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
206 2011-02-23 Jakub Jelinek <jakub@redhat.com>
209 * libgomp.texi (omp_get_wtime): Don't say time in the past
212 2011-02-18 Jakub Jelinek <jakub@redhat.com>
215 * testsuite/libgomp.fortran/fortran.exp: Check for both
216 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
217 but $blddir != "", still append ${blddir}/${lang_library_path}
220 2011-02-16 Tobias Burnus <burnus@net-b.de>
223 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
224 of libquadmath.a before adding its libpath to ldflags.
226 2011-02-14 Jakub Jelinek <jakub@redhat.com>
229 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
230 to FUTEX_WAIT futex syscall.
231 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
233 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
235 * configure: Regenerate.
237 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
240 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
242 2011-01-16 Gerald Pfeifer
244 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
246 2010-12-14 Jakub Jelinek <jakub@redhat.com>
249 * libgomp.fortran/allocatable6.f90: New test.
251 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
253 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
254 * configure: Regenerate.
256 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
260 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
261 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
262 * aclocal.m4: Regenerate.
263 * configure: Regenerate.
264 * Makefile.in: Regenerate.
265 * testsuite/Makefile.in: Regenerate.
267 2010-12-02 Jakub Jelinek <jakub@redhat.com>
270 * libgomp.fortran/pr46753.f90: New test.
273 * env.c (initialize_env): Default to spin count 300000
274 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
278 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
279 at the end if sync builtins aren't supported.
281 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
283 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
285 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
287 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
289 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
291 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
293 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
294 Tobias Burnus <burnus@net-b.de>
298 * configure: Regenerate.
300 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
302 * config/linux/futex.h: New.
303 * config/linux/arm/mutex.h: New.
304 * configure.tgt (arm*-*-linux*): Add config path.
306 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
308 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
310 2010-09-23 Tobias Burnus <burnus@net-b.de>
312 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
313 Change Fortran datatype to LOGICAL.
314 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
315 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
317 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
319 * configure: Regenerate.
321 2010-07-26 Jakub Jelinek <jakub@redhat.com>
323 * libgomp.texi: Add function keyword to a couple of Fortran
324 interfaces, use integer instead of int for Fortran.
326 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
328 * libgomp.texi: Fix spelling and pasto problems throughout.
329 Adjust prototypes to match code.
331 2010-07-24 Tobias Burnus <burnus@net-b.de>
333 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
334 silence -fwhole-file warning.
336 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338 * configure.tgt (*-*-solaris2.[56]*): Removed.
340 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
342 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
343 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
344 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
345 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
346 targetting solaris2*.
347 * configure: Regenerate.
348 * config.h.in: Regenerate.
350 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
351 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
352 Add libgomp_version_dep.
353 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
355 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
356 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
357 * Makefile.in: Regenerate.
359 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
360 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
361 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
362 to common block, protected by
363 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
365 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
367 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
369 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
372 * configure: Regenerate.
374 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
377 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
378 * configure: Regenerate.
379 * Makefile.in: Regenerate.
380 * testsuite/Makefile.in: Regenerate.
382 2010-04-26 Jakub Jelinek <jakub@redhat.com>
385 * testsuite/libgomp.c/pr43893.c: New test.
386 * testsuite/libgomp.c++/pr43893.C: New test.
388 2010-04-21 Jakub Jelinek <jakub@redhat.com>
391 * testsuite/libgomp.fortran/vla8.f90: New test.
393 2010-04-20 Jakub Jelinek <jakub@redhat.com>
396 * config/linux/affinity.c (gomp_init_affinity): Decrease
397 gomp_available_cpus if affinity mask confines the process to fewer
399 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
400 non-NULL, just return gomp_available_cpus.
403 * sections.c (gomp_sections_init): Initialize ws->mode.
405 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
407 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
408 not unused bar variable.
409 * configure: Regenerate.
411 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
413 * Makefile.in: Regenerate.
414 * aclocal.m4: Regenerate.
415 * testsuite/Makefile.in: Regenerate.
417 2010-03-22 Jakub Jelinek <jakub@redhat.com>
420 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
421 (initialize_env): Adjust callers.
422 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
423 when the argument is 0.
425 * testsuite/libgomp.c/pr42942.c: New test.
427 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
431 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
432 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
434 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
436 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
437 * testsuite/libgomp.c++/task-6.C: Likewise.
439 2010-01-28 Steve Ellcey <sje@cup.hp.com>
441 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
443 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
445 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
446 * configure: Regenerate.
448 2010-01-26 Jakub Jelinek <jakub@redhat.com>
451 * testsuite/libgomp.fortran/allocatable5.f90: New test.
453 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
455 * configure.ac: Test for executability of GFORTRAN.
456 * configure: Regenerate.
458 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
460 * configure: Regenerate.
462 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
465 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
467 2010-01-03 Richard Guenther <rguenther@suse.de>
469 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
471 2009-12-23 Sebastian Pop <sebpop@gmail.com>
473 * testsuite/libgomp.graphite/pr4118.c: New.
475 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
477 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
478 for darwin, protect the test with require-effective-target tls_runtime.
479 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
481 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
484 * testsuite/lib/libgomp.exp: Provide -B options to allow for
485 link spec %s substitutions for static libraries.
487 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
490 * libgomp.graphite/force-parallel-2.c: Reduce array size.
492 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
494 * Makefile.in: Regenerate.
495 * configure: Regenerate.
496 * testsuite/Makefile.in: Regenerate.
498 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
500 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
501 settings for LC_ALL and LANG.
503 2009-11-25 Jakub Jelinek <jakub@redhat.com>
506 * testsuite/libgomp.fortran/pr42162.f90: New test.
508 2009-11-13 Jakub Jelinek <jakub@redhat.com>
511 * testsuite/libgomp.c/pr42029.c: New test.
513 2009-10-26 Jakub Jelinek <jakub@redhat.com>
515 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
516 *s. Accept ld version without text in ()s.
517 * configure: Regenerated.
519 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
521 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
523 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
526 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
527 or a hyphen (happens with fortran language disabled).
528 * configure: Regenerate.
530 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
532 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
533 use sed script portable to Solaris /bin/sed for extracting ld
535 * configure: Regenerate.
537 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
539 * testsuite/libgomp.graphite/bounds.c: New test.
541 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
543 * Makefile.am (libgomp_la_LINK): New.
544 * Makefile.in: Regenerate.
546 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
548 * configure.ac (AC_PREREQ): Bump to 2.64.
550 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
552 * Makefile.am (install-html, install-pdf): Remove.
553 * Makefile.in: Regenerate.
555 * Makefile.in: Regenerate.
556 * aclocal.m4: Regenerate.
557 * config.h.in: Regenerate.
558 * configure: Regenerate.
559 * testsuite/Makefile.in: Regenerate.
561 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
563 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
564 * Makefile.in: Regenerate.
566 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
568 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
569 * Makefile.in: Regenerate.
571 2009-08-19 Tobias Burnus <burnus@net-b.de>
574 omp_lib.h.in: Fix -std=f95 errors.
577 2009-08-14 David Edelsohn <edelsohn@gnu.org>
579 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
580 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
581 * testsuite/libgomp.graphite/graphite.exp: New.
583 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
585 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
588 2009-08-04 David Daney <ddaney@caviumnetworks.com>
590 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
591 needed memory barrier semantics.
592 * config/linux/mips/mutex.h: New file.
594 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
596 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
598 2009-07-16 Joseph Myers <joseph@codesourcery.com>
600 * configure: Regenerate.
602 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
607 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
608 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
609 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
611 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
613 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
614 options when choosing a multilib.
616 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
618 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
619 ld_library_path. Use add_path. Add just find_libgcc_s to
620 ld_library_path, not every libgcc multilib directory.
621 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
622 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
623 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
625 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
627 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
629 * Makefile.am (LTLDFLAGS): Define.
631 * Makefile.in: Regenerate.
633 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
636 * testsuite/libgomp.fortran/fortran.exp: Don't link with
637 libgfortranbegin, check existence of libgfortran.a instead of
640 2009-05-20 Jakub Jelinek <jakub@redhat.com>
643 * team.c (gomp_thread_start): Destroy thr->release semaphore.
644 (gomp_free_pool_helper): Likewise.
646 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
647 Jakub Jelinek <jakub@redhat.com>
650 * testsuite/libgomp.fortran/workshare2.f90: New test.
652 2009-04-09 Nick Clifton <nickc@redhat.com>
654 * iter.c: Change copyright header to refer to version 3 of the
655 GNU General Public License with version 3.1 of the GCC Runtime
656 Library Exception and to point readers at the COPYING3 and
657 COPYING3.RUNTIME files and the FSF's license web page.
659 * barrier.c: Likewise.
660 * config/bsd/proc.c: Likewise.
661 * config/linux/affinity.c: Likewise.
662 * config/linux/alpha/futex.h: Likewise.
663 * config/linux/bar.c: Likewise.
664 * config/linux/bar.h: Likewise.
665 * config/linux/ia64/futex.h: Likewise.
666 * config/linux/ia64/mutex.h: Likewise.
667 * config/linux/lock.c: Likewise.
668 * config/linux/mips/futex.h: Likewise.
669 * config/linux/mutex.c: Likewise.
670 * config/linux/mutex.h: Likewise.
671 * config/linux/powerpc/futex.h: Likewise.
672 * config/linux/proc.c: Likewise.
673 * config/linux/ptrlock.c: Likewise.
674 * config/linux/ptrlock.h: Likewise.
675 * config/linux/s390/futex.h: Likewise.
676 * config/linux/sem.c: Likewise.
677 * config/linux/sem.h: Likewise.
678 * config/linux/sparc/futex.h: Likewise.
679 * config/linux/wait.h: Likewise.
680 * config/linux/x86/futex.h: Likewise.
681 * config/mingw32/proc.c: Likewise.
682 * config/mingw32/time.c: Likewise.
683 * config/posix/affinity.c: Likewise.
684 * config/posix/bar.c: Likewise.
685 * config/posix/bar.h: Likewise.
686 * config/posix/lock.c: Likewise.
687 * config/posix/mutex.h: Likewise.
688 * config/posix/proc.c: Likewise.
689 * config/posix/ptrlock.h: Likewise.
690 * config/posix/sem.c: Likewise.
691 * config/posix/sem.h: Likewise.
692 * config/posix/time.c: Likewise.
693 * config/posix95/lock.c: Likewise.
694 * critical.c: Likewise.
697 * fortran.c: Likewise.
698 * iter_ull.c: Likewise.
699 * libgomp.h: Likewise.
700 * libgomp_f.h.in: Likewise.
701 * libgomp_g.h: Likewise.
703 * loop_ull.c: Likewise.
704 * omp.h.in: Likewise.
705 * omp_lib.f90.in: Likewise.
706 * omp_lib.h.in: Likewise.
707 * ordered.c: Likewise.
708 * parallel.c: Likewise.
709 * sections.c: Likewise.
710 * single.c: Likewise.
715 2009-04-09 Jakub Jelinek <jakub@redhat.com>
717 * testsuite/config/default.exp: Change copyright header to refer to
718 version 3 of the GNU General Public License and to point readers
719 at the COPYING3 file and the FSF's license web page.
721 2009-04-08 Jakub Jelinek <jakub@redhat.com>
724 * libgomp.c++/pr39573.C: New test.
726 2009-04-01 Jakub Jelinek <jakub@redhat.com>
729 * testsuite/libgomp.c/pr39591-1.c: New test.
730 * testsuite/libgomp.c/pr39591-2.c: New test.
731 * testsuite/libgomp.c/pr39591-3.c: New test.
733 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
735 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
736 * testsuite/libgomp.c/atomic-6.c: Ditto.
738 2009-03-23 Jakub Jelinek <jakub@redhat.com>
741 * testsuite/libgomp.c/loop-12.c: New test.
742 * testsuite/libgomp.c/loop-11.c: New test.
743 * testsuite/libgomp.c++/loop-11.C: New test.
744 * testsuite/libgomp.c++/loop-12.C: New test.
745 * testsuite/libgomp.c++/for-8.C: New test.
747 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
749 * configure: Regenerate.
751 2009-02-11 Jakub Jelinek <jakub@redhat.com>
754 * testsuite/libgomp.c/pr39154.c: New test.
756 2009-01-30 Ian Lance Taylor <iant@google.com>
758 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
759 libgomp_ld_is_gold. Get gold version number.
760 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
761 * configure: Rebuild.
763 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
765 * testsuite/lib/libgomp.exp: Add -B option for targets that
766 use libgfortran.a%s in their specs.
768 2009-01-07 Jakub Jelinek <jakub@redhat.com>
771 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
772 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
773 HAVE_AS_SYMVER_DIRECTIVE is not defined.
774 * configure: Regenerated.
775 * config.h.in: Likewise.
777 2008-12-28 Jakub Jelinek <jakub@redhat.com>
780 * testsuite/libgomp.c/pr38650.c: New test.
781 * testsuite/libgomp.c++/pr38650.C: New test.
783 2008-12-27 Jakub Jelinek <jakub@redhat.com>
785 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
787 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
789 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
791 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
793 * configure: Regenerate.
795 2008-12-08 Jakub Jelinek <jakub@redhat.com>
798 * testsuite/libgomp.c/pr36802-1.c: New test.
799 * testsuite/libgomp.c/pr36802-2.c: New test.
800 * testsuite/libgomp.c/pr36802-3.c: New test.
802 2008-12-01 Janis Johnson <janis187@us.ibm.com>
805 * config/linux/powerpc/mutex.h: New.
807 2008-12-01 Jakub Jelinek <jakub@redhat.com>
810 * testsuite/libgomp.c++/for-7.C: New test.
813 * testsuite/libgomp.c++/for-6.C: New test.
815 2008-11-26 Janis Johnson <janis187@us.ibm.com>
818 * testsuite/lib/libgomp.exp: Include new timeout library files.
819 (libgomp_target_compile): Set timeout value from new proc.
821 2008-11-13 Steve Ellcey <sje@cup.hp.com>
824 * config/linux/ia64/mutex.h: New.
826 2008-11-04 Tobias Burnus <burnus@net-b.de>
829 * libgomp.texi (Runtime library routines, environment variables):
830 Update for OpenMP version 3.0.
832 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
833 Steve Ellcey <sje@cup.hp.com>
835 * configure: Regenerate for new libtool.
836 * Makefile.in: Ditto.
837 * testsuite/Makefile.in: Ditto.
839 2008-09-19 Jakub Jelinek <jakub@redhat.com>
840 Andreas Tobler <a.tobler@schweiz.org>
842 * config/bsd/proc.c: New file.
843 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
844 * configure.ac: Check for header <sys/sysctl.h>
845 * configure: Regenerate.
846 * config.h.in: Likewise.
848 2008-09-05 Janis Johnson <janis187@us.ibm.com>
850 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
852 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
854 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
855 * Makefile.in: Regenerated.
856 * testsuite/Makefile.in: Regenerated.
858 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
860 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
861 depend on blddir if blddir exists.
862 (libgomp_target_compile): Likewise.
863 * testsuite/libgomp.c++/c++.exp: Likewise.
864 * testsuite/libgomp.fortran/fortran.exp: Likewise.
866 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
868 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
869 Do not list GPL as Invariant Section.
871 2008-07-28 Ilie Garbacea <ilie@mips.com>
872 Chao-ying Fu <fu@mips.com>
874 * configure.tgt: Enable futex for MIPS.
875 * config/linux/mips/futex.h: New file.
877 2008-07-16 Jakub Jelinek <jakub@redhat.com>
879 * team.c (gomp_team_end): Free team immediately if it has
882 2008-07-08 David Edelsohn <edelsohn@gnu.org>
884 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
885 * testsuite/libgomp.fortran/fortran.exp: Same.
886 * testsuite/libgomp.c/c.exp: Same.
887 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
888 directory to library path first.
890 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
892 * env.c (parse_stacksize): Add cast to avoid warning.
893 (parse_spincount): Likewise.
895 2008-06-27 Jakub Jelinek <jakub@redhat.com>
897 * testsuite/libgomp.c/loop-10.c: New test.
898 * libgomp.c/loop-3.c (main): Add lastprivate clause.
899 * libgomp.c++/loop-6.C (main): Likewise.
902 * testsuite/libgomp.c/debug-1.c: New test.
904 2008-06-19 Jakub Jelinek <jakub@redhat.com>
906 * testsuite/libgomp.c/nqueens-1.c: New test.
909 * testsuite/libgomp.c++/task-7.C: New function.
911 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
913 * configure: Regenerate.
915 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
917 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
918 mutex when HAVE_SYNC_BUILTINS isn't defined.
920 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
922 * libgomp.texi (omp_test_lock): Fix typo.
924 2008-06-12 Tobias Burnus <burnus@net-b.de>
926 * omp_lib.f90.in: Add "implicit none".
928 2008-06-12 Jakub Jelinek <jakub@redhat.com>
931 * testsuite/libgomp.c/reduction-5.c: New test.
933 2008-06-11 Jakub Jelinek <jakub@redhat.com>
935 * libgomp.h (struct gomp_task): Add in_tied_task field.
936 * task.c (gomp_init_task): Initialize it.
937 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
938 unconditionally. Don't call gomp_team_barrier_wake if
939 current task is implicit or if(0) from implicit and number of
940 running tasks is equal to nthreads - 1.
943 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
944 omp_get_team_size_8): Fix pastos.
947 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
948 * configure: Regenerated.
949 * config.h.in: Regenerated.
950 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
953 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
956 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
957 (GOMP_loop_ull_dynamic_start): Likewise.
958 (GOMP_loop_ull_guided_start): Likewise.
959 (GOMP_loop_ull_ordered_static_start): Likewise.
960 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
961 (GOMP_loop_ull_ordered_guided_start): Likewise.
963 2008-06-06 Jakub Jelinek <jakub@redhat.com>
964 Richard Henderson <rth@redhat.com>
965 Ulrich Drepper <drepper@redhat.com>
966 Jakob Blomer <jakob.blomer@ira.uka.de>
968 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
969 Substitute also OMP_*LOCK_25*.
970 * configure: Regenerated.
971 * config.h.in: Regenerated.
972 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
973 ptrlock.c and task.c.
974 * Makefile.in: Regenerated.
975 * testsuite/Makefile.in: Regenerated.
977 * loop_ull.c: New file.
978 * iter_ull.c: New file.
979 * libgomp.h: Include ptrlock.h.
980 (enum gomp_task_kind): New type.
981 (struct gomp_team): Add task_lock, task_queue, task_count,
982 task_running_count, single_count fields. Add
983 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
984 Remove work_share_lock, generation_mask,
985 oldest_live_gen, num_live_gen and init_work_shares fields, add
986 work work_share_list_alloc, work_share_list_free and work_share_chunk
987 fields. Change work_shares from pointer to pointers into an array.
988 Change ordered_release field into gomp_sem_t ** from flexible array
989 member. Add implicit_task and initial_work_shares fields.
990 Move close to the end of the struct.
991 (struct gomp_team_state): Add single_count, last_work_share,
992 active_level and level fields, remove work_share_generation.
993 (gomp_barrier_handle_tasks): New prototype.
994 (gomp_finish_task): New inline function.
995 (struct gomp_work_share): Move chunk_size, end, incr into
996 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
997 next_ll fields. Reshuffle fields. Add next_alloc,
998 next_ws, next_free and inline_ordered_team_ids fields, change
999 ordered_team_ids into pointer from flexible array member.
1000 Add mode field. Put lock and next into a different cache line
1001 from most of the write-once fields.
1002 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1003 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1004 gomp_iter_ull_guided_next): New prototypes.
1005 (gomp_new_icv): New prototype.
1006 (struct gomp_thread): Add thread_pool and task fields.
1007 (struct gomp_thread_pool): New type.
1008 (gomp_new_team): New prototype.
1009 (gomp_team_start): Change type of last argument.
1010 (gomp_new_work_share): Removed.
1011 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1012 (gomp_work_share_init_done): New static inline.
1013 (gomp_throttled_spin_count_var, gomp_available_cpus,
1014 gomp_managed_threads): New extern decls.
1015 (gomp_init_task): New prototype.
1016 (gomp_spin_count_var): New extern var decl.
1017 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1018 or no alias support, or if not PIC.
1019 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1020 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1021 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1022 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1023 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1024 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1025 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1026 gomp_test_nest_lock_25): New prototypes.
1027 (omp_lock_symver, strong_alias): Define.
1028 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1030 (gomp_end_task): New.
1031 (struct gomp_task_icv, gomp_global_icv): New.
1032 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1033 (struct gomp_task): New.
1034 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1035 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1037 (gomp_schedule_type): Reorder enum to match
1039 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1041 (gomp_thread_start): Add gomp_team_barrier_wait call.
1042 For non-nested case remove clearing of docked thread thr fields.
1043 Use pool fields instead of global gomp_* variables. Use
1044 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1045 Create tasks for each member thread.
1046 (free_team): Only destroy team barrier, task_lock here and free it.
1047 (gomp_free_thread): Free last_team if non-NULL.
1048 (gomp_team_end): Call gomp_team_barrier_wait instead of
1049 gomp_barrier_wait. For nested case call one extra
1050 gomp_barrier_wait. Move here some destruction from free_team.
1051 Call free_team on pool->last_team if any, rather than freeing
1052 current team. Destroy work_share_list_free_lock ifndef
1054 (gomp_new_icv): New function.
1055 (gomp_threads, gomp_threads_size, gomp_threads_used,
1056 gomp_threads_dock): Removed.
1057 (gomp_thread_destructor): New variable.
1058 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1060 (gomp_team_start): Create new pool if current thread doesn't have
1061 one. Use pool fields instead of global gomp_* variables.
1062 Initialize thread_pool field for new threads. Clear single_count.
1063 Change last argument from ws to team, don't create
1064 new team, set ts.work_share to &team->work_shares[0] and clear
1065 ts.last_work_share. Don't clear ts.work_share_generation.
1066 If number of threads changed, adjust atomically gomp_managed_threads.
1067 Use gomp_init_task instead of gomp_new_task,
1068 set thr->task to the corresponding implicit_task array entry.
1069 Create tasks for each member thread. Initialize ts.level.
1070 (initialize_team): Call pthread_key_create on
1071 gomp_thread_destructor.
1072 (team_destructor): New function.
1073 (new_team): Removed.
1074 (gomp_new_team): New function.
1075 (free_team): Free gomp_work_share blocks chained through next_alloc,
1076 instead of freeing work_shares and destroying work_share_lock.
1077 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1078 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1079 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1080 of gomp_barrier_wait.
1081 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1082 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1083 if gomp_work_share_start returned true. Don't unlock ws->lock.
1084 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1085 of gomp_barrier_wait.
1086 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1087 gomp_work_share_init_done if gomp_work_share_start returned true.
1088 Don't unlock ws->lock.
1089 * work.c: Include stddef.h.
1090 (free_work_share): Use work_share_list_free_lock instead
1091 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1092 Call gomp_fini_work_share and then either free ws if orphaned, or
1093 put it into work_share_list_free list of the current team.
1094 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1096 (gomp_work_share_start, gomp_work_share_end,
1097 gomp_work_share_end_nowait): Rewritten.
1098 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1099 (openmp_version): Set to 200805.
1100 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1101 omp_sched_guided, omp_sched_auto): New parameters.
1102 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1103 omp_set_max_active_levels, omp_get_max_active_levels,
1104 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1105 omp_get_active_level): New interfaces.
1106 * omp_lib.h.in (openmp_version): Set to 200805.
1107 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1108 omp_sched_guided, omp_sched_auto): New parameters.
1109 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1110 omp_set_max_active_levels, omp_get_max_active_levels,
1111 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1112 omp_get_active_level): New externals.
1113 * loop.c: Include limits.h.
1114 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1116 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1117 Likewise. Use gomp_icv.
1118 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1119 ts.static_trip here.
1120 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1121 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1122 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1123 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1124 don't unlock ws->lock, otherwise lock it.
1125 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1126 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1127 (gomp_parallel_loop_start): Call gomp_new_team instead of
1128 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1129 Adjust gomp_team_start caller. Pass 0 as second argument to
1130 gomp_resolve_num_threads.
1131 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1132 If adding ws->chunk_size nthreads + 1 times after end won't
1133 overflow, set ws->mode to 1.
1134 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1135 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1136 GOMP_loop_ull_ordered_static_start,
1137 GOMP_loop_ull_ordered_dynamic_start,
1138 GOMP_loop_ull_ordered_guided_start,
1139 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1140 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1141 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1142 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1143 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1145 * libgomp.map: Export lock routines also @@OMP_2.0.
1146 (GOMP_loop_ordered_dynamic_first,
1147 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1148 GOMP_loop_ordered_static_first): Remove.
1149 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1150 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1151 GOMP_loop_ull_ordered_dynamic_next,
1152 GOMP_loop_ull_ordered_dynamic_start,
1153 GOMP_loop_ull_ordered_guided_next,
1154 GOMP_loop_ull_ordered_guided_start,
1155 GOMP_loop_ull_ordered_runtime_next,
1156 GOMP_loop_ull_ordered_runtime_start,
1157 GOMP_loop_ull_ordered_static_next,
1158 GOMP_loop_ull_ordered_static_start,
1159 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1160 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1161 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1162 (omp_set_schedule, omp_get_schedule,
1163 omp_get_thread_limit, omp_set_max_active_levels,
1164 omp_get_max_active_levels, omp_get_level,
1165 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1166 omp_set_schedule_, omp_set_schedule_8_,
1167 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1168 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1169 omp_get_max_active_levels_, omp_get_level_,
1170 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1171 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1172 New exports @@OMP_3.0.
1173 * omp.h.in (omp_sched_t): New type.
1174 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1175 omp_set_max_active_levels, omp_get_max_active_levels,
1176 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1177 omp_get_active_level): New prototypes.
1178 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1179 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1180 gomp_thread_limit_var, gomp_remaining_threads_count,
1181 gomp_remaining_threads_lock): New variables.
1182 (parse_spincount): New function.
1183 (initialize_env): Call gomp_init_num_threads unconditionally.
1184 Initialize gomp_available_cpus. Call parse_spincount,
1185 initialize gomp_{,throttled_}spin_count_var
1186 depending on presence and value of OMP_WAIT_POLICY and
1187 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1188 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1189 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1190 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1191 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1192 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1193 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1194 (gomp_global_icv): New.
1195 (parse_schedule): Use it. Parse "auto".
1196 (omp_set_num_threads): Use gomp_icv.
1197 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1199 (omp_get_max_threads): Move from parallel.c.
1200 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1201 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1203 (parse_stacksize, parse_wait_policy): New functions.
1204 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1205 both wrappers for compatibility and new locks.
1206 (omp_set_schedule, omp_get_schedule,
1207 omp_get_thread_limit, omp_set_max_active_levels,
1208 omp_get_max_active_levels, omp_get_level,
1209 omp_get_ancestor_thread_num, omp_get_team_size,
1210 omp_get_active_level): New ialias_redirect.
1211 (omp_set_schedule_, omp_set_schedule_8_,
1212 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1213 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1214 omp_get_max_active_levels_, omp_get_level_,
1215 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1216 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1218 * parallel.c: Include limits.h.
1219 (gomp_resolve_num_threads): Add count argument. Rewritten.
1220 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1221 argument to gomp_team_start. Pass 0 as second argument to
1222 gomp_resolve_num_threads.
1223 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1224 if gomp_thread_limit_var != ULONG_MAX.
1225 (omp_in_parallel): Implement using ts.active_level.
1226 (omp_get_max_threads): Move to env.c.
1227 (omp_get_level, omp_get_ancestor_thread_num,
1228 omp_get_team_size, omp_get_active_level): New functions,
1230 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1231 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1232 gomp_iter_dynamic_next instead of the _locked variant and don't take
1233 lock around it, otherwise acquire it before calling
1234 gomp_iter_dynamic_next_locked.
1235 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1236 gomp_iter_dynamic_next instead of the _locked variant and don't take
1238 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1239 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1240 Adjust gomp_team_start caller. Pass count as second argument to
1241 gomp_resolve_num_threads, don't adjust num_threads after the call.
1243 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1244 ws->chunk_size by incr.
1245 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1247 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1249 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1250 (omp_check_defines): Check even the compat defines.
1251 * config/linux/ptrlock.c: New file.
1252 * config/linux/ptrlock.h: New file.
1253 * config/linux/wait.h: New file.
1254 * config/posix/ptrlock.c: New file.
1255 * config/posix/ptrlock.h: New file.
1256 * config/linux/bar.h (gomp_team_barrier_wait,
1257 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1258 (gomp_team_barrier_set_task_pending,
1259 gomp_team_barrier_clear_task_pending,
1260 gomp_team_barrier_set_waiting_for_tasks,
1261 gomp_team_barrier_waiting_for_tasks,
1262 gomp_team_barrier_done): New inlines.
1263 (gomp_barrier_t): Rewritten.
1264 (gomp_barrier_state_t): New typedef.
1265 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1266 gomp_barrier_wait_start): Rewritten.
1267 (gomp_barrier_wait_end): Change second argument to
1268 gomp_barrier_state_t.
1269 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1271 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1273 (gomp_barrier_wait_end): Rewritten.
1274 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1275 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1276 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1277 (gomp_barrier_state_t): New typedef.
1278 (gomp_team_barrier_wait,
1279 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1280 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1281 into the return value. Return gomp_barrier_state_t.
1282 (gomp_team_barrier_set_task_pending,
1283 gomp_team_barrier_clear_task_pending,
1284 gomp_team_barrier_set_waiting_for_tasks,
1285 gomp_team_barrier_waiting_for_tasks,
1286 gomp_team_barrier_done): New inlines.
1287 (gomp_barrier_wait_end): Change second argument to
1288 gomp_barrier_state_t.
1289 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1291 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1292 (gomp_barrier_wait_end): Change second argument to
1293 gomp_barrier_state_t.
1294 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1295 gomp_team_barrier_wake): New functions.
1296 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1298 (gomp_futex_wake, gomp_futex_wait): New variables.
1299 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1300 * config/linux/lock.c: Rewrite to make locks task owned,
1301 for backwards compatibility provide the old entrypoints
1302 if symbol versioning. Include wait.h instead of libgomp.h and
1304 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1305 * config/posix95/lock.c: Rewrite to make locks task owned,
1306 for backwards compatibility provide the old entrypoints
1307 if symbol versioning.
1308 * config/posix/lock.c: Rewrite to make locks task owned,
1309 for backwards compatibility provide the old entrypoints
1310 if symbol versioning.
1311 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1312 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1313 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1314 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1315 (sys_futex0): Return error code.
1316 (futex_wake, futex_wait): If ENOSYS was returned, clear
1317 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1318 (cpu_relax, atomic_write_barrier): New static inlines.
1319 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1320 (futex_wake, futex_wait): If ENOSYS was returned, clear
1321 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1322 (cpu_relax, atomic_write_barrier): New static inlines.
1323 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1324 (sys_futex0): Return error code.
1325 (futex_wake, futex_wait): If ENOSYS was returned, clear
1326 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1327 (cpu_relax, atomic_write_barrier): New static inlines.
1328 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1329 (sys_futex0): Return error code.
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/ia64/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/sparc/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/sem.c: Include wait.h instead of libgomp.h and
1345 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1346 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1347 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1349 (omp_nest_lock_t): Change owner into void *, add lock field.
1350 * config/posix95/omp-lock.h: Include semaphore.h.
1351 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1352 (omp_lock_t): Use sem_t instead of mutex if semaphores
1354 (omp_nest_lock_t): Likewise. Change owner to void *.
1355 * config/posix/omp-lock.h: Include semaphore.h.
1356 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1357 (omp_lock_t): Use sem_t instead of mutex if semaphores
1359 (omp_nest_lock_t): Likewise. Add owner field.
1361 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1363 * testsuite/libgomp.c/collapse-1.c: New test.
1364 * testsuite/libgomp.c/collapse-2.c: New test.
1365 * testsuite/libgomp.c/collapse-3.c: New test.
1366 * testsuite/libgomp.c/icv-1.c: New test.
1367 * testsuite/libgomp.c/icv-2.c: New test.
1368 * testsuite/libgomp.c/lib-2.c: New test.
1369 * testsuite/libgomp.c/lock-1.c: New test.
1370 * testsuite/libgomp.c/lock-2.c: New test.
1371 * testsuite/libgomp.c/lock-3.c: New test.
1372 * testsuite/libgomp.c/loop-4.c: New test.
1373 * testsuite/libgomp.c/loop-5.c: New test.
1374 * testsuite/libgomp.c/loop-6.c: New test.
1375 * testsuite/libgomp.c/loop-7.c: New test.
1376 * testsuite/libgomp.c/loop-8.c: New test.
1377 * testsuite/libgomp.c/loop-9.c: New test.
1378 * testsuite/libgomp.c/nested-3.c: New test.
1379 * testsuite/libgomp.c/nestedfn-6.c: New test.
1380 * testsuite/libgomp.c/sort-1.c: New test.
1381 * testsuite/libgomp.c/task-1.c: New test.
1382 * testsuite/libgomp.c/task-2.c: New test.
1383 * testsuite/libgomp.c/task-3.c: New test.
1384 * testsuite/libgomp.c/task-4.c: New test.
1385 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1386 to C++ testsuite default compiler options.
1387 * testsuite/libgomp.c++/collapse-1.C: New test.
1388 * testsuite/libgomp.c++/collapse-2.C: New test.
1389 * testsuite/libgomp.c++/ctor-10.C: New test.
1390 * testsuite/libgomp.c++/for-1.C: New test.
1391 * testsuite/libgomp.c++/for-2.C: New test.
1392 * testsuite/libgomp.c++/for-3.C: New test.
1393 * testsuite/libgomp.c++/for-4.C: New test.
1394 * testsuite/libgomp.c++/for-5.C: New test.
1395 * testsuite/libgomp.c++/loop-8.C: New test.
1396 * testsuite/libgomp.c++/loop-9.C: New test.
1397 * testsuite/libgomp.c++/loop-10.C: New test.
1398 * testsuite/libgomp.c++/task-1.C: New test.
1399 * testsuite/libgomp.c++/task-2.C: New test.
1400 * testsuite/libgomp.c++/task-3.C: New test.
1401 * testsuite/libgomp.c++/task-4.C: New test.
1402 * testsuite/libgomp.c++/task-5.C: New test.
1403 * testsuite/libgomp.c++/task-6.C: New test.
1404 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1405 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1406 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1407 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1408 * testsuite/libgomp.fortran/collapse1.f90: New test.
1409 * testsuite/libgomp.fortran/collapse2.f90: New test.
1410 * testsuite/libgomp.fortran/collapse3.f90: New test.
1411 * testsuite/libgomp.fortran/collapse4.f90: New test.
1412 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1413 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1414 * testsuite/libgomp.fortran/lib4.f90: New test.
1415 * testsuite/libgomp.fortran/lock-1.f90: New test.
1416 * testsuite/libgomp.fortran/lock-2.f90: New test.
1417 * testsuite/libgomp.fortran/nested1.f90: New test.
1418 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1419 * testsuite/libgomp.fortran/strassen.f90: New test.
1420 * testsuite/libgomp.fortran/tabs1.f90: New test.
1421 * testsuite/libgomp.fortran/tabs2.f: New test.
1422 * testsuite/libgomp.fortran/task1.f90: New test.
1423 * testsuite/libgomp.fortran/task2.f90: New test.
1424 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1425 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1426 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1427 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1428 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1430 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1433 * testsuite/libgomp.c++/ctor-11.C: New test.
1434 * testsuite/libgomp.c++/ctor-12.C: New test.
1436 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1438 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1440 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1443 * testsuite/libgomp.c/atomic-5.c: New test.
1444 * testsuite/libgomp.c/atomic-6.c: New test.
1445 * testsuite/libgomp.c/autopar-1.c: New test.
1447 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1449 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1450 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1451 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1452 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1453 * configure: Regenerate.
1454 * Makefile.in, testsuite/Makefile.in: Likewise.
1456 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1459 * aclocal.m4: Regenerate.
1460 * configure: Regenerate.
1462 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1465 * testsuite/libgomp.c/atomic-4.c: New test.
1468 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1469 (gomp_iter_guided_next): Likewise.
1470 * testsuite/libgomp.c/pr35625.c: New test.
1472 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1474 * aclocal.m4: Regenerate.
1475 * configure: Likewise.
1476 * Makefile.in: Likewise.
1477 * testsuite/Makefile.in: Likewise.
1479 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1482 * testsuite/libgomp.c++/pr35185.C: New test.
1484 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1487 * testsuite/libgomp.c/pr35549.c: New test.
1489 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1491 * testsuite/libgomp.c/atomic-3.c: New test.
1493 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1496 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1499 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1502 * configure.ac: Add ACX_HEADER_STRING.
1503 * env.c: Include strings.h.
1504 * aclocal.m4: Regenerate.
1505 * config.h.in: Regenerate.
1506 * configure: Regenerate.
1507 * Makefile.in: Regenerate.
1508 * testsuite/Makefile.in: Regenerate.
1510 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1513 * testsuite/libgomp.c/pr35196.c: New test.
1516 * testsuite/libgomp.fortran/pr35130.f90: New test.
1517 * testsuite/libgomp.c/pr35130.c: New test.
1519 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1522 * testsuite/libgomp.c/pr33880.c: New test.
1523 * testsuite/libgomp.fortran/pr33880.f90: New test.
1525 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1527 * configure: Regenerate.
1529 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1531 * configure.ac: Move futex checking into ../config/futex.m4.
1532 * configure: Rebuilt.
1533 * aclocal.m4: Rebuilt.
1534 * Makefile.in: Rebuilt.
1536 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1537 2007-10-15 ../config/tls.m4 change.
1539 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1542 * testsuite/libgomp.c/pr34513.c: New test.
1543 * testsuite/libgomp.c++/pr34513.C: New test.
1545 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1548 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1550 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1552 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1554 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1556 * testsuite/libgomp.c/private-1.c: New test.
1558 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1559 Paolo Bonzini <bonzini@gnu.org>
1561 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1562 instead of 'VPATH ='.
1563 * Makefile.in: Regenerate.
1565 2007-11-23 Matthias Klose <doko@ubuntu.com>
1567 * configure.ac: Adjust makeinfo version check.
1568 * configure: Regenerate.
1570 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1573 * testsuite/libgomp.fortran/pr34020.f90: New test.
1575 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1578 * testsuite/libgomp.c++/atomic-1.C: New test.
1580 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1583 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1584 Make x and y integers rather than (implicit) reals. Add private (j)
1585 clause to the last omp parallel.
1587 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1589 * configure: Regenerate following changes to ../config/tls.m4.
1591 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1593 * testsuite/libgomp.fortran/stack.f90: New test.
1595 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1597 * config/mingw32/proc.c: New file.
1599 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1601 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1602 (main): Use __get_cpuid to get i386 target fetaures.
1603 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1604 (main): Use __get_cpuid to get x86_64 target fetaures.
1606 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1609 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1610 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1612 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1615 * testsuite/libgomp.fortran/pr32550.f90: New test.
1616 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1618 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1620 * aclocal.m4: Regenerated.
1622 2007-07-05 Tobias Burnus <burnus@net-b.de>
1625 * testsuite/libgomp.fortran/pr32359.f90: New.
1627 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1630 * sections.c (GOMP_parallel_sections_start): Only decrease
1631 number of threads to COUNT if dyn_var is true.
1632 * testsuite/libgomp.c/pr32468.c: New test.
1634 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1637 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1639 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1642 * testsuite/libgomp.c/pr32362-1.c: New test.
1643 * testsuite/libgomp.c/pr32362-2.c: New test.
1644 * testsuite/libgomp.c/pr32362-3.c: New test.
1646 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1648 * team.c (gomp_team_start): Fix setting up thread_attr
1651 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1653 * configure: Regenerate.
1655 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1657 * Makefile.in: Regenerate.
1658 * configure: Regenerate.
1659 * aclocal.m4: Regenerate.
1660 * testsuite/Makefile.in: Regenerate.
1662 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1664 * config/linux/proc.c: New file.
1667 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1669 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1671 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1673 2007-04-16 Matthias Klose <doko@debian.org>
1675 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1676 flags if not building with -m64.
1677 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1678 flag for i?86-*-* targets, if current target matches -m64.
1680 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1682 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1683 * Makefile.in: Regenerate.
1685 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1688 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1690 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1692 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1694 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1696 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1697 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1698 (parse_affinity): New function.
1699 (initialize_env): Call it and gomp_init_affinity.
1700 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1701 create new pthread_attr_t and call gomp_init_thread_affinity
1702 on it for each thread before passing the attribute to pthread_create.
1703 * config/linux/affinity.c: New file.
1704 * config/posix/affinity.c: New file.
1705 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1706 * configure: Rebuilt.
1707 * config.h.in: Rebuilt.
1708 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1709 * Makefile.in: Rebuilt.
1711 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1713 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1715 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1716 and use it if found.
1718 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1720 * testsuite/config/default.exp: New file.
1721 * testsuite/lib/libgomp.exp: New file.
1722 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1723 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1724 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1725 (libgomp_load): Remove.
1726 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1727 always_ld_library_path, not ld_library_path. Set additional_flags
1728 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1729 (target_compile): Do not call libgomp_init. Append lang_library_path
1730 and lang_link_flags to options.
1731 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1732 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1734 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1735 always_ld_library_path. Set LD_LIBRARY_PATH here.
1736 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1737 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1738 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1740 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1741 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1742 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1743 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1744 * testsuite/libgomp.c/atomic-10.c: Ditto.
1746 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1748 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1749 dg-final cleanup-modules line.
1750 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1751 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1752 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1753 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1754 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1755 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1756 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1758 2007-03-18 Andreas Schwab <schwab@suse.de>
1760 * acinclude.m4: Adjust regular expression for ld version
1762 * configure: Regenerate.
1764 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1766 * Makefile.am: Add install-pdf target as copied from
1767 automake v1.10 rules.
1768 * Makefile.in: Regenerate
1770 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1773 * configure: Regenerate.
1776 * testsuite/libgomp.c++/pr30703.C: New test.
1778 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1781 2006-07-05 Eric Christopher <echristo@apple.com>
1782 * configure.ac: Depend addition of -pthread on host OS.
1783 * configure: Regenerate.
1785 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1787 * libgomp.texi: Fix spacing after abbreviations.
1789 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1792 * configure.ac: Add check for makeinfo
1793 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1794 if an appropiate version of makeinfo is found.
1795 * aclocal.m4: Regenerated.
1796 * configure: Regenerated.
1797 * Makefile.in: Regenerated.
1798 * testsuite/Makefile.in: Regenerated.
1800 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1803 * libgomp.texi: More about implementation-dependent settings.
1805 2007-01-26 Tobias Burnus <burnus@net-b.de>
1807 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1809 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1812 * testsuite/libgomp.c/pr30494.c: New test.
1814 2007-01-15 Tom Tromey <tromey@redhat.com>
1816 * configure: Rebuilt.
1817 * configure.ac: Fixed comment.
1819 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1821 * libgomp.texi: Document implementation specific default values of
1822 environment variables.
1824 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1827 * libgomp.texi: New file.
1828 * configure.ac: Add --enable-generated-files-in-srcdir option.
1829 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1831 * Makefile.in: Regenerated.
1832 * config.h.in: Regenerated.
1833 * testsuite/Makefile.in: Regenerated.
1836 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1839 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1841 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1843 * configure: Regenerate.
1845 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1848 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1849 start if there shouldn't be any loop iterations.
1850 (gomp_loop_ordered_static_start): Remove start == end test.
1851 * testsuite/libgomp.c/pr29947-1.c: New test.
1852 * testsuite/libgomp.c/pr29947-2.c: New test.
1854 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1856 * configure.tgt: Force initial-exec TLS model on Linux only.
1858 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1860 * configure: Regenerated.
1862 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1864 * env.c (parse_schedule): Reject out of range values.
1865 (parse_unsigned_long): Reject out of range, negative or zero values.
1867 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1870 * testsuite/libgomp.fortran/pr29629.f90: New test.
1872 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1875 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1876 * config/posix95: New directory.
1877 * config/posix95/omp-lock.h: New file.
1878 * config/posix95/lock.c: Likewise.
1880 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1882 * aclocal.m4: Regenerate.
1883 * configure: Regenerate.
1885 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1887 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1890 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1892 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1894 * configure: Regenerate.
1895 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1897 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1901 * testsuite/libgomp.c/nestedfn-4.c: New test.
1902 * testsuite/libgomp.c/nestedfn-5.c: New test.
1903 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1906 * testsuite/libgomp.fortran/condinc1.f: New test.
1907 * testsuite/libgomp.fortran/condinc2.f: New test.
1908 * testsuite/libgomp.fortran/condinc3.f90: New test.
1909 * testsuite/libgomp.fortran/condinc4.f90: New test.
1910 * testsuite/libgomp.fortran/condinc1.inc: New file.
1912 2006-09-18 Tom Tromey <tromey@redhat.com>
1914 * configure: Rebuilt.
1916 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1919 PR preprocessor/14634
1920 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1922 * configure: Regenerate.
1924 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1926 * testsuite/libgomp.fortran/reduction3.f90: Change
1927 -2147483648 to -huge(i)-1 to avoid overflow.
1928 * testsuite/libgomp.fortran/reduction4.f90: Change
1929 Z'ffffffff' to not(0) to avoid overflow.
1931 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1934 * Makefile.am (libsubincludedir): New.
1935 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1936 * Makefile.in: Regenerate.
1938 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1941 * env.c: Include ctype.h.
1942 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1943 leading and/or trailing whitespace and compare strings case
1946 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1949 * testsuite/libgomp.fortran/pr28390.f: New test.
1951 2006-07-05 Eric Christopher <echristo@apple.com>
1953 * configure.ac: Depend addition of -pthread on host OS.
1954 * configure: Regenerate.
1956 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1958 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1959 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1962 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1966 * configure.ac: If neither --enable-linux-futex nor
1967 --disable-linux-futex is passed, determine the default by checking
1968 for compiling and/or running against NPTL. With --enable-linux-futex,
1969 check if SYS_gettid and SYS_futex are defined.
1970 * configure: Rebuilt.
1972 2006-06-14 Richard Henderson <rth@redhat.com>
1975 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1976 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1978 2006-06-09 Richard Henderson <rth@redhat.com>
1980 * env.c (gomp_nthreads_var): Change to unsigned long.
1981 (gomp_run_sched_chunk): Likewise.
1982 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1983 (initialize_env): Initialize gomp_thread_attr.
1984 * libgomp.h (gomp_nthreads_var): Update decl.
1985 (gomp_run_sched_chunk): Likewise.
1986 (gomp_thread_attr): Declare.
1987 * team.c (gomp_thread_attr): Export.
1988 (initialize_team): Don't initialize it.
1990 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1993 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1994 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1996 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1998 * config/mingw32/time.c: New file.
1999 * configure.tgt: Use it.
2001 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2003 * Makefile.am: Add install-html target. Add install-html to .PHONY
2004 * Makefile.in: Regenerate.
2006 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2009 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2010 * testsuite/libgomp.c/critical-1.c: Likewise.
2011 * testsuite/libgomp.c/loop-1.c: Likewise.
2012 * testsuite/libgomp.c/loop-2.c: Likewise.
2013 * testsuite/libgomp.c/single-1.c: Likewise.
2014 * testsuite/libgomp.c/ordered-1.c: Likewise.
2015 * testsuite/libgomp.c/ordered-2.c: Likewise.
2017 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2020 * libgomp.fortran/pr27416-1.f90: New test.
2022 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2025 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2026 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2028 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2031 * testsuite/libgomp.c/pr26943-1.c: New test.
2032 * testsuite/libgomp.c/pr26943-2.c: New test.
2033 * testsuite/libgomp.c/pr26943-3.c: New test.
2034 * testsuite/libgomp.c/pr26943-4.c: New test.
2035 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2036 * testsuite/libgomp.c++/pr26943.C: New test.
2038 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2041 * testsuite/libgomp.c++/pr27337.C: New test.
2043 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2046 * testsuite/libgomp.c/pr26171.c: New test.
2048 2006-04-25 Richard Henderson <rth@redhat.com>
2051 * configure.ac: Use GCC_CHECK_TLS.
2052 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2053 * Makefile.in, aclocal.m4, configure: Regenerate.
2055 2006-04-10 Matthias Klose <doko@debian.org>
2057 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2058 directory names containing underscores.
2060 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2063 * testsuite/libgomp.c++/pr26691.C: New test.
2065 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2067 * testsuite/libgomp.fortran/retval2.f90: New test.
2069 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2071 * testsuite/libgomp.c++: New directory.
2073 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2075 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2076 * config/posix/sem.c: Implement the above.
2078 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2080 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2081 define HAVE_BROKEN_POSIX_SEMAPHORES.
2082 * configure: Rebuilt.
2083 * config.h.in: Rebuilt.
2085 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2088 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2089 for the other pthread check.
2090 * configure: Regenerate.
2091 * config.h.in: Regenerate.
2093 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2097 * Makefile.am (fincludedir): New variable.
2098 (nodist_include_HEADERS): Remove Fortran files.
2099 (nodist_finclude_HEADERS): New variable.
2100 * Makefile.in: Regenerated.
2102 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2104 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2105 Remove tests for returning assumed character length arrays.
2107 2006-02-12 Roger Sayle <roger@eyesopen.com>
2108 John David Anglin <dave@hiauly1.hia.nrc.ca>
2111 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2113 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2115 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2117 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2119 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2120 part of LD_LIBRARY_PATH manually.
2122 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2125 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2128 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2131 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2132 * configure.ac (PERL): Don't set.
2133 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2134 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2135 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2136 * omp.h.in: Wrap the new configure substitutions with @ characters.
2137 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2138 * aclocal.m4, configure, Makefile.in: Regenerate.
2139 * mkomp_h.pl: Delete.
2141 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2144 * configure.ac: Use GCC_HEADER_STDINT.
2145 * libgomp.h: Include gstdint.h.
2146 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2147 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2149 2006-01-24 Richard Henderson <rth@redhat.com>
2152 * configure.ac: Add AM_MAINTAINER_MODE.
2153 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2155 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2157 * Makefile.in: Regenerate.
2158 * testsuite/Makefile.in: Regenerate.
2159 * aclocal.m4: Regenerate.
2161 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2163 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2165 * configure.ac: Add check for loadavg.h.
2166 (link_gomp): Adjust comment.
2167 * configure: Regenerate.
2168 * config.h.in: Regenerate.
2170 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2173 * configure.ac: Remove check for alloca.h.
2174 * configure: Regenerate.
2175 * config.h.in: Regenerate.
2176 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2177 * team.c: Remove use of alloca.h.
2178 Call gomp_alloca instead of alloca.
2180 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2183 * team.c: Add include of alloca.h.
2184 * configure.ac: Add check for alloca.h.
2185 * configure: Regenerate.
2186 * config.h.in: Regenerate.
2188 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2191 * testsuite/libgomp.fortran/pr25219.f90: New test.
2193 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2195 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2196 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2197 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2198 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2199 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2200 testsuite/libgomp.fortran/threadprivate1.f90,
2201 testsuite/libgomp.fortran/threadprivate2.f90,
2202 testsuite/libgomp.fortran/threadprivate3.f90,
2203 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2204 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2205 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2206 effective-target to TLS runtime.
2208 * testsuite/libgomp.fortran/pr25162.f: Require
2209 effective-target TLS runtime.
2211 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2213 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2214 * testsuite/libgomp.c/nestedfn-3.c: New test.
2216 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2219 * testsuite/libgomp.fortran/pr25162.f: New test.
2221 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2223 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2224 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2226 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2228 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2229 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2230 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2231 single.c, team.c, work.c, config/linux/alpha/futex.h,
2232 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2233 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2234 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2235 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2236 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2237 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2238 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2241 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2243 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2244 to nodist_noinst_HEADERS.
2245 * Makefile.in: Rebuilt.
2247 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2248 add integer count field.
2249 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2250 omp_nest_lock_t type change.
2251 (omp_init_nest_lock): Likewise. Initialize count to 0.
2252 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2254 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2256 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2257 Increment count if successful and return the new nesting level.
2258 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2259 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2260 * testsuite/libgomp.c/lib-1.c: New test.
2261 * testsuite/libgomp.fortran/lib1.f90: New test.
2262 * testsuite/libgomp.fortran/lib2.f: New test.
2263 * testsuite/libgomp.fortran/lib3.f: New test.
2265 2005-11-17 Richard Henderson <rth@redhat.com>
2268 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2269 * configure.ac (link_gomp): New. Substitute it.
2270 (AC_CONFIG_FILES): Add libgomp.spec.
2271 * libgomp.spec.in: New file.
2272 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2273 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2275 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2277 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2278 reduction(-:var) behaving the same as reduction(+:var).
2279 * testsuite/libgomp.c/reduction-4.c: New test.
2281 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2283 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2284 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2285 testsuite/libgomp.c/copyin-3.c,
2286 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2287 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2288 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2289 testsuite/libgomp.c++/pr24455.C,
2290 testsuite/libgomp.fortran/threadprivate1.f90,
2291 testsuite/libgomp.fortran/threadprivate2.f90,
2292 testsuite/libgomp.fortran/threadprivate3.f90,
2293 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2294 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2295 testsuite/libgomp.fortran/omp_parse3.f90: Require
2296 effective-target TLS.
2298 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2302 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2305 * team.c (initialize_team): Pass NULL rather than free as
2306 pthread_key_create destructor. Initialize thread specific data
2307 pointer in initial thread to a static local variable rather than
2310 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2312 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2313 its location to ld_library_path.
2315 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2317 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2319 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2321 * testsuite/libgomp.c: Rename from libgomp.dg.
2323 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2325 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2326 threadprivate variable 'i'.
2328 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2330 * config/linux/s390/futex.h: New file.
2331 * configure.tgt: Use it.
2333 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2334 before the parallel.
2336 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2339 * testsuite/libgomp.c++/master-1.C: New test.
2341 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2343 * testsuite/libgomp.dg/copyin-3.c: New test.
2345 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2347 * testsuite/libgomp.fortran/retval1.f90: New test.
2348 * testsuite/libgomp.fortran/vla7.f90: New test.
2350 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2352 * testsuite/libgomp.fortran/vla2.f90: New test.
2353 * testsuite/libgomp.fortran/vla3.f90: New test.
2354 * testsuite/libgomp.fortran/vla4.f90: New test.
2355 * testsuite/libgomp.fortran/vla5.f90: New test.
2356 * testsuite/libgomp.fortran/vla6.f90: New test.
2358 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2360 * config/linux/sparc/futex.h: New file.
2361 * configure.tgt: Use it.
2362 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2364 * critical.c: Include stdlib.h.
2365 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2366 ignoring return value.
2367 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2368 LIBGOMP_CHECK_SYNC_BUILTINS check.
2369 * configure: Rebuilt.
2371 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2373 * testsuite/libgomp.fortran/vla1.f90: New test.
2375 2005-10-31 Richard Henderson <rth@redhat.com>
2377 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2378 setting 's' in different threads.
2380 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2382 * libgomp.h (attribute_hidden, ialias): Define.
2383 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2384 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2385 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2386 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2387 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2388 omp_test_lock, omp_test_nest_lock): Likewise.
2389 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2390 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2391 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2392 omp_test_lock, omp_test_nest_lock): Likewise.
2393 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2394 omp_get_dynamic, omp_get_nested): Likewise.
2395 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2396 omp_get_thread_num, omp_in_parallel): Likewise.
2397 * fortran.c (ialias_redirect): Define.
2398 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2399 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2400 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2401 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2402 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2403 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2404 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2405 omp_get_wtime): Add ialias_redirect.
2407 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2409 * fortran.c: Include stdlib.h.
2411 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2413 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2414 * Makefile.in: Regenerated.
2416 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2418 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2419 * libgomp_f.h.in (omp_check_defines): New function.
2420 * env.c: Include libgomp_f.h.
2421 (initialize_env): Call omp_check_defines.
2423 * testsuite/libgomp.dg/copyin-2.c: New test.
2424 * testsuite/libgomp.c++/copyin-2.C: New test.
2425 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2427 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2428 * testsuite/libgomp.fortran/sharing2.f90: New test.
2430 * testsuite/libgomp.dg/copyin-1.c: New test.
2431 * testsuite/libgomp.c++/copyin-1.C: New test.
2433 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2435 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2437 * testsuite/libgomp.fortran/workshare1.f90: New test.
2439 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2441 * libgomp.fortran/sharing1.f90: New test.
2443 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2446 * testsuite/libgomp.c++/loop-7.C: New test.
2448 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2450 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2451 * testsuite/libgomp.fortran/reduction6.f90: New test.
2452 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2454 2005-10-23 Richard Henderson <rth@redhat.com>
2456 * testsuite/libgomp.c++/ctor-1.C: New.
2457 * testsuite/libgomp.c++/ctor-2.C: New.
2458 * testsuite/libgomp.c++/ctor-3.C: New.
2459 * testsuite/libgomp.c++/ctor-4.C: New.
2460 * testsuite/libgomp.c++/ctor-5.C: New.
2461 * testsuite/libgomp.c++/ctor-6.C: New.
2462 * testsuite/libgomp.c++/ctor-7.C: New.
2463 * testsuite/libgomp.c++/ctor-8.C: New.
2464 * testsuite/libgomp.c++/ctor-9.C: New.
2466 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2469 * testsuite/libgomp.c++/pr24455-1.C: New test.
2470 * testsuite/libgomp.c++/pr24455.C: New test.
2471 * testsuite/libgomp.dg/pr24455-1.c: New test.
2472 * testsuite/libgomp.dg/pr24455.c: New test.
2474 2005-10-20 Richard Henderson <rth@redhat.com>
2476 * testsuite/libgomp.c++/loop-6.C: New.
2477 * testsuite/libgomp.dg/loop-3.c: New.
2479 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2481 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2483 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2486 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2488 * testsuite/libgomp.fortran/jacobi.f: New test.
2490 2005-10-19 Richard Henderson <rth@redhat.com>
2492 * configure.tgt (i?86-linux): Default to with_arch instead of
2493 CFLAGS. Add -mtune to match target_cpu.
2494 (x86_64-linux): Tune to i686.
2496 * fortran.c (omp_test_nest_lock_): Fix typo.
2498 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2500 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2501 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2502 * testsuite/libgomp.dg/ordered-3.c: New test.
2504 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2505 Remove volatile keyword.
2507 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2508 in COMMON block to avoid warnings on 64-bit targets.
2510 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2512 * testsuite/libgomp.dg/shared-3.c: New test.
2514 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2516 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2517 * testsuite/libgomp.fortran/reduction5.f90: New test.
2519 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2521 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2523 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2524 flush loop now that __sync_synchronize has proper memory barrier.
2525 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2526 Add -ffixed-form to dg-options.
2528 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2530 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2531 from subdirectories.
2532 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2533 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2534 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2535 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2536 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2537 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2538 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2539 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2540 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2541 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2542 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2543 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2544 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2545 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2546 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2547 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2548 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2549 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2550 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2551 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2552 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2553 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2554 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2555 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2556 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2558 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2560 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2561 lang_library_path exists. Use find instead of glob to gather tests.
2562 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2564 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2566 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2567 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2568 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2569 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2570 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2571 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2572 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2573 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2574 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2575 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2576 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2577 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2578 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2580 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2582 * testsuite/libgomp.dg/vla-1.c: New test.
2584 * testsuite/libgomp.fortran/reference2.f90: New test.
2586 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2587 declaration of omp_get_thread_num.
2588 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2591 * testsuite/libgomp.fortran/reduction1.f90: New test.
2592 * testsuite/libgomp.fortran/reduction2.f90: New test.
2593 * testsuite/libgomp.fortran/reduction3.f90: New test.
2594 * testsuite/libgomp.fortran/reduction4.f90: New test.
2596 2005-10-13 Richard Henderson <rth@redhat.com>
2598 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2599 * Makefile.in: Regenerate.
2600 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2601 * libgomp.h: Include bar.h.
2602 (struct gomp_barrier): Remove.
2603 (struct gomp_team): Add barrier. Replace master_barrier with
2604 master_release. Replace threads with ordered_release.
2605 (struct gomp_thread): Replace barrier with release.
2606 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2607 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2608 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2609 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2610 (GOMP_single_copy_end): Likewise.
2611 * team.c (gomp_threads_dock): New.
2612 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2613 (gomp_thread_start): Use gomp_barrier_wait.
2614 (new_team, free_team): Update for gomp_team changes.
2615 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2616 (gomp_team_end): Use gomp_barrier_wait.
2617 (initialize_team): Update for gomp_thread changes.
2618 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2619 (gomp_work_share_end_nowait): Use atomic ops when available.
2620 * config/linux/bar.c, config/linux/bar.h: New files.
2621 * config/posix/bar.c, config/posix/bar.h: New files.
2623 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2625 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2626 * testsuite/libgomp.dg/single-2.c: New test.
2628 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2629 lang_link_flags): Unset, so that they aren't inherited from previously
2632 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2634 2005-10-12 Richard Henderson <rth@redhat.com>
2636 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2637 (libgomp_init): Use lang_test_file, lang_library_path, and
2638 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2640 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2641 (lang_test_file, lang_link_flags): New.
2642 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2644 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2645 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2646 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2647 testsuite/libgomp.c++/parallel-1.C,
2648 testsuite/libgomp.c++/reduction-1.C,
2649 testsuite/libgomp.c++/reduction-2.C,
2650 testsuite/libgomp.c++/reduction-3.C,
2651 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2652 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2653 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2654 New files, largely cribbed from the C testsuite.
2656 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2658 * testsuite/libgomp.fortran/character1.f90: New test.
2659 * testsuite/libgomp.fortran/character2.f90: New test.
2661 * testsuite/libgomp.dg/nested-1.c: New test.
2662 * testsuite/libgomp.dg/nested-2.c: New test.
2663 * testsuite/libgomp.fortran/do1.f90: New test.
2664 * testsuite/libgomp.fortran/do2.f90: New test.
2666 * testsuite/libgomp.fortran/reference1.f90: New test.
2668 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2670 * testsuite/libgomp.dg/reduction-1.c: New test.
2671 * testsuite/libgomp.dg/reduction-2.c: New test.
2672 * testsuite/libgomp.dg/reduction-3.c: New test.
2674 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2676 * testsuite/libgomp.dg/atomic-1.c: New test.
2677 * testsuite/libgomp.dg/atomic-2.c: New test.
2679 2005-10-09 Richard Henderson <rth@redhat.com>
2681 * critical.c (atomic_lock): New.
2682 (initialize_critical): Initialize it.
2683 (GOMP_atomic_start, GOMP_atomic_end): New.
2684 * libgomp.map: Export them.
2685 * libgomp_g.h: Declare them.
2687 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2689 2005-10-02 Richard Henderson <rth@redhat.com>
2691 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2692 to XCFLAGS instead of CFLAGS.
2694 2005-09-30 Richard Henderson <rth@redhat.com>
2696 * configure.ac: Determine whether -pthread or -lpthread is needed.
2697 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2698 * Makefine.in, configure: Rebuild.
2700 2005-09-28 Richard Henderson <rth@redhat.com>
2702 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2703 * testsuite/libgomp.dg/omp-single-3.c: New test.
2705 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2707 * testsuite/libgomp.dg/omp-single-2.c: New test.
2708 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2710 2005-09-27 Richard Henderson <rth@redhat.com>
2712 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2713 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2715 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2717 * testsuite/libgomp.dg/omp-loop03.c: New test.
2719 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2721 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2723 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2725 * testsuite/libgomp.dg/omp-single-1.c: New test.
2726 * testsuite/libgomp.dg/shared-1.c: Return 0.
2727 Add prototype for abort.
2728 * testsuite/libgomp.dg/shared-2.c: Likewise.
2730 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2732 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2735 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2737 * testsuite/libgomp.dg/shared-1.c: New test.
2738 * testsuite/libgomp.dg/shared-2.c: New test.
2740 2005-09-24 Richard Henderson <rth@redhat.com>
2742 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2744 2005-09-24 Richard Henderson <rth@redhat.com>
2746 * iter.c (gomp_iter_static_next): Round up when computing number
2747 of iterations. Don't bother distributing a remainder equally.
2749 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2750 Don't call srand. Zero b before testing.
2753 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2755 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2756 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2758 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2760 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2761 without !$omp end do, followed immediately by subroutine end.
2763 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2765 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2767 2005-09-22 Richard Henderson <rth@redhat.com>
2769 * critical.c (GOMP_critical_name_start): Change argument to void**.
2770 Reuse the pointer space if the mutex fits.
2771 (GOMP_critical_name_end): Likewise.
2772 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2773 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2774 (GOMP_critical_name_end): Likewise.
2775 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2776 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2778 2005-09-20 Richard Henderson <rth@redhat.com>
2780 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2781 (create_lock_lock): New.
2782 (initialize_critical): Initialize it.
2783 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2784 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2786 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2788 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2790 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2792 * testsuite/libgomp.dg/omp-loop01.c: New test.
2793 * testsuite/libgomp.dg/omp-loop02.c: New test.
2795 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2797 * configure.ac (AC_PROG_FC): Add.
2798 (USE_FORTRAN): New automake conditional.
2799 * configure: Rebuilt.
2800 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2801 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2802 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2803 Add rules to build them.
2804 * Makefile.in: Rebuilt.
2805 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2807 * libgomp.map: Add Fortran wrappers.
2808 * libgomp_f.h.in: New file.
2809 * omp_lib.h.in: New file.
2810 * omp_lib.f90.in: New file.
2811 * fortran.c: New file.
2812 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2813 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2814 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2815 libgfortran has been built.
2816 * testsuite/libgomp.fortran/fortran.exp: New file.
2817 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2818 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2819 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2820 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2821 * testsuite/libgomp.fortran/omp_hello.f: New test.
2822 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2823 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2824 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2825 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2826 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2827 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2828 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2829 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2831 2005-08-30 Richard Henderson <rth@redhat.com>
2833 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2834 function for when aliases are not usable.
2835 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2836 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2837 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2838 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2839 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2840 GOMP_loop_ordered_guided_next): Likewise.
2841 * ordered.c (GOMP_ordered_start): Likewise.
2843 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2845 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2846 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2847 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2848 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2849 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2850 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2851 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2852 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2853 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2855 2005-07-07 Eric Christopher <echristo@redhat.com>
2856 Diego Novillo <dnovillo@redhat.com>
2858 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2859 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2861 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2862 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2863 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2864 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2865 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2866 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2867 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2869 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2871 * TOPLEVEL.patch: Remove.
2873 2005-05-16 Richard Henderson <rth@redhat.com>
2875 * configure.ac: Test for clock_gettime.
2876 * config.h.in, configure: Rebuild.
2877 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2878 (omp_get_wtime): Use clock_gettime if available.
2879 (omp_get_wtick): Use clock_getres if available.
2881 2005-05-11 Richard Henderson <rth@redhat.com>
2883 * config/linux/ia64/futex.h: New file.
2884 * configure.tgt: Use it.
2886 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2888 2005-05-07 Richard Henderson <rth@redhat.com>
2890 * config/linux/powerpc/futex.h: New file.
2891 * configure.tgt: Use it.
2893 * config/linux/i486/futex.h: Merge ...
2894 * config/linux/x86_64/futex.h: ... into ...
2895 * config/linux/x86/futex.h: ... here.
2896 * configure.tgt: Update to match.
2898 2005-05-06 Richard Henderson <rth@redhat.com>
2900 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2901 * config/linux/i486/futex.h: Likewise.
2902 * config/linux/x86_64/futex.h: Likewise.
2904 * config/linux/lock.c: New file.
2905 * config/linux/omp-lock.h: New file.
2907 * critical.c, env.h: Don't include omp.h
2908 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2909 * config/posix/time.c: Likewise.
2910 * config/posix/omp-lock.h: New file.
2911 * libgomp.h: Include omp-lock.h and omp.h.
2912 * Makefile.am (nodist_include_HEADERS): New.
2914 * configure.ac (PERL): New.
2915 * mkomp_h.pl: New file.
2916 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2918 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2920 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2921 build directory. Re-add -march=i486 hack.
2923 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2924 (libgomp_link_flags): Remove.
2925 (libgomp_initialized): Remove.
2926 (libgomp_init): Don't protect from reinitialization. Copy code
2927 from libstdc++ for getting the multilib set correctly.
2929 2005-05-05 Richard Henderson <rth@redhat.com>
2931 * config/linux/alpha/futex.h: New file.
2932 * configure.tgt (alpha*-*-linux*): Use it.
2934 * config/posix/mutex.c: New file.
2935 * config/posix/sem.c: Use libgomp.h.
2937 * configure.tgt (x86_64-linux): Also test CC for -m32.
2938 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2940 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2943 * Makefile.am (SUBDIRS): New.
2944 (libgomp_la_LDFLAGS): Add -lpthread.
2945 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2946 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2948 * libgomp_g.h: New file.
2949 * libgomp.h: Split out all public declarations to libgomp_g.h.
2950 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2951 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2952 * config/linux/sem.h: Likewise.
2953 * config/posix/sem.h: Likewise.
2955 * Makefile.am (AM_LDFLAGS): New.
2956 (libgomp_version_script): Split out from ...
2957 (libgomp_la_LDFLAGS): ... here.
2958 (libgomp_version_info): New.
2959 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2960 (LIBGOMP_ENABLE): New.
2961 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2962 (LIBGOMP_ENABLE_SYMVERS): New.
2963 * configure.ac (AC_INIT): Version 1.0.
2964 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2965 (enable-linux-futex): Likewise. Rename from enable-futex.
2966 (libtool_VERSION): New.
2967 (LIBGOMP_ENABLE_SYMVERS): Use it.
2968 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2969 * Makefile.in, aclocal.m4, configure: Rebuild.
2971 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2972 (gomp_mutex_unlock_slow): Fix typo.
2973 * config/linux/sem.c: Similarly.
2974 (gomp_sem_post_slow): Fix typo.
2975 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2976 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2977 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2979 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2980 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2981 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2982 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2983 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2984 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2985 LDFLAGS. Pull enable_futex check to top-level.
2986 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2987 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2989 First attempt at real configury.
2990 * Makefile, config.h: Remove file.
2991 * Makefile.am, Makefile.in: New file.
2992 * acinclude.m4 aclocal.m4: New file.
2993 * configure.ac, configure.tgt, configure: New file.
2995 * config/posix/lock.c: Rename from sys-lock.c.
2996 * config/posix/mutex.h: Rename from sys-mutex.h.
2997 * config/posix/sem.c: Rename from sys-sem.c.
2998 * config/posix/sem.h: Rename from sys-sem.h.
2999 * config/posix/proc.c: Rename from sys-proc.c.
3000 * config/posix/time.c: Rename from sys-proc.c.
3002 * config/linux/mutex.c: New file.
3003 * config/linux/mutex.h: New file.
3004 * config/linux/sem.c: New file.
3005 * config/linux/sem.h: New file.
3006 * config/linux/i486/futex.h: New file.
3007 * config/linux/x86_64/futex.h: New file.
3009 2005-05-04 Richard Henderson <rth@redhat.com>
3011 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3012 * libgomp.h: Declare them.
3013 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3014 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3016 2005-05-04 Richard Henderson <rth@redhat.com>
3018 * libgomp-1 code drop
3020 2005-05-04 Richard Henderson <rth@redhat.com>
3022 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3023 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3024 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3025 (gomp_iter_static_next): Update.
3026 (gomp_ordered_static_next): Update.
3027 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3028 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3029 totally empty range.
3030 (gomp_loop_ordered_static_next): Refine test for calling
3031 gomp_ordered_static_next.
3032 * testsuite/ordered-1.c: Add case for more threads than iterations.
3034 * iter.c (gomp_iter_runtime_next_locked): Remove.
3035 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3036 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3037 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3038 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3039 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3040 gomp_loop_ordered_guided_next): Downcase name, make static, add
3041 an external alias with the old name.
3042 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3043 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3044 switch and call one of the above static functions.
3045 * libgomp.h: Update.
3047 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3048 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3049 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3050 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3051 GOMP_loop_ordered_guided_start): Update to match.
3052 * sections.c (GOMP_sections_start): Likewise.
3053 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3055 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3056 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3057 Use bounds check instead of modulus.
3058 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3059 (gomp_ordered_last): Don't sync with ordered_owner here.
3060 (gomp_ordered_next): Likewise.
3061 (gomp_ordered_static_loop_next): Likewise.
3062 * loop.c, libgomp.h: Update to match.
3064 * libgomp.h (GOMP_barrier): Declare.
3066 * testsuite/barrier-1.c: New file.
3067 * testsuite/critical-1.c: New file.
3068 * testsuite/ordered-2.c: New file.
3069 * testsuite/ordered-1.c: New file.
3070 * testsuite/sections-1.c: New file.
3071 * testsuite/single-1.c: New file.
3072 * testsuite/Makefile (TESTS): Add them.
3074 2005-05-04 Richard Henderson <rth@redhat.com>
3076 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3077 * loop.c (GOMP_loop_static_start): If not the startup thread,
3078 acquire the mutex to wait for initialization complete.
3079 (GOMP_loop_ordered_static_start): Likewise.
3080 (GOMP_loop_ordered_runtime_start): Likewise.
3081 (GOMP_loop_ordered_static_first): Remove.
3082 (GOMP_loop_ordered_dynamic_first): Remove.
3083 (GOMP_loop_ordered_guided_first): Remove.
3084 (GOMP_loop_ordered_runtime_first): Remove.
3085 * ordered.c (gomp_ordered_loop_first): Post to own release when
3086 we're the first thread.
3087 (gomp_ordered_loop_last): Wait on release if not owner.
3088 (gomp_ordered_loop_next): Likewise.
3089 (gomp_ordered_static_loop_init): New.
3090 (gomp_ordered_static_loop_next): Use ordered_owner.
3091 (GOMP_ordered_start): Likewise.
3092 * work.c (gomp_new_work_share): Initialize ordered_owner.
3094 2005-05-03 Richard Henderson <rth@redhat.com>
3096 * Makefile (OPT): New.
3099 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3100 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3101 * libgomp.h, libgomp.map, NOTES: Update to match.
3103 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3104 Add initialized and thr members.
3105 (gomp_thread_start): Pause when initially spawned to wait for
3106 the whole team to be created.
3107 (gomp_team_start): Release team members at the end.
3109 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3110 (f_foo_1): Use GOMP_loop_end.
3111 (f_foo_2): Use GOMP_loop_end_nowait.
3113 * testsuite/loop-2.c: New file.
3114 * testsuite/Makefile (TESTS): Add it.
3116 2005-05-03 Richard Henderson <rth@redhat.com>
3118 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3119 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3120 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3123 * testsuite/Makefile: New file.
3124 * testsuite/loop-1.c: New file.
3126 2005-05-03 Richard Henderson <rth@redhat.com>
3128 Initial implementation and checkin.