1 2012-01-25 Matthias Klose <doko@ubuntu.com>
3 * config/linux/arm: Remove empty directory.
4 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
6 2011-12-09 Alan Modra <amodra@gmail.com>
9 * task.c (GOMP_taskwait): Don't access task->children outside of
10 task_lock mutex region.
11 (GOMP_task): Likewise.
13 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
18 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
19 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
20 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
21 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
22 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
24 2011-12-02 Alan Modra <amodra@gmail.com>
26 * config/linux/affinity.c: Use atomic rather than sync builtin.
27 * config/linux/lock.c: Likewise.
28 * config/linux/ptrlock.h: Likewise.
29 * config/linux/ptrlock.c: Likewise.
30 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
31 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
32 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
33 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
34 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
35 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
36 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
37 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
38 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
39 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
41 2011-11-30 Alan Modra <amodra@gmail.com>
44 * config/linux/bar.h: Use atomic rather than sync builtins.
45 * config/linux/bar.c: Likewise. Add missing acquire
46 synchronisation on generation field.
47 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
50 2011-11-30 Alan Modra <amodra@gmail.com>
52 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
53 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
54 * config/linux/mutex.h: Use atomic rather than sync builtins.
55 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
56 * config/linux/omp-lock.h: Comment fix.
57 * config/linux/arm/mutex.h: Delete.
58 * config/linux/powerpc/mutex.h: Delete.
59 * config/linux/ia64/mutex.h: Delete.
60 * config/linux/mips/mutex.h: Delete.
62 2011-11-30 Alan Modra <amodra@gmail.com>
65 * config/linux/sem.h: Rewrite.
66 * config/linux/sem.c: Rewrite.
68 2011-11-28 Richard Henderson <rth@redhat.com>
70 * libgomp.h (enum memmodel): New.
72 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
74 * configure: Regenerate.
76 2011-10-10 Matthias Klose <doko@ubuntu.com>
78 * config/posix95: Remove empty directory.
80 2011-08-26 Jakub Jelinek <jakub@redhat.com>
82 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
84 2011-08-19 Jakub Jelinek <jakub@redhat.com>
87 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
88 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
90 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
92 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
94 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
97 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
99 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
101 * config/linux/proc.h: New.
102 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
103 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
104 (gomp_init_num_threads): Update call to cpuset_popcount.
105 (get_num_procs): Ditto.
106 * config/linux/affinity.c (gomp_init_affinity): Call
107 gomp_cpuset_popcount.
109 2011-08-02 Jakub Jelinek <jakub@redhat.com>
113 * omp.h.in (omp_in_final): New prototype.
114 * omp_lib.f90.in (omp_in_final): New interface.
115 (omp_integer_kind, omp_logical_kind): Remove
116 and replace all its uses in the module with 4.
117 (openmp_version): Change to 201107.
118 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
119 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
120 kind for the parameters.
121 (omp_in_final): New external.
122 (openmp_version): Change to 201107.
123 * task.c (omp_in_final): New function.
124 (gomp_init_task): Initialize final_task.
125 (GOMP_task): Remove unused attribute from flags. Handle final
127 (GOMP_taskyield): New function.
128 (omp_in_final): Return true if if (false) or final (true) task
129 or descendant of final (true).
130 * fortran.c (omp_in_final_): New function.
131 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
132 (GOMP_3.0): Export GOMP_taskyield.
133 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
135 (parse_unsigned_long_list): New function.
136 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
137 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
138 even if parse_affinity returned false.
139 * config/linux/affinity.c (gomp_init_affinity): Handle
140 gomp_cpu_affinity_len == 0.
141 * libgomp_g.h (GOMP_taskyield): New prototype.
142 * libgomp.h (struct gomp_task): Add final_task field.
143 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
144 * team.c (gomp_team_start): Override new task's nthreads_var icv
145 if list form OMP_NUM_THREADS has been used and it has value for
146 the new nesting level.
148 * testsuite/libgomp.c/atomic-11.c: New test.
149 * testsuite/libgomp.c/atomic-12.c: New test.
150 * testsuite/libgomp.c/atomic-13.c: New test.
151 * testsuite/libgomp.c/atomic-14.c: New test.
152 * testsuite/libgomp.c/reduction-6.c: New test.
153 * testsuite/libgomp.c/task-5.c: New test.
154 * testsuite/libgomp.c++/atomic-2.C: New test.
155 * testsuite/libgomp.c++/atomic-3.C: New test.
156 * testsuite/libgomp.c++/atomic-4.C: New test.
157 * testsuite/libgomp.c++/atomic-5.C: New test.
158 * testsuite/libgomp.c++/atomic-6.C: New test.
159 * testsuite/libgomp.c++/atomic-7.C: New test.
160 * testsuite/libgomp.c++/atomic-8.C: New test.
161 * testsuite/libgomp.c++/atomic-9.C: New test.
162 * testsuite/libgomp.c++/task-8.C: New test.
163 * testsuite/libgomp.c++/reduction-4.C: New test.
164 * testsuite/libgomp.fortran/allocatable7.f90: New test.
165 * testsuite/libgomp.fortran/allocatable8.f90: New test.
166 * testsuite/libgomp.fortran/crayptr3.f90: New test.
167 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
168 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
169 * testsuite/libgomp.fortran/pointer1.f90: New test.
170 * testsuite/libgomp.fortran/pointer2.f90: New test.
171 * testsuite/libgomp.fortran/task4.f90: New test.
173 2011-08-02 Tobias Burnus <burnus@net-b.de>
175 * libgomp.texi: Update OpenMP spec references to 3.1.
176 (omp_in_final,OMP_PROC_BIND): New sections.
177 (OMP_NUM_THREADS): Document that the value can be now a list.
178 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
180 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
182 * config/linux/x86/futex.h: Check __x86_64__ instead of
185 2011-07-29 Jakub Jelinek <jakub@redhat.com>
189 * testsuite/libgomp.c/pr49897-1.c: New test.
190 * testsuite/libgomp.c/pr49897-2.c: New test.
191 * testsuite/libgomp.c/pr49898-1.c: New test.
192 * testsuite/libgomp.c/pr49898-2.c: New test.
194 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
196 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
197 for ia32 instead of ilp32.
199 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
200 * testsuite/libgomp.c/atomic-6.c: Likewise.
202 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
204 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
205 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
207 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
210 * config/osf/sem.h: New file.
211 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
213 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
216 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
219 2011-07-15 Jakub Jelinek <jakub@redhat.com>
221 * config/linux/wait.h (do_spin): New inline, largely copied
222 from do_wait, just don't do futex_wait here, instead return true if
224 (do_wait): Implement using do_spin.
225 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
227 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
228 __sync_bool_compare_and_swap, pass the oldval to
229 gomp_mutex_lock_slow.
230 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
231 If all mutex contenders are just spinning and not sleeping, don't
232 change state to 2 unnecessarily. Optimize the loop when state has
233 already become 2 to use just one atomic operation per loop instead
235 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
237 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
238 __sync_bool_compare_and_swap, pass the oldval to
239 gomp_mutex_lock_slow.
241 2011-06-22 Jakub Jelinek <jakub@redhat.com>
244 * iter.c (gomp_iter_static_next): For chunk size 0
245 only use n ceil/ nthreads size for the first
246 n % nthreads threads in the team instead of
247 all threads except for the last few ones which
248 get less work or none at all.
249 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
250 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
251 chunk argument, set run_sched_modifier to 0 for static
252 resp. 1 for other kinds. If chunk argument is 0
253 and not static, set value to 1.
255 2011-05-19 Jakub Jelinek <jakub@redhat.com>
258 * testsuite/libgomp.c++/pr49043.C: New test.
261 * testsuite/libgomp.c++/pr48869.C: New test.
263 2011-05-06 Jakub Jelinek <jakub@redhat.com>
266 * fortran.c: Include limits.h.
268 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
270 (omp_set_num_threads_8_, omp_set_schedule_8_,
271 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
272 omp_get_team_size_8_): Use TO_INT macro.
273 * testsuite/libgomp.fortran/pr48894.f90: New test.
275 2011-04-13 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.c/pr48591.c: New test.
280 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
283 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
284 * configure: Regenerate.
286 2011-02-27 Jakub Jelinek <jakub@redhat.com>
289 * testsuite/libgomp.fortran/task3.f90: New test.
291 2011-02-24 Tobias Burnus <burnus@net-b.de>
293 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
295 2011-02-23 Jakub Jelinek <jakub@redhat.com>
298 * libgomp.texi (omp_get_wtime): Don't say time in the past
301 2011-02-18 Jakub Jelinek <jakub@redhat.com>
304 * testsuite/libgomp.fortran/fortran.exp: Check for both
305 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
306 but $blddir != "", still append ${blddir}/${lang_library_path}
309 2011-02-16 Tobias Burnus <burnus@net-b.de>
312 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
313 of libquadmath.a before adding its libpath to ldflags.
315 2011-02-14 Jakub Jelinek <jakub@redhat.com>
318 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
319 to FUTEX_WAIT futex syscall.
320 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
322 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
324 * configure: Regenerate.
326 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
329 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
331 2011-01-16 Gerald Pfeifer
333 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
335 2010-12-14 Jakub Jelinek <jakub@redhat.com>
338 * libgomp.fortran/allocatable6.f90: New test.
340 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
342 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
343 * configure: Regenerate.
345 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
349 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
350 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
351 * aclocal.m4: Regenerate.
352 * configure: Regenerate.
353 * Makefile.in: Regenerate.
354 * testsuite/Makefile.in: Regenerate.
356 2010-12-02 Jakub Jelinek <jakub@redhat.com>
359 * libgomp.fortran/pr46753.f90: New test.
362 * env.c (initialize_env): Default to spin count 300000
363 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
367 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
368 at the end if sync builtins aren't supported.
370 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
372 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
374 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
378 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
380 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
382 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
383 Tobias Burnus <burnus@net-b.de>
387 * configure: Regenerate.
389 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
391 * config/linux/futex.h: New.
392 * config/linux/arm/mutex.h: New.
393 * configure.tgt (arm*-*-linux*): Add config path.
395 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
397 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
399 2010-09-23 Tobias Burnus <burnus@net-b.de>
401 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
402 Change Fortran datatype to LOGICAL.
403 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
404 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
406 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
408 * configure: Regenerate.
410 2010-07-26 Jakub Jelinek <jakub@redhat.com>
412 * libgomp.texi: Add function keyword to a couple of Fortran
413 interfaces, use integer instead of int for Fortran.
415 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
417 * libgomp.texi: Fix spelling and pasto problems throughout.
418 Adjust prototypes to match code.
420 2010-07-24 Tobias Burnus <burnus@net-b.de>
422 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
423 silence -fwhole-file warning.
425 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
427 * configure.tgt (*-*-solaris2.[56]*): Removed.
429 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
431 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
432 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
433 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
434 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
435 targetting solaris2*.
436 * configure: Regenerate.
437 * config.h.in: Regenerate.
439 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
440 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
441 Add libgomp_version_dep.
442 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
444 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
445 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
446 * Makefile.in: Regenerate.
448 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
449 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
450 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
451 to common block, protected by
452 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
454 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
456 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
458 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
461 * configure: Regenerate.
463 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
466 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
467 * configure: Regenerate.
468 * Makefile.in: Regenerate.
469 * testsuite/Makefile.in: Regenerate.
471 2010-04-26 Jakub Jelinek <jakub@redhat.com>
474 * testsuite/libgomp.c/pr43893.c: New test.
475 * testsuite/libgomp.c++/pr43893.C: New test.
477 2010-04-21 Jakub Jelinek <jakub@redhat.com>
480 * testsuite/libgomp.fortran/vla8.f90: New test.
482 2010-04-20 Jakub Jelinek <jakub@redhat.com>
485 * config/linux/affinity.c (gomp_init_affinity): Decrease
486 gomp_available_cpus if affinity mask confines the process to fewer
488 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
489 non-NULL, just return gomp_available_cpus.
492 * sections.c (gomp_sections_init): Initialize ws->mode.
494 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
496 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
497 not unused bar variable.
498 * configure: Regenerate.
500 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
502 * Makefile.in: Regenerate.
503 * aclocal.m4: Regenerate.
504 * testsuite/Makefile.in: Regenerate.
506 2010-03-22 Jakub Jelinek <jakub@redhat.com>
509 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
510 (initialize_env): Adjust callers.
511 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
512 when the argument is 0.
514 * testsuite/libgomp.c/pr42942.c: New test.
516 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
520 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
521 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
523 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
525 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
526 * testsuite/libgomp.c++/task-6.C: Likewise.
528 2010-01-28 Steve Ellcey <sje@cup.hp.com>
530 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
532 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
534 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
535 * configure: Regenerate.
537 2010-01-26 Jakub Jelinek <jakub@redhat.com>
540 * testsuite/libgomp.fortran/allocatable5.f90: New test.
542 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
544 * configure.ac: Test for executability of GFORTRAN.
545 * configure: Regenerate.
547 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
549 * configure: Regenerate.
551 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
554 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
556 2010-01-03 Richard Guenther <rguenther@suse.de>
558 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
560 2009-12-23 Sebastian Pop <sebpop@gmail.com>
562 * testsuite/libgomp.graphite/pr4118.c: New.
564 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
566 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
567 for darwin, protect the test with require-effective-target tls_runtime.
568 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
570 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
573 * testsuite/lib/libgomp.exp: Provide -B options to allow for
574 link spec %s substitutions for static libraries.
576 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
579 * libgomp.graphite/force-parallel-2.c: Reduce array size.
581 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
583 * Makefile.in: Regenerate.
584 * configure: Regenerate.
585 * testsuite/Makefile.in: Regenerate.
587 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
589 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
590 settings for LC_ALL and LANG.
592 2009-11-25 Jakub Jelinek <jakub@redhat.com>
595 * testsuite/libgomp.fortran/pr42162.f90: New test.
597 2009-11-13 Jakub Jelinek <jakub@redhat.com>
600 * testsuite/libgomp.c/pr42029.c: New test.
602 2009-10-26 Jakub Jelinek <jakub@redhat.com>
604 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
605 *s. Accept ld version without text in ()s.
606 * configure: Regenerated.
608 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
610 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
612 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
615 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
616 or a hyphen (happens with fortran language disabled).
617 * configure: Regenerate.
619 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
621 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
622 use sed script portable to Solaris /bin/sed for extracting ld
624 * configure: Regenerate.
626 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
628 * testsuite/libgomp.graphite/bounds.c: New test.
630 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
632 * Makefile.am (libgomp_la_LINK): New.
633 * Makefile.in: Regenerate.
635 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
637 * configure.ac (AC_PREREQ): Bump to 2.64.
639 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
641 * Makefile.am (install-html, install-pdf): Remove.
642 * Makefile.in: Regenerate.
644 * Makefile.in: Regenerate.
645 * aclocal.m4: Regenerate.
646 * config.h.in: Regenerate.
647 * configure: Regenerate.
648 * testsuite/Makefile.in: Regenerate.
650 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
652 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
653 * Makefile.in: Regenerate.
655 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
657 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
658 * Makefile.in: Regenerate.
660 2009-08-19 Tobias Burnus <burnus@net-b.de>
663 omp_lib.h.in: Fix -std=f95 errors.
666 2009-08-14 David Edelsohn <edelsohn@gnu.org>
668 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
669 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
670 * testsuite/libgomp.graphite/graphite.exp: New.
672 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
674 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
677 2009-08-04 David Daney <ddaney@caviumnetworks.com>
679 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
680 needed memory barrier semantics.
681 * config/linux/mips/mutex.h: New file.
683 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
685 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
687 2009-07-16 Joseph Myers <joseph@codesourcery.com>
689 * configure: Regenerate.
691 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
696 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
697 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
698 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
700 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
702 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
703 options when choosing a multilib.
705 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
707 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
708 ld_library_path. Use add_path. Add just find_libgcc_s to
709 ld_library_path, not every libgcc multilib directory.
710 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
711 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
712 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
714 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
716 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
718 * Makefile.am (LTLDFLAGS): Define.
720 * Makefile.in: Regenerate.
722 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
725 * testsuite/libgomp.fortran/fortran.exp: Don't link with
726 libgfortranbegin, check existence of libgfortran.a instead of
729 2009-05-20 Jakub Jelinek <jakub@redhat.com>
732 * team.c (gomp_thread_start): Destroy thr->release semaphore.
733 (gomp_free_pool_helper): Likewise.
735 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
736 Jakub Jelinek <jakub@redhat.com>
739 * testsuite/libgomp.fortran/workshare2.f90: New test.
741 2009-04-09 Nick Clifton <nickc@redhat.com>
743 * iter.c: Change copyright header to refer to version 3 of the
744 GNU General Public License with version 3.1 of the GCC Runtime
745 Library Exception and to point readers at the COPYING3 and
746 COPYING3.RUNTIME files and the FSF's license web page.
748 * barrier.c: Likewise.
749 * config/bsd/proc.c: Likewise.
750 * config/linux/affinity.c: Likewise.
751 * config/linux/alpha/futex.h: Likewise.
752 * config/linux/bar.c: Likewise.
753 * config/linux/bar.h: Likewise.
754 * config/linux/ia64/futex.h: Likewise.
755 * config/linux/ia64/mutex.h: Likewise.
756 * config/linux/lock.c: Likewise.
757 * config/linux/mips/futex.h: Likewise.
758 * config/linux/mutex.c: Likewise.
759 * config/linux/mutex.h: Likewise.
760 * config/linux/powerpc/futex.h: Likewise.
761 * config/linux/proc.c: Likewise.
762 * config/linux/ptrlock.c: Likewise.
763 * config/linux/ptrlock.h: Likewise.
764 * config/linux/s390/futex.h: Likewise.
765 * config/linux/sem.c: Likewise.
766 * config/linux/sem.h: Likewise.
767 * config/linux/sparc/futex.h: Likewise.
768 * config/linux/wait.h: Likewise.
769 * config/linux/x86/futex.h: Likewise.
770 * config/mingw32/proc.c: Likewise.
771 * config/mingw32/time.c: Likewise.
772 * config/posix/affinity.c: Likewise.
773 * config/posix/bar.c: Likewise.
774 * config/posix/bar.h: Likewise.
775 * config/posix/lock.c: Likewise.
776 * config/posix/mutex.h: Likewise.
777 * config/posix/proc.c: Likewise.
778 * config/posix/ptrlock.h: Likewise.
779 * config/posix/sem.c: Likewise.
780 * config/posix/sem.h: Likewise.
781 * config/posix/time.c: Likewise.
782 * config/posix95/lock.c: Likewise.
783 * critical.c: Likewise.
786 * fortran.c: Likewise.
787 * iter_ull.c: Likewise.
788 * libgomp.h: Likewise.
789 * libgomp_f.h.in: Likewise.
790 * libgomp_g.h: Likewise.
792 * loop_ull.c: Likewise.
793 * omp.h.in: Likewise.
794 * omp_lib.f90.in: Likewise.
795 * omp_lib.h.in: Likewise.
796 * ordered.c: Likewise.
797 * parallel.c: Likewise.
798 * sections.c: Likewise.
799 * single.c: Likewise.
804 2009-04-09 Jakub Jelinek <jakub@redhat.com>
806 * testsuite/config/default.exp: Change copyright header to refer to
807 version 3 of the GNU General Public License and to point readers
808 at the COPYING3 file and the FSF's license web page.
810 2009-04-08 Jakub Jelinek <jakub@redhat.com>
813 * libgomp.c++/pr39573.C: New test.
815 2009-04-01 Jakub Jelinek <jakub@redhat.com>
818 * testsuite/libgomp.c/pr39591-1.c: New test.
819 * testsuite/libgomp.c/pr39591-2.c: New test.
820 * testsuite/libgomp.c/pr39591-3.c: New test.
822 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
824 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
825 * testsuite/libgomp.c/atomic-6.c: Ditto.
827 2009-03-23 Jakub Jelinek <jakub@redhat.com>
830 * testsuite/libgomp.c/loop-12.c: New test.
831 * testsuite/libgomp.c/loop-11.c: New test.
832 * testsuite/libgomp.c++/loop-11.C: New test.
833 * testsuite/libgomp.c++/loop-12.C: New test.
834 * testsuite/libgomp.c++/for-8.C: New test.
836 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
838 * configure: Regenerate.
840 2009-02-11 Jakub Jelinek <jakub@redhat.com>
843 * testsuite/libgomp.c/pr39154.c: New test.
845 2009-01-30 Ian Lance Taylor <iant@google.com>
847 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
848 libgomp_ld_is_gold. Get gold version number.
849 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
850 * configure: Rebuild.
852 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
854 * testsuite/lib/libgomp.exp: Add -B option for targets that
855 use libgfortran.a%s in their specs.
857 2009-01-07 Jakub Jelinek <jakub@redhat.com>
860 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
861 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
862 HAVE_AS_SYMVER_DIRECTIVE is not defined.
863 * configure: Regenerated.
864 * config.h.in: Likewise.
866 2008-12-28 Jakub Jelinek <jakub@redhat.com>
869 * testsuite/libgomp.c/pr38650.c: New test.
870 * testsuite/libgomp.c++/pr38650.C: New test.
872 2008-12-27 Jakub Jelinek <jakub@redhat.com>
874 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
876 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
878 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
880 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
882 * configure: Regenerate.
884 2008-12-08 Jakub Jelinek <jakub@redhat.com>
887 * testsuite/libgomp.c/pr36802-1.c: New test.
888 * testsuite/libgomp.c/pr36802-2.c: New test.
889 * testsuite/libgomp.c/pr36802-3.c: New test.
891 2008-12-01 Janis Johnson <janis187@us.ibm.com>
894 * config/linux/powerpc/mutex.h: New.
896 2008-12-01 Jakub Jelinek <jakub@redhat.com>
899 * testsuite/libgomp.c++/for-7.C: New test.
902 * testsuite/libgomp.c++/for-6.C: New test.
904 2008-11-26 Janis Johnson <janis187@us.ibm.com>
907 * testsuite/lib/libgomp.exp: Include new timeout library files.
908 (libgomp_target_compile): Set timeout value from new proc.
910 2008-11-13 Steve Ellcey <sje@cup.hp.com>
913 * config/linux/ia64/mutex.h: New.
915 2008-11-04 Tobias Burnus <burnus@net-b.de>
918 * libgomp.texi (Runtime library routines, environment variables):
919 Update for OpenMP version 3.0.
921 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
922 Steve Ellcey <sje@cup.hp.com>
924 * configure: Regenerate for new libtool.
925 * Makefile.in: Ditto.
926 * testsuite/Makefile.in: Ditto.
928 2008-09-19 Jakub Jelinek <jakub@redhat.com>
929 Andreas Tobler <a.tobler@schweiz.org>
931 * config/bsd/proc.c: New file.
932 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
933 * configure.ac: Check for header <sys/sysctl.h>
934 * configure: Regenerate.
935 * config.h.in: Likewise.
937 2008-09-05 Janis Johnson <janis187@us.ibm.com>
939 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
941 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
943 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
944 * Makefile.in: Regenerated.
945 * testsuite/Makefile.in: Regenerated.
947 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
949 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
950 depend on blddir if blddir exists.
951 (libgomp_target_compile): Likewise.
952 * testsuite/libgomp.c++/c++.exp: Likewise.
953 * testsuite/libgomp.fortran/fortran.exp: Likewise.
955 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
957 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
958 Do not list GPL as Invariant Section.
960 2008-07-28 Ilie Garbacea <ilie@mips.com>
961 Chao-ying Fu <fu@mips.com>
963 * configure.tgt: Enable futex for MIPS.
964 * config/linux/mips/futex.h: New file.
966 2008-07-16 Jakub Jelinek <jakub@redhat.com>
968 * team.c (gomp_team_end): Free team immediately if it has
971 2008-07-08 David Edelsohn <edelsohn@gnu.org>
973 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
974 * testsuite/libgomp.fortran/fortran.exp: Same.
975 * testsuite/libgomp.c/c.exp: Same.
976 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
977 directory to library path first.
979 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
981 * env.c (parse_stacksize): Add cast to avoid warning.
982 (parse_spincount): Likewise.
984 2008-06-27 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.c/loop-10.c: New test.
987 * libgomp.c/loop-3.c (main): Add lastprivate clause.
988 * libgomp.c++/loop-6.C (main): Likewise.
991 * testsuite/libgomp.c/debug-1.c: New test.
993 2008-06-19 Jakub Jelinek <jakub@redhat.com>
995 * testsuite/libgomp.c/nqueens-1.c: New test.
998 * testsuite/libgomp.c++/task-7.C: New function.
1000 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1002 * configure: Regenerate.
1004 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1006 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1007 mutex when HAVE_SYNC_BUILTINS isn't defined.
1009 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1011 * libgomp.texi (omp_test_lock): Fix typo.
1013 2008-06-12 Tobias Burnus <burnus@net-b.de>
1015 * omp_lib.f90.in: Add "implicit none".
1017 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1020 * testsuite/libgomp.c/reduction-5.c: New test.
1022 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1024 * libgomp.h (struct gomp_task): Add in_tied_task field.
1025 * task.c (gomp_init_task): Initialize it.
1026 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1027 unconditionally. Don't call gomp_team_barrier_wake if
1028 current task is implicit or if(0) from implicit and number of
1029 running tasks is equal to nthreads - 1.
1032 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1033 omp_get_team_size_8): Fix pastos.
1036 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1037 * configure: Regenerated.
1038 * config.h.in: Regenerated.
1039 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1042 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1045 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1046 (GOMP_loop_ull_dynamic_start): Likewise.
1047 (GOMP_loop_ull_guided_start): Likewise.
1048 (GOMP_loop_ull_ordered_static_start): Likewise.
1049 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1050 (GOMP_loop_ull_ordered_guided_start): Likewise.
1052 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1053 Richard Henderson <rth@redhat.com>
1054 Ulrich Drepper <drepper@redhat.com>
1055 Jakob Blomer <jakob.blomer@ira.uka.de>
1057 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1058 Substitute also OMP_*LOCK_25*.
1059 * configure: Regenerated.
1060 * config.h.in: Regenerated.
1061 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1062 ptrlock.c and task.c.
1063 * Makefile.in: Regenerated.
1064 * testsuite/Makefile.in: Regenerated.
1066 * loop_ull.c: New file.
1067 * iter_ull.c: New file.
1068 * libgomp.h: Include ptrlock.h.
1069 (enum gomp_task_kind): New type.
1070 (struct gomp_team): Add task_lock, task_queue, task_count,
1071 task_running_count, single_count fields. Add
1072 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1073 Remove work_share_lock, generation_mask,
1074 oldest_live_gen, num_live_gen and init_work_shares fields, add
1075 work work_share_list_alloc, work_share_list_free and work_share_chunk
1076 fields. Change work_shares from pointer to pointers into an array.
1077 Change ordered_release field into gomp_sem_t ** from flexible array
1078 member. Add implicit_task and initial_work_shares fields.
1079 Move close to the end of the struct.
1080 (struct gomp_team_state): Add single_count, last_work_share,
1081 active_level and level fields, remove work_share_generation.
1082 (gomp_barrier_handle_tasks): New prototype.
1083 (gomp_finish_task): New inline function.
1084 (struct gomp_work_share): Move chunk_size, end, incr into
1085 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1086 next_ll fields. Reshuffle fields. Add next_alloc,
1087 next_ws, next_free and inline_ordered_team_ids fields, change
1088 ordered_team_ids into pointer from flexible array member.
1089 Add mode field. Put lock and next into a different cache line
1090 from most of the write-once fields.
1091 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1092 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1093 gomp_iter_ull_guided_next): New prototypes.
1094 (gomp_new_icv): New prototype.
1095 (struct gomp_thread): Add thread_pool and task fields.
1096 (struct gomp_thread_pool): New type.
1097 (gomp_new_team): New prototype.
1098 (gomp_team_start): Change type of last argument.
1099 (gomp_new_work_share): Removed.
1100 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1101 (gomp_work_share_init_done): New static inline.
1102 (gomp_throttled_spin_count_var, gomp_available_cpus,
1103 gomp_managed_threads): New extern decls.
1104 (gomp_init_task): New prototype.
1105 (gomp_spin_count_var): New extern var decl.
1106 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1107 or no alias support, or if not PIC.
1108 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1109 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1110 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1111 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1112 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1113 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1114 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1115 gomp_test_nest_lock_25): New prototypes.
1116 (omp_lock_symver, strong_alias): Define.
1117 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1119 (gomp_end_task): New.
1120 (struct gomp_task_icv, gomp_global_icv): New.
1121 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1122 (struct gomp_task): New.
1123 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1124 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1126 (gomp_schedule_type): Reorder enum to match
1128 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1130 (gomp_thread_start): Add gomp_team_barrier_wait call.
1131 For non-nested case remove clearing of docked thread thr fields.
1132 Use pool fields instead of global gomp_* variables. Use
1133 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1134 Create tasks for each member thread.
1135 (free_team): Only destroy team barrier, task_lock here and free it.
1136 (gomp_free_thread): Free last_team if non-NULL.
1137 (gomp_team_end): Call gomp_team_barrier_wait instead of
1138 gomp_barrier_wait. For nested case call one extra
1139 gomp_barrier_wait. Move here some destruction from free_team.
1140 Call free_team on pool->last_team if any, rather than freeing
1141 current team. Destroy work_share_list_free_lock ifndef
1143 (gomp_new_icv): New function.
1144 (gomp_threads, gomp_threads_size, gomp_threads_used,
1145 gomp_threads_dock): Removed.
1146 (gomp_thread_destructor): New variable.
1147 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1149 (gomp_team_start): Create new pool if current thread doesn't have
1150 one. Use pool fields instead of global gomp_* variables.
1151 Initialize thread_pool field for new threads. Clear single_count.
1152 Change last argument from ws to team, don't create
1153 new team, set ts.work_share to &team->work_shares[0] and clear
1154 ts.last_work_share. Don't clear ts.work_share_generation.
1155 If number of threads changed, adjust atomically gomp_managed_threads.
1156 Use gomp_init_task instead of gomp_new_task,
1157 set thr->task to the corresponding implicit_task array entry.
1158 Create tasks for each member thread. Initialize ts.level.
1159 (initialize_team): Call pthread_key_create on
1160 gomp_thread_destructor.
1161 (team_destructor): New function.
1162 (new_team): Removed.
1163 (gomp_new_team): New function.
1164 (free_team): Free gomp_work_share blocks chained through next_alloc,
1165 instead of freeing work_shares and destroying work_share_lock.
1166 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1167 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1168 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1169 of gomp_barrier_wait.
1170 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1171 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1172 if gomp_work_share_start returned true. Don't unlock ws->lock.
1173 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1174 of gomp_barrier_wait.
1175 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1176 gomp_work_share_init_done if gomp_work_share_start returned true.
1177 Don't unlock ws->lock.
1178 * work.c: Include stddef.h.
1179 (free_work_share): Use work_share_list_free_lock instead
1180 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1181 Call gomp_fini_work_share and then either free ws if orphaned, or
1182 put it into work_share_list_free list of the current team.
1183 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1185 (gomp_work_share_start, gomp_work_share_end,
1186 gomp_work_share_end_nowait): Rewritten.
1187 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1188 (openmp_version): Set to 200805.
1189 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1190 omp_sched_guided, omp_sched_auto): New parameters.
1191 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1192 omp_set_max_active_levels, omp_get_max_active_levels,
1193 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1194 omp_get_active_level): New interfaces.
1195 * omp_lib.h.in (openmp_version): Set to 200805.
1196 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1197 omp_sched_guided, omp_sched_auto): New parameters.
1198 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1199 omp_set_max_active_levels, omp_get_max_active_levels,
1200 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1201 omp_get_active_level): New externals.
1202 * loop.c: Include limits.h.
1203 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1205 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1206 Likewise. Use gomp_icv.
1207 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1208 ts.static_trip here.
1209 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1210 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1211 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1212 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1213 don't unlock ws->lock, otherwise lock it.
1214 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1215 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1216 (gomp_parallel_loop_start): Call gomp_new_team instead of
1217 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1218 Adjust gomp_team_start caller. Pass 0 as second argument to
1219 gomp_resolve_num_threads.
1220 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1221 If adding ws->chunk_size nthreads + 1 times after end won't
1222 overflow, set ws->mode to 1.
1223 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1224 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1225 GOMP_loop_ull_ordered_static_start,
1226 GOMP_loop_ull_ordered_dynamic_start,
1227 GOMP_loop_ull_ordered_guided_start,
1228 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1229 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1230 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1231 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1232 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1234 * libgomp.map: Export lock routines also @@OMP_2.0.
1235 (GOMP_loop_ordered_dynamic_first,
1236 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1237 GOMP_loop_ordered_static_first): Remove.
1238 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1239 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1240 GOMP_loop_ull_ordered_dynamic_next,
1241 GOMP_loop_ull_ordered_dynamic_start,
1242 GOMP_loop_ull_ordered_guided_next,
1243 GOMP_loop_ull_ordered_guided_start,
1244 GOMP_loop_ull_ordered_runtime_next,
1245 GOMP_loop_ull_ordered_runtime_start,
1246 GOMP_loop_ull_ordered_static_next,
1247 GOMP_loop_ull_ordered_static_start,
1248 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1249 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1250 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1251 (omp_set_schedule, omp_get_schedule,
1252 omp_get_thread_limit, omp_set_max_active_levels,
1253 omp_get_max_active_levels, omp_get_level,
1254 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1255 omp_set_schedule_, omp_set_schedule_8_,
1256 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1257 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1258 omp_get_max_active_levels_, omp_get_level_,
1259 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1260 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1261 New exports @@OMP_3.0.
1262 * omp.h.in (omp_sched_t): New type.
1263 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1264 omp_set_max_active_levels, omp_get_max_active_levels,
1265 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1266 omp_get_active_level): New prototypes.
1267 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1268 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1269 gomp_thread_limit_var, gomp_remaining_threads_count,
1270 gomp_remaining_threads_lock): New variables.
1271 (parse_spincount): New function.
1272 (initialize_env): Call gomp_init_num_threads unconditionally.
1273 Initialize gomp_available_cpus. Call parse_spincount,
1274 initialize gomp_{,throttled_}spin_count_var
1275 depending on presence and value of OMP_WAIT_POLICY and
1276 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1277 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1278 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1279 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1280 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1281 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1282 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1283 (gomp_global_icv): New.
1284 (parse_schedule): Use it. Parse "auto".
1285 (omp_set_num_threads): Use gomp_icv.
1286 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1288 (omp_get_max_threads): Move from parallel.c.
1289 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1290 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1292 (parse_stacksize, parse_wait_policy): New functions.
1293 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1294 both wrappers for compatibility and new locks.
1295 (omp_set_schedule, omp_get_schedule,
1296 omp_get_thread_limit, omp_set_max_active_levels,
1297 omp_get_max_active_levels, omp_get_level,
1298 omp_get_ancestor_thread_num, omp_get_team_size,
1299 omp_get_active_level): New ialias_redirect.
1300 (omp_set_schedule_, omp_set_schedule_8_,
1301 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1302 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1303 omp_get_max_active_levels_, omp_get_level_,
1304 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1305 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1307 * parallel.c: Include limits.h.
1308 (gomp_resolve_num_threads): Add count argument. Rewritten.
1309 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1310 argument to gomp_team_start. Pass 0 as second argument to
1311 gomp_resolve_num_threads.
1312 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1313 if gomp_thread_limit_var != ULONG_MAX.
1314 (omp_in_parallel): Implement using ts.active_level.
1315 (omp_get_max_threads): Move to env.c.
1316 (omp_get_level, omp_get_ancestor_thread_num,
1317 omp_get_team_size, omp_get_active_level): New functions,
1319 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1320 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1321 gomp_iter_dynamic_next instead of the _locked variant and don't take
1322 lock around it, otherwise acquire it before calling
1323 gomp_iter_dynamic_next_locked.
1324 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1325 gomp_iter_dynamic_next instead of the _locked variant and don't take
1327 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1328 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1329 Adjust gomp_team_start caller. Pass count as second argument to
1330 gomp_resolve_num_threads, don't adjust num_threads after the call.
1332 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1333 ws->chunk_size by incr.
1334 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1336 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1338 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1339 (omp_check_defines): Check even the compat defines.
1340 * config/linux/ptrlock.c: New file.
1341 * config/linux/ptrlock.h: New file.
1342 * config/linux/wait.h: New file.
1343 * config/posix/ptrlock.c: New file.
1344 * config/posix/ptrlock.h: New file.
1345 * config/linux/bar.h (gomp_team_barrier_wait,
1346 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1347 (gomp_team_barrier_set_task_pending,
1348 gomp_team_barrier_clear_task_pending,
1349 gomp_team_barrier_set_waiting_for_tasks,
1350 gomp_team_barrier_waiting_for_tasks,
1351 gomp_team_barrier_done): New inlines.
1352 (gomp_barrier_t): Rewritten.
1353 (gomp_barrier_state_t): New typedef.
1354 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1355 gomp_barrier_wait_start): Rewritten.
1356 (gomp_barrier_wait_end): Change second argument to
1357 gomp_barrier_state_t.
1358 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1360 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1362 (gomp_barrier_wait_end): Rewritten.
1363 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1364 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1365 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1366 (gomp_barrier_state_t): New typedef.
1367 (gomp_team_barrier_wait,
1368 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1369 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1370 into the return value. Return gomp_barrier_state_t.
1371 (gomp_team_barrier_set_task_pending,
1372 gomp_team_barrier_clear_task_pending,
1373 gomp_team_barrier_set_waiting_for_tasks,
1374 gomp_team_barrier_waiting_for_tasks,
1375 gomp_team_barrier_done): New inlines.
1376 (gomp_barrier_wait_end): Change second argument to
1377 gomp_barrier_state_t.
1378 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1380 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1381 (gomp_barrier_wait_end): Change second argument to
1382 gomp_barrier_state_t.
1383 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1384 gomp_team_barrier_wake): New functions.
1385 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1387 (gomp_futex_wake, gomp_futex_wait): New variables.
1388 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1389 * config/linux/lock.c: Rewrite to make locks task owned,
1390 for backwards compatibility provide the old entrypoints
1391 if symbol versioning. Include wait.h instead of libgomp.h and
1393 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1394 * config/posix95/lock.c: Rewrite to make locks task owned,
1395 for backwards compatibility provide the old entrypoints
1396 if symbol versioning.
1397 * config/posix/lock.c: Rewrite to make locks task owned,
1398 for backwards compatibility provide the old entrypoints
1399 if symbol versioning.
1400 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1401 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1402 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1403 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1404 (sys_futex0): Return error code.
1405 (futex_wake, futex_wait): If ENOSYS was returned, clear
1406 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1407 (cpu_relax, atomic_write_barrier): New static inlines.
1408 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/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/s390/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/ia64/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/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1428 (sys_futex0): Return error code.
1429 (futex_wake, futex_wait): If ENOSYS was returned, clear
1430 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1431 (cpu_relax, atomic_write_barrier): New static inlines.
1432 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1434 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1435 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1436 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1438 (omp_nest_lock_t): Change owner into void *, add lock field.
1439 * config/posix95/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. Change owner to void *.
1444 * config/posix/omp-lock.h: Include semaphore.h.
1445 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1446 (omp_lock_t): Use sem_t instead of mutex if semaphores
1448 (omp_nest_lock_t): Likewise. Add owner field.
1450 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1452 * testsuite/libgomp.c/collapse-1.c: New test.
1453 * testsuite/libgomp.c/collapse-2.c: New test.
1454 * testsuite/libgomp.c/collapse-3.c: New test.
1455 * testsuite/libgomp.c/icv-1.c: New test.
1456 * testsuite/libgomp.c/icv-2.c: New test.
1457 * testsuite/libgomp.c/lib-2.c: New test.
1458 * testsuite/libgomp.c/lock-1.c: New test.
1459 * testsuite/libgomp.c/lock-2.c: New test.
1460 * testsuite/libgomp.c/lock-3.c: New test.
1461 * testsuite/libgomp.c/loop-4.c: New test.
1462 * testsuite/libgomp.c/loop-5.c: New test.
1463 * testsuite/libgomp.c/loop-6.c: New test.
1464 * testsuite/libgomp.c/loop-7.c: New test.
1465 * testsuite/libgomp.c/loop-8.c: New test.
1466 * testsuite/libgomp.c/loop-9.c: New test.
1467 * testsuite/libgomp.c/nested-3.c: New test.
1468 * testsuite/libgomp.c/nestedfn-6.c: New test.
1469 * testsuite/libgomp.c/sort-1.c: New test.
1470 * testsuite/libgomp.c/task-1.c: New test.
1471 * testsuite/libgomp.c/task-2.c: New test.
1472 * testsuite/libgomp.c/task-3.c: New test.
1473 * testsuite/libgomp.c/task-4.c: New test.
1474 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1475 to C++ testsuite default compiler options.
1476 * testsuite/libgomp.c++/collapse-1.C: New test.
1477 * testsuite/libgomp.c++/collapse-2.C: New test.
1478 * testsuite/libgomp.c++/ctor-10.C: New test.
1479 * testsuite/libgomp.c++/for-1.C: New test.
1480 * testsuite/libgomp.c++/for-2.C: New test.
1481 * testsuite/libgomp.c++/for-3.C: New test.
1482 * testsuite/libgomp.c++/for-4.C: New test.
1483 * testsuite/libgomp.c++/for-5.C: New test.
1484 * testsuite/libgomp.c++/loop-8.C: New test.
1485 * testsuite/libgomp.c++/loop-9.C: New test.
1486 * testsuite/libgomp.c++/loop-10.C: New test.
1487 * testsuite/libgomp.c++/task-1.C: New test.
1488 * testsuite/libgomp.c++/task-2.C: New test.
1489 * testsuite/libgomp.c++/task-3.C: New test.
1490 * testsuite/libgomp.c++/task-4.C: New test.
1491 * testsuite/libgomp.c++/task-5.C: New test.
1492 * testsuite/libgomp.c++/task-6.C: New test.
1493 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1494 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1495 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1496 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1497 * testsuite/libgomp.fortran/collapse1.f90: New test.
1498 * testsuite/libgomp.fortran/collapse2.f90: New test.
1499 * testsuite/libgomp.fortran/collapse3.f90: New test.
1500 * testsuite/libgomp.fortran/collapse4.f90: New test.
1501 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1502 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1503 * testsuite/libgomp.fortran/lib4.f90: New test.
1504 * testsuite/libgomp.fortran/lock-1.f90: New test.
1505 * testsuite/libgomp.fortran/lock-2.f90: New test.
1506 * testsuite/libgomp.fortran/nested1.f90: New test.
1507 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1508 * testsuite/libgomp.fortran/strassen.f90: New test.
1509 * testsuite/libgomp.fortran/tabs1.f90: New test.
1510 * testsuite/libgomp.fortran/tabs2.f: New test.
1511 * testsuite/libgomp.fortran/task1.f90: New test.
1512 * testsuite/libgomp.fortran/task2.f90: New test.
1513 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1514 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1515 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1516 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1517 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1519 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1522 * testsuite/libgomp.c++/ctor-11.C: New test.
1523 * testsuite/libgomp.c++/ctor-12.C: New test.
1525 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1527 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1529 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1532 * testsuite/libgomp.c/atomic-5.c: New test.
1533 * testsuite/libgomp.c/atomic-6.c: New test.
1534 * testsuite/libgomp.c/autopar-1.c: New test.
1536 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1538 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1539 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1540 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1541 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1542 * configure: Regenerate.
1543 * Makefile.in, testsuite/Makefile.in: Likewise.
1545 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1548 * aclocal.m4: Regenerate.
1549 * configure: Regenerate.
1551 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1554 * testsuite/libgomp.c/atomic-4.c: New test.
1557 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1558 (gomp_iter_guided_next): Likewise.
1559 * testsuite/libgomp.c/pr35625.c: New test.
1561 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1563 * aclocal.m4: Regenerate.
1564 * configure: Likewise.
1565 * Makefile.in: Likewise.
1566 * testsuite/Makefile.in: Likewise.
1568 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1571 * testsuite/libgomp.c++/pr35185.C: New test.
1573 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1576 * testsuite/libgomp.c/pr35549.c: New test.
1578 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1580 * testsuite/libgomp.c/atomic-3.c: New test.
1582 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1585 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1588 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1591 * configure.ac: Add ACX_HEADER_STRING.
1592 * env.c: Include strings.h.
1593 * aclocal.m4: Regenerate.
1594 * config.h.in: Regenerate.
1595 * configure: Regenerate.
1596 * Makefile.in: Regenerate.
1597 * testsuite/Makefile.in: Regenerate.
1599 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1602 * testsuite/libgomp.c/pr35196.c: New test.
1605 * testsuite/libgomp.fortran/pr35130.f90: New test.
1606 * testsuite/libgomp.c/pr35130.c: New test.
1608 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1611 * testsuite/libgomp.c/pr33880.c: New test.
1612 * testsuite/libgomp.fortran/pr33880.f90: New test.
1614 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1616 * configure: Regenerate.
1618 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1620 * configure.ac: Move futex checking into ../config/futex.m4.
1621 * configure: Rebuilt.
1622 * aclocal.m4: Rebuilt.
1623 * Makefile.in: Rebuilt.
1625 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1626 2007-10-15 ../config/tls.m4 change.
1628 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1631 * testsuite/libgomp.c/pr34513.c: New test.
1632 * testsuite/libgomp.c++/pr34513.C: New test.
1634 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1637 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1639 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1641 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1643 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.c/private-1.c: New test.
1647 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1648 Paolo Bonzini <bonzini@gnu.org>
1650 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1651 instead of 'VPATH ='.
1652 * Makefile.in: Regenerate.
1654 2007-11-23 Matthias Klose <doko@ubuntu.com>
1656 * configure.ac: Adjust makeinfo version check.
1657 * configure: Regenerate.
1659 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1662 * testsuite/libgomp.fortran/pr34020.f90: New test.
1664 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.c++/atomic-1.C: New test.
1669 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1672 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1673 Make x and y integers rather than (implicit) reals. Add private (j)
1674 clause to the last omp parallel.
1676 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1678 * configure: Regenerate following changes to ../config/tls.m4.
1680 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1682 * testsuite/libgomp.fortran/stack.f90: New test.
1684 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1686 * config/mingw32/proc.c: New file.
1688 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1690 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1691 (main): Use __get_cpuid to get i386 target fetaures.
1692 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1693 (main): Use __get_cpuid to get x86_64 target fetaures.
1695 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1698 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1699 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1701 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1704 * testsuite/libgomp.fortran/pr32550.f90: New test.
1705 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1707 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1709 * aclocal.m4: Regenerated.
1711 2007-07-05 Tobias Burnus <burnus@net-b.de>
1714 * testsuite/libgomp.fortran/pr32359.f90: New.
1716 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1719 * sections.c (GOMP_parallel_sections_start): Only decrease
1720 number of threads to COUNT if dyn_var is true.
1721 * testsuite/libgomp.c/pr32468.c: New test.
1723 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1726 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1728 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1731 * testsuite/libgomp.c/pr32362-1.c: New test.
1732 * testsuite/libgomp.c/pr32362-2.c: New test.
1733 * testsuite/libgomp.c/pr32362-3.c: New test.
1735 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1737 * team.c (gomp_team_start): Fix setting up thread_attr
1740 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1742 * configure: Regenerate.
1744 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1746 * Makefile.in: Regenerate.
1747 * configure: Regenerate.
1748 * aclocal.m4: Regenerate.
1749 * testsuite/Makefile.in: Regenerate.
1751 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1753 * config/linux/proc.c: New file.
1756 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1758 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1760 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1762 2007-04-16 Matthias Klose <doko@debian.org>
1764 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1765 flags if not building with -m64.
1766 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1767 flag for i?86-*-* targets, if current target matches -m64.
1769 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1771 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1772 * Makefile.in: Regenerate.
1774 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1777 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1779 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1781 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1783 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1785 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1786 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1787 (parse_affinity): New function.
1788 (initialize_env): Call it and gomp_init_affinity.
1789 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1790 create new pthread_attr_t and call gomp_init_thread_affinity
1791 on it for each thread before passing the attribute to pthread_create.
1792 * config/linux/affinity.c: New file.
1793 * config/posix/affinity.c: New file.
1794 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1795 * configure: Rebuilt.
1796 * config.h.in: Rebuilt.
1797 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1798 * Makefile.in: Rebuilt.
1800 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1802 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1804 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1805 and use it if found.
1807 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1809 * testsuite/config/default.exp: New file.
1810 * testsuite/lib/libgomp.exp: New file.
1811 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1812 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1813 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1814 (libgomp_load): Remove.
1815 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1816 always_ld_library_path, not ld_library_path. Set additional_flags
1817 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1818 (target_compile): Do not call libgomp_init. Append lang_library_path
1819 and lang_link_flags to options.
1820 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1821 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1823 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1824 always_ld_library_path. Set LD_LIBRARY_PATH here.
1825 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1826 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1827 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1829 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1830 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1831 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1832 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1833 * testsuite/libgomp.c/atomic-10.c: Ditto.
1835 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1837 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1838 dg-final cleanup-modules line.
1839 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1840 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1841 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1842 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1843 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1844 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1845 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1847 2007-03-18 Andreas Schwab <schwab@suse.de>
1849 * acinclude.m4: Adjust regular expression for ld version
1851 * configure: Regenerate.
1853 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1855 * Makefile.am: Add install-pdf target as copied from
1856 automake v1.10 rules.
1857 * Makefile.in: Regenerate
1859 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1862 * configure: Regenerate.
1865 * testsuite/libgomp.c++/pr30703.C: New test.
1867 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1870 2006-07-05 Eric Christopher <echristo@apple.com>
1871 * configure.ac: Depend addition of -pthread on host OS.
1872 * configure: Regenerate.
1874 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1876 * libgomp.texi: Fix spacing after abbreviations.
1878 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1881 * configure.ac: Add check for makeinfo
1882 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1883 if an appropiate version of makeinfo is found.
1884 * aclocal.m4: Regenerated.
1885 * configure: Regenerated.
1886 * Makefile.in: Regenerated.
1887 * testsuite/Makefile.in: Regenerated.
1889 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1892 * libgomp.texi: More about implementation-dependent settings.
1894 2007-01-26 Tobias Burnus <burnus@net-b.de>
1896 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1898 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1901 * testsuite/libgomp.c/pr30494.c: New test.
1903 2007-01-15 Tom Tromey <tromey@redhat.com>
1905 * configure: Rebuilt.
1906 * configure.ac: Fixed comment.
1908 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1910 * libgomp.texi: Document implementation specific default values of
1911 environment variables.
1913 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1916 * libgomp.texi: New file.
1917 * configure.ac: Add --enable-generated-files-in-srcdir option.
1918 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1920 * Makefile.in: Regenerated.
1921 * config.h.in: Regenerated.
1922 * testsuite/Makefile.in: Regenerated.
1925 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1928 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1930 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1932 * configure: Regenerate.
1934 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1937 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1938 start if there shouldn't be any loop iterations.
1939 (gomp_loop_ordered_static_start): Remove start == end test.
1940 * testsuite/libgomp.c/pr29947-1.c: New test.
1941 * testsuite/libgomp.c/pr29947-2.c: New test.
1943 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1945 * configure.tgt: Force initial-exec TLS model on Linux only.
1947 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1949 * configure: Regenerated.
1951 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1953 * env.c (parse_schedule): Reject out of range values.
1954 (parse_unsigned_long): Reject out of range, negative or zero values.
1956 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1959 * testsuite/libgomp.fortran/pr29629.f90: New test.
1961 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1964 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1965 * config/posix95: New directory.
1966 * config/posix95/omp-lock.h: New file.
1967 * config/posix95/lock.c: Likewise.
1969 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1971 * aclocal.m4: Regenerate.
1972 * configure: Regenerate.
1974 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1976 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1979 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1981 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1983 * configure: Regenerate.
1984 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1986 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1990 * testsuite/libgomp.c/nestedfn-4.c: New test.
1991 * testsuite/libgomp.c/nestedfn-5.c: New test.
1992 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1995 * testsuite/libgomp.fortran/condinc1.f: New test.
1996 * testsuite/libgomp.fortran/condinc2.f: New test.
1997 * testsuite/libgomp.fortran/condinc3.f90: New test.
1998 * testsuite/libgomp.fortran/condinc4.f90: New test.
1999 * testsuite/libgomp.fortran/condinc1.inc: New file.
2001 2006-09-18 Tom Tromey <tromey@redhat.com>
2003 * configure: Rebuilt.
2005 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2008 PR preprocessor/14634
2009 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2011 * configure: Regenerate.
2013 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2015 * testsuite/libgomp.fortran/reduction3.f90: Change
2016 -2147483648 to -huge(i)-1 to avoid overflow.
2017 * testsuite/libgomp.fortran/reduction4.f90: Change
2018 Z'ffffffff' to not(0) to avoid overflow.
2020 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2023 * Makefile.am (libsubincludedir): New.
2024 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2025 * Makefile.in: Regenerate.
2027 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2030 * env.c: Include ctype.h.
2031 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2032 leading and/or trailing whitespace and compare strings case
2035 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2038 * testsuite/libgomp.fortran/pr28390.f: New test.
2040 2006-07-05 Eric Christopher <echristo@apple.com>
2042 * configure.ac: Depend addition of -pthread on host OS.
2043 * configure: Regenerate.
2045 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2047 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2048 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2051 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2055 * configure.ac: If neither --enable-linux-futex nor
2056 --disable-linux-futex is passed, determine the default by checking
2057 for compiling and/or running against NPTL. With --enable-linux-futex,
2058 check if SYS_gettid and SYS_futex are defined.
2059 * configure: Rebuilt.
2061 2006-06-14 Richard Henderson <rth@redhat.com>
2064 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2065 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2067 2006-06-09 Richard Henderson <rth@redhat.com>
2069 * env.c (gomp_nthreads_var): Change to unsigned long.
2070 (gomp_run_sched_chunk): Likewise.
2071 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2072 (initialize_env): Initialize gomp_thread_attr.
2073 * libgomp.h (gomp_nthreads_var): Update decl.
2074 (gomp_run_sched_chunk): Likewise.
2075 (gomp_thread_attr): Declare.
2076 * team.c (gomp_thread_attr): Export.
2077 (initialize_team): Don't initialize it.
2079 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2082 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2083 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2085 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2087 * config/mingw32/time.c: New file.
2088 * configure.tgt: Use it.
2090 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2092 * Makefile.am: Add install-html target. Add install-html to .PHONY
2093 * Makefile.in: Regenerate.
2095 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2098 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2099 * testsuite/libgomp.c/critical-1.c: Likewise.
2100 * testsuite/libgomp.c/loop-1.c: Likewise.
2101 * testsuite/libgomp.c/loop-2.c: Likewise.
2102 * testsuite/libgomp.c/single-1.c: Likewise.
2103 * testsuite/libgomp.c/ordered-1.c: Likewise.
2104 * testsuite/libgomp.c/ordered-2.c: Likewise.
2106 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2109 * libgomp.fortran/pr27416-1.f90: New test.
2111 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2114 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2115 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2117 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2120 * testsuite/libgomp.c/pr26943-1.c: New test.
2121 * testsuite/libgomp.c/pr26943-2.c: New test.
2122 * testsuite/libgomp.c/pr26943-3.c: New test.
2123 * testsuite/libgomp.c/pr26943-4.c: New test.
2124 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2125 * testsuite/libgomp.c++/pr26943.C: New test.
2127 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2130 * testsuite/libgomp.c++/pr27337.C: New test.
2132 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2135 * testsuite/libgomp.c/pr26171.c: New test.
2137 2006-04-25 Richard Henderson <rth@redhat.com>
2140 * configure.ac: Use GCC_CHECK_TLS.
2141 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2142 * Makefile.in, aclocal.m4, configure: Regenerate.
2144 2006-04-10 Matthias Klose <doko@debian.org>
2146 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2147 directory names containing underscores.
2149 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2152 * testsuite/libgomp.c++/pr26691.C: New test.
2154 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2156 * testsuite/libgomp.fortran/retval2.f90: New test.
2158 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2160 * testsuite/libgomp.c++: New directory.
2162 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2164 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2165 * config/posix/sem.c: Implement the above.
2167 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2169 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2170 define HAVE_BROKEN_POSIX_SEMAPHORES.
2171 * configure: Rebuilt.
2172 * config.h.in: Rebuilt.
2174 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2177 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2178 for the other pthread check.
2179 * configure: Regenerate.
2180 * config.h.in: Regenerate.
2182 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2186 * Makefile.am (fincludedir): New variable.
2187 (nodist_include_HEADERS): Remove Fortran files.
2188 (nodist_finclude_HEADERS): New variable.
2189 * Makefile.in: Regenerated.
2191 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2193 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2194 Remove tests for returning assumed character length arrays.
2196 2006-02-12 Roger Sayle <roger@eyesopen.com>
2197 John David Anglin <dave@hiauly1.hia.nrc.ca>
2200 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2202 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2204 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2206 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2208 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2209 part of LD_LIBRARY_PATH manually.
2211 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2214 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2217 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2220 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2221 * configure.ac (PERL): Don't set.
2222 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2223 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2224 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2225 * omp.h.in: Wrap the new configure substitutions with @ characters.
2226 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2227 * aclocal.m4, configure, Makefile.in: Regenerate.
2228 * mkomp_h.pl: Delete.
2230 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2233 * configure.ac: Use GCC_HEADER_STDINT.
2234 * libgomp.h: Include gstdint.h.
2235 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2236 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2238 2006-01-24 Richard Henderson <rth@redhat.com>
2241 * configure.ac: Add AM_MAINTAINER_MODE.
2242 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2244 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2246 * Makefile.in: Regenerate.
2247 * testsuite/Makefile.in: Regenerate.
2248 * aclocal.m4: Regenerate.
2250 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2252 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2254 * configure.ac: Add check for loadavg.h.
2255 (link_gomp): Adjust comment.
2256 * configure: Regenerate.
2257 * config.h.in: Regenerate.
2259 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2262 * configure.ac: Remove check for alloca.h.
2263 * configure: Regenerate.
2264 * config.h.in: Regenerate.
2265 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2266 * team.c: Remove use of alloca.h.
2267 Call gomp_alloca instead of alloca.
2269 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2272 * team.c: Add include of alloca.h.
2273 * configure.ac: Add check for alloca.h.
2274 * configure: Regenerate.
2275 * config.h.in: Regenerate.
2277 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2280 * testsuite/libgomp.fortran/pr25219.f90: New test.
2282 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2284 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2285 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2286 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2287 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2288 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2289 testsuite/libgomp.fortran/threadprivate1.f90,
2290 testsuite/libgomp.fortran/threadprivate2.f90,
2291 testsuite/libgomp.fortran/threadprivate3.f90,
2292 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2293 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2294 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2295 effective-target to TLS runtime.
2297 * testsuite/libgomp.fortran/pr25162.f: Require
2298 effective-target TLS runtime.
2300 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2302 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2303 * testsuite/libgomp.c/nestedfn-3.c: New test.
2305 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2308 * testsuite/libgomp.fortran/pr25162.f: New test.
2310 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2312 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2313 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2315 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2317 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2318 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2319 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2320 single.c, team.c, work.c, config/linux/alpha/futex.h,
2321 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2322 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2323 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2324 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2325 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2326 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2327 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2330 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2332 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2333 to nodist_noinst_HEADERS.
2334 * Makefile.in: Rebuilt.
2336 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2337 add integer count field.
2338 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2339 omp_nest_lock_t type change.
2340 (omp_init_nest_lock): Likewise. Initialize count to 0.
2341 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2343 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2345 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2346 Increment count if successful and return the new nesting level.
2347 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2348 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2349 * testsuite/libgomp.c/lib-1.c: New test.
2350 * testsuite/libgomp.fortran/lib1.f90: New test.
2351 * testsuite/libgomp.fortran/lib2.f: New test.
2352 * testsuite/libgomp.fortran/lib3.f: New test.
2354 2005-11-17 Richard Henderson <rth@redhat.com>
2357 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2358 * configure.ac (link_gomp): New. Substitute it.
2359 (AC_CONFIG_FILES): Add libgomp.spec.
2360 * libgomp.spec.in: New file.
2361 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2362 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2364 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2366 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2367 reduction(-:var) behaving the same as reduction(+:var).
2368 * testsuite/libgomp.c/reduction-4.c: New test.
2370 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2372 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2373 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2374 testsuite/libgomp.c/copyin-3.c,
2375 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2376 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2377 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2378 testsuite/libgomp.c++/pr24455.C,
2379 testsuite/libgomp.fortran/threadprivate1.f90,
2380 testsuite/libgomp.fortran/threadprivate2.f90,
2381 testsuite/libgomp.fortran/threadprivate3.f90,
2382 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2383 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2384 testsuite/libgomp.fortran/omp_parse3.f90: Require
2385 effective-target TLS.
2387 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2391 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2394 * team.c (initialize_team): Pass NULL rather than free as
2395 pthread_key_create destructor. Initialize thread specific data
2396 pointer in initial thread to a static local variable rather than
2399 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2401 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2402 its location to ld_library_path.
2404 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2406 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2408 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2410 * testsuite/libgomp.c: Rename from libgomp.dg.
2412 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2414 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2415 threadprivate variable 'i'.
2417 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2419 * config/linux/s390/futex.h: New file.
2420 * configure.tgt: Use it.
2422 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2423 before the parallel.
2425 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2428 * testsuite/libgomp.c++/master-1.C: New test.
2430 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2432 * testsuite/libgomp.dg/copyin-3.c: New test.
2434 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2436 * testsuite/libgomp.fortran/retval1.f90: New test.
2437 * testsuite/libgomp.fortran/vla7.f90: New test.
2439 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2441 * testsuite/libgomp.fortran/vla2.f90: New test.
2442 * testsuite/libgomp.fortran/vla3.f90: New test.
2443 * testsuite/libgomp.fortran/vla4.f90: New test.
2444 * testsuite/libgomp.fortran/vla5.f90: New test.
2445 * testsuite/libgomp.fortran/vla6.f90: New test.
2447 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2449 * config/linux/sparc/futex.h: New file.
2450 * configure.tgt: Use it.
2451 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2453 * critical.c: Include stdlib.h.
2454 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2455 ignoring return value.
2456 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2457 LIBGOMP_CHECK_SYNC_BUILTINS check.
2458 * configure: Rebuilt.
2460 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2462 * testsuite/libgomp.fortran/vla1.f90: New test.
2464 2005-10-31 Richard Henderson <rth@redhat.com>
2466 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2467 setting 's' in different threads.
2469 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2471 * libgomp.h (attribute_hidden, ialias): Define.
2472 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2473 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2474 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2475 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2476 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2477 omp_test_lock, omp_test_nest_lock): Likewise.
2478 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2479 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2480 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2481 omp_test_lock, omp_test_nest_lock): Likewise.
2482 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2483 omp_get_dynamic, omp_get_nested): Likewise.
2484 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2485 omp_get_thread_num, omp_in_parallel): Likewise.
2486 * fortran.c (ialias_redirect): Define.
2487 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2488 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2489 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2490 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2491 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2492 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2493 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2494 omp_get_wtime): Add ialias_redirect.
2496 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2498 * fortran.c: Include stdlib.h.
2500 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2502 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2503 * Makefile.in: Regenerated.
2505 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2507 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2508 * libgomp_f.h.in (omp_check_defines): New function.
2509 * env.c: Include libgomp_f.h.
2510 (initialize_env): Call omp_check_defines.
2512 * testsuite/libgomp.dg/copyin-2.c: New test.
2513 * testsuite/libgomp.c++/copyin-2.C: New test.
2514 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2516 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2517 * testsuite/libgomp.fortran/sharing2.f90: New test.
2519 * testsuite/libgomp.dg/copyin-1.c: New test.
2520 * testsuite/libgomp.c++/copyin-1.C: New test.
2522 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2524 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2526 * testsuite/libgomp.fortran/workshare1.f90: New test.
2528 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2530 * libgomp.fortran/sharing1.f90: New test.
2532 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2535 * testsuite/libgomp.c++/loop-7.C: New test.
2537 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2539 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2540 * testsuite/libgomp.fortran/reduction6.f90: New test.
2541 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2543 2005-10-23 Richard Henderson <rth@redhat.com>
2545 * testsuite/libgomp.c++/ctor-1.C: New.
2546 * testsuite/libgomp.c++/ctor-2.C: New.
2547 * testsuite/libgomp.c++/ctor-3.C: New.
2548 * testsuite/libgomp.c++/ctor-4.C: New.
2549 * testsuite/libgomp.c++/ctor-5.C: New.
2550 * testsuite/libgomp.c++/ctor-6.C: New.
2551 * testsuite/libgomp.c++/ctor-7.C: New.
2552 * testsuite/libgomp.c++/ctor-8.C: New.
2553 * testsuite/libgomp.c++/ctor-9.C: New.
2555 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2558 * testsuite/libgomp.c++/pr24455-1.C: New test.
2559 * testsuite/libgomp.c++/pr24455.C: New test.
2560 * testsuite/libgomp.dg/pr24455-1.c: New test.
2561 * testsuite/libgomp.dg/pr24455.c: New test.
2563 2005-10-20 Richard Henderson <rth@redhat.com>
2565 * testsuite/libgomp.c++/loop-6.C: New.
2566 * testsuite/libgomp.dg/loop-3.c: New.
2568 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2570 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2572 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2575 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2577 * testsuite/libgomp.fortran/jacobi.f: New test.
2579 2005-10-19 Richard Henderson <rth@redhat.com>
2581 * configure.tgt (i?86-linux): Default to with_arch instead of
2582 CFLAGS. Add -mtune to match target_cpu.
2583 (x86_64-linux): Tune to i686.
2585 * fortran.c (omp_test_nest_lock_): Fix typo.
2587 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2589 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2590 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2591 * testsuite/libgomp.dg/ordered-3.c: New test.
2593 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2594 Remove volatile keyword.
2596 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2597 in COMMON block to avoid warnings on 64-bit targets.
2599 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2601 * testsuite/libgomp.dg/shared-3.c: New test.
2603 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2605 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2606 * testsuite/libgomp.fortran/reduction5.f90: New test.
2608 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2610 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2612 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2613 flush loop now that __sync_synchronize has proper memory barrier.
2614 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2615 Add -ffixed-form to dg-options.
2617 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2619 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2620 from subdirectories.
2621 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2622 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2623 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2624 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2625 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2626 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2627 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2628 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2629 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2630 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2631 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2632 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2633 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2634 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2635 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2636 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2637 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2638 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2639 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2640 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2641 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2642 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2643 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2644 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2645 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2647 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2649 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2650 lang_library_path exists. Use find instead of glob to gather tests.
2651 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2653 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2655 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2656 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2657 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2658 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2659 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2660 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2661 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2662 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2663 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2664 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2665 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2666 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2667 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2669 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2671 * testsuite/libgomp.dg/vla-1.c: New test.
2673 * testsuite/libgomp.fortran/reference2.f90: New test.
2675 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2676 declaration of omp_get_thread_num.
2677 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2680 * testsuite/libgomp.fortran/reduction1.f90: New test.
2681 * testsuite/libgomp.fortran/reduction2.f90: New test.
2682 * testsuite/libgomp.fortran/reduction3.f90: New test.
2683 * testsuite/libgomp.fortran/reduction4.f90: New test.
2685 2005-10-13 Richard Henderson <rth@redhat.com>
2687 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2688 * Makefile.in: Regenerate.
2689 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2690 * libgomp.h: Include bar.h.
2691 (struct gomp_barrier): Remove.
2692 (struct gomp_team): Add barrier. Replace master_barrier with
2693 master_release. Replace threads with ordered_release.
2694 (struct gomp_thread): Replace barrier with release.
2695 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2696 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2697 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2698 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2699 (GOMP_single_copy_end): Likewise.
2700 * team.c (gomp_threads_dock): New.
2701 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2702 (gomp_thread_start): Use gomp_barrier_wait.
2703 (new_team, free_team): Update for gomp_team changes.
2704 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2705 (gomp_team_end): Use gomp_barrier_wait.
2706 (initialize_team): Update for gomp_thread changes.
2707 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2708 (gomp_work_share_end_nowait): Use atomic ops when available.
2709 * config/linux/bar.c, config/linux/bar.h: New files.
2710 * config/posix/bar.c, config/posix/bar.h: New files.
2712 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2714 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2715 * testsuite/libgomp.dg/single-2.c: New test.
2717 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2718 lang_link_flags): Unset, so that they aren't inherited from previously
2721 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2723 2005-10-12 Richard Henderson <rth@redhat.com>
2725 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2726 (libgomp_init): Use lang_test_file, lang_library_path, and
2727 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2729 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2730 (lang_test_file, lang_link_flags): New.
2731 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2733 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2734 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2735 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2736 testsuite/libgomp.c++/parallel-1.C,
2737 testsuite/libgomp.c++/reduction-1.C,
2738 testsuite/libgomp.c++/reduction-2.C,
2739 testsuite/libgomp.c++/reduction-3.C,
2740 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2741 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2742 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2743 New files, largely cribbed from the C testsuite.
2745 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2747 * testsuite/libgomp.fortran/character1.f90: New test.
2748 * testsuite/libgomp.fortran/character2.f90: New test.
2750 * testsuite/libgomp.dg/nested-1.c: New test.
2751 * testsuite/libgomp.dg/nested-2.c: New test.
2752 * testsuite/libgomp.fortran/do1.f90: New test.
2753 * testsuite/libgomp.fortran/do2.f90: New test.
2755 * testsuite/libgomp.fortran/reference1.f90: New test.
2757 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2759 * testsuite/libgomp.dg/reduction-1.c: New test.
2760 * testsuite/libgomp.dg/reduction-2.c: New test.
2761 * testsuite/libgomp.dg/reduction-3.c: New test.
2763 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2765 * testsuite/libgomp.dg/atomic-1.c: New test.
2766 * testsuite/libgomp.dg/atomic-2.c: New test.
2768 2005-10-09 Richard Henderson <rth@redhat.com>
2770 * critical.c (atomic_lock): New.
2771 (initialize_critical): Initialize it.
2772 (GOMP_atomic_start, GOMP_atomic_end): New.
2773 * libgomp.map: Export them.
2774 * libgomp_g.h: Declare them.
2776 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2778 2005-10-02 Richard Henderson <rth@redhat.com>
2780 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2781 to XCFLAGS instead of CFLAGS.
2783 2005-09-30 Richard Henderson <rth@redhat.com>
2785 * configure.ac: Determine whether -pthread or -lpthread is needed.
2786 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2787 * Makefine.in, configure: Rebuild.
2789 2005-09-28 Richard Henderson <rth@redhat.com>
2791 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2792 * testsuite/libgomp.dg/omp-single-3.c: New test.
2794 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2796 * testsuite/libgomp.dg/omp-single-2.c: New test.
2797 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2799 2005-09-27 Richard Henderson <rth@redhat.com>
2801 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2802 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2804 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2806 * testsuite/libgomp.dg/omp-loop03.c: New test.
2808 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2810 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2812 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2814 * testsuite/libgomp.dg/omp-single-1.c: New test.
2815 * testsuite/libgomp.dg/shared-1.c: Return 0.
2816 Add prototype for abort.
2817 * testsuite/libgomp.dg/shared-2.c: Likewise.
2819 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2821 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2824 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2826 * testsuite/libgomp.dg/shared-1.c: New test.
2827 * testsuite/libgomp.dg/shared-2.c: New test.
2829 2005-09-24 Richard Henderson <rth@redhat.com>
2831 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2833 2005-09-24 Richard Henderson <rth@redhat.com>
2835 * iter.c (gomp_iter_static_next): Round up when computing number
2836 of iterations. Don't bother distributing a remainder equally.
2838 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2839 Don't call srand. Zero b before testing.
2842 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2844 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2845 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2847 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2849 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2850 without !$omp end do, followed immediately by subroutine end.
2852 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2854 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2856 2005-09-22 Richard Henderson <rth@redhat.com>
2858 * critical.c (GOMP_critical_name_start): Change argument to void**.
2859 Reuse the pointer space if the mutex fits.
2860 (GOMP_critical_name_end): Likewise.
2861 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2862 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2863 (GOMP_critical_name_end): Likewise.
2864 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2865 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2867 2005-09-20 Richard Henderson <rth@redhat.com>
2869 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2870 (create_lock_lock): New.
2871 (initialize_critical): Initialize it.
2872 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2873 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2875 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2877 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2879 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2881 * testsuite/libgomp.dg/omp-loop01.c: New test.
2882 * testsuite/libgomp.dg/omp-loop02.c: New test.
2884 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2886 * configure.ac (AC_PROG_FC): Add.
2887 (USE_FORTRAN): New automake conditional.
2888 * configure: Rebuilt.
2889 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2890 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2891 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2892 Add rules to build them.
2893 * Makefile.in: Rebuilt.
2894 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2896 * libgomp.map: Add Fortran wrappers.
2897 * libgomp_f.h.in: New file.
2898 * omp_lib.h.in: New file.
2899 * omp_lib.f90.in: New file.
2900 * fortran.c: New file.
2901 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2902 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2903 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2904 libgfortran has been built.
2905 * testsuite/libgomp.fortran/fortran.exp: New file.
2906 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2907 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2908 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2909 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2910 * testsuite/libgomp.fortran/omp_hello.f: New test.
2911 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2912 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2913 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2914 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2915 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2916 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2917 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2918 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2920 2005-08-30 Richard Henderson <rth@redhat.com>
2922 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2923 function for when aliases are not usable.
2924 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2925 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2926 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2927 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2928 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2929 GOMP_loop_ordered_guided_next): Likewise.
2930 * ordered.c (GOMP_ordered_start): Likewise.
2932 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2934 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2935 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2936 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2937 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2938 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2939 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2940 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2941 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2942 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2944 2005-07-07 Eric Christopher <echristo@redhat.com>
2945 Diego Novillo <dnovillo@redhat.com>
2947 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2948 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2950 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2951 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2952 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2953 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2954 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2955 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2956 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2958 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2960 * TOPLEVEL.patch: Remove.
2962 2005-05-16 Richard Henderson <rth@redhat.com>
2964 * configure.ac: Test for clock_gettime.
2965 * config.h.in, configure: Rebuild.
2966 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2967 (omp_get_wtime): Use clock_gettime if available.
2968 (omp_get_wtick): Use clock_getres if available.
2970 2005-05-11 Richard Henderson <rth@redhat.com>
2972 * config/linux/ia64/futex.h: New file.
2973 * configure.tgt: Use it.
2975 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2977 2005-05-07 Richard Henderson <rth@redhat.com>
2979 * config/linux/powerpc/futex.h: New file.
2980 * configure.tgt: Use it.
2982 * config/linux/i486/futex.h: Merge ...
2983 * config/linux/x86_64/futex.h: ... into ...
2984 * config/linux/x86/futex.h: ... here.
2985 * configure.tgt: Update to match.
2987 2005-05-06 Richard Henderson <rth@redhat.com>
2989 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2990 * config/linux/i486/futex.h: Likewise.
2991 * config/linux/x86_64/futex.h: Likewise.
2993 * config/linux/lock.c: New file.
2994 * config/linux/omp-lock.h: New file.
2996 * critical.c, env.h: Don't include omp.h
2997 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2998 * config/posix/time.c: Likewise.
2999 * config/posix/omp-lock.h: New file.
3000 * libgomp.h: Include omp-lock.h and omp.h.
3001 * Makefile.am (nodist_include_HEADERS): New.
3003 * configure.ac (PERL): New.
3004 * mkomp_h.pl: New file.
3005 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3007 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3009 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3010 build directory. Re-add -march=i486 hack.
3012 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3013 (libgomp_link_flags): Remove.
3014 (libgomp_initialized): Remove.
3015 (libgomp_init): Don't protect from reinitialization. Copy code
3016 from libstdc++ for getting the multilib set correctly.
3018 2005-05-05 Richard Henderson <rth@redhat.com>
3020 * config/linux/alpha/futex.h: New file.
3021 * configure.tgt (alpha*-*-linux*): Use it.
3023 * config/posix/mutex.c: New file.
3024 * config/posix/sem.c: Use libgomp.h.
3026 * configure.tgt (x86_64-linux): Also test CC for -m32.
3027 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3029 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3032 * Makefile.am (SUBDIRS): New.
3033 (libgomp_la_LDFLAGS): Add -lpthread.
3034 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3035 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3037 * libgomp_g.h: New file.
3038 * libgomp.h: Split out all public declarations to libgomp_g.h.
3039 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3040 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3041 * config/linux/sem.h: Likewise.
3042 * config/posix/sem.h: Likewise.
3044 * Makefile.am (AM_LDFLAGS): New.
3045 (libgomp_version_script): Split out from ...
3046 (libgomp_la_LDFLAGS): ... here.
3047 (libgomp_version_info): New.
3048 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3049 (LIBGOMP_ENABLE): New.
3050 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3051 (LIBGOMP_ENABLE_SYMVERS): New.
3052 * configure.ac (AC_INIT): Version 1.0.
3053 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3054 (enable-linux-futex): Likewise. Rename from enable-futex.
3055 (libtool_VERSION): New.
3056 (LIBGOMP_ENABLE_SYMVERS): Use it.
3057 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3058 * Makefile.in, aclocal.m4, configure: Rebuild.
3060 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3061 (gomp_mutex_unlock_slow): Fix typo.
3062 * config/linux/sem.c: Similarly.
3063 (gomp_sem_post_slow): Fix typo.
3064 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3065 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3066 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3068 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3069 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3070 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3071 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3072 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3073 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3074 LDFLAGS. Pull enable_futex check to top-level.
3075 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3076 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3078 First attempt at real configury.
3079 * Makefile, config.h: Remove file.
3080 * Makefile.am, Makefile.in: New file.
3081 * acinclude.m4 aclocal.m4: New file.
3082 * configure.ac, configure.tgt, configure: New file.
3084 * config/posix/lock.c: Rename from sys-lock.c.
3085 * config/posix/mutex.h: Rename from sys-mutex.h.
3086 * config/posix/sem.c: Rename from sys-sem.c.
3087 * config/posix/sem.h: Rename from sys-sem.h.
3088 * config/posix/proc.c: Rename from sys-proc.c.
3089 * config/posix/time.c: Rename from sys-proc.c.
3091 * config/linux/mutex.c: New file.
3092 * config/linux/mutex.h: New file.
3093 * config/linux/sem.c: New file.
3094 * config/linux/sem.h: New file.
3095 * config/linux/i486/futex.h: New file.
3096 * config/linux/x86_64/futex.h: New file.
3098 2005-05-04 Richard Henderson <rth@redhat.com>
3100 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3101 * libgomp.h: Declare them.
3102 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3103 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3105 2005-05-04 Richard Henderson <rth@redhat.com>
3107 * libgomp-1 code drop
3109 2005-05-04 Richard Henderson <rth@redhat.com>
3111 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3112 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3113 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3114 (gomp_iter_static_next): Update.
3115 (gomp_ordered_static_next): Update.
3116 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3117 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3118 totally empty range.
3119 (gomp_loop_ordered_static_next): Refine test for calling
3120 gomp_ordered_static_next.
3121 * testsuite/ordered-1.c: Add case for more threads than iterations.
3123 * iter.c (gomp_iter_runtime_next_locked): Remove.
3124 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3125 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3126 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3127 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3128 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3129 gomp_loop_ordered_guided_next): Downcase name, make static, add
3130 an external alias with the old name.
3131 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3132 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3133 switch and call one of the above static functions.
3134 * libgomp.h: Update.
3136 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3137 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3138 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3139 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3140 GOMP_loop_ordered_guided_start): Update to match.
3141 * sections.c (GOMP_sections_start): Likewise.
3142 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3144 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3145 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3146 Use bounds check instead of modulus.
3147 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3148 (gomp_ordered_last): Don't sync with ordered_owner here.
3149 (gomp_ordered_next): Likewise.
3150 (gomp_ordered_static_loop_next): Likewise.
3151 * loop.c, libgomp.h: Update to match.
3153 * libgomp.h (GOMP_barrier): Declare.
3155 * testsuite/barrier-1.c: New file.
3156 * testsuite/critical-1.c: New file.
3157 * testsuite/ordered-2.c: New file.
3158 * testsuite/ordered-1.c: New file.
3159 * testsuite/sections-1.c: New file.
3160 * testsuite/single-1.c: New file.
3161 * testsuite/Makefile (TESTS): Add them.
3163 2005-05-04 Richard Henderson <rth@redhat.com>
3165 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3166 * loop.c (GOMP_loop_static_start): If not the startup thread,
3167 acquire the mutex to wait for initialization complete.
3168 (GOMP_loop_ordered_static_start): Likewise.
3169 (GOMP_loop_ordered_runtime_start): Likewise.
3170 (GOMP_loop_ordered_static_first): Remove.
3171 (GOMP_loop_ordered_dynamic_first): Remove.
3172 (GOMP_loop_ordered_guided_first): Remove.
3173 (GOMP_loop_ordered_runtime_first): Remove.
3174 * ordered.c (gomp_ordered_loop_first): Post to own release when
3175 we're the first thread.
3176 (gomp_ordered_loop_last): Wait on release if not owner.
3177 (gomp_ordered_loop_next): Likewise.
3178 (gomp_ordered_static_loop_init): New.
3179 (gomp_ordered_static_loop_next): Use ordered_owner.
3180 (GOMP_ordered_start): Likewise.
3181 * work.c (gomp_new_work_share): Initialize ordered_owner.
3183 2005-05-03 Richard Henderson <rth@redhat.com>
3185 * Makefile (OPT): New.
3188 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3189 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3190 * libgomp.h, libgomp.map, NOTES: Update to match.
3192 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3193 Add initialized and thr members.
3194 (gomp_thread_start): Pause when initially spawned to wait for
3195 the whole team to be created.
3196 (gomp_team_start): Release team members at the end.
3198 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3199 (f_foo_1): Use GOMP_loop_end.
3200 (f_foo_2): Use GOMP_loop_end_nowait.
3202 * testsuite/loop-2.c: New file.
3203 * testsuite/Makefile (TESTS): Add it.
3205 2005-05-03 Richard Henderson <rth@redhat.com>
3207 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3208 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3209 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3212 * testsuite/Makefile: New file.
3213 * testsuite/loop-1.c: New file.
3215 2005-05-03 Richard Henderson <rth@redhat.com>
3217 Initial implementation and checkin.