1 2012-06-14 Release Manager
5 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8 * testsuite/libgomp.c/pr52547.c: New test.
10 2012-03-22 Release Manager
14 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
18 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
22 Remove ENABLE_SYMVERS_SOL2.
23 * configure: Regenerate.
24 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
25 (PREPROCESS): New variable.
26 (libgomp.ver): New target.
27 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
28 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
29 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
31 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
32 * Makefile.in: Regenerate.
34 2012-02-14 Walter Lee <walt@tilera.com>
36 * configure.tgt: Handle tilegx and tilepro.
37 * config/linux/tile/futex.h: New file.
39 2012-02-08 Richard Guenther <rguenther@suse.de>
41 PR tree-optimization/46886
42 * testsuite/libgomp.c/pr46886.c: New testcase.
44 2012-01-25 Matthias Klose <doko@ubuntu.com>
46 * config/linux/arm: Remove empty directory.
47 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
49 2011-12-09 Alan Modra <amodra@gmail.com>
52 * task.c (GOMP_taskwait): Don't access task->children outside of
53 task_lock mutex region.
54 (GOMP_task): Likewise.
56 2011-12-06 Jakub Jelinek <jakub@redhat.com>
59 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
61 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
62 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
63 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
64 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
65 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
67 2011-12-02 Alan Modra <amodra@gmail.com>
69 * config/linux/affinity.c: Use atomic rather than sync builtin.
70 * config/linux/lock.c: Likewise.
71 * config/linux/ptrlock.h: Likewise.
72 * config/linux/ptrlock.c: Likewise.
73 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
74 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
75 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
76 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
77 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
78 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
79 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
80 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
81 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
82 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
84 2011-11-30 Alan Modra <amodra@gmail.com>
87 * config/linux/bar.h: Use atomic rather than sync builtins.
88 * config/linux/bar.c: Likewise. Add missing acquire
89 synchronisation on generation field.
90 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
93 2011-11-30 Alan Modra <amodra@gmail.com>
95 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
96 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
97 * config/linux/mutex.h: Use atomic rather than sync builtins.
98 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
99 * config/linux/omp-lock.h: Comment fix.
100 * config/linux/arm/mutex.h: Delete.
101 * config/linux/powerpc/mutex.h: Delete.
102 * config/linux/ia64/mutex.h: Delete.
103 * config/linux/mips/mutex.h: Delete.
105 2011-11-30 Alan Modra <amodra@gmail.com>
108 * config/linux/sem.h: Rewrite.
109 * config/linux/sem.c: Rewrite.
111 2011-11-28 Richard Henderson <rth@redhat.com>
113 * libgomp.h (enum memmodel): New.
115 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
117 * configure: Regenerate.
119 2011-10-10 Matthias Klose <doko@ubuntu.com>
121 * config/posix95: Remove empty directory.
123 2011-08-26 Jakub Jelinek <jakub@redhat.com>
125 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
127 2011-08-19 Jakub Jelinek <jakub@redhat.com>
130 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
131 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
133 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
137 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
140 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
142 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
144 * config/linux/proc.h: New.
145 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
146 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
147 (gomp_init_num_threads): Update call to cpuset_popcount.
148 (get_num_procs): Ditto.
149 * config/linux/affinity.c (gomp_init_affinity): Call
150 gomp_cpuset_popcount.
152 2011-08-02 Jakub Jelinek <jakub@redhat.com>
156 * omp.h.in (omp_in_final): New prototype.
157 * omp_lib.f90.in (omp_in_final): New interface.
158 (omp_integer_kind, omp_logical_kind): Remove
159 and replace all its uses in the module with 4.
160 (openmp_version): Change to 201107.
161 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
162 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
163 kind for the parameters.
164 (omp_in_final): New external.
165 (openmp_version): Change to 201107.
166 * task.c (omp_in_final): New function.
167 (gomp_init_task): Initialize final_task.
168 (GOMP_task): Remove unused attribute from flags. Handle final
170 (GOMP_taskyield): New function.
171 (omp_in_final): Return true if if (false) or final (true) task
172 or descendant of final (true).
173 * fortran.c (omp_in_final_): New function.
174 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
175 (GOMP_3.0): Export GOMP_taskyield.
176 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
178 (parse_unsigned_long_list): New function.
179 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
180 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
181 even if parse_affinity returned false.
182 * config/linux/affinity.c (gomp_init_affinity): Handle
183 gomp_cpu_affinity_len == 0.
184 * libgomp_g.h (GOMP_taskyield): New prototype.
185 * libgomp.h (struct gomp_task): Add final_task field.
186 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
187 * team.c (gomp_team_start): Override new task's nthreads_var icv
188 if list form OMP_NUM_THREADS has been used and it has value for
189 the new nesting level.
191 * testsuite/libgomp.c/atomic-11.c: New test.
192 * testsuite/libgomp.c/atomic-12.c: New test.
193 * testsuite/libgomp.c/atomic-13.c: New test.
194 * testsuite/libgomp.c/atomic-14.c: New test.
195 * testsuite/libgomp.c/reduction-6.c: New test.
196 * testsuite/libgomp.c/task-5.c: New test.
197 * testsuite/libgomp.c++/atomic-2.C: New test.
198 * testsuite/libgomp.c++/atomic-3.C: New test.
199 * testsuite/libgomp.c++/atomic-4.C: New test.
200 * testsuite/libgomp.c++/atomic-5.C: New test.
201 * testsuite/libgomp.c++/atomic-6.C: New test.
202 * testsuite/libgomp.c++/atomic-7.C: New test.
203 * testsuite/libgomp.c++/atomic-8.C: New test.
204 * testsuite/libgomp.c++/atomic-9.C: New test.
205 * testsuite/libgomp.c++/task-8.C: New test.
206 * testsuite/libgomp.c++/reduction-4.C: New test.
207 * testsuite/libgomp.fortran/allocatable7.f90: New test.
208 * testsuite/libgomp.fortran/allocatable8.f90: New test.
209 * testsuite/libgomp.fortran/crayptr3.f90: New test.
210 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
211 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
212 * testsuite/libgomp.fortran/pointer1.f90: New test.
213 * testsuite/libgomp.fortran/pointer2.f90: New test.
214 * testsuite/libgomp.fortran/task4.f90: New test.
216 2011-08-02 Tobias Burnus <burnus@net-b.de>
218 * libgomp.texi: Update OpenMP spec references to 3.1.
219 (omp_in_final,OMP_PROC_BIND): New sections.
220 (OMP_NUM_THREADS): Document that the value can be now a list.
221 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
223 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
225 * config/linux/x86/futex.h: Check __x86_64__ instead of
228 2011-07-29 Jakub Jelinek <jakub@redhat.com>
232 * testsuite/libgomp.c/pr49897-1.c: New test.
233 * testsuite/libgomp.c/pr49897-2.c: New test.
234 * testsuite/libgomp.c/pr49898-1.c: New test.
235 * testsuite/libgomp.c/pr49898-2.c: New test.
237 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
239 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
240 for ia32 instead of ilp32.
242 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
243 * testsuite/libgomp.c/atomic-6.c: Likewise.
245 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
247 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
248 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
250 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
253 * config/osf/sem.h: New file.
254 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
256 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
259 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
262 2011-07-15 Jakub Jelinek <jakub@redhat.com>
264 * config/linux/wait.h (do_spin): New inline, largely copied
265 from do_wait, just don't do futex_wait here, instead return true if
267 (do_wait): Implement using do_spin.
268 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
270 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
271 __sync_bool_compare_and_swap, pass the oldval to
272 gomp_mutex_lock_slow.
273 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
274 If all mutex contenders are just spinning and not sleeping, don't
275 change state to 2 unnecessarily. Optimize the loop when state has
276 already become 2 to use just one atomic operation per loop instead
278 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
280 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
281 __sync_bool_compare_and_swap, pass the oldval to
282 gomp_mutex_lock_slow.
284 2011-06-22 Jakub Jelinek <jakub@redhat.com>
287 * iter.c (gomp_iter_static_next): For chunk size 0
288 only use n ceil/ nthreads size for the first
289 n % nthreads threads in the team instead of
290 all threads except for the last few ones which
291 get less work or none at all.
292 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
293 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
294 chunk argument, set run_sched_modifier to 0 for static
295 resp. 1 for other kinds. If chunk argument is 0
296 and not static, set value to 1.
298 2011-05-19 Jakub Jelinek <jakub@redhat.com>
301 * testsuite/libgomp.c++/pr49043.C: New test.
304 * testsuite/libgomp.c++/pr48869.C: New test.
306 2011-05-06 Jakub Jelinek <jakub@redhat.com>
309 * fortran.c: Include limits.h.
311 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
313 (omp_set_num_threads_8_, omp_set_schedule_8_,
314 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
315 omp_get_team_size_8_): Use TO_INT macro.
316 * testsuite/libgomp.fortran/pr48894.f90: New test.
318 2011-04-13 Jakub Jelinek <jakub@redhat.com>
321 * testsuite/libgomp.c/pr48591.c: New test.
323 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
327 * configure: Regenerate.
329 2011-02-27 Jakub Jelinek <jakub@redhat.com>
332 * testsuite/libgomp.fortran/task3.f90: New test.
334 2011-02-24 Tobias Burnus <burnus@net-b.de>
336 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
338 2011-02-23 Jakub Jelinek <jakub@redhat.com>
341 * libgomp.texi (omp_get_wtime): Don't say time in the past
344 2011-02-18 Jakub Jelinek <jakub@redhat.com>
347 * testsuite/libgomp.fortran/fortran.exp: Check for both
348 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
349 but $blddir != "", still append ${blddir}/${lang_library_path}
352 2011-02-16 Tobias Burnus <burnus@net-b.de>
355 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
356 of libquadmath.a before adding its libpath to ldflags.
358 2011-02-14 Jakub Jelinek <jakub@redhat.com>
361 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
362 to FUTEX_WAIT futex syscall.
363 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
365 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
367 * configure: Regenerate.
369 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
372 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
374 2011-01-16 Gerald Pfeifer
376 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
378 2010-12-14 Jakub Jelinek <jakub@redhat.com>
381 * libgomp.fortran/allocatable6.f90: New test.
383 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
385 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
386 * configure: Regenerate.
388 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
392 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
393 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
394 * aclocal.m4: Regenerate.
395 * configure: Regenerate.
396 * Makefile.in: Regenerate.
397 * testsuite/Makefile.in: Regenerate.
399 2010-12-02 Jakub Jelinek <jakub@redhat.com>
402 * libgomp.fortran/pr46753.f90: New test.
405 * env.c (initialize_env): Default to spin count 300000
406 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
410 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
411 at the end if sync builtins aren't supported.
413 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
415 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
417 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
419 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
421 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
423 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
425 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
426 Tobias Burnus <burnus@net-b.de>
430 * configure: Regenerate.
432 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
434 * config/linux/futex.h: New.
435 * config/linux/arm/mutex.h: New.
436 * configure.tgt (arm*-*-linux*): Add config path.
438 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
440 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
442 2010-09-23 Tobias Burnus <burnus@net-b.de>
444 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
445 Change Fortran datatype to LOGICAL.
446 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
447 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
449 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
451 * configure: Regenerate.
453 2010-07-26 Jakub Jelinek <jakub@redhat.com>
455 * libgomp.texi: Add function keyword to a couple of Fortran
456 interfaces, use integer instead of int for Fortran.
458 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
460 * libgomp.texi: Fix spelling and pasto problems throughout.
461 Adjust prototypes to match code.
463 2010-07-24 Tobias Burnus <burnus@net-b.de>
465 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
466 silence -fwhole-file warning.
468 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
470 * configure.tgt (*-*-solaris2.[56]*): Removed.
472 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
474 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
475 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
476 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
477 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
478 targetting solaris2*.
479 * configure: Regenerate.
480 * config.h.in: Regenerate.
482 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
483 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
484 Add libgomp_version_dep.
485 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
487 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
488 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
489 * Makefile.in: Regenerate.
491 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
492 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
493 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
494 to common block, protected by
495 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
497 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
499 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
501 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
504 * configure: Regenerate.
506 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
509 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
510 * configure: Regenerate.
511 * Makefile.in: Regenerate.
512 * testsuite/Makefile.in: Regenerate.
514 2010-04-26 Jakub Jelinek <jakub@redhat.com>
517 * testsuite/libgomp.c/pr43893.c: New test.
518 * testsuite/libgomp.c++/pr43893.C: New test.
520 2010-04-21 Jakub Jelinek <jakub@redhat.com>
523 * testsuite/libgomp.fortran/vla8.f90: New test.
525 2010-04-20 Jakub Jelinek <jakub@redhat.com>
528 * config/linux/affinity.c (gomp_init_affinity): Decrease
529 gomp_available_cpus if affinity mask confines the process to fewer
531 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
532 non-NULL, just return gomp_available_cpus.
535 * sections.c (gomp_sections_init): Initialize ws->mode.
537 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
539 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
540 not unused bar variable.
541 * configure: Regenerate.
543 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
545 * Makefile.in: Regenerate.
546 * aclocal.m4: Regenerate.
547 * testsuite/Makefile.in: Regenerate.
549 2010-03-22 Jakub Jelinek <jakub@redhat.com>
552 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
553 (initialize_env): Adjust callers.
554 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
555 when the argument is 0.
557 * testsuite/libgomp.c/pr42942.c: New test.
559 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
563 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
564 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
566 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
568 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
569 * testsuite/libgomp.c++/task-6.C: Likewise.
571 2010-01-28 Steve Ellcey <sje@cup.hp.com>
573 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
575 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
577 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
578 * configure: Regenerate.
580 2010-01-26 Jakub Jelinek <jakub@redhat.com>
583 * testsuite/libgomp.fortran/allocatable5.f90: New test.
585 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
587 * configure.ac: Test for executability of GFORTRAN.
588 * configure: Regenerate.
590 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
592 * configure: Regenerate.
594 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
597 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
599 2010-01-03 Richard Guenther <rguenther@suse.de>
601 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
603 2009-12-23 Sebastian Pop <sebpop@gmail.com>
605 * testsuite/libgomp.graphite/pr4118.c: New.
607 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
609 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
610 for darwin, protect the test with require-effective-target tls_runtime.
611 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
613 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
616 * testsuite/lib/libgomp.exp: Provide -B options to allow for
617 link spec %s substitutions for static libraries.
619 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
622 * libgomp.graphite/force-parallel-2.c: Reduce array size.
624 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
626 * Makefile.in: Regenerate.
627 * configure: Regenerate.
628 * testsuite/Makefile.in: Regenerate.
630 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
632 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
633 settings for LC_ALL and LANG.
635 2009-11-25 Jakub Jelinek <jakub@redhat.com>
638 * testsuite/libgomp.fortran/pr42162.f90: New test.
640 2009-11-13 Jakub Jelinek <jakub@redhat.com>
643 * testsuite/libgomp.c/pr42029.c: New test.
645 2009-10-26 Jakub Jelinek <jakub@redhat.com>
647 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
648 *s. Accept ld version without text in ()s.
649 * configure: Regenerated.
651 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
653 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
655 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
658 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
659 or a hyphen (happens with fortran language disabled).
660 * configure: Regenerate.
662 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
664 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
665 use sed script portable to Solaris /bin/sed for extracting ld
667 * configure: Regenerate.
669 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
671 * testsuite/libgomp.graphite/bounds.c: New test.
673 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
675 * Makefile.am (libgomp_la_LINK): New.
676 * Makefile.in: Regenerate.
678 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
680 * configure.ac (AC_PREREQ): Bump to 2.64.
682 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
684 * Makefile.am (install-html, install-pdf): Remove.
685 * Makefile.in: Regenerate.
687 * Makefile.in: Regenerate.
688 * aclocal.m4: Regenerate.
689 * config.h.in: Regenerate.
690 * configure: Regenerate.
691 * testsuite/Makefile.in: Regenerate.
693 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
695 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
696 * Makefile.in: Regenerate.
698 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
700 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
701 * Makefile.in: Regenerate.
703 2009-08-19 Tobias Burnus <burnus@net-b.de>
706 omp_lib.h.in: Fix -std=f95 errors.
709 2009-08-14 David Edelsohn <edelsohn@gnu.org>
711 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
712 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
713 * testsuite/libgomp.graphite/graphite.exp: New.
715 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
717 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
720 2009-08-04 David Daney <ddaney@caviumnetworks.com>
722 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
723 needed memory barrier semantics.
724 * config/linux/mips/mutex.h: New file.
726 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
728 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
730 2009-07-16 Joseph Myers <joseph@codesourcery.com>
732 * configure: Regenerate.
734 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
739 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
740 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
741 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
743 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
745 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
746 options when choosing a multilib.
748 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
750 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
751 ld_library_path. Use add_path. Add just find_libgcc_s to
752 ld_library_path, not every libgcc multilib directory.
753 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
754 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
755 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
757 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
759 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
761 * Makefile.am (LTLDFLAGS): Define.
763 * Makefile.in: Regenerate.
765 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
768 * testsuite/libgomp.fortran/fortran.exp: Don't link with
769 libgfortranbegin, check existence of libgfortran.a instead of
772 2009-05-20 Jakub Jelinek <jakub@redhat.com>
775 * team.c (gomp_thread_start): Destroy thr->release semaphore.
776 (gomp_free_pool_helper): Likewise.
778 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
779 Jakub Jelinek <jakub@redhat.com>
782 * testsuite/libgomp.fortran/workshare2.f90: New test.
784 2009-04-09 Nick Clifton <nickc@redhat.com>
786 * iter.c: Change copyright header to refer to version 3 of the
787 GNU General Public License with version 3.1 of the GCC Runtime
788 Library Exception and to point readers at the COPYING3 and
789 COPYING3.RUNTIME files and the FSF's license web page.
791 * barrier.c: Likewise.
792 * config/bsd/proc.c: Likewise.
793 * config/linux/affinity.c: Likewise.
794 * config/linux/alpha/futex.h: Likewise.
795 * config/linux/bar.c: Likewise.
796 * config/linux/bar.h: Likewise.
797 * config/linux/ia64/futex.h: Likewise.
798 * config/linux/ia64/mutex.h: Likewise.
799 * config/linux/lock.c: Likewise.
800 * config/linux/mips/futex.h: Likewise.
801 * config/linux/mutex.c: Likewise.
802 * config/linux/mutex.h: Likewise.
803 * config/linux/powerpc/futex.h: Likewise.
804 * config/linux/proc.c: Likewise.
805 * config/linux/ptrlock.c: Likewise.
806 * config/linux/ptrlock.h: Likewise.
807 * config/linux/s390/futex.h: Likewise.
808 * config/linux/sem.c: Likewise.
809 * config/linux/sem.h: Likewise.
810 * config/linux/sparc/futex.h: Likewise.
811 * config/linux/wait.h: Likewise.
812 * config/linux/x86/futex.h: Likewise.
813 * config/mingw32/proc.c: Likewise.
814 * config/mingw32/time.c: Likewise.
815 * config/posix/affinity.c: Likewise.
816 * config/posix/bar.c: Likewise.
817 * config/posix/bar.h: Likewise.
818 * config/posix/lock.c: Likewise.
819 * config/posix/mutex.h: Likewise.
820 * config/posix/proc.c: Likewise.
821 * config/posix/ptrlock.h: Likewise.
822 * config/posix/sem.c: Likewise.
823 * config/posix/sem.h: Likewise.
824 * config/posix/time.c: Likewise.
825 * config/posix95/lock.c: Likewise.
826 * critical.c: Likewise.
829 * fortran.c: Likewise.
830 * iter_ull.c: Likewise.
831 * libgomp.h: Likewise.
832 * libgomp_f.h.in: Likewise.
833 * libgomp_g.h: Likewise.
835 * loop_ull.c: Likewise.
836 * omp.h.in: Likewise.
837 * omp_lib.f90.in: Likewise.
838 * omp_lib.h.in: Likewise.
839 * ordered.c: Likewise.
840 * parallel.c: Likewise.
841 * sections.c: Likewise.
842 * single.c: Likewise.
847 2009-04-09 Jakub Jelinek <jakub@redhat.com>
849 * testsuite/config/default.exp: Change copyright header to refer to
850 version 3 of the GNU General Public License and to point readers
851 at the COPYING3 file and the FSF's license web page.
853 2009-04-08 Jakub Jelinek <jakub@redhat.com>
856 * libgomp.c++/pr39573.C: New test.
858 2009-04-01 Jakub Jelinek <jakub@redhat.com>
861 * testsuite/libgomp.c/pr39591-1.c: New test.
862 * testsuite/libgomp.c/pr39591-2.c: New test.
863 * testsuite/libgomp.c/pr39591-3.c: New test.
865 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
867 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
868 * testsuite/libgomp.c/atomic-6.c: Ditto.
870 2009-03-23 Jakub Jelinek <jakub@redhat.com>
873 * testsuite/libgomp.c/loop-12.c: New test.
874 * testsuite/libgomp.c/loop-11.c: New test.
875 * testsuite/libgomp.c++/loop-11.C: New test.
876 * testsuite/libgomp.c++/loop-12.C: New test.
877 * testsuite/libgomp.c++/for-8.C: New test.
879 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
881 * configure: Regenerate.
883 2009-02-11 Jakub Jelinek <jakub@redhat.com>
886 * testsuite/libgomp.c/pr39154.c: New test.
888 2009-01-30 Ian Lance Taylor <iant@google.com>
890 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
891 libgomp_ld_is_gold. Get gold version number.
892 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
893 * configure: Rebuild.
895 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
897 * testsuite/lib/libgomp.exp: Add -B option for targets that
898 use libgfortran.a%s in their specs.
900 2009-01-07 Jakub Jelinek <jakub@redhat.com>
903 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
904 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
905 HAVE_AS_SYMVER_DIRECTIVE is not defined.
906 * configure: Regenerated.
907 * config.h.in: Likewise.
909 2008-12-28 Jakub Jelinek <jakub@redhat.com>
912 * testsuite/libgomp.c/pr38650.c: New test.
913 * testsuite/libgomp.c++/pr38650.C: New test.
915 2008-12-27 Jakub Jelinek <jakub@redhat.com>
917 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
919 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
921 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
923 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
925 * configure: Regenerate.
927 2008-12-08 Jakub Jelinek <jakub@redhat.com>
930 * testsuite/libgomp.c/pr36802-1.c: New test.
931 * testsuite/libgomp.c/pr36802-2.c: New test.
932 * testsuite/libgomp.c/pr36802-3.c: New test.
934 2008-12-01 Janis Johnson <janis187@us.ibm.com>
937 * config/linux/powerpc/mutex.h: New.
939 2008-12-01 Jakub Jelinek <jakub@redhat.com>
942 * testsuite/libgomp.c++/for-7.C: New test.
945 * testsuite/libgomp.c++/for-6.C: New test.
947 2008-11-26 Janis Johnson <janis187@us.ibm.com>
950 * testsuite/lib/libgomp.exp: Include new timeout library files.
951 (libgomp_target_compile): Set timeout value from new proc.
953 2008-11-13 Steve Ellcey <sje@cup.hp.com>
956 * config/linux/ia64/mutex.h: New.
958 2008-11-04 Tobias Burnus <burnus@net-b.de>
961 * libgomp.texi (Runtime library routines, environment variables):
962 Update for OpenMP version 3.0.
964 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
965 Steve Ellcey <sje@cup.hp.com>
967 * configure: Regenerate for new libtool.
968 * Makefile.in: Ditto.
969 * testsuite/Makefile.in: Ditto.
971 2008-09-19 Jakub Jelinek <jakub@redhat.com>
972 Andreas Tobler <a.tobler@schweiz.org>
974 * config/bsd/proc.c: New file.
975 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
976 * configure.ac: Check for header <sys/sysctl.h>
977 * configure: Regenerate.
978 * config.h.in: Likewise.
980 2008-09-05 Janis Johnson <janis187@us.ibm.com>
982 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
984 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
986 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
987 * Makefile.in: Regenerated.
988 * testsuite/Makefile.in: Regenerated.
990 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
992 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
993 depend on blddir if blddir exists.
994 (libgomp_target_compile): Likewise.
995 * testsuite/libgomp.c++/c++.exp: Likewise.
996 * testsuite/libgomp.fortran/fortran.exp: Likewise.
998 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1000 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1001 Do not list GPL as Invariant Section.
1003 2008-07-28 Ilie Garbacea <ilie@mips.com>
1004 Chao-ying Fu <fu@mips.com>
1006 * configure.tgt: Enable futex for MIPS.
1007 * config/linux/mips/futex.h: New file.
1009 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1011 * team.c (gomp_team_end): Free team immediately if it has
1014 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1016 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1017 * testsuite/libgomp.fortran/fortran.exp: Same.
1018 * testsuite/libgomp.c/c.exp: Same.
1019 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1020 directory to library path first.
1022 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1024 * env.c (parse_stacksize): Add cast to avoid warning.
1025 (parse_spincount): Likewise.
1027 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1029 * testsuite/libgomp.c/loop-10.c: New test.
1030 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1031 * libgomp.c++/loop-6.C (main): Likewise.
1034 * testsuite/libgomp.c/debug-1.c: New test.
1036 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1038 * testsuite/libgomp.c/nqueens-1.c: New test.
1041 * testsuite/libgomp.c++/task-7.C: New function.
1043 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1045 * configure: Regenerate.
1047 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1049 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1050 mutex when HAVE_SYNC_BUILTINS isn't defined.
1052 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1054 * libgomp.texi (omp_test_lock): Fix typo.
1056 2008-06-12 Tobias Burnus <burnus@net-b.de>
1058 * omp_lib.f90.in: Add "implicit none".
1060 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1063 * testsuite/libgomp.c/reduction-5.c: New test.
1065 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1067 * libgomp.h (struct gomp_task): Add in_tied_task field.
1068 * task.c (gomp_init_task): Initialize it.
1069 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1070 unconditionally. Don't call gomp_team_barrier_wake if
1071 current task is implicit or if(0) from implicit and number of
1072 running tasks is equal to nthreads - 1.
1075 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1076 omp_get_team_size_8): Fix pastos.
1079 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1080 * configure: Regenerated.
1081 * config.h.in: Regenerated.
1082 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1085 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1088 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1089 (GOMP_loop_ull_dynamic_start): Likewise.
1090 (GOMP_loop_ull_guided_start): Likewise.
1091 (GOMP_loop_ull_ordered_static_start): Likewise.
1092 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1093 (GOMP_loop_ull_ordered_guided_start): Likewise.
1095 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1096 Richard Henderson <rth@redhat.com>
1097 Ulrich Drepper <drepper@redhat.com>
1098 Jakob Blomer <jakob.blomer@ira.uka.de>
1100 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1101 Substitute also OMP_*LOCK_25*.
1102 * configure: Regenerated.
1103 * config.h.in: Regenerated.
1104 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1105 ptrlock.c and task.c.
1106 * Makefile.in: Regenerated.
1107 * testsuite/Makefile.in: Regenerated.
1109 * loop_ull.c: New file.
1110 * iter_ull.c: New file.
1111 * libgomp.h: Include ptrlock.h.
1112 (enum gomp_task_kind): New type.
1113 (struct gomp_team): Add task_lock, task_queue, task_count,
1114 task_running_count, single_count fields. Add
1115 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1116 Remove work_share_lock, generation_mask,
1117 oldest_live_gen, num_live_gen and init_work_shares fields, add
1118 work work_share_list_alloc, work_share_list_free and work_share_chunk
1119 fields. Change work_shares from pointer to pointers into an array.
1120 Change ordered_release field into gomp_sem_t ** from flexible array
1121 member. Add implicit_task and initial_work_shares fields.
1122 Move close to the end of the struct.
1123 (struct gomp_team_state): Add single_count, last_work_share,
1124 active_level and level fields, remove work_share_generation.
1125 (gomp_barrier_handle_tasks): New prototype.
1126 (gomp_finish_task): New inline function.
1127 (struct gomp_work_share): Move chunk_size, end, incr into
1128 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1129 next_ll fields. Reshuffle fields. Add next_alloc,
1130 next_ws, next_free and inline_ordered_team_ids fields, change
1131 ordered_team_ids into pointer from flexible array member.
1132 Add mode field. Put lock and next into a different cache line
1133 from most of the write-once fields.
1134 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1135 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1136 gomp_iter_ull_guided_next): New prototypes.
1137 (gomp_new_icv): New prototype.
1138 (struct gomp_thread): Add thread_pool and task fields.
1139 (struct gomp_thread_pool): New type.
1140 (gomp_new_team): New prototype.
1141 (gomp_team_start): Change type of last argument.
1142 (gomp_new_work_share): Removed.
1143 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1144 (gomp_work_share_init_done): New static inline.
1145 (gomp_throttled_spin_count_var, gomp_available_cpus,
1146 gomp_managed_threads): New extern decls.
1147 (gomp_init_task): New prototype.
1148 (gomp_spin_count_var): New extern var decl.
1149 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1150 or no alias support, or if not PIC.
1151 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1152 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1153 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1154 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1155 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1156 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1157 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1158 gomp_test_nest_lock_25): New prototypes.
1159 (omp_lock_symver, strong_alias): Define.
1160 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1162 (gomp_end_task): New.
1163 (struct gomp_task_icv, gomp_global_icv): New.
1164 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1165 (struct gomp_task): New.
1166 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1167 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1169 (gomp_schedule_type): Reorder enum to match
1171 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1173 (gomp_thread_start): Add gomp_team_barrier_wait call.
1174 For non-nested case remove clearing of docked thread thr fields.
1175 Use pool fields instead of global gomp_* variables. Use
1176 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1177 Create tasks for each member thread.
1178 (free_team): Only destroy team barrier, task_lock here and free it.
1179 (gomp_free_thread): Free last_team if non-NULL.
1180 (gomp_team_end): Call gomp_team_barrier_wait instead of
1181 gomp_barrier_wait. For nested case call one extra
1182 gomp_barrier_wait. Move here some destruction from free_team.
1183 Call free_team on pool->last_team if any, rather than freeing
1184 current team. Destroy work_share_list_free_lock ifndef
1186 (gomp_new_icv): New function.
1187 (gomp_threads, gomp_threads_size, gomp_threads_used,
1188 gomp_threads_dock): Removed.
1189 (gomp_thread_destructor): New variable.
1190 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1192 (gomp_team_start): Create new pool if current thread doesn't have
1193 one. Use pool fields instead of global gomp_* variables.
1194 Initialize thread_pool field for new threads. Clear single_count.
1195 Change last argument from ws to team, don't create
1196 new team, set ts.work_share to &team->work_shares[0] and clear
1197 ts.last_work_share. Don't clear ts.work_share_generation.
1198 If number of threads changed, adjust atomically gomp_managed_threads.
1199 Use gomp_init_task instead of gomp_new_task,
1200 set thr->task to the corresponding implicit_task array entry.
1201 Create tasks for each member thread. Initialize ts.level.
1202 (initialize_team): Call pthread_key_create on
1203 gomp_thread_destructor.
1204 (team_destructor): New function.
1205 (new_team): Removed.
1206 (gomp_new_team): New function.
1207 (free_team): Free gomp_work_share blocks chained through next_alloc,
1208 instead of freeing work_shares and destroying work_share_lock.
1209 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1210 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1211 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1212 of gomp_barrier_wait.
1213 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1214 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1215 if gomp_work_share_start returned true. Don't unlock ws->lock.
1216 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1217 of gomp_barrier_wait.
1218 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1219 gomp_work_share_init_done if gomp_work_share_start returned true.
1220 Don't unlock ws->lock.
1221 * work.c: Include stddef.h.
1222 (free_work_share): Use work_share_list_free_lock instead
1223 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1224 Call gomp_fini_work_share and then either free ws if orphaned, or
1225 put it into work_share_list_free list of the current team.
1226 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1228 (gomp_work_share_start, gomp_work_share_end,
1229 gomp_work_share_end_nowait): Rewritten.
1230 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1231 (openmp_version): Set to 200805.
1232 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1233 omp_sched_guided, omp_sched_auto): New parameters.
1234 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1235 omp_set_max_active_levels, omp_get_max_active_levels,
1236 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1237 omp_get_active_level): New interfaces.
1238 * omp_lib.h.in (openmp_version): Set to 200805.
1239 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1240 omp_sched_guided, omp_sched_auto): New parameters.
1241 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1242 omp_set_max_active_levels, omp_get_max_active_levels,
1243 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1244 omp_get_active_level): New externals.
1245 * loop.c: Include limits.h.
1246 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1248 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1249 Likewise. Use gomp_icv.
1250 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1251 ts.static_trip here.
1252 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1253 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1254 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1255 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1256 don't unlock ws->lock, otherwise lock it.
1257 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1258 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1259 (gomp_parallel_loop_start): Call gomp_new_team instead of
1260 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1261 Adjust gomp_team_start caller. Pass 0 as second argument to
1262 gomp_resolve_num_threads.
1263 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1264 If adding ws->chunk_size nthreads + 1 times after end won't
1265 overflow, set ws->mode to 1.
1266 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1267 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1268 GOMP_loop_ull_ordered_static_start,
1269 GOMP_loop_ull_ordered_dynamic_start,
1270 GOMP_loop_ull_ordered_guided_start,
1271 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1272 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1273 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1274 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1275 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1277 * libgomp.map: Export lock routines also @@OMP_2.0.
1278 (GOMP_loop_ordered_dynamic_first,
1279 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1280 GOMP_loop_ordered_static_first): Remove.
1281 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1282 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1283 GOMP_loop_ull_ordered_dynamic_next,
1284 GOMP_loop_ull_ordered_dynamic_start,
1285 GOMP_loop_ull_ordered_guided_next,
1286 GOMP_loop_ull_ordered_guided_start,
1287 GOMP_loop_ull_ordered_runtime_next,
1288 GOMP_loop_ull_ordered_runtime_start,
1289 GOMP_loop_ull_ordered_static_next,
1290 GOMP_loop_ull_ordered_static_start,
1291 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1292 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1293 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1294 (omp_set_schedule, omp_get_schedule,
1295 omp_get_thread_limit, omp_set_max_active_levels,
1296 omp_get_max_active_levels, omp_get_level,
1297 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1298 omp_set_schedule_, omp_set_schedule_8_,
1299 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1300 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1301 omp_get_max_active_levels_, omp_get_level_,
1302 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1303 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1304 New exports @@OMP_3.0.
1305 * omp.h.in (omp_sched_t): New type.
1306 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1307 omp_set_max_active_levels, omp_get_max_active_levels,
1308 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1309 omp_get_active_level): New prototypes.
1310 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1311 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1312 gomp_thread_limit_var, gomp_remaining_threads_count,
1313 gomp_remaining_threads_lock): New variables.
1314 (parse_spincount): New function.
1315 (initialize_env): Call gomp_init_num_threads unconditionally.
1316 Initialize gomp_available_cpus. Call parse_spincount,
1317 initialize gomp_{,throttled_}spin_count_var
1318 depending on presence and value of OMP_WAIT_POLICY and
1319 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1320 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1321 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1322 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1323 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1324 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1325 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1326 (gomp_global_icv): New.
1327 (parse_schedule): Use it. Parse "auto".
1328 (omp_set_num_threads): Use gomp_icv.
1329 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1331 (omp_get_max_threads): Move from parallel.c.
1332 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1333 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1335 (parse_stacksize, parse_wait_policy): New functions.
1336 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1337 both wrappers for compatibility and new locks.
1338 (omp_set_schedule, omp_get_schedule,
1339 omp_get_thread_limit, omp_set_max_active_levels,
1340 omp_get_max_active_levels, omp_get_level,
1341 omp_get_ancestor_thread_num, omp_get_team_size,
1342 omp_get_active_level): New ialias_redirect.
1343 (omp_set_schedule_, omp_set_schedule_8_,
1344 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1345 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1346 omp_get_max_active_levels_, omp_get_level_,
1347 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1348 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1350 * parallel.c: Include limits.h.
1351 (gomp_resolve_num_threads): Add count argument. Rewritten.
1352 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1353 argument to gomp_team_start. Pass 0 as second argument to
1354 gomp_resolve_num_threads.
1355 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1356 if gomp_thread_limit_var != ULONG_MAX.
1357 (omp_in_parallel): Implement using ts.active_level.
1358 (omp_get_max_threads): Move to env.c.
1359 (omp_get_level, omp_get_ancestor_thread_num,
1360 omp_get_team_size, omp_get_active_level): New functions,
1362 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1363 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1364 gomp_iter_dynamic_next instead of the _locked variant and don't take
1365 lock around it, otherwise acquire it before calling
1366 gomp_iter_dynamic_next_locked.
1367 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1368 gomp_iter_dynamic_next instead of the _locked variant and don't take
1370 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1371 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1372 Adjust gomp_team_start caller. Pass count as second argument to
1373 gomp_resolve_num_threads, don't adjust num_threads after the call.
1375 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1376 ws->chunk_size by incr.
1377 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1379 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1381 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1382 (omp_check_defines): Check even the compat defines.
1383 * config/linux/ptrlock.c: New file.
1384 * config/linux/ptrlock.h: New file.
1385 * config/linux/wait.h: New file.
1386 * config/posix/ptrlock.c: New file.
1387 * config/posix/ptrlock.h: New file.
1388 * config/linux/bar.h (gomp_team_barrier_wait,
1389 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1390 (gomp_team_barrier_set_task_pending,
1391 gomp_team_barrier_clear_task_pending,
1392 gomp_team_barrier_set_waiting_for_tasks,
1393 gomp_team_barrier_waiting_for_tasks,
1394 gomp_team_barrier_done): New inlines.
1395 (gomp_barrier_t): Rewritten.
1396 (gomp_barrier_state_t): New typedef.
1397 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1398 gomp_barrier_wait_start): Rewritten.
1399 (gomp_barrier_wait_end): Change second argument to
1400 gomp_barrier_state_t.
1401 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1403 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1405 (gomp_barrier_wait_end): Rewritten.
1406 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1407 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1408 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1409 (gomp_barrier_state_t): New typedef.
1410 (gomp_team_barrier_wait,
1411 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1412 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1413 into the return value. Return gomp_barrier_state_t.
1414 (gomp_team_barrier_set_task_pending,
1415 gomp_team_barrier_clear_task_pending,
1416 gomp_team_barrier_set_waiting_for_tasks,
1417 gomp_team_barrier_waiting_for_tasks,
1418 gomp_team_barrier_done): New inlines.
1419 (gomp_barrier_wait_end): Change second argument to
1420 gomp_barrier_state_t.
1421 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1423 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1424 (gomp_barrier_wait_end): Change second argument to
1425 gomp_barrier_state_t.
1426 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1427 gomp_team_barrier_wake): New functions.
1428 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1430 (gomp_futex_wake, gomp_futex_wait): New variables.
1431 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1432 * config/linux/lock.c: Rewrite to make locks task owned,
1433 for backwards compatibility provide the old entrypoints
1434 if symbol versioning. Include wait.h instead of libgomp.h and
1436 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1437 * config/posix95/lock.c: Rewrite to make locks task owned,
1438 for backwards compatibility provide the old entrypoints
1439 if symbol versioning.
1440 * config/posix/lock.c: Rewrite to make locks task owned,
1441 for backwards compatibility provide the old entrypoints
1442 if symbol versioning.
1443 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1444 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1445 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1446 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1447 (sys_futex0): Return error code.
1448 (futex_wake, futex_wait): If ENOSYS was returned, clear
1449 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1450 (cpu_relax, atomic_write_barrier): New static inlines.
1451 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1452 (futex_wake, futex_wait): If ENOSYS was returned, clear
1453 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1454 (cpu_relax, atomic_write_barrier): New static inlines.
1455 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1456 (sys_futex0): Return error code.
1457 (futex_wake, futex_wait): If ENOSYS was returned, clear
1458 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1459 (cpu_relax, atomic_write_barrier): New static inlines.
1460 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1461 (sys_futex0): Return error code.
1462 (futex_wake, futex_wait): If ENOSYS was returned, clear
1463 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1464 (cpu_relax, atomic_write_barrier): New static inlines.
1465 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1466 (sys_futex0): Return error code.
1467 (futex_wake, futex_wait): If ENOSYS was returned, clear
1468 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1469 (cpu_relax, atomic_write_barrier): New static inlines.
1470 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1471 (sys_futex0): Return error code.
1472 (futex_wake, futex_wait): If ENOSYS was returned, clear
1473 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1474 (cpu_relax, atomic_write_barrier): New static inlines.
1475 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1477 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1478 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1479 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1481 (omp_nest_lock_t): Change owner into void *, add lock field.
1482 * config/posix95/omp-lock.h: Include semaphore.h.
1483 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1484 (omp_lock_t): Use sem_t instead of mutex if semaphores
1486 (omp_nest_lock_t): Likewise. Change owner to void *.
1487 * config/posix/omp-lock.h: Include semaphore.h.
1488 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1489 (omp_lock_t): Use sem_t instead of mutex if semaphores
1491 (omp_nest_lock_t): Likewise. Add owner field.
1493 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1495 * testsuite/libgomp.c/collapse-1.c: New test.
1496 * testsuite/libgomp.c/collapse-2.c: New test.
1497 * testsuite/libgomp.c/collapse-3.c: New test.
1498 * testsuite/libgomp.c/icv-1.c: New test.
1499 * testsuite/libgomp.c/icv-2.c: New test.
1500 * testsuite/libgomp.c/lib-2.c: New test.
1501 * testsuite/libgomp.c/lock-1.c: New test.
1502 * testsuite/libgomp.c/lock-2.c: New test.
1503 * testsuite/libgomp.c/lock-3.c: New test.
1504 * testsuite/libgomp.c/loop-4.c: New test.
1505 * testsuite/libgomp.c/loop-5.c: New test.
1506 * testsuite/libgomp.c/loop-6.c: New test.
1507 * testsuite/libgomp.c/loop-7.c: New test.
1508 * testsuite/libgomp.c/loop-8.c: New test.
1509 * testsuite/libgomp.c/loop-9.c: New test.
1510 * testsuite/libgomp.c/nested-3.c: New test.
1511 * testsuite/libgomp.c/nestedfn-6.c: New test.
1512 * testsuite/libgomp.c/sort-1.c: New test.
1513 * testsuite/libgomp.c/task-1.c: New test.
1514 * testsuite/libgomp.c/task-2.c: New test.
1515 * testsuite/libgomp.c/task-3.c: New test.
1516 * testsuite/libgomp.c/task-4.c: New test.
1517 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1518 to C++ testsuite default compiler options.
1519 * testsuite/libgomp.c++/collapse-1.C: New test.
1520 * testsuite/libgomp.c++/collapse-2.C: New test.
1521 * testsuite/libgomp.c++/ctor-10.C: New test.
1522 * testsuite/libgomp.c++/for-1.C: New test.
1523 * testsuite/libgomp.c++/for-2.C: New test.
1524 * testsuite/libgomp.c++/for-3.C: New test.
1525 * testsuite/libgomp.c++/for-4.C: New test.
1526 * testsuite/libgomp.c++/for-5.C: New test.
1527 * testsuite/libgomp.c++/loop-8.C: New test.
1528 * testsuite/libgomp.c++/loop-9.C: New test.
1529 * testsuite/libgomp.c++/loop-10.C: New test.
1530 * testsuite/libgomp.c++/task-1.C: New test.
1531 * testsuite/libgomp.c++/task-2.C: New test.
1532 * testsuite/libgomp.c++/task-3.C: New test.
1533 * testsuite/libgomp.c++/task-4.C: New test.
1534 * testsuite/libgomp.c++/task-5.C: New test.
1535 * testsuite/libgomp.c++/task-6.C: New test.
1536 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1537 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1538 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1539 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1540 * testsuite/libgomp.fortran/collapse1.f90: New test.
1541 * testsuite/libgomp.fortran/collapse2.f90: New test.
1542 * testsuite/libgomp.fortran/collapse3.f90: New test.
1543 * testsuite/libgomp.fortran/collapse4.f90: New test.
1544 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1545 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1546 * testsuite/libgomp.fortran/lib4.f90: New test.
1547 * testsuite/libgomp.fortran/lock-1.f90: New test.
1548 * testsuite/libgomp.fortran/lock-2.f90: New test.
1549 * testsuite/libgomp.fortran/nested1.f90: New test.
1550 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1551 * testsuite/libgomp.fortran/strassen.f90: New test.
1552 * testsuite/libgomp.fortran/tabs1.f90: New test.
1553 * testsuite/libgomp.fortran/tabs2.f: New test.
1554 * testsuite/libgomp.fortran/task1.f90: New test.
1555 * testsuite/libgomp.fortran/task2.f90: New test.
1556 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1557 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1558 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1559 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1560 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1562 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1565 * testsuite/libgomp.c++/ctor-11.C: New test.
1566 * testsuite/libgomp.c++/ctor-12.C: New test.
1568 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1570 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1572 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1575 * testsuite/libgomp.c/atomic-5.c: New test.
1576 * testsuite/libgomp.c/atomic-6.c: New test.
1577 * testsuite/libgomp.c/autopar-1.c: New test.
1579 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1581 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1582 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1583 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1584 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1585 * configure: Regenerate.
1586 * Makefile.in, testsuite/Makefile.in: Likewise.
1588 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1591 * aclocal.m4: Regenerate.
1592 * configure: Regenerate.
1594 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1597 * testsuite/libgomp.c/atomic-4.c: New test.
1600 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1601 (gomp_iter_guided_next): Likewise.
1602 * testsuite/libgomp.c/pr35625.c: New test.
1604 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1606 * aclocal.m4: Regenerate.
1607 * configure: Likewise.
1608 * Makefile.in: Likewise.
1609 * testsuite/Makefile.in: Likewise.
1611 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1614 * testsuite/libgomp.c++/pr35185.C: New test.
1616 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1619 * testsuite/libgomp.c/pr35549.c: New test.
1621 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1623 * testsuite/libgomp.c/atomic-3.c: New test.
1625 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1628 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1631 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1634 * configure.ac: Add ACX_HEADER_STRING.
1635 * env.c: Include strings.h.
1636 * aclocal.m4: Regenerate.
1637 * config.h.in: Regenerate.
1638 * configure: Regenerate.
1639 * Makefile.in: Regenerate.
1640 * testsuite/Makefile.in: Regenerate.
1642 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.c/pr35196.c: New test.
1648 * testsuite/libgomp.fortran/pr35130.f90: New test.
1649 * testsuite/libgomp.c/pr35130.c: New test.
1651 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1654 * testsuite/libgomp.c/pr33880.c: New test.
1655 * testsuite/libgomp.fortran/pr33880.f90: New test.
1657 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1659 * configure: Regenerate.
1661 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1663 * configure.ac: Move futex checking into ../config/futex.m4.
1664 * configure: Rebuilt.
1665 * aclocal.m4: Rebuilt.
1666 * Makefile.in: Rebuilt.
1668 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1669 2007-10-15 ../config/tls.m4 change.
1671 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1674 * testsuite/libgomp.c/pr34513.c: New test.
1675 * testsuite/libgomp.c++/pr34513.C: New test.
1677 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1680 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1682 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1684 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1686 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1688 * testsuite/libgomp.c/private-1.c: New test.
1690 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1691 Paolo Bonzini <bonzini@gnu.org>
1693 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1694 instead of 'VPATH ='.
1695 * Makefile.in: Regenerate.
1697 2007-11-23 Matthias Klose <doko@ubuntu.com>
1699 * configure.ac: Adjust makeinfo version check.
1700 * configure: Regenerate.
1702 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1705 * testsuite/libgomp.fortran/pr34020.f90: New test.
1707 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1710 * testsuite/libgomp.c++/atomic-1.C: New test.
1712 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1715 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1716 Make x and y integers rather than (implicit) reals. Add private (j)
1717 clause to the last omp parallel.
1719 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1721 * configure: Regenerate following changes to ../config/tls.m4.
1723 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.fortran/stack.f90: New test.
1727 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1729 * config/mingw32/proc.c: New file.
1731 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1733 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1734 (main): Use __get_cpuid to get i386 target fetaures.
1735 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1736 (main): Use __get_cpuid to get x86_64 target fetaures.
1738 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1741 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1742 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1744 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1747 * testsuite/libgomp.fortran/pr32550.f90: New test.
1748 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1750 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1752 * aclocal.m4: Regenerated.
1754 2007-07-05 Tobias Burnus <burnus@net-b.de>
1757 * testsuite/libgomp.fortran/pr32359.f90: New.
1759 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1762 * sections.c (GOMP_parallel_sections_start): Only decrease
1763 number of threads to COUNT if dyn_var is true.
1764 * testsuite/libgomp.c/pr32468.c: New test.
1766 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1769 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1771 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1774 * testsuite/libgomp.c/pr32362-1.c: New test.
1775 * testsuite/libgomp.c/pr32362-2.c: New test.
1776 * testsuite/libgomp.c/pr32362-3.c: New test.
1778 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1780 * team.c (gomp_team_start): Fix setting up thread_attr
1783 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1785 * configure: Regenerate.
1787 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1789 * Makefile.in: Regenerate.
1790 * configure: Regenerate.
1791 * aclocal.m4: Regenerate.
1792 * testsuite/Makefile.in: Regenerate.
1794 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1796 * config/linux/proc.c: New file.
1799 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1801 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1803 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1805 2007-04-16 Matthias Klose <doko@debian.org>
1807 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1808 flags if not building with -m64.
1809 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1810 flag for i?86-*-* targets, if current target matches -m64.
1812 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1814 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1815 * Makefile.in: Regenerate.
1817 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1820 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1822 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1824 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1826 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1828 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1829 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1830 (parse_affinity): New function.
1831 (initialize_env): Call it and gomp_init_affinity.
1832 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1833 create new pthread_attr_t and call gomp_init_thread_affinity
1834 on it for each thread before passing the attribute to pthread_create.
1835 * config/linux/affinity.c: New file.
1836 * config/posix/affinity.c: New file.
1837 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1838 * configure: Rebuilt.
1839 * config.h.in: Rebuilt.
1840 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1841 * Makefile.in: Rebuilt.
1843 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1845 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1847 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1848 and use it if found.
1850 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1852 * testsuite/config/default.exp: New file.
1853 * testsuite/lib/libgomp.exp: New file.
1854 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1855 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1856 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1857 (libgomp_load): Remove.
1858 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1859 always_ld_library_path, not ld_library_path. Set additional_flags
1860 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1861 (target_compile): Do not call libgomp_init. Append lang_library_path
1862 and lang_link_flags to options.
1863 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1864 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1866 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1867 always_ld_library_path. Set LD_LIBRARY_PATH here.
1868 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1869 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1870 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1872 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1873 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1874 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1875 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1876 * testsuite/libgomp.c/atomic-10.c: Ditto.
1878 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1880 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1881 dg-final cleanup-modules line.
1882 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1883 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1884 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1885 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1886 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1887 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1888 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1890 2007-03-18 Andreas Schwab <schwab@suse.de>
1892 * acinclude.m4: Adjust regular expression for ld version
1894 * configure: Regenerate.
1896 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1898 * Makefile.am: Add install-pdf target as copied from
1899 automake v1.10 rules.
1900 * Makefile.in: Regenerate
1902 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1905 * configure: Regenerate.
1908 * testsuite/libgomp.c++/pr30703.C: New test.
1910 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1913 2006-07-05 Eric Christopher <echristo@apple.com>
1914 * configure.ac: Depend addition of -pthread on host OS.
1915 * configure: Regenerate.
1917 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1919 * libgomp.texi: Fix spacing after abbreviations.
1921 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1924 * configure.ac: Add check for makeinfo
1925 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1926 if an appropiate version of makeinfo is found.
1927 * aclocal.m4: Regenerated.
1928 * configure: Regenerated.
1929 * Makefile.in: Regenerated.
1930 * testsuite/Makefile.in: Regenerated.
1932 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1935 * libgomp.texi: More about implementation-dependent settings.
1937 2007-01-26 Tobias Burnus <burnus@net-b.de>
1939 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1941 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1944 * testsuite/libgomp.c/pr30494.c: New test.
1946 2007-01-15 Tom Tromey <tromey@redhat.com>
1948 * configure: Rebuilt.
1949 * configure.ac: Fixed comment.
1951 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1953 * libgomp.texi: Document implementation specific default values of
1954 environment variables.
1956 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1959 * libgomp.texi: New file.
1960 * configure.ac: Add --enable-generated-files-in-srcdir option.
1961 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1963 * Makefile.in: Regenerated.
1964 * config.h.in: Regenerated.
1965 * testsuite/Makefile.in: Regenerated.
1968 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1971 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1973 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1975 * configure: Regenerate.
1977 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1980 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1981 start if there shouldn't be any loop iterations.
1982 (gomp_loop_ordered_static_start): Remove start == end test.
1983 * testsuite/libgomp.c/pr29947-1.c: New test.
1984 * testsuite/libgomp.c/pr29947-2.c: New test.
1986 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1988 * configure.tgt: Force initial-exec TLS model on Linux only.
1990 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1992 * configure: Regenerated.
1994 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1996 * env.c (parse_schedule): Reject out of range values.
1997 (parse_unsigned_long): Reject out of range, negative or zero values.
1999 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2002 * testsuite/libgomp.fortran/pr29629.f90: New test.
2004 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2007 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2008 * config/posix95: New directory.
2009 * config/posix95/omp-lock.h: New file.
2010 * config/posix95/lock.c: Likewise.
2012 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2014 * aclocal.m4: Regenerate.
2015 * configure: Regenerate.
2017 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2019 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2022 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2024 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2026 * configure: Regenerate.
2027 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2029 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2033 * testsuite/libgomp.c/nestedfn-4.c: New test.
2034 * testsuite/libgomp.c/nestedfn-5.c: New test.
2035 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2038 * testsuite/libgomp.fortran/condinc1.f: New test.
2039 * testsuite/libgomp.fortran/condinc2.f: New test.
2040 * testsuite/libgomp.fortran/condinc3.f90: New test.
2041 * testsuite/libgomp.fortran/condinc4.f90: New test.
2042 * testsuite/libgomp.fortran/condinc1.inc: New file.
2044 2006-09-18 Tom Tromey <tromey@redhat.com>
2046 * configure: Rebuilt.
2048 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2051 PR preprocessor/14634
2052 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2054 * configure: Regenerate.
2056 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2058 * testsuite/libgomp.fortran/reduction3.f90: Change
2059 -2147483648 to -huge(i)-1 to avoid overflow.
2060 * testsuite/libgomp.fortran/reduction4.f90: Change
2061 Z'ffffffff' to not(0) to avoid overflow.
2063 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2066 * Makefile.am (libsubincludedir): New.
2067 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2068 * Makefile.in: Regenerate.
2070 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2073 * env.c: Include ctype.h.
2074 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2075 leading and/or trailing whitespace and compare strings case
2078 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2081 * testsuite/libgomp.fortran/pr28390.f: New test.
2083 2006-07-05 Eric Christopher <echristo@apple.com>
2085 * configure.ac: Depend addition of -pthread on host OS.
2086 * configure: Regenerate.
2088 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2090 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2091 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2094 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2098 * configure.ac: If neither --enable-linux-futex nor
2099 --disable-linux-futex is passed, determine the default by checking
2100 for compiling and/or running against NPTL. With --enable-linux-futex,
2101 check if SYS_gettid and SYS_futex are defined.
2102 * configure: Rebuilt.
2104 2006-06-14 Richard Henderson <rth@redhat.com>
2107 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2108 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2110 2006-06-09 Richard Henderson <rth@redhat.com>
2112 * env.c (gomp_nthreads_var): Change to unsigned long.
2113 (gomp_run_sched_chunk): Likewise.
2114 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2115 (initialize_env): Initialize gomp_thread_attr.
2116 * libgomp.h (gomp_nthreads_var): Update decl.
2117 (gomp_run_sched_chunk): Likewise.
2118 (gomp_thread_attr): Declare.
2119 * team.c (gomp_thread_attr): Export.
2120 (initialize_team): Don't initialize it.
2122 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2125 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2126 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2128 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2130 * config/mingw32/time.c: New file.
2131 * configure.tgt: Use it.
2133 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2135 * Makefile.am: Add install-html target. Add install-html to .PHONY
2136 * Makefile.in: Regenerate.
2138 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2141 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2142 * testsuite/libgomp.c/critical-1.c: Likewise.
2143 * testsuite/libgomp.c/loop-1.c: Likewise.
2144 * testsuite/libgomp.c/loop-2.c: Likewise.
2145 * testsuite/libgomp.c/single-1.c: Likewise.
2146 * testsuite/libgomp.c/ordered-1.c: Likewise.
2147 * testsuite/libgomp.c/ordered-2.c: Likewise.
2149 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2152 * libgomp.fortran/pr27416-1.f90: New test.
2154 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2157 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2158 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2160 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2163 * testsuite/libgomp.c/pr26943-1.c: New test.
2164 * testsuite/libgomp.c/pr26943-2.c: New test.
2165 * testsuite/libgomp.c/pr26943-3.c: New test.
2166 * testsuite/libgomp.c/pr26943-4.c: New test.
2167 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2168 * testsuite/libgomp.c++/pr26943.C: New test.
2170 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2173 * testsuite/libgomp.c++/pr27337.C: New test.
2175 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2178 * testsuite/libgomp.c/pr26171.c: New test.
2180 2006-04-25 Richard Henderson <rth@redhat.com>
2183 * configure.ac: Use GCC_CHECK_TLS.
2184 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2185 * Makefile.in, aclocal.m4, configure: Regenerate.
2187 2006-04-10 Matthias Klose <doko@debian.org>
2189 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2190 directory names containing underscores.
2192 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2195 * testsuite/libgomp.c++/pr26691.C: New test.
2197 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2199 * testsuite/libgomp.fortran/retval2.f90: New test.
2201 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2203 * testsuite/libgomp.c++: New directory.
2205 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2207 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2208 * config/posix/sem.c: Implement the above.
2210 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2212 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2213 define HAVE_BROKEN_POSIX_SEMAPHORES.
2214 * configure: Rebuilt.
2215 * config.h.in: Rebuilt.
2217 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2220 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2221 for the other pthread check.
2222 * configure: Regenerate.
2223 * config.h.in: Regenerate.
2225 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2229 * Makefile.am (fincludedir): New variable.
2230 (nodist_include_HEADERS): Remove Fortran files.
2231 (nodist_finclude_HEADERS): New variable.
2232 * Makefile.in: Regenerated.
2234 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2236 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2237 Remove tests for returning assumed character length arrays.
2239 2006-02-12 Roger Sayle <roger@eyesopen.com>
2240 John David Anglin <dave@hiauly1.hia.nrc.ca>
2243 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2245 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2247 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2249 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2251 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2252 part of LD_LIBRARY_PATH manually.
2254 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2257 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2260 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2263 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2264 * configure.ac (PERL): Don't set.
2265 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2266 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2267 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2268 * omp.h.in: Wrap the new configure substitutions with @ characters.
2269 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2270 * aclocal.m4, configure, Makefile.in: Regenerate.
2271 * mkomp_h.pl: Delete.
2273 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2276 * configure.ac: Use GCC_HEADER_STDINT.
2277 * libgomp.h: Include gstdint.h.
2278 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2279 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2281 2006-01-24 Richard Henderson <rth@redhat.com>
2284 * configure.ac: Add AM_MAINTAINER_MODE.
2285 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2287 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2289 * Makefile.in: Regenerate.
2290 * testsuite/Makefile.in: Regenerate.
2291 * aclocal.m4: Regenerate.
2293 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2295 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2297 * configure.ac: Add check for loadavg.h.
2298 (link_gomp): Adjust comment.
2299 * configure: Regenerate.
2300 * config.h.in: Regenerate.
2302 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2305 * configure.ac: Remove check for alloca.h.
2306 * configure: Regenerate.
2307 * config.h.in: Regenerate.
2308 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2309 * team.c: Remove use of alloca.h.
2310 Call gomp_alloca instead of alloca.
2312 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2315 * team.c: Add include of alloca.h.
2316 * configure.ac: Add check for alloca.h.
2317 * configure: Regenerate.
2318 * config.h.in: Regenerate.
2320 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2323 * testsuite/libgomp.fortran/pr25219.f90: New test.
2325 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2327 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2328 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2329 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2330 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2331 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2332 testsuite/libgomp.fortran/threadprivate1.f90,
2333 testsuite/libgomp.fortran/threadprivate2.f90,
2334 testsuite/libgomp.fortran/threadprivate3.f90,
2335 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2336 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2337 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2338 effective-target to TLS runtime.
2340 * testsuite/libgomp.fortran/pr25162.f: Require
2341 effective-target TLS runtime.
2343 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2345 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2346 * testsuite/libgomp.c/nestedfn-3.c: New test.
2348 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2351 * testsuite/libgomp.fortran/pr25162.f: New test.
2353 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2355 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2356 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2358 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2360 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2361 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2362 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2363 single.c, team.c, work.c, config/linux/alpha/futex.h,
2364 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2365 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2366 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2367 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2368 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2369 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2370 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2373 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2375 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2376 to nodist_noinst_HEADERS.
2377 * Makefile.in: Rebuilt.
2379 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2380 add integer count field.
2381 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2382 omp_nest_lock_t type change.
2383 (omp_init_nest_lock): Likewise. Initialize count to 0.
2384 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2386 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2388 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2389 Increment count if successful and return the new nesting level.
2390 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2391 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2392 * testsuite/libgomp.c/lib-1.c: New test.
2393 * testsuite/libgomp.fortran/lib1.f90: New test.
2394 * testsuite/libgomp.fortran/lib2.f: New test.
2395 * testsuite/libgomp.fortran/lib3.f: New test.
2397 2005-11-17 Richard Henderson <rth@redhat.com>
2400 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2401 * configure.ac (link_gomp): New. Substitute it.
2402 (AC_CONFIG_FILES): Add libgomp.spec.
2403 * libgomp.spec.in: New file.
2404 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2405 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2407 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2409 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2410 reduction(-:var) behaving the same as reduction(+:var).
2411 * testsuite/libgomp.c/reduction-4.c: New test.
2413 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2415 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2416 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2417 testsuite/libgomp.c/copyin-3.c,
2418 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2419 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2420 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2421 testsuite/libgomp.c++/pr24455.C,
2422 testsuite/libgomp.fortran/threadprivate1.f90,
2423 testsuite/libgomp.fortran/threadprivate2.f90,
2424 testsuite/libgomp.fortran/threadprivate3.f90,
2425 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2426 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2427 testsuite/libgomp.fortran/omp_parse3.f90: Require
2428 effective-target TLS.
2430 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2434 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2437 * team.c (initialize_team): Pass NULL rather than free as
2438 pthread_key_create destructor. Initialize thread specific data
2439 pointer in initial thread to a static local variable rather than
2442 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2444 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2445 its location to ld_library_path.
2447 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2449 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2451 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2453 * testsuite/libgomp.c: Rename from libgomp.dg.
2455 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2457 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2458 threadprivate variable 'i'.
2460 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2462 * config/linux/s390/futex.h: New file.
2463 * configure.tgt: Use it.
2465 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2466 before the parallel.
2468 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2471 * testsuite/libgomp.c++/master-1.C: New test.
2473 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2475 * testsuite/libgomp.dg/copyin-3.c: New test.
2477 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2479 * testsuite/libgomp.fortran/retval1.f90: New test.
2480 * testsuite/libgomp.fortran/vla7.f90: New test.
2482 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2484 * testsuite/libgomp.fortran/vla2.f90: New test.
2485 * testsuite/libgomp.fortran/vla3.f90: New test.
2486 * testsuite/libgomp.fortran/vla4.f90: New test.
2487 * testsuite/libgomp.fortran/vla5.f90: New test.
2488 * testsuite/libgomp.fortran/vla6.f90: New test.
2490 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2492 * config/linux/sparc/futex.h: New file.
2493 * configure.tgt: Use it.
2494 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2496 * critical.c: Include stdlib.h.
2497 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2498 ignoring return value.
2499 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2500 LIBGOMP_CHECK_SYNC_BUILTINS check.
2501 * configure: Rebuilt.
2503 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2505 * testsuite/libgomp.fortran/vla1.f90: New test.
2507 2005-10-31 Richard Henderson <rth@redhat.com>
2509 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2510 setting 's' in different threads.
2512 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2514 * libgomp.h (attribute_hidden, ialias): Define.
2515 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2516 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2517 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2518 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2519 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2520 omp_test_lock, omp_test_nest_lock): Likewise.
2521 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2522 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2523 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2524 omp_test_lock, omp_test_nest_lock): Likewise.
2525 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2526 omp_get_dynamic, omp_get_nested): Likewise.
2527 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2528 omp_get_thread_num, omp_in_parallel): Likewise.
2529 * fortran.c (ialias_redirect): Define.
2530 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2531 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2532 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2533 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2534 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2535 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2536 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2537 omp_get_wtime): Add ialias_redirect.
2539 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2541 * fortran.c: Include stdlib.h.
2543 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2545 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2546 * Makefile.in: Regenerated.
2548 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2550 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2551 * libgomp_f.h.in (omp_check_defines): New function.
2552 * env.c: Include libgomp_f.h.
2553 (initialize_env): Call omp_check_defines.
2555 * testsuite/libgomp.dg/copyin-2.c: New test.
2556 * testsuite/libgomp.c++/copyin-2.C: New test.
2557 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2559 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2560 * testsuite/libgomp.fortran/sharing2.f90: New test.
2562 * testsuite/libgomp.dg/copyin-1.c: New test.
2563 * testsuite/libgomp.c++/copyin-1.C: New test.
2565 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2567 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2569 * testsuite/libgomp.fortran/workshare1.f90: New test.
2571 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2573 * libgomp.fortran/sharing1.f90: New test.
2575 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2578 * testsuite/libgomp.c++/loop-7.C: New test.
2580 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2582 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2583 * testsuite/libgomp.fortran/reduction6.f90: New test.
2584 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2586 2005-10-23 Richard Henderson <rth@redhat.com>
2588 * testsuite/libgomp.c++/ctor-1.C: New.
2589 * testsuite/libgomp.c++/ctor-2.C: New.
2590 * testsuite/libgomp.c++/ctor-3.C: New.
2591 * testsuite/libgomp.c++/ctor-4.C: New.
2592 * testsuite/libgomp.c++/ctor-5.C: New.
2593 * testsuite/libgomp.c++/ctor-6.C: New.
2594 * testsuite/libgomp.c++/ctor-7.C: New.
2595 * testsuite/libgomp.c++/ctor-8.C: New.
2596 * testsuite/libgomp.c++/ctor-9.C: New.
2598 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2601 * testsuite/libgomp.c++/pr24455-1.C: New test.
2602 * testsuite/libgomp.c++/pr24455.C: New test.
2603 * testsuite/libgomp.dg/pr24455-1.c: New test.
2604 * testsuite/libgomp.dg/pr24455.c: New test.
2606 2005-10-20 Richard Henderson <rth@redhat.com>
2608 * testsuite/libgomp.c++/loop-6.C: New.
2609 * testsuite/libgomp.dg/loop-3.c: New.
2611 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2613 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2615 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2618 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2620 * testsuite/libgomp.fortran/jacobi.f: New test.
2622 2005-10-19 Richard Henderson <rth@redhat.com>
2624 * configure.tgt (i?86-linux): Default to with_arch instead of
2625 CFLAGS. Add -mtune to match target_cpu.
2626 (x86_64-linux): Tune to i686.
2628 * fortran.c (omp_test_nest_lock_): Fix typo.
2630 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2632 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2633 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2634 * testsuite/libgomp.dg/ordered-3.c: New test.
2636 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2637 Remove volatile keyword.
2639 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2640 in COMMON block to avoid warnings on 64-bit targets.
2642 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2644 * testsuite/libgomp.dg/shared-3.c: New test.
2646 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2648 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2649 * testsuite/libgomp.fortran/reduction5.f90: New test.
2651 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2653 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2655 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2656 flush loop now that __sync_synchronize has proper memory barrier.
2657 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2658 Add -ffixed-form to dg-options.
2660 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2662 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2663 from subdirectories.
2664 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2665 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2666 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2667 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2668 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2669 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2670 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2671 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2672 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2673 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2674 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2675 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2676 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2677 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2678 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2679 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2680 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2681 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2682 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2683 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2684 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2685 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2686 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2687 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2688 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2690 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2692 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2693 lang_library_path exists. Use find instead of glob to gather tests.
2694 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2696 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2698 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2699 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2700 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2701 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2702 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2703 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2704 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2705 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2706 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2707 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2708 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2709 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2710 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2712 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2714 * testsuite/libgomp.dg/vla-1.c: New test.
2716 * testsuite/libgomp.fortran/reference2.f90: New test.
2718 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2719 declaration of omp_get_thread_num.
2720 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2723 * testsuite/libgomp.fortran/reduction1.f90: New test.
2724 * testsuite/libgomp.fortran/reduction2.f90: New test.
2725 * testsuite/libgomp.fortran/reduction3.f90: New test.
2726 * testsuite/libgomp.fortran/reduction4.f90: New test.
2728 2005-10-13 Richard Henderson <rth@redhat.com>
2730 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2731 * Makefile.in: Regenerate.
2732 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2733 * libgomp.h: Include bar.h.
2734 (struct gomp_barrier): Remove.
2735 (struct gomp_team): Add barrier. Replace master_barrier with
2736 master_release. Replace threads with ordered_release.
2737 (struct gomp_thread): Replace barrier with release.
2738 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2739 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2740 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2741 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2742 (GOMP_single_copy_end): Likewise.
2743 * team.c (gomp_threads_dock): New.
2744 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2745 (gomp_thread_start): Use gomp_barrier_wait.
2746 (new_team, free_team): Update for gomp_team changes.
2747 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2748 (gomp_team_end): Use gomp_barrier_wait.
2749 (initialize_team): Update for gomp_thread changes.
2750 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2751 (gomp_work_share_end_nowait): Use atomic ops when available.
2752 * config/linux/bar.c, config/linux/bar.h: New files.
2753 * config/posix/bar.c, config/posix/bar.h: New files.
2755 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2757 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2758 * testsuite/libgomp.dg/single-2.c: New test.
2760 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2761 lang_link_flags): Unset, so that they aren't inherited from previously
2764 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2766 2005-10-12 Richard Henderson <rth@redhat.com>
2768 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2769 (libgomp_init): Use lang_test_file, lang_library_path, and
2770 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2772 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2773 (lang_test_file, lang_link_flags): New.
2774 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2776 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2777 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2778 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2779 testsuite/libgomp.c++/parallel-1.C,
2780 testsuite/libgomp.c++/reduction-1.C,
2781 testsuite/libgomp.c++/reduction-2.C,
2782 testsuite/libgomp.c++/reduction-3.C,
2783 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2784 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2785 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2786 New files, largely cribbed from the C testsuite.
2788 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2790 * testsuite/libgomp.fortran/character1.f90: New test.
2791 * testsuite/libgomp.fortran/character2.f90: New test.
2793 * testsuite/libgomp.dg/nested-1.c: New test.
2794 * testsuite/libgomp.dg/nested-2.c: New test.
2795 * testsuite/libgomp.fortran/do1.f90: New test.
2796 * testsuite/libgomp.fortran/do2.f90: New test.
2798 * testsuite/libgomp.fortran/reference1.f90: New test.
2800 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2802 * testsuite/libgomp.dg/reduction-1.c: New test.
2803 * testsuite/libgomp.dg/reduction-2.c: New test.
2804 * testsuite/libgomp.dg/reduction-3.c: New test.
2806 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2808 * testsuite/libgomp.dg/atomic-1.c: New test.
2809 * testsuite/libgomp.dg/atomic-2.c: New test.
2811 2005-10-09 Richard Henderson <rth@redhat.com>
2813 * critical.c (atomic_lock): New.
2814 (initialize_critical): Initialize it.
2815 (GOMP_atomic_start, GOMP_atomic_end): New.
2816 * libgomp.map: Export them.
2817 * libgomp_g.h: Declare them.
2819 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2821 2005-10-02 Richard Henderson <rth@redhat.com>
2823 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2824 to XCFLAGS instead of CFLAGS.
2826 2005-09-30 Richard Henderson <rth@redhat.com>
2828 * configure.ac: Determine whether -pthread or -lpthread is needed.
2829 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2830 * Makefine.in, configure: Rebuild.
2832 2005-09-28 Richard Henderson <rth@redhat.com>
2834 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2835 * testsuite/libgomp.dg/omp-single-3.c: New test.
2837 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2839 * testsuite/libgomp.dg/omp-single-2.c: New test.
2840 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2842 2005-09-27 Richard Henderson <rth@redhat.com>
2844 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2845 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2847 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2849 * testsuite/libgomp.dg/omp-loop03.c: New test.
2851 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2853 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2855 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2857 * testsuite/libgomp.dg/omp-single-1.c: New test.
2858 * testsuite/libgomp.dg/shared-1.c: Return 0.
2859 Add prototype for abort.
2860 * testsuite/libgomp.dg/shared-2.c: Likewise.
2862 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2864 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2867 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2869 * testsuite/libgomp.dg/shared-1.c: New test.
2870 * testsuite/libgomp.dg/shared-2.c: New test.
2872 2005-09-24 Richard Henderson <rth@redhat.com>
2874 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2876 2005-09-24 Richard Henderson <rth@redhat.com>
2878 * iter.c (gomp_iter_static_next): Round up when computing number
2879 of iterations. Don't bother distributing a remainder equally.
2881 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2882 Don't call srand. Zero b before testing.
2885 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2887 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2888 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2890 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2892 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2893 without !$omp end do, followed immediately by subroutine end.
2895 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2897 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2899 2005-09-22 Richard Henderson <rth@redhat.com>
2901 * critical.c (GOMP_critical_name_start): Change argument to void**.
2902 Reuse the pointer space if the mutex fits.
2903 (GOMP_critical_name_end): Likewise.
2904 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2905 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2906 (GOMP_critical_name_end): Likewise.
2907 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2908 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2910 2005-09-20 Richard Henderson <rth@redhat.com>
2912 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2913 (create_lock_lock): New.
2914 (initialize_critical): Initialize it.
2915 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2916 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2918 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2920 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2922 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2924 * testsuite/libgomp.dg/omp-loop01.c: New test.
2925 * testsuite/libgomp.dg/omp-loop02.c: New test.
2927 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2929 * configure.ac (AC_PROG_FC): Add.
2930 (USE_FORTRAN): New automake conditional.
2931 * configure: Rebuilt.
2932 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2933 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2934 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2935 Add rules to build them.
2936 * Makefile.in: Rebuilt.
2937 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2939 * libgomp.map: Add Fortran wrappers.
2940 * libgomp_f.h.in: New file.
2941 * omp_lib.h.in: New file.
2942 * omp_lib.f90.in: New file.
2943 * fortran.c: New file.
2944 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2945 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2946 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2947 libgfortran has been built.
2948 * testsuite/libgomp.fortran/fortran.exp: New file.
2949 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2950 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2951 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2952 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2953 * testsuite/libgomp.fortran/omp_hello.f: New test.
2954 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2955 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2956 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2957 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2958 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2959 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2960 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2961 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2963 2005-08-30 Richard Henderson <rth@redhat.com>
2965 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2966 function for when aliases are not usable.
2967 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2968 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2969 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2970 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2971 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2972 GOMP_loop_ordered_guided_next): Likewise.
2973 * ordered.c (GOMP_ordered_start): Likewise.
2975 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2977 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2978 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2979 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2980 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2981 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2982 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2983 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2984 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2985 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2987 2005-07-07 Eric Christopher <echristo@redhat.com>
2988 Diego Novillo <dnovillo@redhat.com>
2990 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2991 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2993 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2994 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2995 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2996 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2997 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2998 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2999 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3001 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3003 * TOPLEVEL.patch: Remove.
3005 2005-05-16 Richard Henderson <rth@redhat.com>
3007 * configure.ac: Test for clock_gettime.
3008 * config.h.in, configure: Rebuild.
3009 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3010 (omp_get_wtime): Use clock_gettime if available.
3011 (omp_get_wtick): Use clock_getres if available.
3013 2005-05-11 Richard Henderson <rth@redhat.com>
3015 * config/linux/ia64/futex.h: New file.
3016 * configure.tgt: Use it.
3018 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3020 2005-05-07 Richard Henderson <rth@redhat.com>
3022 * config/linux/powerpc/futex.h: New file.
3023 * configure.tgt: Use it.
3025 * config/linux/i486/futex.h: Merge ...
3026 * config/linux/x86_64/futex.h: ... into ...
3027 * config/linux/x86/futex.h: ... here.
3028 * configure.tgt: Update to match.
3030 2005-05-06 Richard Henderson <rth@redhat.com>
3032 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3033 * config/linux/i486/futex.h: Likewise.
3034 * config/linux/x86_64/futex.h: Likewise.
3036 * config/linux/lock.c: New file.
3037 * config/linux/omp-lock.h: New file.
3039 * critical.c, env.h: Don't include omp.h
3040 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3041 * config/posix/time.c: Likewise.
3042 * config/posix/omp-lock.h: New file.
3043 * libgomp.h: Include omp-lock.h and omp.h.
3044 * Makefile.am (nodist_include_HEADERS): New.
3046 * configure.ac (PERL): New.
3047 * mkomp_h.pl: New file.
3048 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3050 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3052 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3053 build directory. Re-add -march=i486 hack.
3055 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3056 (libgomp_link_flags): Remove.
3057 (libgomp_initialized): Remove.
3058 (libgomp_init): Don't protect from reinitialization. Copy code
3059 from libstdc++ for getting the multilib set correctly.
3061 2005-05-05 Richard Henderson <rth@redhat.com>
3063 * config/linux/alpha/futex.h: New file.
3064 * configure.tgt (alpha*-*-linux*): Use it.
3066 * config/posix/mutex.c: New file.
3067 * config/posix/sem.c: Use libgomp.h.
3069 * configure.tgt (x86_64-linux): Also test CC for -m32.
3070 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3072 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3075 * Makefile.am (SUBDIRS): New.
3076 (libgomp_la_LDFLAGS): Add -lpthread.
3077 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3078 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3080 * libgomp_g.h: New file.
3081 * libgomp.h: Split out all public declarations to libgomp_g.h.
3082 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3083 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3084 * config/linux/sem.h: Likewise.
3085 * config/posix/sem.h: Likewise.
3087 * Makefile.am (AM_LDFLAGS): New.
3088 (libgomp_version_script): Split out from ...
3089 (libgomp_la_LDFLAGS): ... here.
3090 (libgomp_version_info): New.
3091 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3092 (LIBGOMP_ENABLE): New.
3093 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3094 (LIBGOMP_ENABLE_SYMVERS): New.
3095 * configure.ac (AC_INIT): Version 1.0.
3096 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3097 (enable-linux-futex): Likewise. Rename from enable-futex.
3098 (libtool_VERSION): New.
3099 (LIBGOMP_ENABLE_SYMVERS): Use it.
3100 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3101 * Makefile.in, aclocal.m4, configure: Rebuild.
3103 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3104 (gomp_mutex_unlock_slow): Fix typo.
3105 * config/linux/sem.c: Similarly.
3106 (gomp_sem_post_slow): Fix typo.
3107 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3108 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3109 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3111 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3112 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3113 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3114 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3115 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3116 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3117 LDFLAGS. Pull enable_futex check to top-level.
3118 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3119 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3121 First attempt at real configury.
3122 * Makefile, config.h: Remove file.
3123 * Makefile.am, Makefile.in: New file.
3124 * acinclude.m4 aclocal.m4: New file.
3125 * configure.ac, configure.tgt, configure: New file.
3127 * config/posix/lock.c: Rename from sys-lock.c.
3128 * config/posix/mutex.h: Rename from sys-mutex.h.
3129 * config/posix/sem.c: Rename from sys-sem.c.
3130 * config/posix/sem.h: Rename from sys-sem.h.
3131 * config/posix/proc.c: Rename from sys-proc.c.
3132 * config/posix/time.c: Rename from sys-proc.c.
3134 * config/linux/mutex.c: New file.
3135 * config/linux/mutex.h: New file.
3136 * config/linux/sem.c: New file.
3137 * config/linux/sem.h: New file.
3138 * config/linux/i486/futex.h: New file.
3139 * config/linux/x86_64/futex.h: New file.
3141 2005-05-04 Richard Henderson <rth@redhat.com>
3143 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3144 * libgomp.h: Declare them.
3145 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3146 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3148 2005-05-04 Richard Henderson <rth@redhat.com>
3150 * libgomp-1 code drop
3152 2005-05-04 Richard Henderson <rth@redhat.com>
3154 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3155 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3156 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3157 (gomp_iter_static_next): Update.
3158 (gomp_ordered_static_next): Update.
3159 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3160 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3161 totally empty range.
3162 (gomp_loop_ordered_static_next): Refine test for calling
3163 gomp_ordered_static_next.
3164 * testsuite/ordered-1.c: Add case for more threads than iterations.
3166 * iter.c (gomp_iter_runtime_next_locked): Remove.
3167 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3168 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3169 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3170 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3171 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3172 gomp_loop_ordered_guided_next): Downcase name, make static, add
3173 an external alias with the old name.
3174 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3175 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3176 switch and call one of the above static functions.
3177 * libgomp.h: Update.
3179 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3180 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3181 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3182 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3183 GOMP_loop_ordered_guided_start): Update to match.
3184 * sections.c (GOMP_sections_start): Likewise.
3185 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3187 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3188 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3189 Use bounds check instead of modulus.
3190 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3191 (gomp_ordered_last): Don't sync with ordered_owner here.
3192 (gomp_ordered_next): Likewise.
3193 (gomp_ordered_static_loop_next): Likewise.
3194 * loop.c, libgomp.h: Update to match.
3196 * libgomp.h (GOMP_barrier): Declare.
3198 * testsuite/barrier-1.c: New file.
3199 * testsuite/critical-1.c: New file.
3200 * testsuite/ordered-2.c: New file.
3201 * testsuite/ordered-1.c: New file.
3202 * testsuite/sections-1.c: New file.
3203 * testsuite/single-1.c: New file.
3204 * testsuite/Makefile (TESTS): Add them.
3206 2005-05-04 Richard Henderson <rth@redhat.com>
3208 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3209 * loop.c (GOMP_loop_static_start): If not the startup thread,
3210 acquire the mutex to wait for initialization complete.
3211 (GOMP_loop_ordered_static_start): Likewise.
3212 (GOMP_loop_ordered_runtime_start): Likewise.
3213 (GOMP_loop_ordered_static_first): Remove.
3214 (GOMP_loop_ordered_dynamic_first): Remove.
3215 (GOMP_loop_ordered_guided_first): Remove.
3216 (GOMP_loop_ordered_runtime_first): Remove.
3217 * ordered.c (gomp_ordered_loop_first): Post to own release when
3218 we're the first thread.
3219 (gomp_ordered_loop_last): Wait on release if not owner.
3220 (gomp_ordered_loop_next): Likewise.
3221 (gomp_ordered_static_loop_init): New.
3222 (gomp_ordered_static_loop_next): Use ordered_owner.
3223 (GOMP_ordered_start): Likewise.
3224 * work.c (gomp_new_work_share): Initialize ordered_owner.
3226 2005-05-03 Richard Henderson <rth@redhat.com>
3228 * Makefile (OPT): New.
3231 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3232 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3233 * libgomp.h, libgomp.map, NOTES: Update to match.
3235 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3236 Add initialized and thr members.
3237 (gomp_thread_start): Pause when initially spawned to wait for
3238 the whole team to be created.
3239 (gomp_team_start): Release team members at the end.
3241 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3242 (f_foo_1): Use GOMP_loop_end.
3243 (f_foo_2): Use GOMP_loop_end_nowait.
3245 * testsuite/loop-2.c: New file.
3246 * testsuite/Makefile (TESTS): Add it.
3248 2005-05-03 Richard Henderson <rth@redhat.com>
3250 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3251 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3252 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3255 * testsuite/Makefile: New file.
3256 * testsuite/loop-1.c: New file.
3258 2005-05-03 Richard Henderson <rth@redhat.com>
3260 Initial implementation and checkin.