1 2011-12-02 Alan Modra <amodra@gmail.com>
3 * config/linux/affinity.c: Use atomic rather than sync builtin.
4 * config/linux/lock.c: Likewise.
5 * config/linux/ptrlock.h: Likewise.
6 * config/linux/ptrlock.c: Likewise.
7 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
11 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
12 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
14 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
15 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
18 2011-11-30 Alan Modra <amodra@gmail.com>
21 * config/linux/bar.h: Use atomic rather than sync builtins.
22 * config/linux/bar.c: Likewise. Add missing acquire
23 synchronisation on generation field.
24 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
27 2011-11-30 Alan Modra <amodra@gmail.com>
29 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
30 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
31 * config/linux/mutex.h: Use atomic rather than sync builtins.
32 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
33 * config/linux/omp-lock.h: Comment fix.
34 * config/linux/arm/mutex.h: Delete.
35 * config/linux/powerpc/mutex.h: Delete.
36 * config/linux/ia64/mutex.h: Delete.
37 * config/linux/mips/mutex.h: Delete.
39 2011-11-30 Alan Modra <amodra@gmail.com>
42 * config/linux/sem.h: Rewrite.
43 * config/linux/sem.c: Rewrite.
45 2011-11-28 Richard Henderson <rth@redhat.com>
47 * libgomp.h (enum memmodel): New.
49 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
51 * configure: Regenerate.
53 2011-10-10 Matthias Klose <doko@ubuntu.com>
55 * config/posix95: Remove empty directory.
57 2011-08-26 Jakub Jelinek <jakub@redhat.com>
59 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
61 2011-08-19 Jakub Jelinek <jakub@redhat.com>
64 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
65 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
67 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
69 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
71 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
74 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
76 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
78 * config/linux/proc.h: New.
79 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
80 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
81 (gomp_init_num_threads): Update call to cpuset_popcount.
82 (get_num_procs): Ditto.
83 * config/linux/affinity.c (gomp_init_affinity): Call
86 2011-08-02 Jakub Jelinek <jakub@redhat.com>
90 * omp.h.in (omp_in_final): New prototype.
91 * omp_lib.f90.in (omp_in_final): New interface.
92 (omp_integer_kind, omp_logical_kind): Remove
93 and replace all its uses in the module with 4.
94 (openmp_version): Change to 201107.
95 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
96 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
97 kind for the parameters.
98 (omp_in_final): New external.
99 (openmp_version): Change to 201107.
100 * task.c (omp_in_final): New function.
101 (gomp_init_task): Initialize final_task.
102 (GOMP_task): Remove unused attribute from flags. Handle final
104 (GOMP_taskyield): New function.
105 (omp_in_final): Return true if if (false) or final (true) task
106 or descendant of final (true).
107 * fortran.c (omp_in_final_): New function.
108 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
109 (GOMP_3.0): Export GOMP_taskyield.
110 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
112 (parse_unsigned_long_list): New function.
113 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
114 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
115 even if parse_affinity returned false.
116 * config/linux/affinity.c (gomp_init_affinity): Handle
117 gomp_cpu_affinity_len == 0.
118 * libgomp_g.h (GOMP_taskyield): New prototype.
119 * libgomp.h (struct gomp_task): Add final_task field.
120 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
121 * team.c (gomp_team_start): Override new task's nthreads_var icv
122 if list form OMP_NUM_THREADS has been used and it has value for
123 the new nesting level.
125 * testsuite/libgomp.c/atomic-11.c: New test.
126 * testsuite/libgomp.c/atomic-12.c: New test.
127 * testsuite/libgomp.c/atomic-13.c: New test.
128 * testsuite/libgomp.c/atomic-14.c: New test.
129 * testsuite/libgomp.c/reduction-6.c: New test.
130 * testsuite/libgomp.c/task-5.c: New test.
131 * testsuite/libgomp.c++/atomic-2.C: New test.
132 * testsuite/libgomp.c++/atomic-3.C: New test.
133 * testsuite/libgomp.c++/atomic-4.C: New test.
134 * testsuite/libgomp.c++/atomic-5.C: New test.
135 * testsuite/libgomp.c++/atomic-6.C: New test.
136 * testsuite/libgomp.c++/atomic-7.C: New test.
137 * testsuite/libgomp.c++/atomic-8.C: New test.
138 * testsuite/libgomp.c++/atomic-9.C: New test.
139 * testsuite/libgomp.c++/task-8.C: New test.
140 * testsuite/libgomp.c++/reduction-4.C: New test.
141 * testsuite/libgomp.fortran/allocatable7.f90: New test.
142 * testsuite/libgomp.fortran/allocatable8.f90: New test.
143 * testsuite/libgomp.fortran/crayptr3.f90: New test.
144 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
145 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
146 * testsuite/libgomp.fortran/pointer1.f90: New test.
147 * testsuite/libgomp.fortran/pointer2.f90: New test.
148 * testsuite/libgomp.fortran/task4.f90: New test.
150 2011-08-02 Tobias Burnus <burnus@net-b.de>
152 * libgomp.texi: Update OpenMP spec references to 3.1.
153 (omp_in_final,OMP_PROC_BIND): New sections.
154 (OMP_NUM_THREADS): Document that the value can be now a list.
155 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
157 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
159 * config/linux/x86/futex.h: Check __x86_64__ instead of
162 2011-07-29 Jakub Jelinek <jakub@redhat.com>
166 * testsuite/libgomp.c/pr49897-1.c: New test.
167 * testsuite/libgomp.c/pr49897-2.c: New test.
168 * testsuite/libgomp.c/pr49898-1.c: New test.
169 * testsuite/libgomp.c/pr49898-2.c: New test.
171 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
173 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
174 for ia32 instead of ilp32.
176 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
177 * testsuite/libgomp.c/atomic-6.c: Likewise.
179 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
181 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
182 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
184 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
187 * config/osf/sem.h: New file.
188 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
190 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
193 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
196 2011-07-15 Jakub Jelinek <jakub@redhat.com>
198 * config/linux/wait.h (do_spin): New inline, largely copied
199 from do_wait, just don't do futex_wait here, instead return true if
201 (do_wait): Implement using do_spin.
202 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
204 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
205 __sync_bool_compare_and_swap, pass the oldval to
206 gomp_mutex_lock_slow.
207 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
208 If all mutex contenders are just spinning and not sleeping, don't
209 change state to 2 unnecessarily. Optimize the loop when state has
210 already become 2 to use just one atomic operation per loop instead
212 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
214 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
215 __sync_bool_compare_and_swap, pass the oldval to
216 gomp_mutex_lock_slow.
218 2011-06-22 Jakub Jelinek <jakub@redhat.com>
221 * iter.c (gomp_iter_static_next): For chunk size 0
222 only use n ceil/ nthreads size for the first
223 n % nthreads threads in the team instead of
224 all threads except for the last few ones which
225 get less work or none at all.
226 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
227 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
228 chunk argument, set run_sched_modifier to 0 for static
229 resp. 1 for other kinds. If chunk argument is 0
230 and not static, set value to 1.
232 2011-05-19 Jakub Jelinek <jakub@redhat.com>
235 * testsuite/libgomp.c++/pr49043.C: New test.
238 * testsuite/libgomp.c++/pr48869.C: New test.
240 2011-05-06 Jakub Jelinek <jakub@redhat.com>
243 * fortran.c: Include limits.h.
245 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
247 (omp_set_num_threads_8_, omp_set_schedule_8_,
248 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
249 omp_get_team_size_8_): Use TO_INT macro.
250 * testsuite/libgomp.fortran/pr48894.f90: New test.
252 2011-04-13 Jakub Jelinek <jakub@redhat.com>
255 * testsuite/libgomp.c/pr48591.c: New test.
257 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
260 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
261 * configure: Regenerate.
263 2011-02-27 Jakub Jelinek <jakub@redhat.com>
266 * testsuite/libgomp.fortran/task3.f90: New test.
268 2011-02-24 Tobias Burnus <burnus@net-b.de>
270 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
272 2011-02-23 Jakub Jelinek <jakub@redhat.com>
275 * libgomp.texi (omp_get_wtime): Don't say time in the past
278 2011-02-18 Jakub Jelinek <jakub@redhat.com>
281 * testsuite/libgomp.fortran/fortran.exp: Check for both
282 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
283 but $blddir != "", still append ${blddir}/${lang_library_path}
286 2011-02-16 Tobias Burnus <burnus@net-b.de>
289 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
290 of libquadmath.a before adding its libpath to ldflags.
292 2011-02-14 Jakub Jelinek <jakub@redhat.com>
295 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
296 to FUTEX_WAIT futex syscall.
297 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
299 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
301 * configure: Regenerate.
303 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
306 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
308 2011-01-16 Gerald Pfeifer
310 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
312 2010-12-14 Jakub Jelinek <jakub@redhat.com>
315 * libgomp.fortran/allocatable6.f90: New test.
317 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
320 * configure: Regenerate.
322 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
326 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
327 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
328 * aclocal.m4: Regenerate.
329 * configure: Regenerate.
330 * Makefile.in: Regenerate.
331 * testsuite/Makefile.in: Regenerate.
333 2010-12-02 Jakub Jelinek <jakub@redhat.com>
336 * libgomp.fortran/pr46753.f90: New test.
339 * env.c (initialize_env): Default to spin count 300000
340 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
344 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
345 at the end if sync builtins aren't supported.
347 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
349 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
351 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
355 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
357 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
359 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
360 Tobias Burnus <burnus@net-b.de>
364 * configure: Regenerate.
366 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
368 * config/linux/futex.h: New.
369 * config/linux/arm/mutex.h: New.
370 * configure.tgt (arm*-*-linux*): Add config path.
372 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
374 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
376 2010-09-23 Tobias Burnus <burnus@net-b.de>
378 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
379 Change Fortran datatype to LOGICAL.
380 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
381 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
383 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
385 * configure: Regenerate.
387 2010-07-26 Jakub Jelinek <jakub@redhat.com>
389 * libgomp.texi: Add function keyword to a couple of Fortran
390 interfaces, use integer instead of int for Fortran.
392 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
394 * libgomp.texi: Fix spelling and pasto problems throughout.
395 Adjust prototypes to match code.
397 2010-07-24 Tobias Burnus <burnus@net-b.de>
399 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
400 silence -fwhole-file warning.
402 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
404 * configure.tgt (*-*-solaris2.[56]*): Removed.
406 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
408 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
409 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
410 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
411 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
412 targetting solaris2*.
413 * configure: Regenerate.
414 * config.h.in: Regenerate.
416 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
417 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
418 Add libgomp_version_dep.
419 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
421 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
422 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
423 * Makefile.in: Regenerate.
425 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
426 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
427 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
428 to common block, protected by
429 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
431 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
433 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
435 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
438 * configure: Regenerate.
440 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
443 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
444 * configure: Regenerate.
445 * Makefile.in: Regenerate.
446 * testsuite/Makefile.in: Regenerate.
448 2010-04-26 Jakub Jelinek <jakub@redhat.com>
451 * testsuite/libgomp.c/pr43893.c: New test.
452 * testsuite/libgomp.c++/pr43893.C: New test.
454 2010-04-21 Jakub Jelinek <jakub@redhat.com>
457 * testsuite/libgomp.fortran/vla8.f90: New test.
459 2010-04-20 Jakub Jelinek <jakub@redhat.com>
462 * config/linux/affinity.c (gomp_init_affinity): Decrease
463 gomp_available_cpus if affinity mask confines the process to fewer
465 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
466 non-NULL, just return gomp_available_cpus.
469 * sections.c (gomp_sections_init): Initialize ws->mode.
471 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
473 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
474 not unused bar variable.
475 * configure: Regenerate.
477 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
479 * Makefile.in: Regenerate.
480 * aclocal.m4: Regenerate.
481 * testsuite/Makefile.in: Regenerate.
483 2010-03-22 Jakub Jelinek <jakub@redhat.com>
486 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
487 (initialize_env): Adjust callers.
488 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
489 when the argument is 0.
491 * testsuite/libgomp.c/pr42942.c: New test.
493 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
497 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
498 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
500 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
503 * testsuite/libgomp.c++/task-6.C: Likewise.
505 2010-01-28 Steve Ellcey <sje@cup.hp.com>
507 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
509 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
511 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
512 * configure: Regenerate.
514 2010-01-26 Jakub Jelinek <jakub@redhat.com>
517 * testsuite/libgomp.fortran/allocatable5.f90: New test.
519 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
521 * configure.ac: Test for executability of GFORTRAN.
522 * configure: Regenerate.
524 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
526 * configure: Regenerate.
528 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
531 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
533 2010-01-03 Richard Guenther <rguenther@suse.de>
535 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
537 2009-12-23 Sebastian Pop <sebpop@gmail.com>
539 * testsuite/libgomp.graphite/pr4118.c: New.
541 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
543 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
544 for darwin, protect the test with require-effective-target tls_runtime.
545 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
547 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
550 * testsuite/lib/libgomp.exp: Provide -B options to allow for
551 link spec %s substitutions for static libraries.
553 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
556 * libgomp.graphite/force-parallel-2.c: Reduce array size.
558 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
560 * Makefile.in: Regenerate.
561 * configure: Regenerate.
562 * testsuite/Makefile.in: Regenerate.
564 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
566 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
567 settings for LC_ALL and LANG.
569 2009-11-25 Jakub Jelinek <jakub@redhat.com>
572 * testsuite/libgomp.fortran/pr42162.f90: New test.
574 2009-11-13 Jakub Jelinek <jakub@redhat.com>
577 * testsuite/libgomp.c/pr42029.c: New test.
579 2009-10-26 Jakub Jelinek <jakub@redhat.com>
581 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
582 *s. Accept ld version without text in ()s.
583 * configure: Regenerated.
585 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
587 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
589 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
592 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
593 or a hyphen (happens with fortran language disabled).
594 * configure: Regenerate.
596 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
598 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
599 use sed script portable to Solaris /bin/sed for extracting ld
601 * configure: Regenerate.
603 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
605 * testsuite/libgomp.graphite/bounds.c: New test.
607 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
609 * Makefile.am (libgomp_la_LINK): New.
610 * Makefile.in: Regenerate.
612 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
614 * configure.ac (AC_PREREQ): Bump to 2.64.
616 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
618 * Makefile.am (install-html, install-pdf): Remove.
619 * Makefile.in: Regenerate.
621 * Makefile.in: Regenerate.
622 * aclocal.m4: Regenerate.
623 * config.h.in: Regenerate.
624 * configure: Regenerate.
625 * testsuite/Makefile.in: Regenerate.
627 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
629 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
630 * Makefile.in: Regenerate.
632 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
634 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
635 * Makefile.in: Regenerate.
637 2009-08-19 Tobias Burnus <burnus@net-b.de>
640 omp_lib.h.in: Fix -std=f95 errors.
643 2009-08-14 David Edelsohn <edelsohn@gnu.org>
645 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
646 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
647 * testsuite/libgomp.graphite/graphite.exp: New.
649 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
651 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
654 2009-08-04 David Daney <ddaney@caviumnetworks.com>
656 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
657 needed memory barrier semantics.
658 * config/linux/mips/mutex.h: New file.
660 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
662 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
664 2009-07-16 Joseph Myers <joseph@codesourcery.com>
666 * configure: Regenerate.
668 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
673 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
674 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
675 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
677 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
679 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
680 options when choosing a multilib.
682 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
684 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
685 ld_library_path. Use add_path. Add just find_libgcc_s to
686 ld_library_path, not every libgcc multilib directory.
687 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
688 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
689 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
691 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
693 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
695 * Makefile.am (LTLDFLAGS): Define.
697 * Makefile.in: Regenerate.
699 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
702 * testsuite/libgomp.fortran/fortran.exp: Don't link with
703 libgfortranbegin, check existence of libgfortran.a instead of
706 2009-05-20 Jakub Jelinek <jakub@redhat.com>
709 * team.c (gomp_thread_start): Destroy thr->release semaphore.
710 (gomp_free_pool_helper): Likewise.
712 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
713 Jakub Jelinek <jakub@redhat.com>
716 * testsuite/libgomp.fortran/workshare2.f90: New test.
718 2009-04-09 Nick Clifton <nickc@redhat.com>
720 * iter.c: Change copyright header to refer to version 3 of the
721 GNU General Public License with version 3.1 of the GCC Runtime
722 Library Exception and to point readers at the COPYING3 and
723 COPYING3.RUNTIME files and the FSF's license web page.
725 * barrier.c: Likewise.
726 * config/bsd/proc.c: Likewise.
727 * config/linux/affinity.c: Likewise.
728 * config/linux/alpha/futex.h: Likewise.
729 * config/linux/bar.c: Likewise.
730 * config/linux/bar.h: Likewise.
731 * config/linux/ia64/futex.h: Likewise.
732 * config/linux/ia64/mutex.h: Likewise.
733 * config/linux/lock.c: Likewise.
734 * config/linux/mips/futex.h: Likewise.
735 * config/linux/mutex.c: Likewise.
736 * config/linux/mutex.h: Likewise.
737 * config/linux/powerpc/futex.h: Likewise.
738 * config/linux/proc.c: Likewise.
739 * config/linux/ptrlock.c: Likewise.
740 * config/linux/ptrlock.h: Likewise.
741 * config/linux/s390/futex.h: Likewise.
742 * config/linux/sem.c: Likewise.
743 * config/linux/sem.h: Likewise.
744 * config/linux/sparc/futex.h: Likewise.
745 * config/linux/wait.h: Likewise.
746 * config/linux/x86/futex.h: Likewise.
747 * config/mingw32/proc.c: Likewise.
748 * config/mingw32/time.c: Likewise.
749 * config/posix/affinity.c: Likewise.
750 * config/posix/bar.c: Likewise.
751 * config/posix/bar.h: Likewise.
752 * config/posix/lock.c: Likewise.
753 * config/posix/mutex.h: Likewise.
754 * config/posix/proc.c: Likewise.
755 * config/posix/ptrlock.h: Likewise.
756 * config/posix/sem.c: Likewise.
757 * config/posix/sem.h: Likewise.
758 * config/posix/time.c: Likewise.
759 * config/posix95/lock.c: Likewise.
760 * critical.c: Likewise.
763 * fortran.c: Likewise.
764 * iter_ull.c: Likewise.
765 * libgomp.h: Likewise.
766 * libgomp_f.h.in: Likewise.
767 * libgomp_g.h: Likewise.
769 * loop_ull.c: Likewise.
770 * omp.h.in: Likewise.
771 * omp_lib.f90.in: Likewise.
772 * omp_lib.h.in: Likewise.
773 * ordered.c: Likewise.
774 * parallel.c: Likewise.
775 * sections.c: Likewise.
776 * single.c: Likewise.
781 2009-04-09 Jakub Jelinek <jakub@redhat.com>
783 * testsuite/config/default.exp: Change copyright header to refer to
784 version 3 of the GNU General Public License and to point readers
785 at the COPYING3 file and the FSF's license web page.
787 2009-04-08 Jakub Jelinek <jakub@redhat.com>
790 * libgomp.c++/pr39573.C: New test.
792 2009-04-01 Jakub Jelinek <jakub@redhat.com>
795 * testsuite/libgomp.c/pr39591-1.c: New test.
796 * testsuite/libgomp.c/pr39591-2.c: New test.
797 * testsuite/libgomp.c/pr39591-3.c: New test.
799 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
801 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
802 * testsuite/libgomp.c/atomic-6.c: Ditto.
804 2009-03-23 Jakub Jelinek <jakub@redhat.com>
807 * testsuite/libgomp.c/loop-12.c: New test.
808 * testsuite/libgomp.c/loop-11.c: New test.
809 * testsuite/libgomp.c++/loop-11.C: New test.
810 * testsuite/libgomp.c++/loop-12.C: New test.
811 * testsuite/libgomp.c++/for-8.C: New test.
813 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
815 * configure: Regenerate.
817 2009-02-11 Jakub Jelinek <jakub@redhat.com>
820 * testsuite/libgomp.c/pr39154.c: New test.
822 2009-01-30 Ian Lance Taylor <iant@google.com>
824 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
825 libgomp_ld_is_gold. Get gold version number.
826 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
827 * configure: Rebuild.
829 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
831 * testsuite/lib/libgomp.exp: Add -B option for targets that
832 use libgfortran.a%s in their specs.
834 2009-01-07 Jakub Jelinek <jakub@redhat.com>
837 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
838 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
839 HAVE_AS_SYMVER_DIRECTIVE is not defined.
840 * configure: Regenerated.
841 * config.h.in: Likewise.
843 2008-12-28 Jakub Jelinek <jakub@redhat.com>
846 * testsuite/libgomp.c/pr38650.c: New test.
847 * testsuite/libgomp.c++/pr38650.C: New test.
849 2008-12-27 Jakub Jelinek <jakub@redhat.com>
851 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
853 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
855 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
857 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
859 * configure: Regenerate.
861 2008-12-08 Jakub Jelinek <jakub@redhat.com>
864 * testsuite/libgomp.c/pr36802-1.c: New test.
865 * testsuite/libgomp.c/pr36802-2.c: New test.
866 * testsuite/libgomp.c/pr36802-3.c: New test.
868 2008-12-01 Janis Johnson <janis187@us.ibm.com>
871 * config/linux/powerpc/mutex.h: New.
873 2008-12-01 Jakub Jelinek <jakub@redhat.com>
876 * testsuite/libgomp.c++/for-7.C: New test.
879 * testsuite/libgomp.c++/for-6.C: New test.
881 2008-11-26 Janis Johnson <janis187@us.ibm.com>
884 * testsuite/lib/libgomp.exp: Include new timeout library files.
885 (libgomp_target_compile): Set timeout value from new proc.
887 2008-11-13 Steve Ellcey <sje@cup.hp.com>
890 * config/linux/ia64/mutex.h: New.
892 2008-11-04 Tobias Burnus <burnus@net-b.de>
895 * libgomp.texi (Runtime library routines, environment variables):
896 Update for OpenMP version 3.0.
898 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
899 Steve Ellcey <sje@cup.hp.com>
901 * configure: Regenerate for new libtool.
902 * Makefile.in: Ditto.
903 * testsuite/Makefile.in: Ditto.
905 2008-09-19 Jakub Jelinek <jakub@redhat.com>
906 Andreas Tobler <a.tobler@schweiz.org>
908 * config/bsd/proc.c: New file.
909 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
910 * configure.ac: Check for header <sys/sysctl.h>
911 * configure: Regenerate.
912 * config.h.in: Likewise.
914 2008-09-05 Janis Johnson <janis187@us.ibm.com>
916 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
918 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
920 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
921 * Makefile.in: Regenerated.
922 * testsuite/Makefile.in: Regenerated.
924 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
926 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
927 depend on blddir if blddir exists.
928 (libgomp_target_compile): Likewise.
929 * testsuite/libgomp.c++/c++.exp: Likewise.
930 * testsuite/libgomp.fortran/fortran.exp: Likewise.
932 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
934 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
935 Do not list GPL as Invariant Section.
937 2008-07-28 Ilie Garbacea <ilie@mips.com>
938 Chao-ying Fu <fu@mips.com>
940 * configure.tgt: Enable futex for MIPS.
941 * config/linux/mips/futex.h: New file.
943 2008-07-16 Jakub Jelinek <jakub@redhat.com>
945 * team.c (gomp_team_end): Free team immediately if it has
948 2008-07-08 David Edelsohn <edelsohn@gnu.org>
950 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
951 * testsuite/libgomp.fortran/fortran.exp: Same.
952 * testsuite/libgomp.c/c.exp: Same.
953 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
954 directory to library path first.
956 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
958 * env.c (parse_stacksize): Add cast to avoid warning.
959 (parse_spincount): Likewise.
961 2008-06-27 Jakub Jelinek <jakub@redhat.com>
963 * testsuite/libgomp.c/loop-10.c: New test.
964 * libgomp.c/loop-3.c (main): Add lastprivate clause.
965 * libgomp.c++/loop-6.C (main): Likewise.
968 * testsuite/libgomp.c/debug-1.c: New test.
970 2008-06-19 Jakub Jelinek <jakub@redhat.com>
972 * testsuite/libgomp.c/nqueens-1.c: New test.
975 * testsuite/libgomp.c++/task-7.C: New function.
977 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
979 * configure: Regenerate.
981 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
983 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
984 mutex when HAVE_SYNC_BUILTINS isn't defined.
986 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
988 * libgomp.texi (omp_test_lock): Fix typo.
990 2008-06-12 Tobias Burnus <burnus@net-b.de>
992 * omp_lib.f90.in: Add "implicit none".
994 2008-06-12 Jakub Jelinek <jakub@redhat.com>
997 * testsuite/libgomp.c/reduction-5.c: New test.
999 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1001 * libgomp.h (struct gomp_task): Add in_tied_task field.
1002 * task.c (gomp_init_task): Initialize it.
1003 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1004 unconditionally. Don't call gomp_team_barrier_wake if
1005 current task is implicit or if(0) from implicit and number of
1006 running tasks is equal to nthreads - 1.
1009 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1010 omp_get_team_size_8): Fix pastos.
1013 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1014 * configure: Regenerated.
1015 * config.h.in: Regenerated.
1016 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1019 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1022 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1023 (GOMP_loop_ull_dynamic_start): Likewise.
1024 (GOMP_loop_ull_guided_start): Likewise.
1025 (GOMP_loop_ull_ordered_static_start): Likewise.
1026 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1027 (GOMP_loop_ull_ordered_guided_start): Likewise.
1029 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1030 Richard Henderson <rth@redhat.com>
1031 Ulrich Drepper <drepper@redhat.com>
1032 Jakob Blomer <jakob.blomer@ira.uka.de>
1034 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1035 Substitute also OMP_*LOCK_25*.
1036 * configure: Regenerated.
1037 * config.h.in: Regenerated.
1038 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1039 ptrlock.c and task.c.
1040 * Makefile.in: Regenerated.
1041 * testsuite/Makefile.in: Regenerated.
1043 * loop_ull.c: New file.
1044 * iter_ull.c: New file.
1045 * libgomp.h: Include ptrlock.h.
1046 (enum gomp_task_kind): New type.
1047 (struct gomp_team): Add task_lock, task_queue, task_count,
1048 task_running_count, single_count fields. Add
1049 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1050 Remove work_share_lock, generation_mask,
1051 oldest_live_gen, num_live_gen and init_work_shares fields, add
1052 work work_share_list_alloc, work_share_list_free and work_share_chunk
1053 fields. Change work_shares from pointer to pointers into an array.
1054 Change ordered_release field into gomp_sem_t ** from flexible array
1055 member. Add implicit_task and initial_work_shares fields.
1056 Move close to the end of the struct.
1057 (struct gomp_team_state): Add single_count, last_work_share,
1058 active_level and level fields, remove work_share_generation.
1059 (gomp_barrier_handle_tasks): New prototype.
1060 (gomp_finish_task): New inline function.
1061 (struct gomp_work_share): Move chunk_size, end, incr into
1062 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1063 next_ll fields. Reshuffle fields. Add next_alloc,
1064 next_ws, next_free and inline_ordered_team_ids fields, change
1065 ordered_team_ids into pointer from flexible array member.
1066 Add mode field. Put lock and next into a different cache line
1067 from most of the write-once fields.
1068 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1069 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1070 gomp_iter_ull_guided_next): New prototypes.
1071 (gomp_new_icv): New prototype.
1072 (struct gomp_thread): Add thread_pool and task fields.
1073 (struct gomp_thread_pool): New type.
1074 (gomp_new_team): New prototype.
1075 (gomp_team_start): Change type of last argument.
1076 (gomp_new_work_share): Removed.
1077 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1078 (gomp_work_share_init_done): New static inline.
1079 (gomp_throttled_spin_count_var, gomp_available_cpus,
1080 gomp_managed_threads): New extern decls.
1081 (gomp_init_task): New prototype.
1082 (gomp_spin_count_var): New extern var decl.
1083 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1084 or no alias support, or if not PIC.
1085 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1086 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1087 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1088 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1089 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1090 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1091 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1092 gomp_test_nest_lock_25): New prototypes.
1093 (omp_lock_symver, strong_alias): Define.
1094 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1096 (gomp_end_task): New.
1097 (struct gomp_task_icv, gomp_global_icv): New.
1098 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1099 (struct gomp_task): New.
1100 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1101 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1103 (gomp_schedule_type): Reorder enum to match
1105 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1107 (gomp_thread_start): Add gomp_team_barrier_wait call.
1108 For non-nested case remove clearing of docked thread thr fields.
1109 Use pool fields instead of global gomp_* variables. Use
1110 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1111 Create tasks for each member thread.
1112 (free_team): Only destroy team barrier, task_lock here and free it.
1113 (gomp_free_thread): Free last_team if non-NULL.
1114 (gomp_team_end): Call gomp_team_barrier_wait instead of
1115 gomp_barrier_wait. For nested case call one extra
1116 gomp_barrier_wait. Move here some destruction from free_team.
1117 Call free_team on pool->last_team if any, rather than freeing
1118 current team. Destroy work_share_list_free_lock ifndef
1120 (gomp_new_icv): New function.
1121 (gomp_threads, gomp_threads_size, gomp_threads_used,
1122 gomp_threads_dock): Removed.
1123 (gomp_thread_destructor): New variable.
1124 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1126 (gomp_team_start): Create new pool if current thread doesn't have
1127 one. Use pool fields instead of global gomp_* variables.
1128 Initialize thread_pool field for new threads. Clear single_count.
1129 Change last argument from ws to team, don't create
1130 new team, set ts.work_share to &team->work_shares[0] and clear
1131 ts.last_work_share. Don't clear ts.work_share_generation.
1132 If number of threads changed, adjust atomically gomp_managed_threads.
1133 Use gomp_init_task instead of gomp_new_task,
1134 set thr->task to the corresponding implicit_task array entry.
1135 Create tasks for each member thread. Initialize ts.level.
1136 (initialize_team): Call pthread_key_create on
1137 gomp_thread_destructor.
1138 (team_destructor): New function.
1139 (new_team): Removed.
1140 (gomp_new_team): New function.
1141 (free_team): Free gomp_work_share blocks chained through next_alloc,
1142 instead of freeing work_shares and destroying work_share_lock.
1143 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1144 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1145 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1146 of gomp_barrier_wait.
1147 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1148 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1149 if gomp_work_share_start returned true. Don't unlock ws->lock.
1150 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1151 of gomp_barrier_wait.
1152 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1153 gomp_work_share_init_done if gomp_work_share_start returned true.
1154 Don't unlock ws->lock.
1155 * work.c: Include stddef.h.
1156 (free_work_share): Use work_share_list_free_lock instead
1157 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1158 Call gomp_fini_work_share and then either free ws if orphaned, or
1159 put it into work_share_list_free list of the current team.
1160 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1162 (gomp_work_share_start, gomp_work_share_end,
1163 gomp_work_share_end_nowait): Rewritten.
1164 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1165 (openmp_version): Set to 200805.
1166 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1167 omp_sched_guided, omp_sched_auto): New parameters.
1168 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1169 omp_set_max_active_levels, omp_get_max_active_levels,
1170 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1171 omp_get_active_level): New interfaces.
1172 * omp_lib.h.in (openmp_version): Set to 200805.
1173 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1174 omp_sched_guided, omp_sched_auto): New parameters.
1175 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1176 omp_set_max_active_levels, omp_get_max_active_levels,
1177 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1178 omp_get_active_level): New externals.
1179 * loop.c: Include limits.h.
1180 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1182 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1183 Likewise. Use gomp_icv.
1184 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1185 ts.static_trip here.
1186 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1187 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1188 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1189 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1190 don't unlock ws->lock, otherwise lock it.
1191 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1192 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1193 (gomp_parallel_loop_start): Call gomp_new_team instead of
1194 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1195 Adjust gomp_team_start caller. Pass 0 as second argument to
1196 gomp_resolve_num_threads.
1197 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1198 If adding ws->chunk_size nthreads + 1 times after end won't
1199 overflow, set ws->mode to 1.
1200 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1201 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1202 GOMP_loop_ull_ordered_static_start,
1203 GOMP_loop_ull_ordered_dynamic_start,
1204 GOMP_loop_ull_ordered_guided_start,
1205 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1206 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1207 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1208 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1209 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1211 * libgomp.map: Export lock routines also @@OMP_2.0.
1212 (GOMP_loop_ordered_dynamic_first,
1213 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1214 GOMP_loop_ordered_static_first): Remove.
1215 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1216 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1217 GOMP_loop_ull_ordered_dynamic_next,
1218 GOMP_loop_ull_ordered_dynamic_start,
1219 GOMP_loop_ull_ordered_guided_next,
1220 GOMP_loop_ull_ordered_guided_start,
1221 GOMP_loop_ull_ordered_runtime_next,
1222 GOMP_loop_ull_ordered_runtime_start,
1223 GOMP_loop_ull_ordered_static_next,
1224 GOMP_loop_ull_ordered_static_start,
1225 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1226 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1227 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1228 (omp_set_schedule, omp_get_schedule,
1229 omp_get_thread_limit, omp_set_max_active_levels,
1230 omp_get_max_active_levels, omp_get_level,
1231 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1232 omp_set_schedule_, omp_set_schedule_8_,
1233 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1234 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1235 omp_get_max_active_levels_, omp_get_level_,
1236 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1237 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1238 New exports @@OMP_3.0.
1239 * omp.h.in (omp_sched_t): New type.
1240 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1241 omp_set_max_active_levels, omp_get_max_active_levels,
1242 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1243 omp_get_active_level): New prototypes.
1244 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1245 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1246 gomp_thread_limit_var, gomp_remaining_threads_count,
1247 gomp_remaining_threads_lock): New variables.
1248 (parse_spincount): New function.
1249 (initialize_env): Call gomp_init_num_threads unconditionally.
1250 Initialize gomp_available_cpus. Call parse_spincount,
1251 initialize gomp_{,throttled_}spin_count_var
1252 depending on presence and value of OMP_WAIT_POLICY and
1253 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1254 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1255 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1256 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1257 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1258 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1259 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1260 (gomp_global_icv): New.
1261 (parse_schedule): Use it. Parse "auto".
1262 (omp_set_num_threads): Use gomp_icv.
1263 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1265 (omp_get_max_threads): Move from parallel.c.
1266 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1267 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1269 (parse_stacksize, parse_wait_policy): New functions.
1270 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1271 both wrappers for compatibility and new locks.
1272 (omp_set_schedule, omp_get_schedule,
1273 omp_get_thread_limit, omp_set_max_active_levels,
1274 omp_get_max_active_levels, omp_get_level,
1275 omp_get_ancestor_thread_num, omp_get_team_size,
1276 omp_get_active_level): New ialias_redirect.
1277 (omp_set_schedule_, omp_set_schedule_8_,
1278 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1279 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1280 omp_get_max_active_levels_, omp_get_level_,
1281 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1282 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1284 * parallel.c: Include limits.h.
1285 (gomp_resolve_num_threads): Add count argument. Rewritten.
1286 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1287 argument to gomp_team_start. Pass 0 as second argument to
1288 gomp_resolve_num_threads.
1289 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1290 if gomp_thread_limit_var != ULONG_MAX.
1291 (omp_in_parallel): Implement using ts.active_level.
1292 (omp_get_max_threads): Move to env.c.
1293 (omp_get_level, omp_get_ancestor_thread_num,
1294 omp_get_team_size, omp_get_active_level): New functions,
1296 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1297 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1298 gomp_iter_dynamic_next instead of the _locked variant and don't take
1299 lock around it, otherwise acquire it before calling
1300 gomp_iter_dynamic_next_locked.
1301 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1302 gomp_iter_dynamic_next instead of the _locked variant and don't take
1304 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1305 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1306 Adjust gomp_team_start caller. Pass count as second argument to
1307 gomp_resolve_num_threads, don't adjust num_threads after the call.
1309 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1310 ws->chunk_size by incr.
1311 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1313 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1315 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1316 (omp_check_defines): Check even the compat defines.
1317 * config/linux/ptrlock.c: New file.
1318 * config/linux/ptrlock.h: New file.
1319 * config/linux/wait.h: New file.
1320 * config/posix/ptrlock.c: New file.
1321 * config/posix/ptrlock.h: New file.
1322 * config/linux/bar.h (gomp_team_barrier_wait,
1323 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1324 (gomp_team_barrier_set_task_pending,
1325 gomp_team_barrier_clear_task_pending,
1326 gomp_team_barrier_set_waiting_for_tasks,
1327 gomp_team_barrier_waiting_for_tasks,
1328 gomp_team_barrier_done): New inlines.
1329 (gomp_barrier_t): Rewritten.
1330 (gomp_barrier_state_t): New typedef.
1331 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1332 gomp_barrier_wait_start): Rewritten.
1333 (gomp_barrier_wait_end): Change second argument to
1334 gomp_barrier_state_t.
1335 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1337 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1339 (gomp_barrier_wait_end): Rewritten.
1340 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1341 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1342 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1343 (gomp_barrier_state_t): New typedef.
1344 (gomp_team_barrier_wait,
1345 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1346 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1347 into the return value. Return gomp_barrier_state_t.
1348 (gomp_team_barrier_set_task_pending,
1349 gomp_team_barrier_clear_task_pending,
1350 gomp_team_barrier_set_waiting_for_tasks,
1351 gomp_team_barrier_waiting_for_tasks,
1352 gomp_team_barrier_done): New inlines.
1353 (gomp_barrier_wait_end): Change second argument to
1354 gomp_barrier_state_t.
1355 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1357 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1358 (gomp_barrier_wait_end): Change second argument to
1359 gomp_barrier_state_t.
1360 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1361 gomp_team_barrier_wake): New functions.
1362 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1364 (gomp_futex_wake, gomp_futex_wait): New variables.
1365 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1366 * config/linux/lock.c: Rewrite to make locks task owned,
1367 for backwards compatibility provide the old entrypoints
1368 if symbol versioning. Include wait.h instead of libgomp.h and
1370 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1371 * config/posix95/lock.c: Rewrite to make locks task owned,
1372 for backwards compatibility provide the old entrypoints
1373 if symbol versioning.
1374 * config/posix/lock.c: Rewrite to make locks task owned,
1375 for backwards compatibility provide the old entrypoints
1376 if symbol versioning.
1377 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1378 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1379 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1380 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1381 (sys_futex0): Return error code.
1382 (futex_wake, futex_wait): If ENOSYS was returned, clear
1383 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1384 (cpu_relax, atomic_write_barrier): New static inlines.
1385 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1386 (futex_wake, futex_wait): If ENOSYS was returned, clear
1387 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1388 (cpu_relax, atomic_write_barrier): New static inlines.
1389 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1390 (sys_futex0): Return error code.
1391 (futex_wake, futex_wait): If ENOSYS was returned, clear
1392 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1393 (cpu_relax, atomic_write_barrier): New static inlines.
1394 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1395 (sys_futex0): Return error code.
1396 (futex_wake, futex_wait): If ENOSYS was returned, clear
1397 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1398 (cpu_relax, atomic_write_barrier): New static inlines.
1399 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1400 (sys_futex0): Return error code.
1401 (futex_wake, futex_wait): If ENOSYS was returned, clear
1402 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1403 (cpu_relax, atomic_write_barrier): New static inlines.
1404 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1405 (sys_futex0): Return error code.
1406 (futex_wake, futex_wait): If ENOSYS was returned, clear
1407 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1408 (cpu_relax, atomic_write_barrier): New static inlines.
1409 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1411 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1412 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1413 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1415 (omp_nest_lock_t): Change owner into void *, add lock field.
1416 * config/posix95/omp-lock.h: Include semaphore.h.
1417 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1418 (omp_lock_t): Use sem_t instead of mutex if semaphores
1420 (omp_nest_lock_t): Likewise. Change owner to void *.
1421 * config/posix/omp-lock.h: Include semaphore.h.
1422 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1423 (omp_lock_t): Use sem_t instead of mutex if semaphores
1425 (omp_nest_lock_t): Likewise. Add owner field.
1427 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1429 * testsuite/libgomp.c/collapse-1.c: New test.
1430 * testsuite/libgomp.c/collapse-2.c: New test.
1431 * testsuite/libgomp.c/collapse-3.c: New test.
1432 * testsuite/libgomp.c/icv-1.c: New test.
1433 * testsuite/libgomp.c/icv-2.c: New test.
1434 * testsuite/libgomp.c/lib-2.c: New test.
1435 * testsuite/libgomp.c/lock-1.c: New test.
1436 * testsuite/libgomp.c/lock-2.c: New test.
1437 * testsuite/libgomp.c/lock-3.c: New test.
1438 * testsuite/libgomp.c/loop-4.c: New test.
1439 * testsuite/libgomp.c/loop-5.c: New test.
1440 * testsuite/libgomp.c/loop-6.c: New test.
1441 * testsuite/libgomp.c/loop-7.c: New test.
1442 * testsuite/libgomp.c/loop-8.c: New test.
1443 * testsuite/libgomp.c/loop-9.c: New test.
1444 * testsuite/libgomp.c/nested-3.c: New test.
1445 * testsuite/libgomp.c/nestedfn-6.c: New test.
1446 * testsuite/libgomp.c/sort-1.c: New test.
1447 * testsuite/libgomp.c/task-1.c: New test.
1448 * testsuite/libgomp.c/task-2.c: New test.
1449 * testsuite/libgomp.c/task-3.c: New test.
1450 * testsuite/libgomp.c/task-4.c: New test.
1451 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1452 to C++ testsuite default compiler options.
1453 * testsuite/libgomp.c++/collapse-1.C: New test.
1454 * testsuite/libgomp.c++/collapse-2.C: New test.
1455 * testsuite/libgomp.c++/ctor-10.C: New test.
1456 * testsuite/libgomp.c++/for-1.C: New test.
1457 * testsuite/libgomp.c++/for-2.C: New test.
1458 * testsuite/libgomp.c++/for-3.C: New test.
1459 * testsuite/libgomp.c++/for-4.C: New test.
1460 * testsuite/libgomp.c++/for-5.C: New test.
1461 * testsuite/libgomp.c++/loop-8.C: New test.
1462 * testsuite/libgomp.c++/loop-9.C: New test.
1463 * testsuite/libgomp.c++/loop-10.C: New test.
1464 * testsuite/libgomp.c++/task-1.C: New test.
1465 * testsuite/libgomp.c++/task-2.C: New test.
1466 * testsuite/libgomp.c++/task-3.C: New test.
1467 * testsuite/libgomp.c++/task-4.C: New test.
1468 * testsuite/libgomp.c++/task-5.C: New test.
1469 * testsuite/libgomp.c++/task-6.C: New test.
1470 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1471 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1472 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1473 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1474 * testsuite/libgomp.fortran/collapse1.f90: New test.
1475 * testsuite/libgomp.fortran/collapse2.f90: New test.
1476 * testsuite/libgomp.fortran/collapse3.f90: New test.
1477 * testsuite/libgomp.fortran/collapse4.f90: New test.
1478 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1479 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1480 * testsuite/libgomp.fortran/lib4.f90: New test.
1481 * testsuite/libgomp.fortran/lock-1.f90: New test.
1482 * testsuite/libgomp.fortran/lock-2.f90: New test.
1483 * testsuite/libgomp.fortran/nested1.f90: New test.
1484 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1485 * testsuite/libgomp.fortran/strassen.f90: New test.
1486 * testsuite/libgomp.fortran/tabs1.f90: New test.
1487 * testsuite/libgomp.fortran/tabs2.f: New test.
1488 * testsuite/libgomp.fortran/task1.f90: New test.
1489 * testsuite/libgomp.fortran/task2.f90: New test.
1490 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1491 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1492 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1493 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1494 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1496 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1499 * testsuite/libgomp.c++/ctor-11.C: New test.
1500 * testsuite/libgomp.c++/ctor-12.C: New test.
1502 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1504 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1506 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1509 * testsuite/libgomp.c/atomic-5.c: New test.
1510 * testsuite/libgomp.c/atomic-6.c: New test.
1511 * testsuite/libgomp.c/autopar-1.c: New test.
1513 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1515 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1516 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1517 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1518 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1519 * configure: Regenerate.
1520 * Makefile.in, testsuite/Makefile.in: Likewise.
1522 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1525 * aclocal.m4: Regenerate.
1526 * configure: Regenerate.
1528 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1531 * testsuite/libgomp.c/atomic-4.c: New test.
1534 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1535 (gomp_iter_guided_next): Likewise.
1536 * testsuite/libgomp.c/pr35625.c: New test.
1538 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1540 * aclocal.m4: Regenerate.
1541 * configure: Likewise.
1542 * Makefile.in: Likewise.
1543 * testsuite/Makefile.in: Likewise.
1545 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1548 * testsuite/libgomp.c++/pr35185.C: New test.
1550 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1553 * testsuite/libgomp.c/pr35549.c: New test.
1555 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1557 * testsuite/libgomp.c/atomic-3.c: New test.
1559 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1562 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1565 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1568 * configure.ac: Add ACX_HEADER_STRING.
1569 * env.c: Include strings.h.
1570 * aclocal.m4: Regenerate.
1571 * config.h.in: Regenerate.
1572 * configure: Regenerate.
1573 * Makefile.in: Regenerate.
1574 * testsuite/Makefile.in: Regenerate.
1576 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1579 * testsuite/libgomp.c/pr35196.c: New test.
1582 * testsuite/libgomp.fortran/pr35130.f90: New test.
1583 * testsuite/libgomp.c/pr35130.c: New test.
1585 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1588 * testsuite/libgomp.c/pr33880.c: New test.
1589 * testsuite/libgomp.fortran/pr33880.f90: New test.
1591 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1593 * configure: Regenerate.
1595 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1597 * configure.ac: Move futex checking into ../config/futex.m4.
1598 * configure: Rebuilt.
1599 * aclocal.m4: Rebuilt.
1600 * Makefile.in: Rebuilt.
1602 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1603 2007-10-15 ../config/tls.m4 change.
1605 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1608 * testsuite/libgomp.c/pr34513.c: New test.
1609 * testsuite/libgomp.c++/pr34513.C: New test.
1611 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1614 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1616 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1618 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1620 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1622 * testsuite/libgomp.c/private-1.c: New test.
1624 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1625 Paolo Bonzini <bonzini@gnu.org>
1627 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1628 instead of 'VPATH ='.
1629 * Makefile.in: Regenerate.
1631 2007-11-23 Matthias Klose <doko@ubuntu.com>
1633 * configure.ac: Adjust makeinfo version check.
1634 * configure: Regenerate.
1636 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1639 * testsuite/libgomp.fortran/pr34020.f90: New test.
1641 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1644 * testsuite/libgomp.c++/atomic-1.C: New test.
1646 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1649 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1650 Make x and y integers rather than (implicit) reals. Add private (j)
1651 clause to the last omp parallel.
1653 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1655 * configure: Regenerate following changes to ../config/tls.m4.
1657 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1659 * testsuite/libgomp.fortran/stack.f90: New test.
1661 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1663 * config/mingw32/proc.c: New file.
1665 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1667 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1668 (main): Use __get_cpuid to get i386 target fetaures.
1669 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1670 (main): Use __get_cpuid to get x86_64 target fetaures.
1672 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1675 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1676 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1678 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1681 * testsuite/libgomp.fortran/pr32550.f90: New test.
1682 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1684 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1686 * aclocal.m4: Regenerated.
1688 2007-07-05 Tobias Burnus <burnus@net-b.de>
1691 * testsuite/libgomp.fortran/pr32359.f90: New.
1693 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1696 * sections.c (GOMP_parallel_sections_start): Only decrease
1697 number of threads to COUNT if dyn_var is true.
1698 * testsuite/libgomp.c/pr32468.c: New test.
1700 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1703 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1705 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1708 * testsuite/libgomp.c/pr32362-1.c: New test.
1709 * testsuite/libgomp.c/pr32362-2.c: New test.
1710 * testsuite/libgomp.c/pr32362-3.c: New test.
1712 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1714 * team.c (gomp_team_start): Fix setting up thread_attr
1717 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1719 * configure: Regenerate.
1721 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1723 * Makefile.in: Regenerate.
1724 * configure: Regenerate.
1725 * aclocal.m4: Regenerate.
1726 * testsuite/Makefile.in: Regenerate.
1728 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1730 * config/linux/proc.c: New file.
1733 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1735 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1737 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1739 2007-04-16 Matthias Klose <doko@debian.org>
1741 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1742 flags if not building with -m64.
1743 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1744 flag for i?86-*-* targets, if current target matches -m64.
1746 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1748 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1749 * Makefile.in: Regenerate.
1751 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1754 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1756 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1758 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1760 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1762 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1763 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1764 (parse_affinity): New function.
1765 (initialize_env): Call it and gomp_init_affinity.
1766 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1767 create new pthread_attr_t and call gomp_init_thread_affinity
1768 on it for each thread before passing the attribute to pthread_create.
1769 * config/linux/affinity.c: New file.
1770 * config/posix/affinity.c: New file.
1771 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1772 * configure: Rebuilt.
1773 * config.h.in: Rebuilt.
1774 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1775 * Makefile.in: Rebuilt.
1777 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1779 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1781 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1782 and use it if found.
1784 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1786 * testsuite/config/default.exp: New file.
1787 * testsuite/lib/libgomp.exp: New file.
1788 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1789 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1790 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1791 (libgomp_load): Remove.
1792 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1793 always_ld_library_path, not ld_library_path. Set additional_flags
1794 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1795 (target_compile): Do not call libgomp_init. Append lang_library_path
1796 and lang_link_flags to options.
1797 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1798 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1800 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1801 always_ld_library_path. Set LD_LIBRARY_PATH here.
1802 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1803 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1804 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1806 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1807 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1808 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1809 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1810 * testsuite/libgomp.c/atomic-10.c: Ditto.
1812 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1814 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1815 dg-final cleanup-modules line.
1816 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1817 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1818 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1819 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1820 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1821 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1822 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1824 2007-03-18 Andreas Schwab <schwab@suse.de>
1826 * acinclude.m4: Adjust regular expression for ld version
1828 * configure: Regenerate.
1830 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1832 * Makefile.am: Add install-pdf target as copied from
1833 automake v1.10 rules.
1834 * Makefile.in: Regenerate
1836 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1839 * configure: Regenerate.
1842 * testsuite/libgomp.c++/pr30703.C: New test.
1844 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1847 2006-07-05 Eric Christopher <echristo@apple.com>
1848 * configure.ac: Depend addition of -pthread on host OS.
1849 * configure: Regenerate.
1851 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1853 * libgomp.texi: Fix spacing after abbreviations.
1855 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1858 * configure.ac: Add check for makeinfo
1859 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1860 if an appropiate version of makeinfo is found.
1861 * aclocal.m4: Regenerated.
1862 * configure: Regenerated.
1863 * Makefile.in: Regenerated.
1864 * testsuite/Makefile.in: Regenerated.
1866 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1869 * libgomp.texi: More about implementation-dependent settings.
1871 2007-01-26 Tobias Burnus <burnus@net-b.de>
1873 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1875 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1878 * testsuite/libgomp.c/pr30494.c: New test.
1880 2007-01-15 Tom Tromey <tromey@redhat.com>
1882 * configure: Rebuilt.
1883 * configure.ac: Fixed comment.
1885 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1887 * libgomp.texi: Document implementation specific default values of
1888 environment variables.
1890 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1893 * libgomp.texi: New file.
1894 * configure.ac: Add --enable-generated-files-in-srcdir option.
1895 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1897 * Makefile.in: Regenerated.
1898 * config.h.in: Regenerated.
1899 * testsuite/Makefile.in: Regenerated.
1902 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1905 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1907 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1909 * configure: Regenerate.
1911 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1914 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1915 start if there shouldn't be any loop iterations.
1916 (gomp_loop_ordered_static_start): Remove start == end test.
1917 * testsuite/libgomp.c/pr29947-1.c: New test.
1918 * testsuite/libgomp.c/pr29947-2.c: New test.
1920 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1922 * configure.tgt: Force initial-exec TLS model on Linux only.
1924 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1926 * configure: Regenerated.
1928 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1930 * env.c (parse_schedule): Reject out of range values.
1931 (parse_unsigned_long): Reject out of range, negative or zero values.
1933 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1936 * testsuite/libgomp.fortran/pr29629.f90: New test.
1938 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1941 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1942 * config/posix95: New directory.
1943 * config/posix95/omp-lock.h: New file.
1944 * config/posix95/lock.c: Likewise.
1946 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1948 * aclocal.m4: Regenerate.
1949 * configure: Regenerate.
1951 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1953 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1956 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1958 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1960 * configure: Regenerate.
1961 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1963 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1967 * testsuite/libgomp.c/nestedfn-4.c: New test.
1968 * testsuite/libgomp.c/nestedfn-5.c: New test.
1969 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1972 * testsuite/libgomp.fortran/condinc1.f: New test.
1973 * testsuite/libgomp.fortran/condinc2.f: New test.
1974 * testsuite/libgomp.fortran/condinc3.f90: New test.
1975 * testsuite/libgomp.fortran/condinc4.f90: New test.
1976 * testsuite/libgomp.fortran/condinc1.inc: New file.
1978 2006-09-18 Tom Tromey <tromey@redhat.com>
1980 * configure: Rebuilt.
1982 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1985 PR preprocessor/14634
1986 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1988 * configure: Regenerate.
1990 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1992 * testsuite/libgomp.fortran/reduction3.f90: Change
1993 -2147483648 to -huge(i)-1 to avoid overflow.
1994 * testsuite/libgomp.fortran/reduction4.f90: Change
1995 Z'ffffffff' to not(0) to avoid overflow.
1997 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2000 * Makefile.am (libsubincludedir): New.
2001 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2002 * Makefile.in: Regenerate.
2004 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2007 * env.c: Include ctype.h.
2008 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2009 leading and/or trailing whitespace and compare strings case
2012 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2015 * testsuite/libgomp.fortran/pr28390.f: New test.
2017 2006-07-05 Eric Christopher <echristo@apple.com>
2019 * configure.ac: Depend addition of -pthread on host OS.
2020 * configure: Regenerate.
2022 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2024 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2025 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2028 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2032 * configure.ac: If neither --enable-linux-futex nor
2033 --disable-linux-futex is passed, determine the default by checking
2034 for compiling and/or running against NPTL. With --enable-linux-futex,
2035 check if SYS_gettid and SYS_futex are defined.
2036 * configure: Rebuilt.
2038 2006-06-14 Richard Henderson <rth@redhat.com>
2041 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2042 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2044 2006-06-09 Richard Henderson <rth@redhat.com>
2046 * env.c (gomp_nthreads_var): Change to unsigned long.
2047 (gomp_run_sched_chunk): Likewise.
2048 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2049 (initialize_env): Initialize gomp_thread_attr.
2050 * libgomp.h (gomp_nthreads_var): Update decl.
2051 (gomp_run_sched_chunk): Likewise.
2052 (gomp_thread_attr): Declare.
2053 * team.c (gomp_thread_attr): Export.
2054 (initialize_team): Don't initialize it.
2056 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2059 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2060 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2062 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2064 * config/mingw32/time.c: New file.
2065 * configure.tgt: Use it.
2067 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2069 * Makefile.am: Add install-html target. Add install-html to .PHONY
2070 * Makefile.in: Regenerate.
2072 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2075 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2076 * testsuite/libgomp.c/critical-1.c: Likewise.
2077 * testsuite/libgomp.c/loop-1.c: Likewise.
2078 * testsuite/libgomp.c/loop-2.c: Likewise.
2079 * testsuite/libgomp.c/single-1.c: Likewise.
2080 * testsuite/libgomp.c/ordered-1.c: Likewise.
2081 * testsuite/libgomp.c/ordered-2.c: Likewise.
2083 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2086 * libgomp.fortran/pr27416-1.f90: New test.
2088 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2091 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2092 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2094 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2097 * testsuite/libgomp.c/pr26943-1.c: New test.
2098 * testsuite/libgomp.c/pr26943-2.c: New test.
2099 * testsuite/libgomp.c/pr26943-3.c: New test.
2100 * testsuite/libgomp.c/pr26943-4.c: New test.
2101 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2102 * testsuite/libgomp.c++/pr26943.C: New test.
2104 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2107 * testsuite/libgomp.c++/pr27337.C: New test.
2109 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2112 * testsuite/libgomp.c/pr26171.c: New test.
2114 2006-04-25 Richard Henderson <rth@redhat.com>
2117 * configure.ac: Use GCC_CHECK_TLS.
2118 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2119 * Makefile.in, aclocal.m4, configure: Regenerate.
2121 2006-04-10 Matthias Klose <doko@debian.org>
2123 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2124 directory names containing underscores.
2126 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2129 * testsuite/libgomp.c++/pr26691.C: New test.
2131 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2133 * testsuite/libgomp.fortran/retval2.f90: New test.
2135 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2137 * testsuite/libgomp.c++: New directory.
2139 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2141 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2142 * config/posix/sem.c: Implement the above.
2144 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2146 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2147 define HAVE_BROKEN_POSIX_SEMAPHORES.
2148 * configure: Rebuilt.
2149 * config.h.in: Rebuilt.
2151 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2154 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2155 for the other pthread check.
2156 * configure: Regenerate.
2157 * config.h.in: Regenerate.
2159 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2163 * Makefile.am (fincludedir): New variable.
2164 (nodist_include_HEADERS): Remove Fortran files.
2165 (nodist_finclude_HEADERS): New variable.
2166 * Makefile.in: Regenerated.
2168 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2170 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2171 Remove tests for returning assumed character length arrays.
2173 2006-02-12 Roger Sayle <roger@eyesopen.com>
2174 John David Anglin <dave@hiauly1.hia.nrc.ca>
2177 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2179 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2181 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2183 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2185 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2186 part of LD_LIBRARY_PATH manually.
2188 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2191 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2194 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2197 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2198 * configure.ac (PERL): Don't set.
2199 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2200 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2201 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2202 * omp.h.in: Wrap the new configure substitutions with @ characters.
2203 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2204 * aclocal.m4, configure, Makefile.in: Regenerate.
2205 * mkomp_h.pl: Delete.
2207 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2210 * configure.ac: Use GCC_HEADER_STDINT.
2211 * libgomp.h: Include gstdint.h.
2212 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2213 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2215 2006-01-24 Richard Henderson <rth@redhat.com>
2218 * configure.ac: Add AM_MAINTAINER_MODE.
2219 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2221 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2223 * Makefile.in: Regenerate.
2224 * testsuite/Makefile.in: Regenerate.
2225 * aclocal.m4: Regenerate.
2227 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2229 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2231 * configure.ac: Add check for loadavg.h.
2232 (link_gomp): Adjust comment.
2233 * configure: Regenerate.
2234 * config.h.in: Regenerate.
2236 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2239 * configure.ac: Remove check for alloca.h.
2240 * configure: Regenerate.
2241 * config.h.in: Regenerate.
2242 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2243 * team.c: Remove use of alloca.h.
2244 Call gomp_alloca instead of alloca.
2246 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2249 * team.c: Add include of alloca.h.
2250 * configure.ac: Add check for alloca.h.
2251 * configure: Regenerate.
2252 * config.h.in: Regenerate.
2254 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2257 * testsuite/libgomp.fortran/pr25219.f90: New test.
2259 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2261 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2262 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2263 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2264 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2265 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2266 testsuite/libgomp.fortran/threadprivate1.f90,
2267 testsuite/libgomp.fortran/threadprivate2.f90,
2268 testsuite/libgomp.fortran/threadprivate3.f90,
2269 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2270 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2271 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2272 effective-target to TLS runtime.
2274 * testsuite/libgomp.fortran/pr25162.f: Require
2275 effective-target TLS runtime.
2277 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2279 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2280 * testsuite/libgomp.c/nestedfn-3.c: New test.
2282 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2285 * testsuite/libgomp.fortran/pr25162.f: New test.
2287 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2289 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2290 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2292 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2294 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2295 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2296 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2297 single.c, team.c, work.c, config/linux/alpha/futex.h,
2298 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2299 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2300 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2301 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2302 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2303 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2304 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2307 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2309 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2310 to nodist_noinst_HEADERS.
2311 * Makefile.in: Rebuilt.
2313 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2314 add integer count field.
2315 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2316 omp_nest_lock_t type change.
2317 (omp_init_nest_lock): Likewise. Initialize count to 0.
2318 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2320 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2322 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2323 Increment count if successful and return the new nesting level.
2324 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2325 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2326 * testsuite/libgomp.c/lib-1.c: New test.
2327 * testsuite/libgomp.fortran/lib1.f90: New test.
2328 * testsuite/libgomp.fortran/lib2.f: New test.
2329 * testsuite/libgomp.fortran/lib3.f: New test.
2331 2005-11-17 Richard Henderson <rth@redhat.com>
2334 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2335 * configure.ac (link_gomp): New. Substitute it.
2336 (AC_CONFIG_FILES): Add libgomp.spec.
2337 * libgomp.spec.in: New file.
2338 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2339 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2341 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2343 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2344 reduction(-:var) behaving the same as reduction(+:var).
2345 * testsuite/libgomp.c/reduction-4.c: New test.
2347 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2349 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2350 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2351 testsuite/libgomp.c/copyin-3.c,
2352 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2353 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2354 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2355 testsuite/libgomp.c++/pr24455.C,
2356 testsuite/libgomp.fortran/threadprivate1.f90,
2357 testsuite/libgomp.fortran/threadprivate2.f90,
2358 testsuite/libgomp.fortran/threadprivate3.f90,
2359 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2360 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2361 testsuite/libgomp.fortran/omp_parse3.f90: Require
2362 effective-target TLS.
2364 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2368 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2371 * team.c (initialize_team): Pass NULL rather than free as
2372 pthread_key_create destructor. Initialize thread specific data
2373 pointer in initial thread to a static local variable rather than
2376 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2378 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2379 its location to ld_library_path.
2381 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2383 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2385 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2387 * testsuite/libgomp.c: Rename from libgomp.dg.
2389 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2391 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2392 threadprivate variable 'i'.
2394 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2396 * config/linux/s390/futex.h: New file.
2397 * configure.tgt: Use it.
2399 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2400 before the parallel.
2402 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2405 * testsuite/libgomp.c++/master-1.C: New test.
2407 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2409 * testsuite/libgomp.dg/copyin-3.c: New test.
2411 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2413 * testsuite/libgomp.fortran/retval1.f90: New test.
2414 * testsuite/libgomp.fortran/vla7.f90: New test.
2416 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2418 * testsuite/libgomp.fortran/vla2.f90: New test.
2419 * testsuite/libgomp.fortran/vla3.f90: New test.
2420 * testsuite/libgomp.fortran/vla4.f90: New test.
2421 * testsuite/libgomp.fortran/vla5.f90: New test.
2422 * testsuite/libgomp.fortran/vla6.f90: New test.
2424 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2426 * config/linux/sparc/futex.h: New file.
2427 * configure.tgt: Use it.
2428 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2430 * critical.c: Include stdlib.h.
2431 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2432 ignoring return value.
2433 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2434 LIBGOMP_CHECK_SYNC_BUILTINS check.
2435 * configure: Rebuilt.
2437 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2439 * testsuite/libgomp.fortran/vla1.f90: New test.
2441 2005-10-31 Richard Henderson <rth@redhat.com>
2443 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2444 setting 's' in different threads.
2446 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2448 * libgomp.h (attribute_hidden, ialias): Define.
2449 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2450 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2451 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2452 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2453 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2454 omp_test_lock, omp_test_nest_lock): Likewise.
2455 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2456 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2457 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2458 omp_test_lock, omp_test_nest_lock): Likewise.
2459 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2460 omp_get_dynamic, omp_get_nested): Likewise.
2461 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2462 omp_get_thread_num, omp_in_parallel): Likewise.
2463 * fortran.c (ialias_redirect): Define.
2464 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2465 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2466 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2467 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2468 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2469 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2470 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2471 omp_get_wtime): Add ialias_redirect.
2473 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2475 * fortran.c: Include stdlib.h.
2477 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2479 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2480 * Makefile.in: Regenerated.
2482 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2484 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2485 * libgomp_f.h.in (omp_check_defines): New function.
2486 * env.c: Include libgomp_f.h.
2487 (initialize_env): Call omp_check_defines.
2489 * testsuite/libgomp.dg/copyin-2.c: New test.
2490 * testsuite/libgomp.c++/copyin-2.C: New test.
2491 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2493 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2494 * testsuite/libgomp.fortran/sharing2.f90: New test.
2496 * testsuite/libgomp.dg/copyin-1.c: New test.
2497 * testsuite/libgomp.c++/copyin-1.C: New test.
2499 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2501 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2503 * testsuite/libgomp.fortran/workshare1.f90: New test.
2505 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2507 * libgomp.fortran/sharing1.f90: New test.
2509 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2512 * testsuite/libgomp.c++/loop-7.C: New test.
2514 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2516 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2517 * testsuite/libgomp.fortran/reduction6.f90: New test.
2518 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2520 2005-10-23 Richard Henderson <rth@redhat.com>
2522 * testsuite/libgomp.c++/ctor-1.C: New.
2523 * testsuite/libgomp.c++/ctor-2.C: New.
2524 * testsuite/libgomp.c++/ctor-3.C: New.
2525 * testsuite/libgomp.c++/ctor-4.C: New.
2526 * testsuite/libgomp.c++/ctor-5.C: New.
2527 * testsuite/libgomp.c++/ctor-6.C: New.
2528 * testsuite/libgomp.c++/ctor-7.C: New.
2529 * testsuite/libgomp.c++/ctor-8.C: New.
2530 * testsuite/libgomp.c++/ctor-9.C: New.
2532 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2535 * testsuite/libgomp.c++/pr24455-1.C: New test.
2536 * testsuite/libgomp.c++/pr24455.C: New test.
2537 * testsuite/libgomp.dg/pr24455-1.c: New test.
2538 * testsuite/libgomp.dg/pr24455.c: New test.
2540 2005-10-20 Richard Henderson <rth@redhat.com>
2542 * testsuite/libgomp.c++/loop-6.C: New.
2543 * testsuite/libgomp.dg/loop-3.c: New.
2545 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2547 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2549 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2552 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2554 * testsuite/libgomp.fortran/jacobi.f: New test.
2556 2005-10-19 Richard Henderson <rth@redhat.com>
2558 * configure.tgt (i?86-linux): Default to with_arch instead of
2559 CFLAGS. Add -mtune to match target_cpu.
2560 (x86_64-linux): Tune to i686.
2562 * fortran.c (omp_test_nest_lock_): Fix typo.
2564 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2566 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2567 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2568 * testsuite/libgomp.dg/ordered-3.c: New test.
2570 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2571 Remove volatile keyword.
2573 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2574 in COMMON block to avoid warnings on 64-bit targets.
2576 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2578 * testsuite/libgomp.dg/shared-3.c: New test.
2580 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2582 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2583 * testsuite/libgomp.fortran/reduction5.f90: New test.
2585 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2587 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2589 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2590 flush loop now that __sync_synchronize has proper memory barrier.
2591 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2592 Add -ffixed-form to dg-options.
2594 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2596 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2597 from subdirectories.
2598 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2599 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2600 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2601 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2602 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2603 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2604 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2605 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2606 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2607 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2608 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2609 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2610 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2611 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2612 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2613 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2614 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2615 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2616 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2617 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2618 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2619 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2620 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2621 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2622 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2624 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2626 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2627 lang_library_path exists. Use find instead of glob to gather tests.
2628 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2630 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2632 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2633 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2634 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2635 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2636 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2637 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2638 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2639 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2640 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2641 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2642 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2643 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2644 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2646 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2648 * testsuite/libgomp.dg/vla-1.c: New test.
2650 * testsuite/libgomp.fortran/reference2.f90: New test.
2652 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2653 declaration of omp_get_thread_num.
2654 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2657 * testsuite/libgomp.fortran/reduction1.f90: New test.
2658 * testsuite/libgomp.fortran/reduction2.f90: New test.
2659 * testsuite/libgomp.fortran/reduction3.f90: New test.
2660 * testsuite/libgomp.fortran/reduction4.f90: New test.
2662 2005-10-13 Richard Henderson <rth@redhat.com>
2664 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2665 * Makefile.in: Regenerate.
2666 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2667 * libgomp.h: Include bar.h.
2668 (struct gomp_barrier): Remove.
2669 (struct gomp_team): Add barrier. Replace master_barrier with
2670 master_release. Replace threads with ordered_release.
2671 (struct gomp_thread): Replace barrier with release.
2672 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2673 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2674 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2675 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2676 (GOMP_single_copy_end): Likewise.
2677 * team.c (gomp_threads_dock): New.
2678 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2679 (gomp_thread_start): Use gomp_barrier_wait.
2680 (new_team, free_team): Update for gomp_team changes.
2681 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2682 (gomp_team_end): Use gomp_barrier_wait.
2683 (initialize_team): Update for gomp_thread changes.
2684 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2685 (gomp_work_share_end_nowait): Use atomic ops when available.
2686 * config/linux/bar.c, config/linux/bar.h: New files.
2687 * config/posix/bar.c, config/posix/bar.h: New files.
2689 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2691 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2692 * testsuite/libgomp.dg/single-2.c: New test.
2694 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2695 lang_link_flags): Unset, so that they aren't inherited from previously
2698 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2700 2005-10-12 Richard Henderson <rth@redhat.com>
2702 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2703 (libgomp_init): Use lang_test_file, lang_library_path, and
2704 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2706 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2707 (lang_test_file, lang_link_flags): New.
2708 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2710 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2711 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2712 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2713 testsuite/libgomp.c++/parallel-1.C,
2714 testsuite/libgomp.c++/reduction-1.C,
2715 testsuite/libgomp.c++/reduction-2.C,
2716 testsuite/libgomp.c++/reduction-3.C,
2717 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2718 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2719 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2720 New files, largely cribbed from the C testsuite.
2722 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2724 * testsuite/libgomp.fortran/character1.f90: New test.
2725 * testsuite/libgomp.fortran/character2.f90: New test.
2727 * testsuite/libgomp.dg/nested-1.c: New test.
2728 * testsuite/libgomp.dg/nested-2.c: New test.
2729 * testsuite/libgomp.fortran/do1.f90: New test.
2730 * testsuite/libgomp.fortran/do2.f90: New test.
2732 * testsuite/libgomp.fortran/reference1.f90: New test.
2734 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2736 * testsuite/libgomp.dg/reduction-1.c: New test.
2737 * testsuite/libgomp.dg/reduction-2.c: New test.
2738 * testsuite/libgomp.dg/reduction-3.c: New test.
2740 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2742 * testsuite/libgomp.dg/atomic-1.c: New test.
2743 * testsuite/libgomp.dg/atomic-2.c: New test.
2745 2005-10-09 Richard Henderson <rth@redhat.com>
2747 * critical.c (atomic_lock): New.
2748 (initialize_critical): Initialize it.
2749 (GOMP_atomic_start, GOMP_atomic_end): New.
2750 * libgomp.map: Export them.
2751 * libgomp_g.h: Declare them.
2753 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2755 2005-10-02 Richard Henderson <rth@redhat.com>
2757 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2758 to XCFLAGS instead of CFLAGS.
2760 2005-09-30 Richard Henderson <rth@redhat.com>
2762 * configure.ac: Determine whether -pthread or -lpthread is needed.
2763 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2764 * Makefine.in, configure: Rebuild.
2766 2005-09-28 Richard Henderson <rth@redhat.com>
2768 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2769 * testsuite/libgomp.dg/omp-single-3.c: New test.
2771 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2773 * testsuite/libgomp.dg/omp-single-2.c: New test.
2774 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2776 2005-09-27 Richard Henderson <rth@redhat.com>
2778 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2779 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2781 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2783 * testsuite/libgomp.dg/omp-loop03.c: New test.
2785 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2787 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2789 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2791 * testsuite/libgomp.dg/omp-single-1.c: New test.
2792 * testsuite/libgomp.dg/shared-1.c: Return 0.
2793 Add prototype for abort.
2794 * testsuite/libgomp.dg/shared-2.c: Likewise.
2796 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2798 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2801 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2803 * testsuite/libgomp.dg/shared-1.c: New test.
2804 * testsuite/libgomp.dg/shared-2.c: New test.
2806 2005-09-24 Richard Henderson <rth@redhat.com>
2808 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2810 2005-09-24 Richard Henderson <rth@redhat.com>
2812 * iter.c (gomp_iter_static_next): Round up when computing number
2813 of iterations. Don't bother distributing a remainder equally.
2815 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2816 Don't call srand. Zero b before testing.
2819 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2821 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2822 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2824 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2826 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2827 without !$omp end do, followed immediately by subroutine end.
2829 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2831 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2833 2005-09-22 Richard Henderson <rth@redhat.com>
2835 * critical.c (GOMP_critical_name_start): Change argument to void**.
2836 Reuse the pointer space if the mutex fits.
2837 (GOMP_critical_name_end): Likewise.
2838 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2839 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2840 (GOMP_critical_name_end): Likewise.
2841 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2842 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2844 2005-09-20 Richard Henderson <rth@redhat.com>
2846 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2847 (create_lock_lock): New.
2848 (initialize_critical): Initialize it.
2849 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2850 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2852 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2854 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2856 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2858 * testsuite/libgomp.dg/omp-loop01.c: New test.
2859 * testsuite/libgomp.dg/omp-loop02.c: New test.
2861 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2863 * configure.ac (AC_PROG_FC): Add.
2864 (USE_FORTRAN): New automake conditional.
2865 * configure: Rebuilt.
2866 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2867 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2868 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2869 Add rules to build them.
2870 * Makefile.in: Rebuilt.
2871 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2873 * libgomp.map: Add Fortran wrappers.
2874 * libgomp_f.h.in: New file.
2875 * omp_lib.h.in: New file.
2876 * omp_lib.f90.in: New file.
2877 * fortran.c: New file.
2878 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2879 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2880 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2881 libgfortran has been built.
2882 * testsuite/libgomp.fortran/fortran.exp: New file.
2883 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2884 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2885 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2886 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2887 * testsuite/libgomp.fortran/omp_hello.f: New test.
2888 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2889 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2890 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2891 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2892 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2893 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2894 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2895 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2897 2005-08-30 Richard Henderson <rth@redhat.com>
2899 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2900 function for when aliases are not usable.
2901 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2902 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2903 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2904 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2905 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2906 GOMP_loop_ordered_guided_next): Likewise.
2907 * ordered.c (GOMP_ordered_start): Likewise.
2909 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2911 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2912 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2913 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2914 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2915 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2916 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2917 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2918 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2919 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2921 2005-07-07 Eric Christopher <echristo@redhat.com>
2922 Diego Novillo <dnovillo@redhat.com>
2924 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2925 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2927 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2928 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2929 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2930 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2931 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2932 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2933 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2935 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2937 * TOPLEVEL.patch: Remove.
2939 2005-05-16 Richard Henderson <rth@redhat.com>
2941 * configure.ac: Test for clock_gettime.
2942 * config.h.in, configure: Rebuild.
2943 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2944 (omp_get_wtime): Use clock_gettime if available.
2945 (omp_get_wtick): Use clock_getres if available.
2947 2005-05-11 Richard Henderson <rth@redhat.com>
2949 * config/linux/ia64/futex.h: New file.
2950 * configure.tgt: Use it.
2952 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2954 2005-05-07 Richard Henderson <rth@redhat.com>
2956 * config/linux/powerpc/futex.h: New file.
2957 * configure.tgt: Use it.
2959 * config/linux/i486/futex.h: Merge ...
2960 * config/linux/x86_64/futex.h: ... into ...
2961 * config/linux/x86/futex.h: ... here.
2962 * configure.tgt: Update to match.
2964 2005-05-06 Richard Henderson <rth@redhat.com>
2966 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2967 * config/linux/i486/futex.h: Likewise.
2968 * config/linux/x86_64/futex.h: Likewise.
2970 * config/linux/lock.c: New file.
2971 * config/linux/omp-lock.h: New file.
2973 * critical.c, env.h: Don't include omp.h
2974 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2975 * config/posix/time.c: Likewise.
2976 * config/posix/omp-lock.h: New file.
2977 * libgomp.h: Include omp-lock.h and omp.h.
2978 * Makefile.am (nodist_include_HEADERS): New.
2980 * configure.ac (PERL): New.
2981 * mkomp_h.pl: New file.
2982 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2984 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2986 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2987 build directory. Re-add -march=i486 hack.
2989 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2990 (libgomp_link_flags): Remove.
2991 (libgomp_initialized): Remove.
2992 (libgomp_init): Don't protect from reinitialization. Copy code
2993 from libstdc++ for getting the multilib set correctly.
2995 2005-05-05 Richard Henderson <rth@redhat.com>
2997 * config/linux/alpha/futex.h: New file.
2998 * configure.tgt (alpha*-*-linux*): Use it.
3000 * config/posix/mutex.c: New file.
3001 * config/posix/sem.c: Use libgomp.h.
3003 * configure.tgt (x86_64-linux): Also test CC for -m32.
3004 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3006 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3009 * Makefile.am (SUBDIRS): New.
3010 (libgomp_la_LDFLAGS): Add -lpthread.
3011 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3012 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3014 * libgomp_g.h: New file.
3015 * libgomp.h: Split out all public declarations to libgomp_g.h.
3016 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3017 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3018 * config/linux/sem.h: Likewise.
3019 * config/posix/sem.h: Likewise.
3021 * Makefile.am (AM_LDFLAGS): New.
3022 (libgomp_version_script): Split out from ...
3023 (libgomp_la_LDFLAGS): ... here.
3024 (libgomp_version_info): New.
3025 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3026 (LIBGOMP_ENABLE): New.
3027 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3028 (LIBGOMP_ENABLE_SYMVERS): New.
3029 * configure.ac (AC_INIT): Version 1.0.
3030 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3031 (enable-linux-futex): Likewise. Rename from enable-futex.
3032 (libtool_VERSION): New.
3033 (LIBGOMP_ENABLE_SYMVERS): Use it.
3034 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3035 * Makefile.in, aclocal.m4, configure: Rebuild.
3037 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3038 (gomp_mutex_unlock_slow): Fix typo.
3039 * config/linux/sem.c: Similarly.
3040 (gomp_sem_post_slow): Fix typo.
3041 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3042 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3043 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3045 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3046 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3047 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3048 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3049 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3050 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3051 LDFLAGS. Pull enable_futex check to top-level.
3052 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3053 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3055 First attempt at real configury.
3056 * Makefile, config.h: Remove file.
3057 * Makefile.am, Makefile.in: New file.
3058 * acinclude.m4 aclocal.m4: New file.
3059 * configure.ac, configure.tgt, configure: New file.
3061 * config/posix/lock.c: Rename from sys-lock.c.
3062 * config/posix/mutex.h: Rename from sys-mutex.h.
3063 * config/posix/sem.c: Rename from sys-sem.c.
3064 * config/posix/sem.h: Rename from sys-sem.h.
3065 * config/posix/proc.c: Rename from sys-proc.c.
3066 * config/posix/time.c: Rename from sys-proc.c.
3068 * config/linux/mutex.c: New file.
3069 * config/linux/mutex.h: New file.
3070 * config/linux/sem.c: New file.
3071 * config/linux/sem.h: New file.
3072 * config/linux/i486/futex.h: New file.
3073 * config/linux/x86_64/futex.h: New file.
3075 2005-05-04 Richard Henderson <rth@redhat.com>
3077 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3078 * libgomp.h: Declare them.
3079 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3080 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3082 2005-05-04 Richard Henderson <rth@redhat.com>
3084 * libgomp-1 code drop
3086 2005-05-04 Richard Henderson <rth@redhat.com>
3088 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3089 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3090 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3091 (gomp_iter_static_next): Update.
3092 (gomp_ordered_static_next): Update.
3093 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3094 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3095 totally empty range.
3096 (gomp_loop_ordered_static_next): Refine test for calling
3097 gomp_ordered_static_next.
3098 * testsuite/ordered-1.c: Add case for more threads than iterations.
3100 * iter.c (gomp_iter_runtime_next_locked): Remove.
3101 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3102 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3103 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3104 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3105 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3106 gomp_loop_ordered_guided_next): Downcase name, make static, add
3107 an external alias with the old name.
3108 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3109 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3110 switch and call one of the above static functions.
3111 * libgomp.h: Update.
3113 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3114 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3115 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3116 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3117 GOMP_loop_ordered_guided_start): Update to match.
3118 * sections.c (GOMP_sections_start): Likewise.
3119 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3121 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3122 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3123 Use bounds check instead of modulus.
3124 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3125 (gomp_ordered_last): Don't sync with ordered_owner here.
3126 (gomp_ordered_next): Likewise.
3127 (gomp_ordered_static_loop_next): Likewise.
3128 * loop.c, libgomp.h: Update to match.
3130 * libgomp.h (GOMP_barrier): Declare.
3132 * testsuite/barrier-1.c: New file.
3133 * testsuite/critical-1.c: New file.
3134 * testsuite/ordered-2.c: New file.
3135 * testsuite/ordered-1.c: New file.
3136 * testsuite/sections-1.c: New file.
3137 * testsuite/single-1.c: New file.
3138 * testsuite/Makefile (TESTS): Add them.
3140 2005-05-04 Richard Henderson <rth@redhat.com>
3142 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3143 * loop.c (GOMP_loop_static_start): If not the startup thread,
3144 acquire the mutex to wait for initialization complete.
3145 (GOMP_loop_ordered_static_start): Likewise.
3146 (GOMP_loop_ordered_runtime_start): Likewise.
3147 (GOMP_loop_ordered_static_first): Remove.
3148 (GOMP_loop_ordered_dynamic_first): Remove.
3149 (GOMP_loop_ordered_guided_first): Remove.
3150 (GOMP_loop_ordered_runtime_first): Remove.
3151 * ordered.c (gomp_ordered_loop_first): Post to own release when
3152 we're the first thread.
3153 (gomp_ordered_loop_last): Wait on release if not owner.
3154 (gomp_ordered_loop_next): Likewise.
3155 (gomp_ordered_static_loop_init): New.
3156 (gomp_ordered_static_loop_next): Use ordered_owner.
3157 (GOMP_ordered_start): Likewise.
3158 * work.c (gomp_new_work_share): Initialize ordered_owner.
3160 2005-05-03 Richard Henderson <rth@redhat.com>
3162 * Makefile (OPT): New.
3165 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3166 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3167 * libgomp.h, libgomp.map, NOTES: Update to match.
3169 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3170 Add initialized and thr members.
3171 (gomp_thread_start): Pause when initially spawned to wait for
3172 the whole team to be created.
3173 (gomp_team_start): Release team members at the end.
3175 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3176 (f_foo_1): Use GOMP_loop_end.
3177 (f_foo_2): Use GOMP_loop_end_nowait.
3179 * testsuite/loop-2.c: New file.
3180 * testsuite/Makefile (TESTS): Add it.
3182 2005-05-03 Richard Henderson <rth@redhat.com>
3184 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3185 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3186 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3189 * testsuite/Makefile: New file.
3190 * testsuite/loop-1.c: New file.
3192 2005-05-03 Richard Henderson <rth@redhat.com>
3194 Initial implementation and checkin.