1 2011-12-09 Alan Modra <amodra@gmail.com>
4 * task.c (GOMP_taskwait): Don't access task->children outside of
5 task_lock mutex region.
8 2011-12-06 Jakub Jelinek <jakub@redhat.com>
11 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
19 2011-12-02 Alan Modra <amodra@gmail.com>
21 * config/linux/affinity.c: Use atomic rather than sync builtin.
22 * config/linux/lock.c: Likewise.
23 * config/linux/ptrlock.h: Likewise.
24 * config/linux/ptrlock.c: Likewise.
25 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
26 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
27 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
28 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
29 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
30 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
31 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
32 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
33 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
34 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
36 2011-11-30 Alan Modra <amodra@gmail.com>
39 * config/linux/bar.h: Use atomic rather than sync builtins.
40 * config/linux/bar.c: Likewise. Add missing acquire
41 synchronisation on generation field.
42 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
45 2011-11-30 Alan Modra <amodra@gmail.com>
47 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
48 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
49 * config/linux/mutex.h: Use atomic rather than sync builtins.
50 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
51 * config/linux/omp-lock.h: Comment fix.
52 * config/linux/arm/mutex.h: Delete.
53 * config/linux/powerpc/mutex.h: Delete.
54 * config/linux/ia64/mutex.h: Delete.
55 * config/linux/mips/mutex.h: Delete.
57 2011-11-30 Alan Modra <amodra@gmail.com>
60 * config/linux/sem.h: Rewrite.
61 * config/linux/sem.c: Rewrite.
63 2011-11-28 Richard Henderson <rth@redhat.com>
65 * libgomp.h (enum memmodel): New.
67 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
69 * configure: Regenerate.
71 2011-10-10 Matthias Klose <doko@ubuntu.com>
73 * config/posix95: Remove empty directory.
75 2011-08-26 Jakub Jelinek <jakub@redhat.com>
77 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
79 2011-08-19 Jakub Jelinek <jakub@redhat.com>
82 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
83 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
85 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
87 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
89 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
92 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
94 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
96 * config/linux/proc.h: New.
97 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
98 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
99 (gomp_init_num_threads): Update call to cpuset_popcount.
100 (get_num_procs): Ditto.
101 * config/linux/affinity.c (gomp_init_affinity): Call
102 gomp_cpuset_popcount.
104 2011-08-02 Jakub Jelinek <jakub@redhat.com>
108 * omp.h.in (omp_in_final): New prototype.
109 * omp_lib.f90.in (omp_in_final): New interface.
110 (omp_integer_kind, omp_logical_kind): Remove
111 and replace all its uses in the module with 4.
112 (openmp_version): Change to 201107.
113 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
114 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
115 kind for the parameters.
116 (omp_in_final): New external.
117 (openmp_version): Change to 201107.
118 * task.c (omp_in_final): New function.
119 (gomp_init_task): Initialize final_task.
120 (GOMP_task): Remove unused attribute from flags. Handle final
122 (GOMP_taskyield): New function.
123 (omp_in_final): Return true if if (false) or final (true) task
124 or descendant of final (true).
125 * fortran.c (omp_in_final_): New function.
126 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
127 (GOMP_3.0): Export GOMP_taskyield.
128 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
130 (parse_unsigned_long_list): New function.
131 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
132 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
133 even if parse_affinity returned false.
134 * config/linux/affinity.c (gomp_init_affinity): Handle
135 gomp_cpu_affinity_len == 0.
136 * libgomp_g.h (GOMP_taskyield): New prototype.
137 * libgomp.h (struct gomp_task): Add final_task field.
138 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
139 * team.c (gomp_team_start): Override new task's nthreads_var icv
140 if list form OMP_NUM_THREADS has been used and it has value for
141 the new nesting level.
143 * testsuite/libgomp.c/atomic-11.c: New test.
144 * testsuite/libgomp.c/atomic-12.c: New test.
145 * testsuite/libgomp.c/atomic-13.c: New test.
146 * testsuite/libgomp.c/atomic-14.c: New test.
147 * testsuite/libgomp.c/reduction-6.c: New test.
148 * testsuite/libgomp.c/task-5.c: New test.
149 * testsuite/libgomp.c++/atomic-2.C: New test.
150 * testsuite/libgomp.c++/atomic-3.C: New test.
151 * testsuite/libgomp.c++/atomic-4.C: New test.
152 * testsuite/libgomp.c++/atomic-5.C: New test.
153 * testsuite/libgomp.c++/atomic-6.C: New test.
154 * testsuite/libgomp.c++/atomic-7.C: New test.
155 * testsuite/libgomp.c++/atomic-8.C: New test.
156 * testsuite/libgomp.c++/atomic-9.C: New test.
157 * testsuite/libgomp.c++/task-8.C: New test.
158 * testsuite/libgomp.c++/reduction-4.C: New test.
159 * testsuite/libgomp.fortran/allocatable7.f90: New test.
160 * testsuite/libgomp.fortran/allocatable8.f90: New test.
161 * testsuite/libgomp.fortran/crayptr3.f90: New test.
162 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
163 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
164 * testsuite/libgomp.fortran/pointer1.f90: New test.
165 * testsuite/libgomp.fortran/pointer2.f90: New test.
166 * testsuite/libgomp.fortran/task4.f90: New test.
168 2011-08-02 Tobias Burnus <burnus@net-b.de>
170 * libgomp.texi: Update OpenMP spec references to 3.1.
171 (omp_in_final,OMP_PROC_BIND): New sections.
172 (OMP_NUM_THREADS): Document that the value can be now a list.
173 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
175 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
177 * config/linux/x86/futex.h: Check __x86_64__ instead of
180 2011-07-29 Jakub Jelinek <jakub@redhat.com>
184 * testsuite/libgomp.c/pr49897-1.c: New test.
185 * testsuite/libgomp.c/pr49897-2.c: New test.
186 * testsuite/libgomp.c/pr49898-1.c: New test.
187 * testsuite/libgomp.c/pr49898-2.c: New test.
189 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
191 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
192 for ia32 instead of ilp32.
194 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
195 * testsuite/libgomp.c/atomic-6.c: Likewise.
197 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
199 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
200 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
202 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
205 * config/osf/sem.h: New file.
206 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
208 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
211 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
214 2011-07-15 Jakub Jelinek <jakub@redhat.com>
216 * config/linux/wait.h (do_spin): New inline, largely copied
217 from do_wait, just don't do futex_wait here, instead return true if
219 (do_wait): Implement using do_spin.
220 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
222 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
223 __sync_bool_compare_and_swap, pass the oldval to
224 gomp_mutex_lock_slow.
225 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
226 If all mutex contenders are just spinning and not sleeping, don't
227 change state to 2 unnecessarily. Optimize the loop when state has
228 already become 2 to use just one atomic operation per loop instead
230 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
232 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
233 __sync_bool_compare_and_swap, pass the oldval to
234 gomp_mutex_lock_slow.
236 2011-06-22 Jakub Jelinek <jakub@redhat.com>
239 * iter.c (gomp_iter_static_next): For chunk size 0
240 only use n ceil/ nthreads size for the first
241 n % nthreads threads in the team instead of
242 all threads except for the last few ones which
243 get less work or none at all.
244 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
245 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
246 chunk argument, set run_sched_modifier to 0 for static
247 resp. 1 for other kinds. If chunk argument is 0
248 and not static, set value to 1.
250 2011-05-19 Jakub Jelinek <jakub@redhat.com>
253 * testsuite/libgomp.c++/pr49043.C: New test.
256 * testsuite/libgomp.c++/pr48869.C: New test.
258 2011-05-06 Jakub Jelinek <jakub@redhat.com>
261 * fortran.c: Include limits.h.
263 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
265 (omp_set_num_threads_8_, omp_set_schedule_8_,
266 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
267 omp_get_team_size_8_): Use TO_INT macro.
268 * testsuite/libgomp.fortran/pr48894.f90: New test.
270 2011-04-13 Jakub Jelinek <jakub@redhat.com>
273 * testsuite/libgomp.c/pr48591.c: New test.
275 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
278 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
279 * configure: Regenerate.
281 2011-02-27 Jakub Jelinek <jakub@redhat.com>
284 * testsuite/libgomp.fortran/task3.f90: New test.
286 2011-02-24 Tobias Burnus <burnus@net-b.de>
288 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
290 2011-02-23 Jakub Jelinek <jakub@redhat.com>
293 * libgomp.texi (omp_get_wtime): Don't say time in the past
296 2011-02-18 Jakub Jelinek <jakub@redhat.com>
299 * testsuite/libgomp.fortran/fortran.exp: Check for both
300 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
301 but $blddir != "", still append ${blddir}/${lang_library_path}
304 2011-02-16 Tobias Burnus <burnus@net-b.de>
307 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
308 of libquadmath.a before adding its libpath to ldflags.
310 2011-02-14 Jakub Jelinek <jakub@redhat.com>
313 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
314 to FUTEX_WAIT futex syscall.
315 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
317 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
319 * configure: Regenerate.
321 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
324 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
326 2011-01-16 Gerald Pfeifer
328 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
330 2010-12-14 Jakub Jelinek <jakub@redhat.com>
333 * libgomp.fortran/allocatable6.f90: New test.
335 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
337 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
338 * configure: Regenerate.
340 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
344 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
345 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
346 * aclocal.m4: Regenerate.
347 * configure: Regenerate.
348 * Makefile.in: Regenerate.
349 * testsuite/Makefile.in: Regenerate.
351 2010-12-02 Jakub Jelinek <jakub@redhat.com>
354 * libgomp.fortran/pr46753.f90: New test.
357 * env.c (initialize_env): Default to spin count 300000
358 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
362 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
363 at the end if sync builtins aren't supported.
365 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
367 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
369 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
371 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
373 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
375 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
377 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
378 Tobias Burnus <burnus@net-b.de>
382 * configure: Regenerate.
384 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
386 * config/linux/futex.h: New.
387 * config/linux/arm/mutex.h: New.
388 * configure.tgt (arm*-*-linux*): Add config path.
390 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
392 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
394 2010-09-23 Tobias Burnus <burnus@net-b.de>
396 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
397 Change Fortran datatype to LOGICAL.
398 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
399 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
401 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
403 * configure: Regenerate.
405 2010-07-26 Jakub Jelinek <jakub@redhat.com>
407 * libgomp.texi: Add function keyword to a couple of Fortran
408 interfaces, use integer instead of int for Fortran.
410 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
412 * libgomp.texi: Fix spelling and pasto problems throughout.
413 Adjust prototypes to match code.
415 2010-07-24 Tobias Burnus <burnus@net-b.de>
417 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
418 silence -fwhole-file warning.
420 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
422 * configure.tgt (*-*-solaris2.[56]*): Removed.
424 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
426 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
427 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
428 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
429 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
430 targetting solaris2*.
431 * configure: Regenerate.
432 * config.h.in: Regenerate.
434 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
435 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
436 Add libgomp_version_dep.
437 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
439 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
440 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
441 * Makefile.in: Regenerate.
443 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
444 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
445 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
446 to common block, protected by
447 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
449 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
451 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
453 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
456 * configure: Regenerate.
458 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
461 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
462 * configure: Regenerate.
463 * Makefile.in: Regenerate.
464 * testsuite/Makefile.in: Regenerate.
466 2010-04-26 Jakub Jelinek <jakub@redhat.com>
469 * testsuite/libgomp.c/pr43893.c: New test.
470 * testsuite/libgomp.c++/pr43893.C: New test.
472 2010-04-21 Jakub Jelinek <jakub@redhat.com>
475 * testsuite/libgomp.fortran/vla8.f90: New test.
477 2010-04-20 Jakub Jelinek <jakub@redhat.com>
480 * config/linux/affinity.c (gomp_init_affinity): Decrease
481 gomp_available_cpus if affinity mask confines the process to fewer
483 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
484 non-NULL, just return gomp_available_cpus.
487 * sections.c (gomp_sections_init): Initialize ws->mode.
489 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
491 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
492 not unused bar variable.
493 * configure: Regenerate.
495 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
497 * Makefile.in: Regenerate.
498 * aclocal.m4: Regenerate.
499 * testsuite/Makefile.in: Regenerate.
501 2010-03-22 Jakub Jelinek <jakub@redhat.com>
504 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
505 (initialize_env): Adjust callers.
506 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
507 when the argument is 0.
509 * testsuite/libgomp.c/pr42942.c: New test.
511 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
515 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
516 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
518 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
520 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
521 * testsuite/libgomp.c++/task-6.C: Likewise.
523 2010-01-28 Steve Ellcey <sje@cup.hp.com>
525 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
527 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
529 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
530 * configure: Regenerate.
532 2010-01-26 Jakub Jelinek <jakub@redhat.com>
535 * testsuite/libgomp.fortran/allocatable5.f90: New test.
537 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
539 * configure.ac: Test for executability of GFORTRAN.
540 * configure: Regenerate.
542 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
544 * configure: Regenerate.
546 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
549 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
551 2010-01-03 Richard Guenther <rguenther@suse.de>
553 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
555 2009-12-23 Sebastian Pop <sebpop@gmail.com>
557 * testsuite/libgomp.graphite/pr4118.c: New.
559 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
561 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
562 for darwin, protect the test with require-effective-target tls_runtime.
563 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
565 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
568 * testsuite/lib/libgomp.exp: Provide -B options to allow for
569 link spec %s substitutions for static libraries.
571 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
574 * libgomp.graphite/force-parallel-2.c: Reduce array size.
576 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
578 * Makefile.in: Regenerate.
579 * configure: Regenerate.
580 * testsuite/Makefile.in: Regenerate.
582 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
584 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
585 settings for LC_ALL and LANG.
587 2009-11-25 Jakub Jelinek <jakub@redhat.com>
590 * testsuite/libgomp.fortran/pr42162.f90: New test.
592 2009-11-13 Jakub Jelinek <jakub@redhat.com>
595 * testsuite/libgomp.c/pr42029.c: New test.
597 2009-10-26 Jakub Jelinek <jakub@redhat.com>
599 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
600 *s. Accept ld version without text in ()s.
601 * configure: Regenerated.
603 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
605 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
607 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
610 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
611 or a hyphen (happens with fortran language disabled).
612 * configure: Regenerate.
614 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
616 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
617 use sed script portable to Solaris /bin/sed for extracting ld
619 * configure: Regenerate.
621 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
623 * testsuite/libgomp.graphite/bounds.c: New test.
625 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
627 * Makefile.am (libgomp_la_LINK): New.
628 * Makefile.in: Regenerate.
630 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
632 * configure.ac (AC_PREREQ): Bump to 2.64.
634 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
636 * Makefile.am (install-html, install-pdf): Remove.
637 * Makefile.in: Regenerate.
639 * Makefile.in: Regenerate.
640 * aclocal.m4: Regenerate.
641 * config.h.in: Regenerate.
642 * configure: Regenerate.
643 * testsuite/Makefile.in: Regenerate.
645 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
647 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
648 * Makefile.in: Regenerate.
650 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
652 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
653 * Makefile.in: Regenerate.
655 2009-08-19 Tobias Burnus <burnus@net-b.de>
658 omp_lib.h.in: Fix -std=f95 errors.
661 2009-08-14 David Edelsohn <edelsohn@gnu.org>
663 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
664 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
665 * testsuite/libgomp.graphite/graphite.exp: New.
667 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
669 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
672 2009-08-04 David Daney <ddaney@caviumnetworks.com>
674 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
675 needed memory barrier semantics.
676 * config/linux/mips/mutex.h: New file.
678 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
680 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
682 2009-07-16 Joseph Myers <joseph@codesourcery.com>
684 * configure: Regenerate.
686 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
691 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
692 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
693 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
695 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
697 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
698 options when choosing a multilib.
700 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
702 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
703 ld_library_path. Use add_path. Add just find_libgcc_s to
704 ld_library_path, not every libgcc multilib directory.
705 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
706 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
707 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
709 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
711 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
713 * Makefile.am (LTLDFLAGS): Define.
715 * Makefile.in: Regenerate.
717 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
720 * testsuite/libgomp.fortran/fortran.exp: Don't link with
721 libgfortranbegin, check existence of libgfortran.a instead of
724 2009-05-20 Jakub Jelinek <jakub@redhat.com>
727 * team.c (gomp_thread_start): Destroy thr->release semaphore.
728 (gomp_free_pool_helper): Likewise.
730 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
731 Jakub Jelinek <jakub@redhat.com>
734 * testsuite/libgomp.fortran/workshare2.f90: New test.
736 2009-04-09 Nick Clifton <nickc@redhat.com>
738 * iter.c: Change copyright header to refer to version 3 of the
739 GNU General Public License with version 3.1 of the GCC Runtime
740 Library Exception and to point readers at the COPYING3 and
741 COPYING3.RUNTIME files and the FSF's license web page.
743 * barrier.c: Likewise.
744 * config/bsd/proc.c: Likewise.
745 * config/linux/affinity.c: Likewise.
746 * config/linux/alpha/futex.h: Likewise.
747 * config/linux/bar.c: Likewise.
748 * config/linux/bar.h: Likewise.
749 * config/linux/ia64/futex.h: Likewise.
750 * config/linux/ia64/mutex.h: Likewise.
751 * config/linux/lock.c: Likewise.
752 * config/linux/mips/futex.h: Likewise.
753 * config/linux/mutex.c: Likewise.
754 * config/linux/mutex.h: Likewise.
755 * config/linux/powerpc/futex.h: Likewise.
756 * config/linux/proc.c: Likewise.
757 * config/linux/ptrlock.c: Likewise.
758 * config/linux/ptrlock.h: Likewise.
759 * config/linux/s390/futex.h: Likewise.
760 * config/linux/sem.c: Likewise.
761 * config/linux/sem.h: Likewise.
762 * config/linux/sparc/futex.h: Likewise.
763 * config/linux/wait.h: Likewise.
764 * config/linux/x86/futex.h: Likewise.
765 * config/mingw32/proc.c: Likewise.
766 * config/mingw32/time.c: Likewise.
767 * config/posix/affinity.c: Likewise.
768 * config/posix/bar.c: Likewise.
769 * config/posix/bar.h: Likewise.
770 * config/posix/lock.c: Likewise.
771 * config/posix/mutex.h: Likewise.
772 * config/posix/proc.c: Likewise.
773 * config/posix/ptrlock.h: Likewise.
774 * config/posix/sem.c: Likewise.
775 * config/posix/sem.h: Likewise.
776 * config/posix/time.c: Likewise.
777 * config/posix95/lock.c: Likewise.
778 * critical.c: Likewise.
781 * fortran.c: Likewise.
782 * iter_ull.c: Likewise.
783 * libgomp.h: Likewise.
784 * libgomp_f.h.in: Likewise.
785 * libgomp_g.h: Likewise.
787 * loop_ull.c: Likewise.
788 * omp.h.in: Likewise.
789 * omp_lib.f90.in: Likewise.
790 * omp_lib.h.in: Likewise.
791 * ordered.c: Likewise.
792 * parallel.c: Likewise.
793 * sections.c: Likewise.
794 * single.c: Likewise.
799 2009-04-09 Jakub Jelinek <jakub@redhat.com>
801 * testsuite/config/default.exp: Change copyright header to refer to
802 version 3 of the GNU General Public License and to point readers
803 at the COPYING3 file and the FSF's license web page.
805 2009-04-08 Jakub Jelinek <jakub@redhat.com>
808 * libgomp.c++/pr39573.C: New test.
810 2009-04-01 Jakub Jelinek <jakub@redhat.com>
813 * testsuite/libgomp.c/pr39591-1.c: New test.
814 * testsuite/libgomp.c/pr39591-2.c: New test.
815 * testsuite/libgomp.c/pr39591-3.c: New test.
817 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
819 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
820 * testsuite/libgomp.c/atomic-6.c: Ditto.
822 2009-03-23 Jakub Jelinek <jakub@redhat.com>
825 * testsuite/libgomp.c/loop-12.c: New test.
826 * testsuite/libgomp.c/loop-11.c: New test.
827 * testsuite/libgomp.c++/loop-11.C: New test.
828 * testsuite/libgomp.c++/loop-12.C: New test.
829 * testsuite/libgomp.c++/for-8.C: New test.
831 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
833 * configure: Regenerate.
835 2009-02-11 Jakub Jelinek <jakub@redhat.com>
838 * testsuite/libgomp.c/pr39154.c: New test.
840 2009-01-30 Ian Lance Taylor <iant@google.com>
842 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
843 libgomp_ld_is_gold. Get gold version number.
844 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
845 * configure: Rebuild.
847 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
849 * testsuite/lib/libgomp.exp: Add -B option for targets that
850 use libgfortran.a%s in their specs.
852 2009-01-07 Jakub Jelinek <jakub@redhat.com>
855 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
856 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
857 HAVE_AS_SYMVER_DIRECTIVE is not defined.
858 * configure: Regenerated.
859 * config.h.in: Likewise.
861 2008-12-28 Jakub Jelinek <jakub@redhat.com>
864 * testsuite/libgomp.c/pr38650.c: New test.
865 * testsuite/libgomp.c++/pr38650.C: New test.
867 2008-12-27 Jakub Jelinek <jakub@redhat.com>
869 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
871 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
873 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
875 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
877 * configure: Regenerate.
879 2008-12-08 Jakub Jelinek <jakub@redhat.com>
882 * testsuite/libgomp.c/pr36802-1.c: New test.
883 * testsuite/libgomp.c/pr36802-2.c: New test.
884 * testsuite/libgomp.c/pr36802-3.c: New test.
886 2008-12-01 Janis Johnson <janis187@us.ibm.com>
889 * config/linux/powerpc/mutex.h: New.
891 2008-12-01 Jakub Jelinek <jakub@redhat.com>
894 * testsuite/libgomp.c++/for-7.C: New test.
897 * testsuite/libgomp.c++/for-6.C: New test.
899 2008-11-26 Janis Johnson <janis187@us.ibm.com>
902 * testsuite/lib/libgomp.exp: Include new timeout library files.
903 (libgomp_target_compile): Set timeout value from new proc.
905 2008-11-13 Steve Ellcey <sje@cup.hp.com>
908 * config/linux/ia64/mutex.h: New.
910 2008-11-04 Tobias Burnus <burnus@net-b.de>
913 * libgomp.texi (Runtime library routines, environment variables):
914 Update for OpenMP version 3.0.
916 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
917 Steve Ellcey <sje@cup.hp.com>
919 * configure: Regenerate for new libtool.
920 * Makefile.in: Ditto.
921 * testsuite/Makefile.in: Ditto.
923 2008-09-19 Jakub Jelinek <jakub@redhat.com>
924 Andreas Tobler <a.tobler@schweiz.org>
926 * config/bsd/proc.c: New file.
927 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
928 * configure.ac: Check for header <sys/sysctl.h>
929 * configure: Regenerate.
930 * config.h.in: Likewise.
932 2008-09-05 Janis Johnson <janis187@us.ibm.com>
934 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
936 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
938 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
939 * Makefile.in: Regenerated.
940 * testsuite/Makefile.in: Regenerated.
942 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
944 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
945 depend on blddir if blddir exists.
946 (libgomp_target_compile): Likewise.
947 * testsuite/libgomp.c++/c++.exp: Likewise.
948 * testsuite/libgomp.fortran/fortran.exp: Likewise.
950 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
952 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
953 Do not list GPL as Invariant Section.
955 2008-07-28 Ilie Garbacea <ilie@mips.com>
956 Chao-ying Fu <fu@mips.com>
958 * configure.tgt: Enable futex for MIPS.
959 * config/linux/mips/futex.h: New file.
961 2008-07-16 Jakub Jelinek <jakub@redhat.com>
963 * team.c (gomp_team_end): Free team immediately if it has
966 2008-07-08 David Edelsohn <edelsohn@gnu.org>
968 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
969 * testsuite/libgomp.fortran/fortran.exp: Same.
970 * testsuite/libgomp.c/c.exp: Same.
971 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
972 directory to library path first.
974 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
976 * env.c (parse_stacksize): Add cast to avoid warning.
977 (parse_spincount): Likewise.
979 2008-06-27 Jakub Jelinek <jakub@redhat.com>
981 * testsuite/libgomp.c/loop-10.c: New test.
982 * libgomp.c/loop-3.c (main): Add lastprivate clause.
983 * libgomp.c++/loop-6.C (main): Likewise.
986 * testsuite/libgomp.c/debug-1.c: New test.
988 2008-06-19 Jakub Jelinek <jakub@redhat.com>
990 * testsuite/libgomp.c/nqueens-1.c: New test.
993 * testsuite/libgomp.c++/task-7.C: New function.
995 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
997 * configure: Regenerate.
999 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1001 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1002 mutex when HAVE_SYNC_BUILTINS isn't defined.
1004 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1006 * libgomp.texi (omp_test_lock): Fix typo.
1008 2008-06-12 Tobias Burnus <burnus@net-b.de>
1010 * omp_lib.f90.in: Add "implicit none".
1012 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1015 * testsuite/libgomp.c/reduction-5.c: New test.
1017 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1019 * libgomp.h (struct gomp_task): Add in_tied_task field.
1020 * task.c (gomp_init_task): Initialize it.
1021 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1022 unconditionally. Don't call gomp_team_barrier_wake if
1023 current task is implicit or if(0) from implicit and number of
1024 running tasks is equal to nthreads - 1.
1027 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1028 omp_get_team_size_8): Fix pastos.
1031 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1032 * configure: Regenerated.
1033 * config.h.in: Regenerated.
1034 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1037 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1040 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1041 (GOMP_loop_ull_dynamic_start): Likewise.
1042 (GOMP_loop_ull_guided_start): Likewise.
1043 (GOMP_loop_ull_ordered_static_start): Likewise.
1044 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1045 (GOMP_loop_ull_ordered_guided_start): Likewise.
1047 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1048 Richard Henderson <rth@redhat.com>
1049 Ulrich Drepper <drepper@redhat.com>
1050 Jakob Blomer <jakob.blomer@ira.uka.de>
1052 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1053 Substitute also OMP_*LOCK_25*.
1054 * configure: Regenerated.
1055 * config.h.in: Regenerated.
1056 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1057 ptrlock.c and task.c.
1058 * Makefile.in: Regenerated.
1059 * testsuite/Makefile.in: Regenerated.
1061 * loop_ull.c: New file.
1062 * iter_ull.c: New file.
1063 * libgomp.h: Include ptrlock.h.
1064 (enum gomp_task_kind): New type.
1065 (struct gomp_team): Add task_lock, task_queue, task_count,
1066 task_running_count, single_count fields. Add
1067 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1068 Remove work_share_lock, generation_mask,
1069 oldest_live_gen, num_live_gen and init_work_shares fields, add
1070 work work_share_list_alloc, work_share_list_free and work_share_chunk
1071 fields. Change work_shares from pointer to pointers into an array.
1072 Change ordered_release field into gomp_sem_t ** from flexible array
1073 member. Add implicit_task and initial_work_shares fields.
1074 Move close to the end of the struct.
1075 (struct gomp_team_state): Add single_count, last_work_share,
1076 active_level and level fields, remove work_share_generation.
1077 (gomp_barrier_handle_tasks): New prototype.
1078 (gomp_finish_task): New inline function.
1079 (struct gomp_work_share): Move chunk_size, end, incr into
1080 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1081 next_ll fields. Reshuffle fields. Add next_alloc,
1082 next_ws, next_free and inline_ordered_team_ids fields, change
1083 ordered_team_ids into pointer from flexible array member.
1084 Add mode field. Put lock and next into a different cache line
1085 from most of the write-once fields.
1086 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1087 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1088 gomp_iter_ull_guided_next): New prototypes.
1089 (gomp_new_icv): New prototype.
1090 (struct gomp_thread): Add thread_pool and task fields.
1091 (struct gomp_thread_pool): New type.
1092 (gomp_new_team): New prototype.
1093 (gomp_team_start): Change type of last argument.
1094 (gomp_new_work_share): Removed.
1095 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1096 (gomp_work_share_init_done): New static inline.
1097 (gomp_throttled_spin_count_var, gomp_available_cpus,
1098 gomp_managed_threads): New extern decls.
1099 (gomp_init_task): New prototype.
1100 (gomp_spin_count_var): New extern var decl.
1101 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1102 or no alias support, or if not PIC.
1103 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1104 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1105 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1106 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1107 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1108 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1109 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1110 gomp_test_nest_lock_25): New prototypes.
1111 (omp_lock_symver, strong_alias): Define.
1112 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1114 (gomp_end_task): New.
1115 (struct gomp_task_icv, gomp_global_icv): New.
1116 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1117 (struct gomp_task): New.
1118 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1119 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1121 (gomp_schedule_type): Reorder enum to match
1123 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1125 (gomp_thread_start): Add gomp_team_barrier_wait call.
1126 For non-nested case remove clearing of docked thread thr fields.
1127 Use pool fields instead of global gomp_* variables. Use
1128 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1129 Create tasks for each member thread.
1130 (free_team): Only destroy team barrier, task_lock here and free it.
1131 (gomp_free_thread): Free last_team if non-NULL.
1132 (gomp_team_end): Call gomp_team_barrier_wait instead of
1133 gomp_barrier_wait. For nested case call one extra
1134 gomp_barrier_wait. Move here some destruction from free_team.
1135 Call free_team on pool->last_team if any, rather than freeing
1136 current team. Destroy work_share_list_free_lock ifndef
1138 (gomp_new_icv): New function.
1139 (gomp_threads, gomp_threads_size, gomp_threads_used,
1140 gomp_threads_dock): Removed.
1141 (gomp_thread_destructor): New variable.
1142 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1144 (gomp_team_start): Create new pool if current thread doesn't have
1145 one. Use pool fields instead of global gomp_* variables.
1146 Initialize thread_pool field for new threads. Clear single_count.
1147 Change last argument from ws to team, don't create
1148 new team, set ts.work_share to &team->work_shares[0] and clear
1149 ts.last_work_share. Don't clear ts.work_share_generation.
1150 If number of threads changed, adjust atomically gomp_managed_threads.
1151 Use gomp_init_task instead of gomp_new_task,
1152 set thr->task to the corresponding implicit_task array entry.
1153 Create tasks for each member thread. Initialize ts.level.
1154 (initialize_team): Call pthread_key_create on
1155 gomp_thread_destructor.
1156 (team_destructor): New function.
1157 (new_team): Removed.
1158 (gomp_new_team): New function.
1159 (free_team): Free gomp_work_share blocks chained through next_alloc,
1160 instead of freeing work_shares and destroying work_share_lock.
1161 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1162 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1163 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1164 of gomp_barrier_wait.
1165 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1166 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1167 if gomp_work_share_start returned true. Don't unlock ws->lock.
1168 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1169 of gomp_barrier_wait.
1170 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1171 gomp_work_share_init_done if gomp_work_share_start returned true.
1172 Don't unlock ws->lock.
1173 * work.c: Include stddef.h.
1174 (free_work_share): Use work_share_list_free_lock instead
1175 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1176 Call gomp_fini_work_share and then either free ws if orphaned, or
1177 put it into work_share_list_free list of the current team.
1178 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1180 (gomp_work_share_start, gomp_work_share_end,
1181 gomp_work_share_end_nowait): Rewritten.
1182 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1183 (openmp_version): Set to 200805.
1184 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1185 omp_sched_guided, omp_sched_auto): New parameters.
1186 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1187 omp_set_max_active_levels, omp_get_max_active_levels,
1188 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1189 omp_get_active_level): New interfaces.
1190 * omp_lib.h.in (openmp_version): Set to 200805.
1191 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1192 omp_sched_guided, omp_sched_auto): New parameters.
1193 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1194 omp_set_max_active_levels, omp_get_max_active_levels,
1195 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1196 omp_get_active_level): New externals.
1197 * loop.c: Include limits.h.
1198 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1200 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1201 Likewise. Use gomp_icv.
1202 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1203 ts.static_trip here.
1204 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1205 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1206 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1207 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1208 don't unlock ws->lock, otherwise lock it.
1209 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1210 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1211 (gomp_parallel_loop_start): Call gomp_new_team instead of
1212 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1213 Adjust gomp_team_start caller. Pass 0 as second argument to
1214 gomp_resolve_num_threads.
1215 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1216 If adding ws->chunk_size nthreads + 1 times after end won't
1217 overflow, set ws->mode to 1.
1218 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1219 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1220 GOMP_loop_ull_ordered_static_start,
1221 GOMP_loop_ull_ordered_dynamic_start,
1222 GOMP_loop_ull_ordered_guided_start,
1223 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1224 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1225 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1226 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1227 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1229 * libgomp.map: Export lock routines also @@OMP_2.0.
1230 (GOMP_loop_ordered_dynamic_first,
1231 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1232 GOMP_loop_ordered_static_first): Remove.
1233 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1234 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1235 GOMP_loop_ull_ordered_dynamic_next,
1236 GOMP_loop_ull_ordered_dynamic_start,
1237 GOMP_loop_ull_ordered_guided_next,
1238 GOMP_loop_ull_ordered_guided_start,
1239 GOMP_loop_ull_ordered_runtime_next,
1240 GOMP_loop_ull_ordered_runtime_start,
1241 GOMP_loop_ull_ordered_static_next,
1242 GOMP_loop_ull_ordered_static_start,
1243 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1244 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1245 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1246 (omp_set_schedule, omp_get_schedule,
1247 omp_get_thread_limit, omp_set_max_active_levels,
1248 omp_get_max_active_levels, omp_get_level,
1249 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1250 omp_set_schedule_, omp_set_schedule_8_,
1251 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1252 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1253 omp_get_max_active_levels_, omp_get_level_,
1254 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1255 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1256 New exports @@OMP_3.0.
1257 * omp.h.in (omp_sched_t): New type.
1258 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1259 omp_set_max_active_levels, omp_get_max_active_levels,
1260 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1261 omp_get_active_level): New prototypes.
1262 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1263 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1264 gomp_thread_limit_var, gomp_remaining_threads_count,
1265 gomp_remaining_threads_lock): New variables.
1266 (parse_spincount): New function.
1267 (initialize_env): Call gomp_init_num_threads unconditionally.
1268 Initialize gomp_available_cpus. Call parse_spincount,
1269 initialize gomp_{,throttled_}spin_count_var
1270 depending on presence and value of OMP_WAIT_POLICY and
1271 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1272 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1273 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1274 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1275 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1276 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1277 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1278 (gomp_global_icv): New.
1279 (parse_schedule): Use it. Parse "auto".
1280 (omp_set_num_threads): Use gomp_icv.
1281 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1283 (omp_get_max_threads): Move from parallel.c.
1284 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1285 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1287 (parse_stacksize, parse_wait_policy): New functions.
1288 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1289 both wrappers for compatibility and new locks.
1290 (omp_set_schedule, omp_get_schedule,
1291 omp_get_thread_limit, omp_set_max_active_levels,
1292 omp_get_max_active_levels, omp_get_level,
1293 omp_get_ancestor_thread_num, omp_get_team_size,
1294 omp_get_active_level): New ialias_redirect.
1295 (omp_set_schedule_, omp_set_schedule_8_,
1296 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1297 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1298 omp_get_max_active_levels_, omp_get_level_,
1299 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1300 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1302 * parallel.c: Include limits.h.
1303 (gomp_resolve_num_threads): Add count argument. Rewritten.
1304 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1305 argument to gomp_team_start. Pass 0 as second argument to
1306 gomp_resolve_num_threads.
1307 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1308 if gomp_thread_limit_var != ULONG_MAX.
1309 (omp_in_parallel): Implement using ts.active_level.
1310 (omp_get_max_threads): Move to env.c.
1311 (omp_get_level, omp_get_ancestor_thread_num,
1312 omp_get_team_size, omp_get_active_level): New functions,
1314 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1315 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1316 gomp_iter_dynamic_next instead of the _locked variant and don't take
1317 lock around it, otherwise acquire it before calling
1318 gomp_iter_dynamic_next_locked.
1319 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1320 gomp_iter_dynamic_next instead of the _locked variant and don't take
1322 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1323 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1324 Adjust gomp_team_start caller. Pass count as second argument to
1325 gomp_resolve_num_threads, don't adjust num_threads after the call.
1327 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1328 ws->chunk_size by incr.
1329 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1331 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1333 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1334 (omp_check_defines): Check even the compat defines.
1335 * config/linux/ptrlock.c: New file.
1336 * config/linux/ptrlock.h: New file.
1337 * config/linux/wait.h: New file.
1338 * config/posix/ptrlock.c: New file.
1339 * config/posix/ptrlock.h: New file.
1340 * config/linux/bar.h (gomp_team_barrier_wait,
1341 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1342 (gomp_team_barrier_set_task_pending,
1343 gomp_team_barrier_clear_task_pending,
1344 gomp_team_barrier_set_waiting_for_tasks,
1345 gomp_team_barrier_waiting_for_tasks,
1346 gomp_team_barrier_done): New inlines.
1347 (gomp_barrier_t): Rewritten.
1348 (gomp_barrier_state_t): New typedef.
1349 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1350 gomp_barrier_wait_start): Rewritten.
1351 (gomp_barrier_wait_end): Change second argument to
1352 gomp_barrier_state_t.
1353 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1355 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1357 (gomp_barrier_wait_end): Rewritten.
1358 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1359 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1360 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1361 (gomp_barrier_state_t): New typedef.
1362 (gomp_team_barrier_wait,
1363 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1364 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1365 into the return value. Return gomp_barrier_state_t.
1366 (gomp_team_barrier_set_task_pending,
1367 gomp_team_barrier_clear_task_pending,
1368 gomp_team_barrier_set_waiting_for_tasks,
1369 gomp_team_barrier_waiting_for_tasks,
1370 gomp_team_barrier_done): New inlines.
1371 (gomp_barrier_wait_end): Change second argument to
1372 gomp_barrier_state_t.
1373 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1375 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1376 (gomp_barrier_wait_end): Change second argument to
1377 gomp_barrier_state_t.
1378 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1379 gomp_team_barrier_wake): New functions.
1380 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1382 (gomp_futex_wake, gomp_futex_wait): New variables.
1383 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1384 * config/linux/lock.c: Rewrite to make locks task owned,
1385 for backwards compatibility provide the old entrypoints
1386 if symbol versioning. Include wait.h instead of libgomp.h and
1388 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1389 * config/posix95/lock.c: Rewrite to make locks task owned,
1390 for backwards compatibility provide the old entrypoints
1391 if symbol versioning.
1392 * config/posix/lock.c: Rewrite to make locks task owned,
1393 for backwards compatibility provide the old entrypoints
1394 if symbol versioning.
1395 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1396 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1397 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1398 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1399 (sys_futex0): Return error code.
1400 (futex_wake, futex_wait): If ENOSYS was returned, clear
1401 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1402 (cpu_relax, atomic_write_barrier): New static inlines.
1403 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1404 (futex_wake, futex_wait): If ENOSYS was returned, clear
1405 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1406 (cpu_relax, atomic_write_barrier): New static inlines.
1407 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1408 (sys_futex0): Return error code.
1409 (futex_wake, futex_wait): If ENOSYS was returned, clear
1410 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1411 (cpu_relax, atomic_write_barrier): New static inlines.
1412 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1413 (sys_futex0): Return error code.
1414 (futex_wake, futex_wait): If ENOSYS was returned, clear
1415 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1416 (cpu_relax, atomic_write_barrier): New static inlines.
1417 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1418 (sys_futex0): Return error code.
1419 (futex_wake, futex_wait): If ENOSYS was returned, clear
1420 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1421 (cpu_relax, atomic_write_barrier): New static inlines.
1422 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1423 (sys_futex0): Return error code.
1424 (futex_wake, futex_wait): If ENOSYS was returned, clear
1425 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1426 (cpu_relax, atomic_write_barrier): New static inlines.
1427 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1429 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1430 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1431 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1433 (omp_nest_lock_t): Change owner into void *, add lock field.
1434 * config/posix95/omp-lock.h: Include semaphore.h.
1435 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1436 (omp_lock_t): Use sem_t instead of mutex if semaphores
1438 (omp_nest_lock_t): Likewise. Change owner to void *.
1439 * config/posix/omp-lock.h: Include semaphore.h.
1440 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1441 (omp_lock_t): Use sem_t instead of mutex if semaphores
1443 (omp_nest_lock_t): Likewise. Add owner field.
1445 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1447 * testsuite/libgomp.c/collapse-1.c: New test.
1448 * testsuite/libgomp.c/collapse-2.c: New test.
1449 * testsuite/libgomp.c/collapse-3.c: New test.
1450 * testsuite/libgomp.c/icv-1.c: New test.
1451 * testsuite/libgomp.c/icv-2.c: New test.
1452 * testsuite/libgomp.c/lib-2.c: New test.
1453 * testsuite/libgomp.c/lock-1.c: New test.
1454 * testsuite/libgomp.c/lock-2.c: New test.
1455 * testsuite/libgomp.c/lock-3.c: New test.
1456 * testsuite/libgomp.c/loop-4.c: New test.
1457 * testsuite/libgomp.c/loop-5.c: New test.
1458 * testsuite/libgomp.c/loop-6.c: New test.
1459 * testsuite/libgomp.c/loop-7.c: New test.
1460 * testsuite/libgomp.c/loop-8.c: New test.
1461 * testsuite/libgomp.c/loop-9.c: New test.
1462 * testsuite/libgomp.c/nested-3.c: New test.
1463 * testsuite/libgomp.c/nestedfn-6.c: New test.
1464 * testsuite/libgomp.c/sort-1.c: New test.
1465 * testsuite/libgomp.c/task-1.c: New test.
1466 * testsuite/libgomp.c/task-2.c: New test.
1467 * testsuite/libgomp.c/task-3.c: New test.
1468 * testsuite/libgomp.c/task-4.c: New test.
1469 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1470 to C++ testsuite default compiler options.
1471 * testsuite/libgomp.c++/collapse-1.C: New test.
1472 * testsuite/libgomp.c++/collapse-2.C: New test.
1473 * testsuite/libgomp.c++/ctor-10.C: New test.
1474 * testsuite/libgomp.c++/for-1.C: New test.
1475 * testsuite/libgomp.c++/for-2.C: New test.
1476 * testsuite/libgomp.c++/for-3.C: New test.
1477 * testsuite/libgomp.c++/for-4.C: New test.
1478 * testsuite/libgomp.c++/for-5.C: New test.
1479 * testsuite/libgomp.c++/loop-8.C: New test.
1480 * testsuite/libgomp.c++/loop-9.C: New test.
1481 * testsuite/libgomp.c++/loop-10.C: New test.
1482 * testsuite/libgomp.c++/task-1.C: New test.
1483 * testsuite/libgomp.c++/task-2.C: New test.
1484 * testsuite/libgomp.c++/task-3.C: New test.
1485 * testsuite/libgomp.c++/task-4.C: New test.
1486 * testsuite/libgomp.c++/task-5.C: New test.
1487 * testsuite/libgomp.c++/task-6.C: New test.
1488 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1489 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1490 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1491 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1492 * testsuite/libgomp.fortran/collapse1.f90: New test.
1493 * testsuite/libgomp.fortran/collapse2.f90: New test.
1494 * testsuite/libgomp.fortran/collapse3.f90: New test.
1495 * testsuite/libgomp.fortran/collapse4.f90: New test.
1496 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1497 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1498 * testsuite/libgomp.fortran/lib4.f90: New test.
1499 * testsuite/libgomp.fortran/lock-1.f90: New test.
1500 * testsuite/libgomp.fortran/lock-2.f90: New test.
1501 * testsuite/libgomp.fortran/nested1.f90: New test.
1502 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1503 * testsuite/libgomp.fortran/strassen.f90: New test.
1504 * testsuite/libgomp.fortran/tabs1.f90: New test.
1505 * testsuite/libgomp.fortran/tabs2.f: New test.
1506 * testsuite/libgomp.fortran/task1.f90: New test.
1507 * testsuite/libgomp.fortran/task2.f90: New test.
1508 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1509 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1510 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1511 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1512 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1514 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1517 * testsuite/libgomp.c++/ctor-11.C: New test.
1518 * testsuite/libgomp.c++/ctor-12.C: New test.
1520 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1522 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1524 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1527 * testsuite/libgomp.c/atomic-5.c: New test.
1528 * testsuite/libgomp.c/atomic-6.c: New test.
1529 * testsuite/libgomp.c/autopar-1.c: New test.
1531 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1533 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1534 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1535 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1536 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1537 * configure: Regenerate.
1538 * Makefile.in, testsuite/Makefile.in: Likewise.
1540 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1543 * aclocal.m4: Regenerate.
1544 * configure: Regenerate.
1546 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1549 * testsuite/libgomp.c/atomic-4.c: New test.
1552 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1553 (gomp_iter_guided_next): Likewise.
1554 * testsuite/libgomp.c/pr35625.c: New test.
1556 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1558 * aclocal.m4: Regenerate.
1559 * configure: Likewise.
1560 * Makefile.in: Likewise.
1561 * testsuite/Makefile.in: Likewise.
1563 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1566 * testsuite/libgomp.c++/pr35185.C: New test.
1568 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1571 * testsuite/libgomp.c/pr35549.c: New test.
1573 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1575 * testsuite/libgomp.c/atomic-3.c: New test.
1577 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1580 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1583 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1586 * configure.ac: Add ACX_HEADER_STRING.
1587 * env.c: Include strings.h.
1588 * aclocal.m4: Regenerate.
1589 * config.h.in: Regenerate.
1590 * configure: Regenerate.
1591 * Makefile.in: Regenerate.
1592 * testsuite/Makefile.in: Regenerate.
1594 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1597 * testsuite/libgomp.c/pr35196.c: New test.
1600 * testsuite/libgomp.fortran/pr35130.f90: New test.
1601 * testsuite/libgomp.c/pr35130.c: New test.
1603 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1606 * testsuite/libgomp.c/pr33880.c: New test.
1607 * testsuite/libgomp.fortran/pr33880.f90: New test.
1609 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1611 * configure: Regenerate.
1613 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1615 * configure.ac: Move futex checking into ../config/futex.m4.
1616 * configure: Rebuilt.
1617 * aclocal.m4: Rebuilt.
1618 * Makefile.in: Rebuilt.
1620 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1621 2007-10-15 ../config/tls.m4 change.
1623 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1626 * testsuite/libgomp.c/pr34513.c: New test.
1627 * testsuite/libgomp.c++/pr34513.C: New test.
1629 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1632 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1634 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1636 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1638 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1640 * testsuite/libgomp.c/private-1.c: New test.
1642 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1643 Paolo Bonzini <bonzini@gnu.org>
1645 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1646 instead of 'VPATH ='.
1647 * Makefile.in: Regenerate.
1649 2007-11-23 Matthias Klose <doko@ubuntu.com>
1651 * configure.ac: Adjust makeinfo version check.
1652 * configure: Regenerate.
1654 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1657 * testsuite/libgomp.fortran/pr34020.f90: New test.
1659 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1662 * testsuite/libgomp.c++/atomic-1.C: New test.
1664 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1668 Make x and y integers rather than (implicit) reals. Add private (j)
1669 clause to the last omp parallel.
1671 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1673 * configure: Regenerate following changes to ../config/tls.m4.
1675 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1677 * testsuite/libgomp.fortran/stack.f90: New test.
1679 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1681 * config/mingw32/proc.c: New file.
1683 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1685 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1686 (main): Use __get_cpuid to get i386 target fetaures.
1687 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1688 (main): Use __get_cpuid to get x86_64 target fetaures.
1690 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1693 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1694 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1696 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1699 * testsuite/libgomp.fortran/pr32550.f90: New test.
1700 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1702 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1704 * aclocal.m4: Regenerated.
1706 2007-07-05 Tobias Burnus <burnus@net-b.de>
1709 * testsuite/libgomp.fortran/pr32359.f90: New.
1711 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1714 * sections.c (GOMP_parallel_sections_start): Only decrease
1715 number of threads to COUNT if dyn_var is true.
1716 * testsuite/libgomp.c/pr32468.c: New test.
1718 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1721 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1723 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1726 * testsuite/libgomp.c/pr32362-1.c: New test.
1727 * testsuite/libgomp.c/pr32362-2.c: New test.
1728 * testsuite/libgomp.c/pr32362-3.c: New test.
1730 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1732 * team.c (gomp_team_start): Fix setting up thread_attr
1735 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1737 * configure: Regenerate.
1739 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1741 * Makefile.in: Regenerate.
1742 * configure: Regenerate.
1743 * aclocal.m4: Regenerate.
1744 * testsuite/Makefile.in: Regenerate.
1746 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1748 * config/linux/proc.c: New file.
1751 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1753 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1755 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1757 2007-04-16 Matthias Klose <doko@debian.org>
1759 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1760 flags if not building with -m64.
1761 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1762 flag for i?86-*-* targets, if current target matches -m64.
1764 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1766 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1767 * Makefile.in: Regenerate.
1769 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1772 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1774 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1776 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1778 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1780 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1781 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1782 (parse_affinity): New function.
1783 (initialize_env): Call it and gomp_init_affinity.
1784 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1785 create new pthread_attr_t and call gomp_init_thread_affinity
1786 on it for each thread before passing the attribute to pthread_create.
1787 * config/linux/affinity.c: New file.
1788 * config/posix/affinity.c: New file.
1789 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1790 * configure: Rebuilt.
1791 * config.h.in: Rebuilt.
1792 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1793 * Makefile.in: Rebuilt.
1795 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1797 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1799 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1800 and use it if found.
1802 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1804 * testsuite/config/default.exp: New file.
1805 * testsuite/lib/libgomp.exp: New file.
1806 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1807 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1808 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1809 (libgomp_load): Remove.
1810 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1811 always_ld_library_path, not ld_library_path. Set additional_flags
1812 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1813 (target_compile): Do not call libgomp_init. Append lang_library_path
1814 and lang_link_flags to options.
1815 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1816 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1818 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1819 always_ld_library_path. Set LD_LIBRARY_PATH here.
1820 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1821 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1822 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1824 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1825 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1826 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1827 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1828 * testsuite/libgomp.c/atomic-10.c: Ditto.
1830 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1832 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1833 dg-final cleanup-modules line.
1834 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1835 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1836 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1837 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1838 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1839 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1840 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1842 2007-03-18 Andreas Schwab <schwab@suse.de>
1844 * acinclude.m4: Adjust regular expression for ld version
1846 * configure: Regenerate.
1848 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1850 * Makefile.am: Add install-pdf target as copied from
1851 automake v1.10 rules.
1852 * Makefile.in: Regenerate
1854 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1857 * configure: Regenerate.
1860 * testsuite/libgomp.c++/pr30703.C: New test.
1862 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1865 2006-07-05 Eric Christopher <echristo@apple.com>
1866 * configure.ac: Depend addition of -pthread on host OS.
1867 * configure: Regenerate.
1869 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1871 * libgomp.texi: Fix spacing after abbreviations.
1873 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1876 * configure.ac: Add check for makeinfo
1877 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1878 if an appropiate version of makeinfo is found.
1879 * aclocal.m4: Regenerated.
1880 * configure: Regenerated.
1881 * Makefile.in: Regenerated.
1882 * testsuite/Makefile.in: Regenerated.
1884 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1887 * libgomp.texi: More about implementation-dependent settings.
1889 2007-01-26 Tobias Burnus <burnus@net-b.de>
1891 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1893 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1896 * testsuite/libgomp.c/pr30494.c: New test.
1898 2007-01-15 Tom Tromey <tromey@redhat.com>
1900 * configure: Rebuilt.
1901 * configure.ac: Fixed comment.
1903 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1905 * libgomp.texi: Document implementation specific default values of
1906 environment variables.
1908 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1911 * libgomp.texi: New file.
1912 * configure.ac: Add --enable-generated-files-in-srcdir option.
1913 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1915 * Makefile.in: Regenerated.
1916 * config.h.in: Regenerated.
1917 * testsuite/Makefile.in: Regenerated.
1920 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1923 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1925 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1927 * configure: Regenerate.
1929 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1932 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1933 start if there shouldn't be any loop iterations.
1934 (gomp_loop_ordered_static_start): Remove start == end test.
1935 * testsuite/libgomp.c/pr29947-1.c: New test.
1936 * testsuite/libgomp.c/pr29947-2.c: New test.
1938 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1940 * configure.tgt: Force initial-exec TLS model on Linux only.
1942 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1944 * configure: Regenerated.
1946 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1948 * env.c (parse_schedule): Reject out of range values.
1949 (parse_unsigned_long): Reject out of range, negative or zero values.
1951 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1954 * testsuite/libgomp.fortran/pr29629.f90: New test.
1956 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1959 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1960 * config/posix95: New directory.
1961 * config/posix95/omp-lock.h: New file.
1962 * config/posix95/lock.c: Likewise.
1964 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1966 * aclocal.m4: Regenerate.
1967 * configure: Regenerate.
1969 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1971 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1974 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1976 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1978 * configure: Regenerate.
1979 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1981 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1985 * testsuite/libgomp.c/nestedfn-4.c: New test.
1986 * testsuite/libgomp.c/nestedfn-5.c: New test.
1987 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1990 * testsuite/libgomp.fortran/condinc1.f: New test.
1991 * testsuite/libgomp.fortran/condinc2.f: New test.
1992 * testsuite/libgomp.fortran/condinc3.f90: New test.
1993 * testsuite/libgomp.fortran/condinc4.f90: New test.
1994 * testsuite/libgomp.fortran/condinc1.inc: New file.
1996 2006-09-18 Tom Tromey <tromey@redhat.com>
1998 * configure: Rebuilt.
2000 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2003 PR preprocessor/14634
2004 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2006 * configure: Regenerate.
2008 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2010 * testsuite/libgomp.fortran/reduction3.f90: Change
2011 -2147483648 to -huge(i)-1 to avoid overflow.
2012 * testsuite/libgomp.fortran/reduction4.f90: Change
2013 Z'ffffffff' to not(0) to avoid overflow.
2015 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2018 * Makefile.am (libsubincludedir): New.
2019 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2020 * Makefile.in: Regenerate.
2022 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2025 * env.c: Include ctype.h.
2026 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2027 leading and/or trailing whitespace and compare strings case
2030 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2033 * testsuite/libgomp.fortran/pr28390.f: New test.
2035 2006-07-05 Eric Christopher <echristo@apple.com>
2037 * configure.ac: Depend addition of -pthread on host OS.
2038 * configure: Regenerate.
2040 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2042 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2043 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2046 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2050 * configure.ac: If neither --enable-linux-futex nor
2051 --disable-linux-futex is passed, determine the default by checking
2052 for compiling and/or running against NPTL. With --enable-linux-futex,
2053 check if SYS_gettid and SYS_futex are defined.
2054 * configure: Rebuilt.
2056 2006-06-14 Richard Henderson <rth@redhat.com>
2059 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2060 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2062 2006-06-09 Richard Henderson <rth@redhat.com>
2064 * env.c (gomp_nthreads_var): Change to unsigned long.
2065 (gomp_run_sched_chunk): Likewise.
2066 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2067 (initialize_env): Initialize gomp_thread_attr.
2068 * libgomp.h (gomp_nthreads_var): Update decl.
2069 (gomp_run_sched_chunk): Likewise.
2070 (gomp_thread_attr): Declare.
2071 * team.c (gomp_thread_attr): Export.
2072 (initialize_team): Don't initialize it.
2074 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2077 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2078 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2080 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2082 * config/mingw32/time.c: New file.
2083 * configure.tgt: Use it.
2085 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2087 * Makefile.am: Add install-html target. Add install-html to .PHONY
2088 * Makefile.in: Regenerate.
2090 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2093 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2094 * testsuite/libgomp.c/critical-1.c: Likewise.
2095 * testsuite/libgomp.c/loop-1.c: Likewise.
2096 * testsuite/libgomp.c/loop-2.c: Likewise.
2097 * testsuite/libgomp.c/single-1.c: Likewise.
2098 * testsuite/libgomp.c/ordered-1.c: Likewise.
2099 * testsuite/libgomp.c/ordered-2.c: Likewise.
2101 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2104 * libgomp.fortran/pr27416-1.f90: New test.
2106 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2109 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2110 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2112 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2115 * testsuite/libgomp.c/pr26943-1.c: New test.
2116 * testsuite/libgomp.c/pr26943-2.c: New test.
2117 * testsuite/libgomp.c/pr26943-3.c: New test.
2118 * testsuite/libgomp.c/pr26943-4.c: New test.
2119 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2120 * testsuite/libgomp.c++/pr26943.C: New test.
2122 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2125 * testsuite/libgomp.c++/pr27337.C: New test.
2127 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2130 * testsuite/libgomp.c/pr26171.c: New test.
2132 2006-04-25 Richard Henderson <rth@redhat.com>
2135 * configure.ac: Use GCC_CHECK_TLS.
2136 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2137 * Makefile.in, aclocal.m4, configure: Regenerate.
2139 2006-04-10 Matthias Klose <doko@debian.org>
2141 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2142 directory names containing underscores.
2144 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2147 * testsuite/libgomp.c++/pr26691.C: New test.
2149 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2151 * testsuite/libgomp.fortran/retval2.f90: New test.
2153 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2155 * testsuite/libgomp.c++: New directory.
2157 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2159 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2160 * config/posix/sem.c: Implement the above.
2162 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2164 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2165 define HAVE_BROKEN_POSIX_SEMAPHORES.
2166 * configure: Rebuilt.
2167 * config.h.in: Rebuilt.
2169 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2172 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2173 for the other pthread check.
2174 * configure: Regenerate.
2175 * config.h.in: Regenerate.
2177 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2181 * Makefile.am (fincludedir): New variable.
2182 (nodist_include_HEADERS): Remove Fortran files.
2183 (nodist_finclude_HEADERS): New variable.
2184 * Makefile.in: Regenerated.
2186 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2188 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2189 Remove tests for returning assumed character length arrays.
2191 2006-02-12 Roger Sayle <roger@eyesopen.com>
2192 John David Anglin <dave@hiauly1.hia.nrc.ca>
2195 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2197 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2199 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2201 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2203 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2204 part of LD_LIBRARY_PATH manually.
2206 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2209 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2212 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2215 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2216 * configure.ac (PERL): Don't set.
2217 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2218 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2219 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2220 * omp.h.in: Wrap the new configure substitutions with @ characters.
2221 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2222 * aclocal.m4, configure, Makefile.in: Regenerate.
2223 * mkomp_h.pl: Delete.
2225 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2228 * configure.ac: Use GCC_HEADER_STDINT.
2229 * libgomp.h: Include gstdint.h.
2230 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2231 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2233 2006-01-24 Richard Henderson <rth@redhat.com>
2236 * configure.ac: Add AM_MAINTAINER_MODE.
2237 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2239 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2241 * Makefile.in: Regenerate.
2242 * testsuite/Makefile.in: Regenerate.
2243 * aclocal.m4: Regenerate.
2245 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2247 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2249 * configure.ac: Add check for loadavg.h.
2250 (link_gomp): Adjust comment.
2251 * configure: Regenerate.
2252 * config.h.in: Regenerate.
2254 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2257 * configure.ac: Remove check for alloca.h.
2258 * configure: Regenerate.
2259 * config.h.in: Regenerate.
2260 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2261 * team.c: Remove use of alloca.h.
2262 Call gomp_alloca instead of alloca.
2264 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2267 * team.c: Add include of alloca.h.
2268 * configure.ac: Add check for alloca.h.
2269 * configure: Regenerate.
2270 * config.h.in: Regenerate.
2272 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2275 * testsuite/libgomp.fortran/pr25219.f90: New test.
2277 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2279 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2280 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2281 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2282 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2283 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2284 testsuite/libgomp.fortran/threadprivate1.f90,
2285 testsuite/libgomp.fortran/threadprivate2.f90,
2286 testsuite/libgomp.fortran/threadprivate3.f90,
2287 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2288 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2289 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2290 effective-target to TLS runtime.
2292 * testsuite/libgomp.fortran/pr25162.f: Require
2293 effective-target TLS runtime.
2295 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2297 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2298 * testsuite/libgomp.c/nestedfn-3.c: New test.
2300 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2303 * testsuite/libgomp.fortran/pr25162.f: New test.
2305 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2307 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2308 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2310 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2312 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2313 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2314 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2315 single.c, team.c, work.c, config/linux/alpha/futex.h,
2316 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2317 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2318 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2319 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2320 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2321 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2322 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2325 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2327 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2328 to nodist_noinst_HEADERS.
2329 * Makefile.in: Rebuilt.
2331 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2332 add integer count field.
2333 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2334 omp_nest_lock_t type change.
2335 (omp_init_nest_lock): Likewise. Initialize count to 0.
2336 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2338 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2340 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2341 Increment count if successful and return the new nesting level.
2342 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2343 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2344 * testsuite/libgomp.c/lib-1.c: New test.
2345 * testsuite/libgomp.fortran/lib1.f90: New test.
2346 * testsuite/libgomp.fortran/lib2.f: New test.
2347 * testsuite/libgomp.fortran/lib3.f: New test.
2349 2005-11-17 Richard Henderson <rth@redhat.com>
2352 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2353 * configure.ac (link_gomp): New. Substitute it.
2354 (AC_CONFIG_FILES): Add libgomp.spec.
2355 * libgomp.spec.in: New file.
2356 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2357 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2359 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2361 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2362 reduction(-:var) behaving the same as reduction(+:var).
2363 * testsuite/libgomp.c/reduction-4.c: New test.
2365 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2367 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2368 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2369 testsuite/libgomp.c/copyin-3.c,
2370 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2371 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2372 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2373 testsuite/libgomp.c++/pr24455.C,
2374 testsuite/libgomp.fortran/threadprivate1.f90,
2375 testsuite/libgomp.fortran/threadprivate2.f90,
2376 testsuite/libgomp.fortran/threadprivate3.f90,
2377 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2378 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2379 testsuite/libgomp.fortran/omp_parse3.f90: Require
2380 effective-target TLS.
2382 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2386 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2389 * team.c (initialize_team): Pass NULL rather than free as
2390 pthread_key_create destructor. Initialize thread specific data
2391 pointer in initial thread to a static local variable rather than
2394 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2396 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2397 its location to ld_library_path.
2399 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2401 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2403 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2405 * testsuite/libgomp.c: Rename from libgomp.dg.
2407 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2409 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2410 threadprivate variable 'i'.
2412 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2414 * config/linux/s390/futex.h: New file.
2415 * configure.tgt: Use it.
2417 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2418 before the parallel.
2420 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2423 * testsuite/libgomp.c++/master-1.C: New test.
2425 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2427 * testsuite/libgomp.dg/copyin-3.c: New test.
2429 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2431 * testsuite/libgomp.fortran/retval1.f90: New test.
2432 * testsuite/libgomp.fortran/vla7.f90: New test.
2434 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2436 * testsuite/libgomp.fortran/vla2.f90: New test.
2437 * testsuite/libgomp.fortran/vla3.f90: New test.
2438 * testsuite/libgomp.fortran/vla4.f90: New test.
2439 * testsuite/libgomp.fortran/vla5.f90: New test.
2440 * testsuite/libgomp.fortran/vla6.f90: New test.
2442 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2444 * config/linux/sparc/futex.h: New file.
2445 * configure.tgt: Use it.
2446 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2448 * critical.c: Include stdlib.h.
2449 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2450 ignoring return value.
2451 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2452 LIBGOMP_CHECK_SYNC_BUILTINS check.
2453 * configure: Rebuilt.
2455 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2457 * testsuite/libgomp.fortran/vla1.f90: New test.
2459 2005-10-31 Richard Henderson <rth@redhat.com>
2461 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2462 setting 's' in different threads.
2464 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2466 * libgomp.h (attribute_hidden, ialias): Define.
2467 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2468 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2469 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2470 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2471 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2472 omp_test_lock, omp_test_nest_lock): Likewise.
2473 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2474 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2475 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2476 omp_test_lock, omp_test_nest_lock): Likewise.
2477 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2478 omp_get_dynamic, omp_get_nested): Likewise.
2479 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2480 omp_get_thread_num, omp_in_parallel): Likewise.
2481 * fortran.c (ialias_redirect): Define.
2482 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2483 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2484 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2485 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2486 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2487 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2488 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2489 omp_get_wtime): Add ialias_redirect.
2491 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2493 * fortran.c: Include stdlib.h.
2495 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2497 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2498 * Makefile.in: Regenerated.
2500 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2502 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2503 * libgomp_f.h.in (omp_check_defines): New function.
2504 * env.c: Include libgomp_f.h.
2505 (initialize_env): Call omp_check_defines.
2507 * testsuite/libgomp.dg/copyin-2.c: New test.
2508 * testsuite/libgomp.c++/copyin-2.C: New test.
2509 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2511 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2512 * testsuite/libgomp.fortran/sharing2.f90: New test.
2514 * testsuite/libgomp.dg/copyin-1.c: New test.
2515 * testsuite/libgomp.c++/copyin-1.C: New test.
2517 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2519 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2521 * testsuite/libgomp.fortran/workshare1.f90: New test.
2523 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2525 * libgomp.fortran/sharing1.f90: New test.
2527 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2530 * testsuite/libgomp.c++/loop-7.C: New test.
2532 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2534 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2535 * testsuite/libgomp.fortran/reduction6.f90: New test.
2536 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2538 2005-10-23 Richard Henderson <rth@redhat.com>
2540 * testsuite/libgomp.c++/ctor-1.C: New.
2541 * testsuite/libgomp.c++/ctor-2.C: New.
2542 * testsuite/libgomp.c++/ctor-3.C: New.
2543 * testsuite/libgomp.c++/ctor-4.C: New.
2544 * testsuite/libgomp.c++/ctor-5.C: New.
2545 * testsuite/libgomp.c++/ctor-6.C: New.
2546 * testsuite/libgomp.c++/ctor-7.C: New.
2547 * testsuite/libgomp.c++/ctor-8.C: New.
2548 * testsuite/libgomp.c++/ctor-9.C: New.
2550 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2553 * testsuite/libgomp.c++/pr24455-1.C: New test.
2554 * testsuite/libgomp.c++/pr24455.C: New test.
2555 * testsuite/libgomp.dg/pr24455-1.c: New test.
2556 * testsuite/libgomp.dg/pr24455.c: New test.
2558 2005-10-20 Richard Henderson <rth@redhat.com>
2560 * testsuite/libgomp.c++/loop-6.C: New.
2561 * testsuite/libgomp.dg/loop-3.c: New.
2563 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2565 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2567 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2570 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2572 * testsuite/libgomp.fortran/jacobi.f: New test.
2574 2005-10-19 Richard Henderson <rth@redhat.com>
2576 * configure.tgt (i?86-linux): Default to with_arch instead of
2577 CFLAGS. Add -mtune to match target_cpu.
2578 (x86_64-linux): Tune to i686.
2580 * fortran.c (omp_test_nest_lock_): Fix typo.
2582 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2584 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2585 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2586 * testsuite/libgomp.dg/ordered-3.c: New test.
2588 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2589 Remove volatile keyword.
2591 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2592 in COMMON block to avoid warnings on 64-bit targets.
2594 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2596 * testsuite/libgomp.dg/shared-3.c: New test.
2598 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2600 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2601 * testsuite/libgomp.fortran/reduction5.f90: New test.
2603 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2605 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2607 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2608 flush loop now that __sync_synchronize has proper memory barrier.
2609 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2610 Add -ffixed-form to dg-options.
2612 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2614 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2615 from subdirectories.
2616 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2617 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2618 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2619 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2620 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2621 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2622 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2623 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2624 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2625 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2626 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2627 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2628 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2629 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2630 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2631 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2632 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2633 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2634 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2635 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2636 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2637 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2638 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2639 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2640 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2642 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2644 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2645 lang_library_path exists. Use find instead of glob to gather tests.
2646 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2648 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2650 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2651 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2652 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2653 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2654 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2655 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2656 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2657 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2658 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2659 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2660 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2661 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2662 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2664 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2666 * testsuite/libgomp.dg/vla-1.c: New test.
2668 * testsuite/libgomp.fortran/reference2.f90: New test.
2670 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2671 declaration of omp_get_thread_num.
2672 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2675 * testsuite/libgomp.fortran/reduction1.f90: New test.
2676 * testsuite/libgomp.fortran/reduction2.f90: New test.
2677 * testsuite/libgomp.fortran/reduction3.f90: New test.
2678 * testsuite/libgomp.fortran/reduction4.f90: New test.
2680 2005-10-13 Richard Henderson <rth@redhat.com>
2682 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2683 * Makefile.in: Regenerate.
2684 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2685 * libgomp.h: Include bar.h.
2686 (struct gomp_barrier): Remove.
2687 (struct gomp_team): Add barrier. Replace master_barrier with
2688 master_release. Replace threads with ordered_release.
2689 (struct gomp_thread): Replace barrier with release.
2690 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2691 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2692 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2693 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2694 (GOMP_single_copy_end): Likewise.
2695 * team.c (gomp_threads_dock): New.
2696 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2697 (gomp_thread_start): Use gomp_barrier_wait.
2698 (new_team, free_team): Update for gomp_team changes.
2699 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2700 (gomp_team_end): Use gomp_barrier_wait.
2701 (initialize_team): Update for gomp_thread changes.
2702 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2703 (gomp_work_share_end_nowait): Use atomic ops when available.
2704 * config/linux/bar.c, config/linux/bar.h: New files.
2705 * config/posix/bar.c, config/posix/bar.h: New files.
2707 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2709 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2710 * testsuite/libgomp.dg/single-2.c: New test.
2712 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2713 lang_link_flags): Unset, so that they aren't inherited from previously
2716 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2718 2005-10-12 Richard Henderson <rth@redhat.com>
2720 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2721 (libgomp_init): Use lang_test_file, lang_library_path, and
2722 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2724 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2725 (lang_test_file, lang_link_flags): New.
2726 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2728 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2729 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2730 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2731 testsuite/libgomp.c++/parallel-1.C,
2732 testsuite/libgomp.c++/reduction-1.C,
2733 testsuite/libgomp.c++/reduction-2.C,
2734 testsuite/libgomp.c++/reduction-3.C,
2735 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2736 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2737 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2738 New files, largely cribbed from the C testsuite.
2740 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2742 * testsuite/libgomp.fortran/character1.f90: New test.
2743 * testsuite/libgomp.fortran/character2.f90: New test.
2745 * testsuite/libgomp.dg/nested-1.c: New test.
2746 * testsuite/libgomp.dg/nested-2.c: New test.
2747 * testsuite/libgomp.fortran/do1.f90: New test.
2748 * testsuite/libgomp.fortran/do2.f90: New test.
2750 * testsuite/libgomp.fortran/reference1.f90: New test.
2752 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2754 * testsuite/libgomp.dg/reduction-1.c: New test.
2755 * testsuite/libgomp.dg/reduction-2.c: New test.
2756 * testsuite/libgomp.dg/reduction-3.c: New test.
2758 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2760 * testsuite/libgomp.dg/atomic-1.c: New test.
2761 * testsuite/libgomp.dg/atomic-2.c: New test.
2763 2005-10-09 Richard Henderson <rth@redhat.com>
2765 * critical.c (atomic_lock): New.
2766 (initialize_critical): Initialize it.
2767 (GOMP_atomic_start, GOMP_atomic_end): New.
2768 * libgomp.map: Export them.
2769 * libgomp_g.h: Declare them.
2771 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2773 2005-10-02 Richard Henderson <rth@redhat.com>
2775 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2776 to XCFLAGS instead of CFLAGS.
2778 2005-09-30 Richard Henderson <rth@redhat.com>
2780 * configure.ac: Determine whether -pthread or -lpthread is needed.
2781 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2782 * Makefine.in, configure: Rebuild.
2784 2005-09-28 Richard Henderson <rth@redhat.com>
2786 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2787 * testsuite/libgomp.dg/omp-single-3.c: New test.
2789 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2791 * testsuite/libgomp.dg/omp-single-2.c: New test.
2792 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2794 2005-09-27 Richard Henderson <rth@redhat.com>
2796 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2797 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2799 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2801 * testsuite/libgomp.dg/omp-loop03.c: New test.
2803 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2805 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2807 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2809 * testsuite/libgomp.dg/omp-single-1.c: New test.
2810 * testsuite/libgomp.dg/shared-1.c: Return 0.
2811 Add prototype for abort.
2812 * testsuite/libgomp.dg/shared-2.c: Likewise.
2814 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2816 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2819 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2821 * testsuite/libgomp.dg/shared-1.c: New test.
2822 * testsuite/libgomp.dg/shared-2.c: New test.
2824 2005-09-24 Richard Henderson <rth@redhat.com>
2826 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2828 2005-09-24 Richard Henderson <rth@redhat.com>
2830 * iter.c (gomp_iter_static_next): Round up when computing number
2831 of iterations. Don't bother distributing a remainder equally.
2833 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2834 Don't call srand. Zero b before testing.
2837 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2839 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2840 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2842 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2844 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2845 without !$omp end do, followed immediately by subroutine end.
2847 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2849 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2851 2005-09-22 Richard Henderson <rth@redhat.com>
2853 * critical.c (GOMP_critical_name_start): Change argument to void**.
2854 Reuse the pointer space if the mutex fits.
2855 (GOMP_critical_name_end): Likewise.
2856 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2857 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2858 (GOMP_critical_name_end): Likewise.
2859 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2860 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2862 2005-09-20 Richard Henderson <rth@redhat.com>
2864 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2865 (create_lock_lock): New.
2866 (initialize_critical): Initialize it.
2867 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2868 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2870 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2872 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2874 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2876 * testsuite/libgomp.dg/omp-loop01.c: New test.
2877 * testsuite/libgomp.dg/omp-loop02.c: New test.
2879 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2881 * configure.ac (AC_PROG_FC): Add.
2882 (USE_FORTRAN): New automake conditional.
2883 * configure: Rebuilt.
2884 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2885 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2886 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2887 Add rules to build them.
2888 * Makefile.in: Rebuilt.
2889 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2891 * libgomp.map: Add Fortran wrappers.
2892 * libgomp_f.h.in: New file.
2893 * omp_lib.h.in: New file.
2894 * omp_lib.f90.in: New file.
2895 * fortran.c: New file.
2896 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2897 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2898 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2899 libgfortran has been built.
2900 * testsuite/libgomp.fortran/fortran.exp: New file.
2901 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2902 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2903 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2904 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2905 * testsuite/libgomp.fortran/omp_hello.f: New test.
2906 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2907 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2908 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2909 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2910 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2911 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2912 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2913 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2915 2005-08-30 Richard Henderson <rth@redhat.com>
2917 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2918 function for when aliases are not usable.
2919 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2920 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2921 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2922 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2923 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2924 GOMP_loop_ordered_guided_next): Likewise.
2925 * ordered.c (GOMP_ordered_start): Likewise.
2927 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2929 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2930 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2931 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2932 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2933 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2934 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2935 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2936 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2937 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2939 2005-07-07 Eric Christopher <echristo@redhat.com>
2940 Diego Novillo <dnovillo@redhat.com>
2942 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2943 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2945 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2946 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2947 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2948 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2949 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2950 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2951 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2953 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2955 * TOPLEVEL.patch: Remove.
2957 2005-05-16 Richard Henderson <rth@redhat.com>
2959 * configure.ac: Test for clock_gettime.
2960 * config.h.in, configure: Rebuild.
2961 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2962 (omp_get_wtime): Use clock_gettime if available.
2963 (omp_get_wtick): Use clock_getres if available.
2965 2005-05-11 Richard Henderson <rth@redhat.com>
2967 * config/linux/ia64/futex.h: New file.
2968 * configure.tgt: Use it.
2970 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2972 2005-05-07 Richard Henderson <rth@redhat.com>
2974 * config/linux/powerpc/futex.h: New file.
2975 * configure.tgt: Use it.
2977 * config/linux/i486/futex.h: Merge ...
2978 * config/linux/x86_64/futex.h: ... into ...
2979 * config/linux/x86/futex.h: ... here.
2980 * configure.tgt: Update to match.
2982 2005-05-06 Richard Henderson <rth@redhat.com>
2984 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2985 * config/linux/i486/futex.h: Likewise.
2986 * config/linux/x86_64/futex.h: Likewise.
2988 * config/linux/lock.c: New file.
2989 * config/linux/omp-lock.h: New file.
2991 * critical.c, env.h: Don't include omp.h
2992 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2993 * config/posix/time.c: Likewise.
2994 * config/posix/omp-lock.h: New file.
2995 * libgomp.h: Include omp-lock.h and omp.h.
2996 * Makefile.am (nodist_include_HEADERS): New.
2998 * configure.ac (PERL): New.
2999 * mkomp_h.pl: New file.
3000 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3002 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3004 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3005 build directory. Re-add -march=i486 hack.
3007 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3008 (libgomp_link_flags): Remove.
3009 (libgomp_initialized): Remove.
3010 (libgomp_init): Don't protect from reinitialization. Copy code
3011 from libstdc++ for getting the multilib set correctly.
3013 2005-05-05 Richard Henderson <rth@redhat.com>
3015 * config/linux/alpha/futex.h: New file.
3016 * configure.tgt (alpha*-*-linux*): Use it.
3018 * config/posix/mutex.c: New file.
3019 * config/posix/sem.c: Use libgomp.h.
3021 * configure.tgt (x86_64-linux): Also test CC for -m32.
3022 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3024 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3027 * Makefile.am (SUBDIRS): New.
3028 (libgomp_la_LDFLAGS): Add -lpthread.
3029 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3030 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3032 * libgomp_g.h: New file.
3033 * libgomp.h: Split out all public declarations to libgomp_g.h.
3034 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3035 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3036 * config/linux/sem.h: Likewise.
3037 * config/posix/sem.h: Likewise.
3039 * Makefile.am (AM_LDFLAGS): New.
3040 (libgomp_version_script): Split out from ...
3041 (libgomp_la_LDFLAGS): ... here.
3042 (libgomp_version_info): New.
3043 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3044 (LIBGOMP_ENABLE): New.
3045 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3046 (LIBGOMP_ENABLE_SYMVERS): New.
3047 * configure.ac (AC_INIT): Version 1.0.
3048 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3049 (enable-linux-futex): Likewise. Rename from enable-futex.
3050 (libtool_VERSION): New.
3051 (LIBGOMP_ENABLE_SYMVERS): Use it.
3052 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3053 * Makefile.in, aclocal.m4, configure: Rebuild.
3055 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3056 (gomp_mutex_unlock_slow): Fix typo.
3057 * config/linux/sem.c: Similarly.
3058 (gomp_sem_post_slow): Fix typo.
3059 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3060 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3061 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3063 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3064 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3065 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3066 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3067 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3068 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3069 LDFLAGS. Pull enable_futex check to top-level.
3070 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3071 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3073 First attempt at real configury.
3074 * Makefile, config.h: Remove file.
3075 * Makefile.am, Makefile.in: New file.
3076 * acinclude.m4 aclocal.m4: New file.
3077 * configure.ac, configure.tgt, configure: New file.
3079 * config/posix/lock.c: Rename from sys-lock.c.
3080 * config/posix/mutex.h: Rename from sys-mutex.h.
3081 * config/posix/sem.c: Rename from sys-sem.c.
3082 * config/posix/sem.h: Rename from sys-sem.h.
3083 * config/posix/proc.c: Rename from sys-proc.c.
3084 * config/posix/time.c: Rename from sys-proc.c.
3086 * config/linux/mutex.c: New file.
3087 * config/linux/mutex.h: New file.
3088 * config/linux/sem.c: New file.
3089 * config/linux/sem.h: New file.
3090 * config/linux/i486/futex.h: New file.
3091 * config/linux/x86_64/futex.h: New file.
3093 2005-05-04 Richard Henderson <rth@redhat.com>
3095 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3096 * libgomp.h: Declare them.
3097 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3098 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3100 2005-05-04 Richard Henderson <rth@redhat.com>
3102 * libgomp-1 code drop
3104 2005-05-04 Richard Henderson <rth@redhat.com>
3106 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3107 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3108 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3109 (gomp_iter_static_next): Update.
3110 (gomp_ordered_static_next): Update.
3111 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3112 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3113 totally empty range.
3114 (gomp_loop_ordered_static_next): Refine test for calling
3115 gomp_ordered_static_next.
3116 * testsuite/ordered-1.c: Add case for more threads than iterations.
3118 * iter.c (gomp_iter_runtime_next_locked): Remove.
3119 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3120 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3121 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3122 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3123 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3124 gomp_loop_ordered_guided_next): Downcase name, make static, add
3125 an external alias with the old name.
3126 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3127 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3128 switch and call one of the above static functions.
3129 * libgomp.h: Update.
3131 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3132 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3133 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3134 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3135 GOMP_loop_ordered_guided_start): Update to match.
3136 * sections.c (GOMP_sections_start): Likewise.
3137 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3139 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3140 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3141 Use bounds check instead of modulus.
3142 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3143 (gomp_ordered_last): Don't sync with ordered_owner here.
3144 (gomp_ordered_next): Likewise.
3145 (gomp_ordered_static_loop_next): Likewise.
3146 * loop.c, libgomp.h: Update to match.
3148 * libgomp.h (GOMP_barrier): Declare.
3150 * testsuite/barrier-1.c: New file.
3151 * testsuite/critical-1.c: New file.
3152 * testsuite/ordered-2.c: New file.
3153 * testsuite/ordered-1.c: New file.
3154 * testsuite/sections-1.c: New file.
3155 * testsuite/single-1.c: New file.
3156 * testsuite/Makefile (TESTS): Add them.
3158 2005-05-04 Richard Henderson <rth@redhat.com>
3160 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3161 * loop.c (GOMP_loop_static_start): If not the startup thread,
3162 acquire the mutex to wait for initialization complete.
3163 (GOMP_loop_ordered_static_start): Likewise.
3164 (GOMP_loop_ordered_runtime_start): Likewise.
3165 (GOMP_loop_ordered_static_first): Remove.
3166 (GOMP_loop_ordered_dynamic_first): Remove.
3167 (GOMP_loop_ordered_guided_first): Remove.
3168 (GOMP_loop_ordered_runtime_first): Remove.
3169 * ordered.c (gomp_ordered_loop_first): Post to own release when
3170 we're the first thread.
3171 (gomp_ordered_loop_last): Wait on release if not owner.
3172 (gomp_ordered_loop_next): Likewise.
3173 (gomp_ordered_static_loop_init): New.
3174 (gomp_ordered_static_loop_next): Use ordered_owner.
3175 (GOMP_ordered_start): Likewise.
3176 * work.c (gomp_new_work_share): Initialize ordered_owner.
3178 2005-05-03 Richard Henderson <rth@redhat.com>
3180 * Makefile (OPT): New.
3183 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3184 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3185 * libgomp.h, libgomp.map, NOTES: Update to match.
3187 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3188 Add initialized and thr members.
3189 (gomp_thread_start): Pause when initially spawned to wait for
3190 the whole team to be created.
3191 (gomp_team_start): Release team members at the end.
3193 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3194 (f_foo_1): Use GOMP_loop_end.
3195 (f_foo_2): Use GOMP_loop_end_nowait.
3197 * testsuite/loop-2.c: New file.
3198 * testsuite/Makefile (TESTS): Add it.
3200 2005-05-03 Richard Henderson <rth@redhat.com>
3202 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3203 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3204 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3207 * testsuite/Makefile: New file.
3208 * testsuite/loop-1.c: New file.
3210 2005-05-03 Richard Henderson <rth@redhat.com>
3212 Initial implementation and checkin.