1 2013-01-22 Alan Modra <amodra@gmail.com>
5 * task.c (GOMP_task): Revert 2011-12-09 change.
6 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
7 barrier to read task->children..
8 (gomp_barrier_handle_tasks): ..and matching atomic store with
9 release barrier here when setting parent->children to NULL.
11 2012-11-21 Jakub Jelinek <jakub@redhat.com>
14 * team.c (gomp_free_thread): Decrease gomp_managed_threads
15 if pool had any threads_used.
17 2012-09-20 Release Manager
21 2012-06-14 Jakub Jelinek <jakub@redhat.com>
23 Backported from mainline
24 2012-06-07 Jakub Jelinek <jakub@redhat.com>
27 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
28 use GOMP_barrier () call instead.
29 * testsuite/libgomp.c/pr26943-3.c: Likewise.
30 * testsuite/libgomp.c/pr26943-4.c: Likewise.
31 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
32 call GOMP_barrier instead.
33 * testsuite/libgomp.fortran/vla5.f90: Likewise.
35 2012-06-06 Jakub Jelinek <jakub@redhat.com>
38 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
39 argument to memset call.
41 2012-06-14 Release Manager
45 2012-03-22 Jakub Jelinek <jakub@redhat.com>
48 * testsuite/libgomp.c/pr52547.c: New test.
50 2012-03-22 Release Manager
54 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
56 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
58 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
62 Remove ENABLE_SYMVERS_SOL2.
63 * configure: Regenerate.
64 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
65 (PREPROCESS): New variable.
66 (libgomp.ver): New target.
67 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
68 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
69 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
71 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
72 * Makefile.in: Regenerate.
74 2012-02-14 Walter Lee <walt@tilera.com>
76 * configure.tgt: Handle tilegx and tilepro.
77 * config/linux/tile/futex.h: New file.
79 2012-02-08 Richard Guenther <rguenther@suse.de>
81 PR tree-optimization/46886
82 * testsuite/libgomp.c/pr46886.c: New testcase.
84 2012-01-25 Matthias Klose <doko@ubuntu.com>
86 * config/linux/arm: Remove empty directory.
87 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
89 2011-12-09 Alan Modra <amodra@gmail.com>
92 * task.c (GOMP_taskwait): Don't access task->children outside of
93 task_lock mutex region.
94 (GOMP_task): Likewise.
96 2011-12-06 Jakub Jelinek <jakub@redhat.com>
99 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
101 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
102 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
103 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
104 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
105 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
107 2011-12-02 Alan Modra <amodra@gmail.com>
109 * config/linux/affinity.c: Use atomic rather than sync builtin.
110 * config/linux/lock.c: Likewise.
111 * config/linux/ptrlock.h: Likewise.
112 * config/linux/ptrlock.c: Likewise.
113 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
114 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
115 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
116 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
117 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
118 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
119 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
120 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
121 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
122 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
124 2011-11-30 Alan Modra <amodra@gmail.com>
127 * config/linux/bar.h: Use atomic rather than sync builtins.
128 * config/linux/bar.c: Likewise. Add missing acquire
129 synchronisation on generation field.
130 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
133 2011-11-30 Alan Modra <amodra@gmail.com>
135 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
136 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
137 * config/linux/mutex.h: Use atomic rather than sync builtins.
138 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
139 * config/linux/omp-lock.h: Comment fix.
140 * config/linux/arm/mutex.h: Delete.
141 * config/linux/powerpc/mutex.h: Delete.
142 * config/linux/ia64/mutex.h: Delete.
143 * config/linux/mips/mutex.h: Delete.
145 2011-11-30 Alan Modra <amodra@gmail.com>
148 * config/linux/sem.h: Rewrite.
149 * config/linux/sem.c: Rewrite.
151 2011-11-28 Richard Henderson <rth@redhat.com>
153 * libgomp.h (enum memmodel): New.
155 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
157 * configure: Regenerate.
159 2011-10-10 Matthias Klose <doko@ubuntu.com>
161 * config/posix95: Remove empty directory.
163 2011-08-26 Jakub Jelinek <jakub@redhat.com>
165 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
167 2011-08-19 Jakub Jelinek <jakub@redhat.com>
170 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
171 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
173 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
175 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
177 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
180 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
182 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
184 * config/linux/proc.h: New.
185 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
186 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
187 (gomp_init_num_threads): Update call to cpuset_popcount.
188 (get_num_procs): Ditto.
189 * config/linux/affinity.c (gomp_init_affinity): Call
190 gomp_cpuset_popcount.
192 2011-08-02 Jakub Jelinek <jakub@redhat.com>
196 * omp.h.in (omp_in_final): New prototype.
197 * omp_lib.f90.in (omp_in_final): New interface.
198 (omp_integer_kind, omp_logical_kind): Remove
199 and replace all its uses in the module with 4.
200 (openmp_version): Change to 201107.
201 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
202 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
203 kind for the parameters.
204 (omp_in_final): New external.
205 (openmp_version): Change to 201107.
206 * task.c (omp_in_final): New function.
207 (gomp_init_task): Initialize final_task.
208 (GOMP_task): Remove unused attribute from flags. Handle final
210 (GOMP_taskyield): New function.
211 (omp_in_final): Return true if if (false) or final (true) task
212 or descendant of final (true).
213 * fortran.c (omp_in_final_): New function.
214 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
215 (GOMP_3.0): Export GOMP_taskyield.
216 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
218 (parse_unsigned_long_list): New function.
219 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
220 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
221 even if parse_affinity returned false.
222 * config/linux/affinity.c (gomp_init_affinity): Handle
223 gomp_cpu_affinity_len == 0.
224 * libgomp_g.h (GOMP_taskyield): New prototype.
225 * libgomp.h (struct gomp_task): Add final_task field.
226 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
227 * team.c (gomp_team_start): Override new task's nthreads_var icv
228 if list form OMP_NUM_THREADS has been used and it has value for
229 the new nesting level.
231 * testsuite/libgomp.c/atomic-11.c: New test.
232 * testsuite/libgomp.c/atomic-12.c: New test.
233 * testsuite/libgomp.c/atomic-13.c: New test.
234 * testsuite/libgomp.c/atomic-14.c: New test.
235 * testsuite/libgomp.c/reduction-6.c: New test.
236 * testsuite/libgomp.c/task-5.c: New test.
237 * testsuite/libgomp.c++/atomic-2.C: New test.
238 * testsuite/libgomp.c++/atomic-3.C: New test.
239 * testsuite/libgomp.c++/atomic-4.C: New test.
240 * testsuite/libgomp.c++/atomic-5.C: New test.
241 * testsuite/libgomp.c++/atomic-6.C: New test.
242 * testsuite/libgomp.c++/atomic-7.C: New test.
243 * testsuite/libgomp.c++/atomic-8.C: New test.
244 * testsuite/libgomp.c++/atomic-9.C: New test.
245 * testsuite/libgomp.c++/task-8.C: New test.
246 * testsuite/libgomp.c++/reduction-4.C: New test.
247 * testsuite/libgomp.fortran/allocatable7.f90: New test.
248 * testsuite/libgomp.fortran/allocatable8.f90: New test.
249 * testsuite/libgomp.fortran/crayptr3.f90: New test.
250 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
251 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
252 * testsuite/libgomp.fortran/pointer1.f90: New test.
253 * testsuite/libgomp.fortran/pointer2.f90: New test.
254 * testsuite/libgomp.fortran/task4.f90: New test.
256 2011-08-02 Tobias Burnus <burnus@net-b.de>
258 * libgomp.texi: Update OpenMP spec references to 3.1.
259 (omp_in_final,OMP_PROC_BIND): New sections.
260 (OMP_NUM_THREADS): Document that the value can be now a list.
261 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
263 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
265 * config/linux/x86/futex.h: Check __x86_64__ instead of
268 2011-07-29 Jakub Jelinek <jakub@redhat.com>
272 * testsuite/libgomp.c/pr49897-1.c: New test.
273 * testsuite/libgomp.c/pr49897-2.c: New test.
274 * testsuite/libgomp.c/pr49898-1.c: New test.
275 * testsuite/libgomp.c/pr49898-2.c: New test.
277 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
279 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
280 for ia32 instead of ilp32.
282 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
283 * testsuite/libgomp.c/atomic-6.c: Likewise.
285 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
287 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
288 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
290 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
293 * config/osf/sem.h: New file.
294 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
296 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
299 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
302 2011-07-15 Jakub Jelinek <jakub@redhat.com>
304 * config/linux/wait.h (do_spin): New inline, largely copied
305 from do_wait, just don't do futex_wait here, instead return true if
307 (do_wait): Implement using do_spin.
308 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
310 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
311 __sync_bool_compare_and_swap, pass the oldval to
312 gomp_mutex_lock_slow.
313 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
314 If all mutex contenders are just spinning and not sleeping, don't
315 change state to 2 unnecessarily. Optimize the loop when state has
316 already become 2 to use just one atomic operation per loop instead
318 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
320 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
321 __sync_bool_compare_and_swap, pass the oldval to
322 gomp_mutex_lock_slow.
324 2011-06-22 Jakub Jelinek <jakub@redhat.com>
327 * iter.c (gomp_iter_static_next): For chunk size 0
328 only use n ceil/ nthreads size for the first
329 n % nthreads threads in the team instead of
330 all threads except for the last few ones which
331 get less work or none at all.
332 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
333 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
334 chunk argument, set run_sched_modifier to 0 for static
335 resp. 1 for other kinds. If chunk argument is 0
336 and not static, set value to 1.
338 2011-05-19 Jakub Jelinek <jakub@redhat.com>
341 * testsuite/libgomp.c++/pr49043.C: New test.
344 * testsuite/libgomp.c++/pr48869.C: New test.
346 2011-05-06 Jakub Jelinek <jakub@redhat.com>
349 * fortran.c: Include limits.h.
351 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
353 (omp_set_num_threads_8_, omp_set_schedule_8_,
354 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
355 omp_get_team_size_8_): Use TO_INT macro.
356 * testsuite/libgomp.fortran/pr48894.f90: New test.
358 2011-04-13 Jakub Jelinek <jakub@redhat.com>
361 * testsuite/libgomp.c/pr48591.c: New test.
363 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
366 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
367 * configure: Regenerate.
369 2011-02-27 Jakub Jelinek <jakub@redhat.com>
372 * testsuite/libgomp.fortran/task3.f90: New test.
374 2011-02-24 Tobias Burnus <burnus@net-b.de>
376 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
378 2011-02-23 Jakub Jelinek <jakub@redhat.com>
381 * libgomp.texi (omp_get_wtime): Don't say time in the past
384 2011-02-18 Jakub Jelinek <jakub@redhat.com>
387 * testsuite/libgomp.fortran/fortran.exp: Check for both
388 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
389 but $blddir != "", still append ${blddir}/${lang_library_path}
392 2011-02-16 Tobias Burnus <burnus@net-b.de>
395 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
396 of libquadmath.a before adding its libpath to ldflags.
398 2011-02-14 Jakub Jelinek <jakub@redhat.com>
401 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
402 to FUTEX_WAIT futex syscall.
403 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
405 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
407 * configure: Regenerate.
409 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
412 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
414 2011-01-16 Gerald Pfeifer
416 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
418 2010-12-14 Jakub Jelinek <jakub@redhat.com>
421 * libgomp.fortran/allocatable6.f90: New test.
423 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
425 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
426 * configure: Regenerate.
428 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
432 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
433 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
434 * aclocal.m4: Regenerate.
435 * configure: Regenerate.
436 * Makefile.in: Regenerate.
437 * testsuite/Makefile.in: Regenerate.
439 2010-12-02 Jakub Jelinek <jakub@redhat.com>
442 * libgomp.fortran/pr46753.f90: New test.
445 * env.c (initialize_env): Default to spin count 300000
446 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
450 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
451 at the end if sync builtins aren't supported.
453 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
455 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
457 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
459 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
461 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
463 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
465 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
466 Tobias Burnus <burnus@net-b.de>
470 * configure: Regenerate.
472 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
474 * config/linux/futex.h: New.
475 * config/linux/arm/mutex.h: New.
476 * configure.tgt (arm*-*-linux*): Add config path.
478 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
480 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
482 2010-09-23 Tobias Burnus <burnus@net-b.de>
484 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
485 Change Fortran datatype to LOGICAL.
486 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
487 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
489 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
491 * configure: Regenerate.
493 2010-07-26 Jakub Jelinek <jakub@redhat.com>
495 * libgomp.texi: Add function keyword to a couple of Fortran
496 interfaces, use integer instead of int for Fortran.
498 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
500 * libgomp.texi: Fix spelling and pasto problems throughout.
501 Adjust prototypes to match code.
503 2010-07-24 Tobias Burnus <burnus@net-b.de>
505 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
506 silence -fwhole-file warning.
508 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
510 * configure.tgt (*-*-solaris2.[56]*): Removed.
512 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
514 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
515 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
516 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
517 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
518 targetting solaris2*.
519 * configure: Regenerate.
520 * config.h.in: Regenerate.
522 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
523 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
524 Add libgomp_version_dep.
525 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
527 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
528 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
529 * Makefile.in: Regenerate.
531 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
532 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
533 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
534 to common block, protected by
535 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
537 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
539 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
541 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
544 * configure: Regenerate.
546 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
550 * configure: Regenerate.
551 * Makefile.in: Regenerate.
552 * testsuite/Makefile.in: Regenerate.
554 2010-04-26 Jakub Jelinek <jakub@redhat.com>
557 * testsuite/libgomp.c/pr43893.c: New test.
558 * testsuite/libgomp.c++/pr43893.C: New test.
560 2010-04-21 Jakub Jelinek <jakub@redhat.com>
563 * testsuite/libgomp.fortran/vla8.f90: New test.
565 2010-04-20 Jakub Jelinek <jakub@redhat.com>
568 * config/linux/affinity.c (gomp_init_affinity): Decrease
569 gomp_available_cpus if affinity mask confines the process to fewer
571 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
572 non-NULL, just return gomp_available_cpus.
575 * sections.c (gomp_sections_init): Initialize ws->mode.
577 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
579 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
580 not unused bar variable.
581 * configure: Regenerate.
583 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
585 * Makefile.in: Regenerate.
586 * aclocal.m4: Regenerate.
587 * testsuite/Makefile.in: Regenerate.
589 2010-03-22 Jakub Jelinek <jakub@redhat.com>
592 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
593 (initialize_env): Adjust callers.
594 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
595 when the argument is 0.
597 * testsuite/libgomp.c/pr42942.c: New test.
599 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
603 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
604 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
606 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
608 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
609 * testsuite/libgomp.c++/task-6.C: Likewise.
611 2010-01-28 Steve Ellcey <sje@cup.hp.com>
613 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
615 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
617 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
618 * configure: Regenerate.
620 2010-01-26 Jakub Jelinek <jakub@redhat.com>
623 * testsuite/libgomp.fortran/allocatable5.f90: New test.
625 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
627 * configure.ac: Test for executability of GFORTRAN.
628 * configure: Regenerate.
630 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
632 * configure: Regenerate.
634 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
637 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
639 2010-01-03 Richard Guenther <rguenther@suse.de>
641 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
643 2009-12-23 Sebastian Pop <sebpop@gmail.com>
645 * testsuite/libgomp.graphite/pr4118.c: New.
647 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
649 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
650 for darwin, protect the test with require-effective-target tls_runtime.
651 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
653 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
656 * testsuite/lib/libgomp.exp: Provide -B options to allow for
657 link spec %s substitutions for static libraries.
659 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
662 * libgomp.graphite/force-parallel-2.c: Reduce array size.
664 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
666 * Makefile.in: Regenerate.
667 * configure: Regenerate.
668 * testsuite/Makefile.in: Regenerate.
670 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
672 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
673 settings for LC_ALL and LANG.
675 2009-11-25 Jakub Jelinek <jakub@redhat.com>
678 * testsuite/libgomp.fortran/pr42162.f90: New test.
680 2009-11-13 Jakub Jelinek <jakub@redhat.com>
683 * testsuite/libgomp.c/pr42029.c: New test.
685 2009-10-26 Jakub Jelinek <jakub@redhat.com>
687 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
688 *s. Accept ld version without text in ()s.
689 * configure: Regenerated.
691 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
693 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
695 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
698 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
699 or a hyphen (happens with fortran language disabled).
700 * configure: Regenerate.
702 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
704 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
705 use sed script portable to Solaris /bin/sed for extracting ld
707 * configure: Regenerate.
709 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
711 * testsuite/libgomp.graphite/bounds.c: New test.
713 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
715 * Makefile.am (libgomp_la_LINK): New.
716 * Makefile.in: Regenerate.
718 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
720 * configure.ac (AC_PREREQ): Bump to 2.64.
722 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
724 * Makefile.am (install-html, install-pdf): Remove.
725 * Makefile.in: Regenerate.
727 * Makefile.in: Regenerate.
728 * aclocal.m4: Regenerate.
729 * config.h.in: Regenerate.
730 * configure: Regenerate.
731 * testsuite/Makefile.in: Regenerate.
733 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
735 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
736 * Makefile.in: Regenerate.
738 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
740 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
741 * Makefile.in: Regenerate.
743 2009-08-19 Tobias Burnus <burnus@net-b.de>
746 omp_lib.h.in: Fix -std=f95 errors.
749 2009-08-14 David Edelsohn <edelsohn@gnu.org>
751 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
752 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
753 * testsuite/libgomp.graphite/graphite.exp: New.
755 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
757 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
760 2009-08-04 David Daney <ddaney@caviumnetworks.com>
762 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
763 needed memory barrier semantics.
764 * config/linux/mips/mutex.h: New file.
766 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
768 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
770 2009-07-16 Joseph Myers <joseph@codesourcery.com>
772 * configure: Regenerate.
774 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
779 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
780 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
781 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
783 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
785 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
786 options when choosing a multilib.
788 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
790 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
791 ld_library_path. Use add_path. Add just find_libgcc_s to
792 ld_library_path, not every libgcc multilib directory.
793 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
794 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
795 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
797 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
799 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
801 * Makefile.am (LTLDFLAGS): Define.
803 * Makefile.in: Regenerate.
805 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
808 * testsuite/libgomp.fortran/fortran.exp: Don't link with
809 libgfortranbegin, check existence of libgfortran.a instead of
812 2009-05-20 Jakub Jelinek <jakub@redhat.com>
815 * team.c (gomp_thread_start): Destroy thr->release semaphore.
816 (gomp_free_pool_helper): Likewise.
818 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
819 Jakub Jelinek <jakub@redhat.com>
822 * testsuite/libgomp.fortran/workshare2.f90: New test.
824 2009-04-09 Nick Clifton <nickc@redhat.com>
826 * iter.c: Change copyright header to refer to version 3 of the
827 GNU General Public License with version 3.1 of the GCC Runtime
828 Library Exception and to point readers at the COPYING3 and
829 COPYING3.RUNTIME files and the FSF's license web page.
831 * barrier.c: Likewise.
832 * config/bsd/proc.c: Likewise.
833 * config/linux/affinity.c: Likewise.
834 * config/linux/alpha/futex.h: Likewise.
835 * config/linux/bar.c: Likewise.
836 * config/linux/bar.h: Likewise.
837 * config/linux/ia64/futex.h: Likewise.
838 * config/linux/ia64/mutex.h: Likewise.
839 * config/linux/lock.c: Likewise.
840 * config/linux/mips/futex.h: Likewise.
841 * config/linux/mutex.c: Likewise.
842 * config/linux/mutex.h: Likewise.
843 * config/linux/powerpc/futex.h: Likewise.
844 * config/linux/proc.c: Likewise.
845 * config/linux/ptrlock.c: Likewise.
846 * config/linux/ptrlock.h: Likewise.
847 * config/linux/s390/futex.h: Likewise.
848 * config/linux/sem.c: Likewise.
849 * config/linux/sem.h: Likewise.
850 * config/linux/sparc/futex.h: Likewise.
851 * config/linux/wait.h: Likewise.
852 * config/linux/x86/futex.h: Likewise.
853 * config/mingw32/proc.c: Likewise.
854 * config/mingw32/time.c: Likewise.
855 * config/posix/affinity.c: Likewise.
856 * config/posix/bar.c: Likewise.
857 * config/posix/bar.h: Likewise.
858 * config/posix/lock.c: Likewise.
859 * config/posix/mutex.h: Likewise.
860 * config/posix/proc.c: Likewise.
861 * config/posix/ptrlock.h: Likewise.
862 * config/posix/sem.c: Likewise.
863 * config/posix/sem.h: Likewise.
864 * config/posix/time.c: Likewise.
865 * config/posix95/lock.c: Likewise.
866 * critical.c: Likewise.
869 * fortran.c: Likewise.
870 * iter_ull.c: Likewise.
871 * libgomp.h: Likewise.
872 * libgomp_f.h.in: Likewise.
873 * libgomp_g.h: Likewise.
875 * loop_ull.c: Likewise.
876 * omp.h.in: Likewise.
877 * omp_lib.f90.in: Likewise.
878 * omp_lib.h.in: Likewise.
879 * ordered.c: Likewise.
880 * parallel.c: Likewise.
881 * sections.c: Likewise.
882 * single.c: Likewise.
887 2009-04-09 Jakub Jelinek <jakub@redhat.com>
889 * testsuite/config/default.exp: Change copyright header to refer to
890 version 3 of the GNU General Public License and to point readers
891 at the COPYING3 file and the FSF's license web page.
893 2009-04-08 Jakub Jelinek <jakub@redhat.com>
896 * libgomp.c++/pr39573.C: New test.
898 2009-04-01 Jakub Jelinek <jakub@redhat.com>
901 * testsuite/libgomp.c/pr39591-1.c: New test.
902 * testsuite/libgomp.c/pr39591-2.c: New test.
903 * testsuite/libgomp.c/pr39591-3.c: New test.
905 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
907 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
908 * testsuite/libgomp.c/atomic-6.c: Ditto.
910 2009-03-23 Jakub Jelinek <jakub@redhat.com>
913 * testsuite/libgomp.c/loop-12.c: New test.
914 * testsuite/libgomp.c/loop-11.c: New test.
915 * testsuite/libgomp.c++/loop-11.C: New test.
916 * testsuite/libgomp.c++/loop-12.C: New test.
917 * testsuite/libgomp.c++/for-8.C: New test.
919 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
921 * configure: Regenerate.
923 2009-02-11 Jakub Jelinek <jakub@redhat.com>
926 * testsuite/libgomp.c/pr39154.c: New test.
928 2009-01-30 Ian Lance Taylor <iant@google.com>
930 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
931 libgomp_ld_is_gold. Get gold version number.
932 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
933 * configure: Rebuild.
935 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
937 * testsuite/lib/libgomp.exp: Add -B option for targets that
938 use libgfortran.a%s in their specs.
940 2009-01-07 Jakub Jelinek <jakub@redhat.com>
943 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
944 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
945 HAVE_AS_SYMVER_DIRECTIVE is not defined.
946 * configure: Regenerated.
947 * config.h.in: Likewise.
949 2008-12-28 Jakub Jelinek <jakub@redhat.com>
952 * testsuite/libgomp.c/pr38650.c: New test.
953 * testsuite/libgomp.c++/pr38650.C: New test.
955 2008-12-27 Jakub Jelinek <jakub@redhat.com>
957 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
959 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
961 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
963 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
965 * configure: Regenerate.
967 2008-12-08 Jakub Jelinek <jakub@redhat.com>
970 * testsuite/libgomp.c/pr36802-1.c: New test.
971 * testsuite/libgomp.c/pr36802-2.c: New test.
972 * testsuite/libgomp.c/pr36802-3.c: New test.
974 2008-12-01 Janis Johnson <janis187@us.ibm.com>
977 * config/linux/powerpc/mutex.h: New.
979 2008-12-01 Jakub Jelinek <jakub@redhat.com>
982 * testsuite/libgomp.c++/for-7.C: New test.
985 * testsuite/libgomp.c++/for-6.C: New test.
987 2008-11-26 Janis Johnson <janis187@us.ibm.com>
990 * testsuite/lib/libgomp.exp: Include new timeout library files.
991 (libgomp_target_compile): Set timeout value from new proc.
993 2008-11-13 Steve Ellcey <sje@cup.hp.com>
996 * config/linux/ia64/mutex.h: New.
998 2008-11-04 Tobias Burnus <burnus@net-b.de>
1001 * libgomp.texi (Runtime library routines, environment variables):
1002 Update for OpenMP version 3.0.
1004 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1005 Steve Ellcey <sje@cup.hp.com>
1007 * configure: Regenerate for new libtool.
1008 * Makefile.in: Ditto.
1009 * testsuite/Makefile.in: Ditto.
1011 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1012 Andreas Tobler <a.tobler@schweiz.org>
1014 * config/bsd/proc.c: New file.
1015 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1016 * configure.ac: Check for header <sys/sysctl.h>
1017 * configure: Regenerate.
1018 * config.h.in: Likewise.
1020 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1022 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1024 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1026 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1027 * Makefile.in: Regenerated.
1028 * testsuite/Makefile.in: Regenerated.
1030 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1032 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1033 depend on blddir if blddir exists.
1034 (libgomp_target_compile): Likewise.
1035 * testsuite/libgomp.c++/c++.exp: Likewise.
1036 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1038 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1040 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1041 Do not list GPL as Invariant Section.
1043 2008-07-28 Ilie Garbacea <ilie@mips.com>
1044 Chao-ying Fu <fu@mips.com>
1046 * configure.tgt: Enable futex for MIPS.
1047 * config/linux/mips/futex.h: New file.
1049 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1051 * team.c (gomp_team_end): Free team immediately if it has
1054 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1056 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1057 * testsuite/libgomp.fortran/fortran.exp: Same.
1058 * testsuite/libgomp.c/c.exp: Same.
1059 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1060 directory to library path first.
1062 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1064 * env.c (parse_stacksize): Add cast to avoid warning.
1065 (parse_spincount): Likewise.
1067 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1069 * testsuite/libgomp.c/loop-10.c: New test.
1070 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1071 * libgomp.c++/loop-6.C (main): Likewise.
1074 * testsuite/libgomp.c/debug-1.c: New test.
1076 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1078 * testsuite/libgomp.c/nqueens-1.c: New test.
1081 * testsuite/libgomp.c++/task-7.C: New function.
1083 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1085 * configure: Regenerate.
1087 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1089 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1090 mutex when HAVE_SYNC_BUILTINS isn't defined.
1092 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1094 * libgomp.texi (omp_test_lock): Fix typo.
1096 2008-06-12 Tobias Burnus <burnus@net-b.de>
1098 * omp_lib.f90.in: Add "implicit none".
1100 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1103 * testsuite/libgomp.c/reduction-5.c: New test.
1105 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1107 * libgomp.h (struct gomp_task): Add in_tied_task field.
1108 * task.c (gomp_init_task): Initialize it.
1109 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1110 unconditionally. Don't call gomp_team_barrier_wake if
1111 current task is implicit or if(0) from implicit and number of
1112 running tasks is equal to nthreads - 1.
1115 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1116 omp_get_team_size_8): Fix pastos.
1119 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1120 * configure: Regenerated.
1121 * config.h.in: Regenerated.
1122 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1125 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1128 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1129 (GOMP_loop_ull_dynamic_start): Likewise.
1130 (GOMP_loop_ull_guided_start): Likewise.
1131 (GOMP_loop_ull_ordered_static_start): Likewise.
1132 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1133 (GOMP_loop_ull_ordered_guided_start): Likewise.
1135 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1136 Richard Henderson <rth@redhat.com>
1137 Ulrich Drepper <drepper@redhat.com>
1138 Jakob Blomer <jakob.blomer@ira.uka.de>
1140 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1141 Substitute also OMP_*LOCK_25*.
1142 * configure: Regenerated.
1143 * config.h.in: Regenerated.
1144 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1145 ptrlock.c and task.c.
1146 * Makefile.in: Regenerated.
1147 * testsuite/Makefile.in: Regenerated.
1149 * loop_ull.c: New file.
1150 * iter_ull.c: New file.
1151 * libgomp.h: Include ptrlock.h.
1152 (enum gomp_task_kind): New type.
1153 (struct gomp_team): Add task_lock, task_queue, task_count,
1154 task_running_count, single_count fields. Add
1155 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1156 Remove work_share_lock, generation_mask,
1157 oldest_live_gen, num_live_gen and init_work_shares fields, add
1158 work work_share_list_alloc, work_share_list_free and work_share_chunk
1159 fields. Change work_shares from pointer to pointers into an array.
1160 Change ordered_release field into gomp_sem_t ** from flexible array
1161 member. Add implicit_task and initial_work_shares fields.
1162 Move close to the end of the struct.
1163 (struct gomp_team_state): Add single_count, last_work_share,
1164 active_level and level fields, remove work_share_generation.
1165 (gomp_barrier_handle_tasks): New prototype.
1166 (gomp_finish_task): New inline function.
1167 (struct gomp_work_share): Move chunk_size, end, incr into
1168 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1169 next_ll fields. Reshuffle fields. Add next_alloc,
1170 next_ws, next_free and inline_ordered_team_ids fields, change
1171 ordered_team_ids into pointer from flexible array member.
1172 Add mode field. Put lock and next into a different cache line
1173 from most of the write-once fields.
1174 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1175 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1176 gomp_iter_ull_guided_next): New prototypes.
1177 (gomp_new_icv): New prototype.
1178 (struct gomp_thread): Add thread_pool and task fields.
1179 (struct gomp_thread_pool): New type.
1180 (gomp_new_team): New prototype.
1181 (gomp_team_start): Change type of last argument.
1182 (gomp_new_work_share): Removed.
1183 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1184 (gomp_work_share_init_done): New static inline.
1185 (gomp_throttled_spin_count_var, gomp_available_cpus,
1186 gomp_managed_threads): New extern decls.
1187 (gomp_init_task): New prototype.
1188 (gomp_spin_count_var): New extern var decl.
1189 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1190 or no alias support, or if not PIC.
1191 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1192 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1193 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1194 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1195 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1196 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1197 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1198 gomp_test_nest_lock_25): New prototypes.
1199 (omp_lock_symver, strong_alias): Define.
1200 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1202 (gomp_end_task): New.
1203 (struct gomp_task_icv, gomp_global_icv): New.
1204 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1205 (struct gomp_task): New.
1206 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1207 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1209 (gomp_schedule_type): Reorder enum to match
1211 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1213 (gomp_thread_start): Add gomp_team_barrier_wait call.
1214 For non-nested case remove clearing of docked thread thr fields.
1215 Use pool fields instead of global gomp_* variables. Use
1216 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1217 Create tasks for each member thread.
1218 (free_team): Only destroy team barrier, task_lock here and free it.
1219 (gomp_free_thread): Free last_team if non-NULL.
1220 (gomp_team_end): Call gomp_team_barrier_wait instead of
1221 gomp_barrier_wait. For nested case call one extra
1222 gomp_barrier_wait. Move here some destruction from free_team.
1223 Call free_team on pool->last_team if any, rather than freeing
1224 current team. Destroy work_share_list_free_lock ifndef
1226 (gomp_new_icv): New function.
1227 (gomp_threads, gomp_threads_size, gomp_threads_used,
1228 gomp_threads_dock): Removed.
1229 (gomp_thread_destructor): New variable.
1230 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1232 (gomp_team_start): Create new pool if current thread doesn't have
1233 one. Use pool fields instead of global gomp_* variables.
1234 Initialize thread_pool field for new threads. Clear single_count.
1235 Change last argument from ws to team, don't create
1236 new team, set ts.work_share to &team->work_shares[0] and clear
1237 ts.last_work_share. Don't clear ts.work_share_generation.
1238 If number of threads changed, adjust atomically gomp_managed_threads.
1239 Use gomp_init_task instead of gomp_new_task,
1240 set thr->task to the corresponding implicit_task array entry.
1241 Create tasks for each member thread. Initialize ts.level.
1242 (initialize_team): Call pthread_key_create on
1243 gomp_thread_destructor.
1244 (team_destructor): New function.
1245 (new_team): Removed.
1246 (gomp_new_team): New function.
1247 (free_team): Free gomp_work_share blocks chained through next_alloc,
1248 instead of freeing work_shares and destroying work_share_lock.
1249 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1250 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1251 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1252 of gomp_barrier_wait.
1253 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1254 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1255 if gomp_work_share_start returned true. Don't unlock ws->lock.
1256 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1257 of gomp_barrier_wait.
1258 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1259 gomp_work_share_init_done if gomp_work_share_start returned true.
1260 Don't unlock ws->lock.
1261 * work.c: Include stddef.h.
1262 (free_work_share): Use work_share_list_free_lock instead
1263 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1264 Call gomp_fini_work_share and then either free ws if orphaned, or
1265 put it into work_share_list_free list of the current team.
1266 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1268 (gomp_work_share_start, gomp_work_share_end,
1269 gomp_work_share_end_nowait): Rewritten.
1270 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1271 (openmp_version): Set to 200805.
1272 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1273 omp_sched_guided, omp_sched_auto): New parameters.
1274 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1275 omp_set_max_active_levels, omp_get_max_active_levels,
1276 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1277 omp_get_active_level): New interfaces.
1278 * omp_lib.h.in (openmp_version): Set to 200805.
1279 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1280 omp_sched_guided, omp_sched_auto): New parameters.
1281 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1282 omp_set_max_active_levels, omp_get_max_active_levels,
1283 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1284 omp_get_active_level): New externals.
1285 * loop.c: Include limits.h.
1286 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1288 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1289 Likewise. Use gomp_icv.
1290 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1291 ts.static_trip here.
1292 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1293 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1294 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1295 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1296 don't unlock ws->lock, otherwise lock it.
1297 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1298 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1299 (gomp_parallel_loop_start): Call gomp_new_team instead of
1300 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1301 Adjust gomp_team_start caller. Pass 0 as second argument to
1302 gomp_resolve_num_threads.
1303 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1304 If adding ws->chunk_size nthreads + 1 times after end won't
1305 overflow, set ws->mode to 1.
1306 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1307 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1308 GOMP_loop_ull_ordered_static_start,
1309 GOMP_loop_ull_ordered_dynamic_start,
1310 GOMP_loop_ull_ordered_guided_start,
1311 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1312 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1313 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1314 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1315 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1317 * libgomp.map: Export lock routines also @@OMP_2.0.
1318 (GOMP_loop_ordered_dynamic_first,
1319 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1320 GOMP_loop_ordered_static_first): Remove.
1321 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1322 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1323 GOMP_loop_ull_ordered_dynamic_next,
1324 GOMP_loop_ull_ordered_dynamic_start,
1325 GOMP_loop_ull_ordered_guided_next,
1326 GOMP_loop_ull_ordered_guided_start,
1327 GOMP_loop_ull_ordered_runtime_next,
1328 GOMP_loop_ull_ordered_runtime_start,
1329 GOMP_loop_ull_ordered_static_next,
1330 GOMP_loop_ull_ordered_static_start,
1331 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1332 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1333 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1334 (omp_set_schedule, omp_get_schedule,
1335 omp_get_thread_limit, omp_set_max_active_levels,
1336 omp_get_max_active_levels, omp_get_level,
1337 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1338 omp_set_schedule_, omp_set_schedule_8_,
1339 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1340 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1341 omp_get_max_active_levels_, omp_get_level_,
1342 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1343 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1344 New exports @@OMP_3.0.
1345 * omp.h.in (omp_sched_t): New type.
1346 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1347 omp_set_max_active_levels, omp_get_max_active_levels,
1348 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1349 omp_get_active_level): New prototypes.
1350 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1351 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1352 gomp_thread_limit_var, gomp_remaining_threads_count,
1353 gomp_remaining_threads_lock): New variables.
1354 (parse_spincount): New function.
1355 (initialize_env): Call gomp_init_num_threads unconditionally.
1356 Initialize gomp_available_cpus. Call parse_spincount,
1357 initialize gomp_{,throttled_}spin_count_var
1358 depending on presence and value of OMP_WAIT_POLICY and
1359 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1360 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1361 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1362 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1363 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1364 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1365 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1366 (gomp_global_icv): New.
1367 (parse_schedule): Use it. Parse "auto".
1368 (omp_set_num_threads): Use gomp_icv.
1369 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1371 (omp_get_max_threads): Move from parallel.c.
1372 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1373 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1375 (parse_stacksize, parse_wait_policy): New functions.
1376 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1377 both wrappers for compatibility and new locks.
1378 (omp_set_schedule, omp_get_schedule,
1379 omp_get_thread_limit, omp_set_max_active_levels,
1380 omp_get_max_active_levels, omp_get_level,
1381 omp_get_ancestor_thread_num, omp_get_team_size,
1382 omp_get_active_level): New ialias_redirect.
1383 (omp_set_schedule_, omp_set_schedule_8_,
1384 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1385 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1386 omp_get_max_active_levels_, omp_get_level_,
1387 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1388 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1390 * parallel.c: Include limits.h.
1391 (gomp_resolve_num_threads): Add count argument. Rewritten.
1392 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1393 argument to gomp_team_start. Pass 0 as second argument to
1394 gomp_resolve_num_threads.
1395 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1396 if gomp_thread_limit_var != ULONG_MAX.
1397 (omp_in_parallel): Implement using ts.active_level.
1398 (omp_get_max_threads): Move to env.c.
1399 (omp_get_level, omp_get_ancestor_thread_num,
1400 omp_get_team_size, omp_get_active_level): New functions,
1402 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1403 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1404 gomp_iter_dynamic_next instead of the _locked variant and don't take
1405 lock around it, otherwise acquire it before calling
1406 gomp_iter_dynamic_next_locked.
1407 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1408 gomp_iter_dynamic_next instead of the _locked variant and don't take
1410 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1411 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1412 Adjust gomp_team_start caller. Pass count as second argument to
1413 gomp_resolve_num_threads, don't adjust num_threads after the call.
1415 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1416 ws->chunk_size by incr.
1417 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1419 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1421 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1422 (omp_check_defines): Check even the compat defines.
1423 * config/linux/ptrlock.c: New file.
1424 * config/linux/ptrlock.h: New file.
1425 * config/linux/wait.h: New file.
1426 * config/posix/ptrlock.c: New file.
1427 * config/posix/ptrlock.h: New file.
1428 * config/linux/bar.h (gomp_team_barrier_wait,
1429 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1430 (gomp_team_barrier_set_task_pending,
1431 gomp_team_barrier_clear_task_pending,
1432 gomp_team_barrier_set_waiting_for_tasks,
1433 gomp_team_barrier_waiting_for_tasks,
1434 gomp_team_barrier_done): New inlines.
1435 (gomp_barrier_t): Rewritten.
1436 (gomp_barrier_state_t): New typedef.
1437 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1438 gomp_barrier_wait_start): Rewritten.
1439 (gomp_barrier_wait_end): Change second argument to
1440 gomp_barrier_state_t.
1441 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1443 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1445 (gomp_barrier_wait_end): Rewritten.
1446 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1447 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1448 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1449 (gomp_barrier_state_t): New typedef.
1450 (gomp_team_barrier_wait,
1451 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1452 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1453 into the return value. Return gomp_barrier_state_t.
1454 (gomp_team_barrier_set_task_pending,
1455 gomp_team_barrier_clear_task_pending,
1456 gomp_team_barrier_set_waiting_for_tasks,
1457 gomp_team_barrier_waiting_for_tasks,
1458 gomp_team_barrier_done): New inlines.
1459 (gomp_barrier_wait_end): Change second argument to
1460 gomp_barrier_state_t.
1461 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1463 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1464 (gomp_barrier_wait_end): Change second argument to
1465 gomp_barrier_state_t.
1466 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1467 gomp_team_barrier_wake): New functions.
1468 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1470 (gomp_futex_wake, gomp_futex_wait): New variables.
1471 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1472 * config/linux/lock.c: Rewrite to make locks task owned,
1473 for backwards compatibility provide the old entrypoints
1474 if symbol versioning. Include wait.h instead of libgomp.h and
1476 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1477 * config/posix95/lock.c: Rewrite to make locks task owned,
1478 for backwards compatibility provide the old entrypoints
1479 if symbol versioning.
1480 * config/posix/lock.c: Rewrite to make locks task owned,
1481 for backwards compatibility provide the old entrypoints
1482 if symbol versioning.
1483 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1484 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1485 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1486 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1487 (sys_futex0): Return error code.
1488 (futex_wake, futex_wait): If ENOSYS was returned, clear
1489 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1490 (cpu_relax, atomic_write_barrier): New static inlines.
1491 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1492 (futex_wake, futex_wait): If ENOSYS was returned, clear
1493 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1494 (cpu_relax, atomic_write_barrier): New static inlines.
1495 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1496 (sys_futex0): Return error code.
1497 (futex_wake, futex_wait): If ENOSYS was returned, clear
1498 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1499 (cpu_relax, atomic_write_barrier): New static inlines.
1500 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1501 (sys_futex0): Return error code.
1502 (futex_wake, futex_wait): If ENOSYS was returned, clear
1503 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1504 (cpu_relax, atomic_write_barrier): New static inlines.
1505 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1506 (sys_futex0): Return error code.
1507 (futex_wake, futex_wait): If ENOSYS was returned, clear
1508 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1509 (cpu_relax, atomic_write_barrier): New static inlines.
1510 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1511 (sys_futex0): Return error code.
1512 (futex_wake, futex_wait): If ENOSYS was returned, clear
1513 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1514 (cpu_relax, atomic_write_barrier): New static inlines.
1515 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1517 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1518 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1519 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1521 (omp_nest_lock_t): Change owner into void *, add lock field.
1522 * config/posix95/omp-lock.h: Include semaphore.h.
1523 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1524 (omp_lock_t): Use sem_t instead of mutex if semaphores
1526 (omp_nest_lock_t): Likewise. Change owner to void *.
1527 * config/posix/omp-lock.h: Include semaphore.h.
1528 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1529 (omp_lock_t): Use sem_t instead of mutex if semaphores
1531 (omp_nest_lock_t): Likewise. Add owner field.
1533 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1535 * testsuite/libgomp.c/collapse-1.c: New test.
1536 * testsuite/libgomp.c/collapse-2.c: New test.
1537 * testsuite/libgomp.c/collapse-3.c: New test.
1538 * testsuite/libgomp.c/icv-1.c: New test.
1539 * testsuite/libgomp.c/icv-2.c: New test.
1540 * testsuite/libgomp.c/lib-2.c: New test.
1541 * testsuite/libgomp.c/lock-1.c: New test.
1542 * testsuite/libgomp.c/lock-2.c: New test.
1543 * testsuite/libgomp.c/lock-3.c: New test.
1544 * testsuite/libgomp.c/loop-4.c: New test.
1545 * testsuite/libgomp.c/loop-5.c: New test.
1546 * testsuite/libgomp.c/loop-6.c: New test.
1547 * testsuite/libgomp.c/loop-7.c: New test.
1548 * testsuite/libgomp.c/loop-8.c: New test.
1549 * testsuite/libgomp.c/loop-9.c: New test.
1550 * testsuite/libgomp.c/nested-3.c: New test.
1551 * testsuite/libgomp.c/nestedfn-6.c: New test.
1552 * testsuite/libgomp.c/sort-1.c: New test.
1553 * testsuite/libgomp.c/task-1.c: New test.
1554 * testsuite/libgomp.c/task-2.c: New test.
1555 * testsuite/libgomp.c/task-3.c: New test.
1556 * testsuite/libgomp.c/task-4.c: New test.
1557 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1558 to C++ testsuite default compiler options.
1559 * testsuite/libgomp.c++/collapse-1.C: New test.
1560 * testsuite/libgomp.c++/collapse-2.C: New test.
1561 * testsuite/libgomp.c++/ctor-10.C: New test.
1562 * testsuite/libgomp.c++/for-1.C: New test.
1563 * testsuite/libgomp.c++/for-2.C: New test.
1564 * testsuite/libgomp.c++/for-3.C: New test.
1565 * testsuite/libgomp.c++/for-4.C: New test.
1566 * testsuite/libgomp.c++/for-5.C: New test.
1567 * testsuite/libgomp.c++/loop-8.C: New test.
1568 * testsuite/libgomp.c++/loop-9.C: New test.
1569 * testsuite/libgomp.c++/loop-10.C: New test.
1570 * testsuite/libgomp.c++/task-1.C: New test.
1571 * testsuite/libgomp.c++/task-2.C: New test.
1572 * testsuite/libgomp.c++/task-3.C: New test.
1573 * testsuite/libgomp.c++/task-4.C: New test.
1574 * testsuite/libgomp.c++/task-5.C: New test.
1575 * testsuite/libgomp.c++/task-6.C: New test.
1576 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1577 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1578 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1579 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1580 * testsuite/libgomp.fortran/collapse1.f90: New test.
1581 * testsuite/libgomp.fortran/collapse2.f90: New test.
1582 * testsuite/libgomp.fortran/collapse3.f90: New test.
1583 * testsuite/libgomp.fortran/collapse4.f90: New test.
1584 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1585 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1586 * testsuite/libgomp.fortran/lib4.f90: New test.
1587 * testsuite/libgomp.fortran/lock-1.f90: New test.
1588 * testsuite/libgomp.fortran/lock-2.f90: New test.
1589 * testsuite/libgomp.fortran/nested1.f90: New test.
1590 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1591 * testsuite/libgomp.fortran/strassen.f90: New test.
1592 * testsuite/libgomp.fortran/tabs1.f90: New test.
1593 * testsuite/libgomp.fortran/tabs2.f: New test.
1594 * testsuite/libgomp.fortran/task1.f90: New test.
1595 * testsuite/libgomp.fortran/task2.f90: New test.
1596 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1597 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1598 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1599 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1600 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1602 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1605 * testsuite/libgomp.c++/ctor-11.C: New test.
1606 * testsuite/libgomp.c++/ctor-12.C: New test.
1608 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1610 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1612 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1615 * testsuite/libgomp.c/atomic-5.c: New test.
1616 * testsuite/libgomp.c/atomic-6.c: New test.
1617 * testsuite/libgomp.c/autopar-1.c: New test.
1619 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1621 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1622 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1623 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1624 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1625 * configure: Regenerate.
1626 * Makefile.in, testsuite/Makefile.in: Likewise.
1628 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1631 * aclocal.m4: Regenerate.
1632 * configure: Regenerate.
1634 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1637 * testsuite/libgomp.c/atomic-4.c: New test.
1640 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1641 (gomp_iter_guided_next): Likewise.
1642 * testsuite/libgomp.c/pr35625.c: New test.
1644 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1646 * aclocal.m4: Regenerate.
1647 * configure: Likewise.
1648 * Makefile.in: Likewise.
1649 * testsuite/Makefile.in: Likewise.
1651 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1654 * testsuite/libgomp.c++/pr35185.C: New test.
1656 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1659 * testsuite/libgomp.c/pr35549.c: New test.
1661 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1663 * testsuite/libgomp.c/atomic-3.c: New test.
1665 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1668 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1671 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1674 * configure.ac: Add ACX_HEADER_STRING.
1675 * env.c: Include strings.h.
1676 * aclocal.m4: Regenerate.
1677 * config.h.in: Regenerate.
1678 * configure: Regenerate.
1679 * Makefile.in: Regenerate.
1680 * testsuite/Makefile.in: Regenerate.
1682 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1685 * testsuite/libgomp.c/pr35196.c: New test.
1688 * testsuite/libgomp.fortran/pr35130.f90: New test.
1689 * testsuite/libgomp.c/pr35130.c: New test.
1691 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1694 * testsuite/libgomp.c/pr33880.c: New test.
1695 * testsuite/libgomp.fortran/pr33880.f90: New test.
1697 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1699 * configure: Regenerate.
1701 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1703 * configure.ac: Move futex checking into ../config/futex.m4.
1704 * configure: Rebuilt.
1705 * aclocal.m4: Rebuilt.
1706 * Makefile.in: Rebuilt.
1708 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1709 2007-10-15 ../config/tls.m4 change.
1711 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1714 * testsuite/libgomp.c/pr34513.c: New test.
1715 * testsuite/libgomp.c++/pr34513.C: New test.
1717 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1720 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1722 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1724 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1726 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1728 * testsuite/libgomp.c/private-1.c: New test.
1730 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1731 Paolo Bonzini <bonzini@gnu.org>
1733 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1734 instead of 'VPATH ='.
1735 * Makefile.in: Regenerate.
1737 2007-11-23 Matthias Klose <doko@ubuntu.com>
1739 * configure.ac: Adjust makeinfo version check.
1740 * configure: Regenerate.
1742 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1745 * testsuite/libgomp.fortran/pr34020.f90: New test.
1747 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1750 * testsuite/libgomp.c++/atomic-1.C: New test.
1752 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1755 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1756 Make x and y integers rather than (implicit) reals. Add private (j)
1757 clause to the last omp parallel.
1759 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1761 * configure: Regenerate following changes to ../config/tls.m4.
1763 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1765 * testsuite/libgomp.fortran/stack.f90: New test.
1767 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1769 * config/mingw32/proc.c: New file.
1771 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1773 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1774 (main): Use __get_cpuid to get i386 target fetaures.
1775 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1776 (main): Use __get_cpuid to get x86_64 target fetaures.
1778 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1781 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1782 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1784 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1787 * testsuite/libgomp.fortran/pr32550.f90: New test.
1788 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1790 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1792 * aclocal.m4: Regenerated.
1794 2007-07-05 Tobias Burnus <burnus@net-b.de>
1797 * testsuite/libgomp.fortran/pr32359.f90: New.
1799 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1802 * sections.c (GOMP_parallel_sections_start): Only decrease
1803 number of threads to COUNT if dyn_var is true.
1804 * testsuite/libgomp.c/pr32468.c: New test.
1806 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1809 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1811 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1814 * testsuite/libgomp.c/pr32362-1.c: New test.
1815 * testsuite/libgomp.c/pr32362-2.c: New test.
1816 * testsuite/libgomp.c/pr32362-3.c: New test.
1818 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1820 * team.c (gomp_team_start): Fix setting up thread_attr
1823 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1825 * configure: Regenerate.
1827 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1829 * Makefile.in: Regenerate.
1830 * configure: Regenerate.
1831 * aclocal.m4: Regenerate.
1832 * testsuite/Makefile.in: Regenerate.
1834 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1836 * config/linux/proc.c: New file.
1839 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1841 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1843 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1845 2007-04-16 Matthias Klose <doko@debian.org>
1847 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1848 flags if not building with -m64.
1849 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1850 flag for i?86-*-* targets, if current target matches -m64.
1852 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1854 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1855 * Makefile.in: Regenerate.
1857 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1860 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1862 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1864 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1866 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1868 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1869 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1870 (parse_affinity): New function.
1871 (initialize_env): Call it and gomp_init_affinity.
1872 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1873 create new pthread_attr_t and call gomp_init_thread_affinity
1874 on it for each thread before passing the attribute to pthread_create.
1875 * config/linux/affinity.c: New file.
1876 * config/posix/affinity.c: New file.
1877 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1878 * configure: Rebuilt.
1879 * config.h.in: Rebuilt.
1880 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1881 * Makefile.in: Rebuilt.
1883 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1885 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1887 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1888 and use it if found.
1890 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1892 * testsuite/config/default.exp: New file.
1893 * testsuite/lib/libgomp.exp: New file.
1894 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1895 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1896 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1897 (libgomp_load): Remove.
1898 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1899 always_ld_library_path, not ld_library_path. Set additional_flags
1900 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1901 (target_compile): Do not call libgomp_init. Append lang_library_path
1902 and lang_link_flags to options.
1903 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1904 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1906 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1907 always_ld_library_path. Set LD_LIBRARY_PATH here.
1908 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1909 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1910 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1912 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1913 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1914 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1915 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1916 * testsuite/libgomp.c/atomic-10.c: Ditto.
1918 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1920 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1921 dg-final cleanup-modules line.
1922 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1923 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1924 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1925 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1926 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1927 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1928 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1930 2007-03-18 Andreas Schwab <schwab@suse.de>
1932 * acinclude.m4: Adjust regular expression for ld version
1934 * configure: Regenerate.
1936 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1938 * Makefile.am: Add install-pdf target as copied from
1939 automake v1.10 rules.
1940 * Makefile.in: Regenerate
1942 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1945 * configure: Regenerate.
1948 * testsuite/libgomp.c++/pr30703.C: New test.
1950 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1953 2006-07-05 Eric Christopher <echristo@apple.com>
1954 * configure.ac: Depend addition of -pthread on host OS.
1955 * configure: Regenerate.
1957 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1959 * libgomp.texi: Fix spacing after abbreviations.
1961 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1964 * configure.ac: Add check for makeinfo
1965 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1966 if an appropiate version of makeinfo is found.
1967 * aclocal.m4: Regenerated.
1968 * configure: Regenerated.
1969 * Makefile.in: Regenerated.
1970 * testsuite/Makefile.in: Regenerated.
1972 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1975 * libgomp.texi: More about implementation-dependent settings.
1977 2007-01-26 Tobias Burnus <burnus@net-b.de>
1979 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1981 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1984 * testsuite/libgomp.c/pr30494.c: New test.
1986 2007-01-15 Tom Tromey <tromey@redhat.com>
1988 * configure: Rebuilt.
1989 * configure.ac: Fixed comment.
1991 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1993 * libgomp.texi: Document implementation specific default values of
1994 environment variables.
1996 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1999 * libgomp.texi: New file.
2000 * configure.ac: Add --enable-generated-files-in-srcdir option.
2001 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2003 * Makefile.in: Regenerated.
2004 * config.h.in: Regenerated.
2005 * testsuite/Makefile.in: Regenerated.
2008 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2011 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2013 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2015 * configure: Regenerate.
2017 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2020 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2021 start if there shouldn't be any loop iterations.
2022 (gomp_loop_ordered_static_start): Remove start == end test.
2023 * testsuite/libgomp.c/pr29947-1.c: New test.
2024 * testsuite/libgomp.c/pr29947-2.c: New test.
2026 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2028 * configure.tgt: Force initial-exec TLS model on Linux only.
2030 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2032 * configure: Regenerated.
2034 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2036 * env.c (parse_schedule): Reject out of range values.
2037 (parse_unsigned_long): Reject out of range, negative or zero values.
2039 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2042 * testsuite/libgomp.fortran/pr29629.f90: New test.
2044 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2047 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2048 * config/posix95: New directory.
2049 * config/posix95/omp-lock.h: New file.
2050 * config/posix95/lock.c: Likewise.
2052 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2054 * aclocal.m4: Regenerate.
2055 * configure: Regenerate.
2057 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2059 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2062 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2064 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2066 * configure: Regenerate.
2067 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2069 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2073 * testsuite/libgomp.c/nestedfn-4.c: New test.
2074 * testsuite/libgomp.c/nestedfn-5.c: New test.
2075 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2078 * testsuite/libgomp.fortran/condinc1.f: New test.
2079 * testsuite/libgomp.fortran/condinc2.f: New test.
2080 * testsuite/libgomp.fortran/condinc3.f90: New test.
2081 * testsuite/libgomp.fortran/condinc4.f90: New test.
2082 * testsuite/libgomp.fortran/condinc1.inc: New file.
2084 2006-09-18 Tom Tromey <tromey@redhat.com>
2086 * configure: Rebuilt.
2088 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2091 PR preprocessor/14634
2092 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2094 * configure: Regenerate.
2096 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2098 * testsuite/libgomp.fortran/reduction3.f90: Change
2099 -2147483648 to -huge(i)-1 to avoid overflow.
2100 * testsuite/libgomp.fortran/reduction4.f90: Change
2101 Z'ffffffff' to not(0) to avoid overflow.
2103 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2106 * Makefile.am (libsubincludedir): New.
2107 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2108 * Makefile.in: Regenerate.
2110 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2113 * env.c: Include ctype.h.
2114 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2115 leading and/or trailing whitespace and compare strings case
2118 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2121 * testsuite/libgomp.fortran/pr28390.f: New test.
2123 2006-07-05 Eric Christopher <echristo@apple.com>
2125 * configure.ac: Depend addition of -pthread on host OS.
2126 * configure: Regenerate.
2128 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2130 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2131 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2134 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2138 * configure.ac: If neither --enable-linux-futex nor
2139 --disable-linux-futex is passed, determine the default by checking
2140 for compiling and/or running against NPTL. With --enable-linux-futex,
2141 check if SYS_gettid and SYS_futex are defined.
2142 * configure: Rebuilt.
2144 2006-06-14 Richard Henderson <rth@redhat.com>
2147 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2148 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2150 2006-06-09 Richard Henderson <rth@redhat.com>
2152 * env.c (gomp_nthreads_var): Change to unsigned long.
2153 (gomp_run_sched_chunk): Likewise.
2154 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2155 (initialize_env): Initialize gomp_thread_attr.
2156 * libgomp.h (gomp_nthreads_var): Update decl.
2157 (gomp_run_sched_chunk): Likewise.
2158 (gomp_thread_attr): Declare.
2159 * team.c (gomp_thread_attr): Export.
2160 (initialize_team): Don't initialize it.
2162 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2165 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2166 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2168 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2170 * config/mingw32/time.c: New file.
2171 * configure.tgt: Use it.
2173 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2175 * Makefile.am: Add install-html target. Add install-html to .PHONY
2176 * Makefile.in: Regenerate.
2178 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2181 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2182 * testsuite/libgomp.c/critical-1.c: Likewise.
2183 * testsuite/libgomp.c/loop-1.c: Likewise.
2184 * testsuite/libgomp.c/loop-2.c: Likewise.
2185 * testsuite/libgomp.c/single-1.c: Likewise.
2186 * testsuite/libgomp.c/ordered-1.c: Likewise.
2187 * testsuite/libgomp.c/ordered-2.c: Likewise.
2189 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2192 * libgomp.fortran/pr27416-1.f90: New test.
2194 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2197 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2198 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2200 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2203 * testsuite/libgomp.c/pr26943-1.c: New test.
2204 * testsuite/libgomp.c/pr26943-2.c: New test.
2205 * testsuite/libgomp.c/pr26943-3.c: New test.
2206 * testsuite/libgomp.c/pr26943-4.c: New test.
2207 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2208 * testsuite/libgomp.c++/pr26943.C: New test.
2210 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2213 * testsuite/libgomp.c++/pr27337.C: New test.
2215 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2218 * testsuite/libgomp.c/pr26171.c: New test.
2220 2006-04-25 Richard Henderson <rth@redhat.com>
2223 * configure.ac: Use GCC_CHECK_TLS.
2224 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2225 * Makefile.in, aclocal.m4, configure: Regenerate.
2227 2006-04-10 Matthias Klose <doko@debian.org>
2229 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2230 directory names containing underscores.
2232 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2235 * testsuite/libgomp.c++/pr26691.C: New test.
2237 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2239 * testsuite/libgomp.fortran/retval2.f90: New test.
2241 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2243 * testsuite/libgomp.c++: New directory.
2245 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2247 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2248 * config/posix/sem.c: Implement the above.
2250 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2252 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2253 define HAVE_BROKEN_POSIX_SEMAPHORES.
2254 * configure: Rebuilt.
2255 * config.h.in: Rebuilt.
2257 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2260 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2261 for the other pthread check.
2262 * configure: Regenerate.
2263 * config.h.in: Regenerate.
2265 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2269 * Makefile.am (fincludedir): New variable.
2270 (nodist_include_HEADERS): Remove Fortran files.
2271 (nodist_finclude_HEADERS): New variable.
2272 * Makefile.in: Regenerated.
2274 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2276 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2277 Remove tests for returning assumed character length arrays.
2279 2006-02-12 Roger Sayle <roger@eyesopen.com>
2280 John David Anglin <dave@hiauly1.hia.nrc.ca>
2283 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2285 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2287 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2289 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2291 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2292 part of LD_LIBRARY_PATH manually.
2294 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2297 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2300 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2303 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2304 * configure.ac (PERL): Don't set.
2305 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2306 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2307 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2308 * omp.h.in: Wrap the new configure substitutions with @ characters.
2309 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2310 * aclocal.m4, configure, Makefile.in: Regenerate.
2311 * mkomp_h.pl: Delete.
2313 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2316 * configure.ac: Use GCC_HEADER_STDINT.
2317 * libgomp.h: Include gstdint.h.
2318 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2319 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2321 2006-01-24 Richard Henderson <rth@redhat.com>
2324 * configure.ac: Add AM_MAINTAINER_MODE.
2325 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2327 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2329 * Makefile.in: Regenerate.
2330 * testsuite/Makefile.in: Regenerate.
2331 * aclocal.m4: Regenerate.
2333 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2335 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2337 * configure.ac: Add check for loadavg.h.
2338 (link_gomp): Adjust comment.
2339 * configure: Regenerate.
2340 * config.h.in: Regenerate.
2342 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2345 * configure.ac: Remove check for alloca.h.
2346 * configure: Regenerate.
2347 * config.h.in: Regenerate.
2348 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2349 * team.c: Remove use of alloca.h.
2350 Call gomp_alloca instead of alloca.
2352 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2355 * team.c: Add include of alloca.h.
2356 * configure.ac: Add check for alloca.h.
2357 * configure: Regenerate.
2358 * config.h.in: Regenerate.
2360 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2363 * testsuite/libgomp.fortran/pr25219.f90: New test.
2365 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2367 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2368 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2369 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2370 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2371 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2372 testsuite/libgomp.fortran/threadprivate1.f90,
2373 testsuite/libgomp.fortran/threadprivate2.f90,
2374 testsuite/libgomp.fortran/threadprivate3.f90,
2375 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2376 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2377 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2378 effective-target to TLS runtime.
2380 * testsuite/libgomp.fortran/pr25162.f: Require
2381 effective-target TLS runtime.
2383 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2385 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2386 * testsuite/libgomp.c/nestedfn-3.c: New test.
2388 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2391 * testsuite/libgomp.fortran/pr25162.f: New test.
2393 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2395 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2396 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2398 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2400 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2401 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2402 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2403 single.c, team.c, work.c, config/linux/alpha/futex.h,
2404 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2405 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2406 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2407 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2408 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2409 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2410 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2413 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2415 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2416 to nodist_noinst_HEADERS.
2417 * Makefile.in: Rebuilt.
2419 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2420 add integer count field.
2421 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2422 omp_nest_lock_t type change.
2423 (omp_init_nest_lock): Likewise. Initialize count to 0.
2424 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2426 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2428 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2429 Increment count if successful and return the new nesting level.
2430 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2431 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2432 * testsuite/libgomp.c/lib-1.c: New test.
2433 * testsuite/libgomp.fortran/lib1.f90: New test.
2434 * testsuite/libgomp.fortran/lib2.f: New test.
2435 * testsuite/libgomp.fortran/lib3.f: New test.
2437 2005-11-17 Richard Henderson <rth@redhat.com>
2440 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2441 * configure.ac (link_gomp): New. Substitute it.
2442 (AC_CONFIG_FILES): Add libgomp.spec.
2443 * libgomp.spec.in: New file.
2444 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2445 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2447 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2450 reduction(-:var) behaving the same as reduction(+:var).
2451 * testsuite/libgomp.c/reduction-4.c: New test.
2453 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2455 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2456 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2457 testsuite/libgomp.c/copyin-3.c,
2458 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2459 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2460 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2461 testsuite/libgomp.c++/pr24455.C,
2462 testsuite/libgomp.fortran/threadprivate1.f90,
2463 testsuite/libgomp.fortran/threadprivate2.f90,
2464 testsuite/libgomp.fortran/threadprivate3.f90,
2465 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2466 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2467 testsuite/libgomp.fortran/omp_parse3.f90: Require
2468 effective-target TLS.
2470 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2474 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2477 * team.c (initialize_team): Pass NULL rather than free as
2478 pthread_key_create destructor. Initialize thread specific data
2479 pointer in initial thread to a static local variable rather than
2482 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2484 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2485 its location to ld_library_path.
2487 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2489 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2491 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2493 * testsuite/libgomp.c: Rename from libgomp.dg.
2495 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2497 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2498 threadprivate variable 'i'.
2500 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2502 * config/linux/s390/futex.h: New file.
2503 * configure.tgt: Use it.
2505 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2506 before the parallel.
2508 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2511 * testsuite/libgomp.c++/master-1.C: New test.
2513 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2515 * testsuite/libgomp.dg/copyin-3.c: New test.
2517 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2519 * testsuite/libgomp.fortran/retval1.f90: New test.
2520 * testsuite/libgomp.fortran/vla7.f90: New test.
2522 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2524 * testsuite/libgomp.fortran/vla2.f90: New test.
2525 * testsuite/libgomp.fortran/vla3.f90: New test.
2526 * testsuite/libgomp.fortran/vla4.f90: New test.
2527 * testsuite/libgomp.fortran/vla5.f90: New test.
2528 * testsuite/libgomp.fortran/vla6.f90: New test.
2530 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2532 * config/linux/sparc/futex.h: New file.
2533 * configure.tgt: Use it.
2534 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2536 * critical.c: Include stdlib.h.
2537 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2538 ignoring return value.
2539 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2540 LIBGOMP_CHECK_SYNC_BUILTINS check.
2541 * configure: Rebuilt.
2543 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2545 * testsuite/libgomp.fortran/vla1.f90: New test.
2547 2005-10-31 Richard Henderson <rth@redhat.com>
2549 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2550 setting 's' in different threads.
2552 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2554 * libgomp.h (attribute_hidden, ialias): Define.
2555 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2556 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2557 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2558 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2559 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2560 omp_test_lock, omp_test_nest_lock): Likewise.
2561 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2562 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2563 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2564 omp_test_lock, omp_test_nest_lock): Likewise.
2565 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2566 omp_get_dynamic, omp_get_nested): Likewise.
2567 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2568 omp_get_thread_num, omp_in_parallel): Likewise.
2569 * fortran.c (ialias_redirect): Define.
2570 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2571 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2572 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2573 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2574 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2575 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2576 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2577 omp_get_wtime): Add ialias_redirect.
2579 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2581 * fortran.c: Include stdlib.h.
2583 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2585 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2586 * Makefile.in: Regenerated.
2588 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2590 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2591 * libgomp_f.h.in (omp_check_defines): New function.
2592 * env.c: Include libgomp_f.h.
2593 (initialize_env): Call omp_check_defines.
2595 * testsuite/libgomp.dg/copyin-2.c: New test.
2596 * testsuite/libgomp.c++/copyin-2.C: New test.
2597 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2599 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2600 * testsuite/libgomp.fortran/sharing2.f90: New test.
2602 * testsuite/libgomp.dg/copyin-1.c: New test.
2603 * testsuite/libgomp.c++/copyin-1.C: New test.
2605 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2607 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2609 * testsuite/libgomp.fortran/workshare1.f90: New test.
2611 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2613 * libgomp.fortran/sharing1.f90: New test.
2615 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2618 * testsuite/libgomp.c++/loop-7.C: New test.
2620 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2622 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2623 * testsuite/libgomp.fortran/reduction6.f90: New test.
2624 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2626 2005-10-23 Richard Henderson <rth@redhat.com>
2628 * testsuite/libgomp.c++/ctor-1.C: New.
2629 * testsuite/libgomp.c++/ctor-2.C: New.
2630 * testsuite/libgomp.c++/ctor-3.C: New.
2631 * testsuite/libgomp.c++/ctor-4.C: New.
2632 * testsuite/libgomp.c++/ctor-5.C: New.
2633 * testsuite/libgomp.c++/ctor-6.C: New.
2634 * testsuite/libgomp.c++/ctor-7.C: New.
2635 * testsuite/libgomp.c++/ctor-8.C: New.
2636 * testsuite/libgomp.c++/ctor-9.C: New.
2638 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2641 * testsuite/libgomp.c++/pr24455-1.C: New test.
2642 * testsuite/libgomp.c++/pr24455.C: New test.
2643 * testsuite/libgomp.dg/pr24455-1.c: New test.
2644 * testsuite/libgomp.dg/pr24455.c: New test.
2646 2005-10-20 Richard Henderson <rth@redhat.com>
2648 * testsuite/libgomp.c++/loop-6.C: New.
2649 * testsuite/libgomp.dg/loop-3.c: New.
2651 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2653 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2655 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2658 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2660 * testsuite/libgomp.fortran/jacobi.f: New test.
2662 2005-10-19 Richard Henderson <rth@redhat.com>
2664 * configure.tgt (i?86-linux): Default to with_arch instead of
2665 CFLAGS. Add -mtune to match target_cpu.
2666 (x86_64-linux): Tune to i686.
2668 * fortran.c (omp_test_nest_lock_): Fix typo.
2670 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2672 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2673 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2674 * testsuite/libgomp.dg/ordered-3.c: New test.
2676 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2677 Remove volatile keyword.
2679 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2680 in COMMON block to avoid warnings on 64-bit targets.
2682 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2684 * testsuite/libgomp.dg/shared-3.c: New test.
2686 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2688 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2689 * testsuite/libgomp.fortran/reduction5.f90: New test.
2691 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2693 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2695 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2696 flush loop now that __sync_synchronize has proper memory barrier.
2697 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2698 Add -ffixed-form to dg-options.
2700 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2702 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2703 from subdirectories.
2704 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2705 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2706 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2707 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2708 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2709 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2710 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2711 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2712 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2713 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2714 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2715 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2716 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2717 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2718 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2719 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2720 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2721 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2722 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2723 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2724 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2725 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2726 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2727 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2728 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2730 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2732 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2733 lang_library_path exists. Use find instead of glob to gather tests.
2734 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2736 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2738 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2739 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2740 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2741 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2742 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2743 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2744 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2745 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2746 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2747 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2748 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2749 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2750 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2752 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2754 * testsuite/libgomp.dg/vla-1.c: New test.
2756 * testsuite/libgomp.fortran/reference2.f90: New test.
2758 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2759 declaration of omp_get_thread_num.
2760 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2763 * testsuite/libgomp.fortran/reduction1.f90: New test.
2764 * testsuite/libgomp.fortran/reduction2.f90: New test.
2765 * testsuite/libgomp.fortran/reduction3.f90: New test.
2766 * testsuite/libgomp.fortran/reduction4.f90: New test.
2768 2005-10-13 Richard Henderson <rth@redhat.com>
2770 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2771 * Makefile.in: Regenerate.
2772 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2773 * libgomp.h: Include bar.h.
2774 (struct gomp_barrier): Remove.
2775 (struct gomp_team): Add barrier. Replace master_barrier with
2776 master_release. Replace threads with ordered_release.
2777 (struct gomp_thread): Replace barrier with release.
2778 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2779 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2780 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2781 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2782 (GOMP_single_copy_end): Likewise.
2783 * team.c (gomp_threads_dock): New.
2784 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2785 (gomp_thread_start): Use gomp_barrier_wait.
2786 (new_team, free_team): Update for gomp_team changes.
2787 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2788 (gomp_team_end): Use gomp_barrier_wait.
2789 (initialize_team): Update for gomp_thread changes.
2790 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2791 (gomp_work_share_end_nowait): Use atomic ops when available.
2792 * config/linux/bar.c, config/linux/bar.h: New files.
2793 * config/posix/bar.c, config/posix/bar.h: New files.
2795 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2797 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2798 * testsuite/libgomp.dg/single-2.c: New test.
2800 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2801 lang_link_flags): Unset, so that they aren't inherited from previously
2804 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2806 2005-10-12 Richard Henderson <rth@redhat.com>
2808 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2809 (libgomp_init): Use lang_test_file, lang_library_path, and
2810 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2812 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2813 (lang_test_file, lang_link_flags): New.
2814 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2816 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2817 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2818 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2819 testsuite/libgomp.c++/parallel-1.C,
2820 testsuite/libgomp.c++/reduction-1.C,
2821 testsuite/libgomp.c++/reduction-2.C,
2822 testsuite/libgomp.c++/reduction-3.C,
2823 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2824 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2825 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2826 New files, largely cribbed from the C testsuite.
2828 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2830 * testsuite/libgomp.fortran/character1.f90: New test.
2831 * testsuite/libgomp.fortran/character2.f90: New test.
2833 * testsuite/libgomp.dg/nested-1.c: New test.
2834 * testsuite/libgomp.dg/nested-2.c: New test.
2835 * testsuite/libgomp.fortran/do1.f90: New test.
2836 * testsuite/libgomp.fortran/do2.f90: New test.
2838 * testsuite/libgomp.fortran/reference1.f90: New test.
2840 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2842 * testsuite/libgomp.dg/reduction-1.c: New test.
2843 * testsuite/libgomp.dg/reduction-2.c: New test.
2844 * testsuite/libgomp.dg/reduction-3.c: New test.
2846 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2848 * testsuite/libgomp.dg/atomic-1.c: New test.
2849 * testsuite/libgomp.dg/atomic-2.c: New test.
2851 2005-10-09 Richard Henderson <rth@redhat.com>
2853 * critical.c (atomic_lock): New.
2854 (initialize_critical): Initialize it.
2855 (GOMP_atomic_start, GOMP_atomic_end): New.
2856 * libgomp.map: Export them.
2857 * libgomp_g.h: Declare them.
2859 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2861 2005-10-02 Richard Henderson <rth@redhat.com>
2863 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2864 to XCFLAGS instead of CFLAGS.
2866 2005-09-30 Richard Henderson <rth@redhat.com>
2868 * configure.ac: Determine whether -pthread or -lpthread is needed.
2869 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2870 * Makefine.in, configure: Rebuild.
2872 2005-09-28 Richard Henderson <rth@redhat.com>
2874 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2875 * testsuite/libgomp.dg/omp-single-3.c: New test.
2877 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2879 * testsuite/libgomp.dg/omp-single-2.c: New test.
2880 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2882 2005-09-27 Richard Henderson <rth@redhat.com>
2884 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2885 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2887 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2889 * testsuite/libgomp.dg/omp-loop03.c: New test.
2891 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2893 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2895 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2897 * testsuite/libgomp.dg/omp-single-1.c: New test.
2898 * testsuite/libgomp.dg/shared-1.c: Return 0.
2899 Add prototype for abort.
2900 * testsuite/libgomp.dg/shared-2.c: Likewise.
2902 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2904 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2907 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2909 * testsuite/libgomp.dg/shared-1.c: New test.
2910 * testsuite/libgomp.dg/shared-2.c: New test.
2912 2005-09-24 Richard Henderson <rth@redhat.com>
2914 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2916 2005-09-24 Richard Henderson <rth@redhat.com>
2918 * iter.c (gomp_iter_static_next): Round up when computing number
2919 of iterations. Don't bother distributing a remainder equally.
2921 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2922 Don't call srand. Zero b before testing.
2925 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2927 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2928 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2930 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2932 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2933 without !$omp end do, followed immediately by subroutine end.
2935 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2937 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2939 2005-09-22 Richard Henderson <rth@redhat.com>
2941 * critical.c (GOMP_critical_name_start): Change argument to void**.
2942 Reuse the pointer space if the mutex fits.
2943 (GOMP_critical_name_end): Likewise.
2944 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2945 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2946 (GOMP_critical_name_end): Likewise.
2947 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2948 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2950 2005-09-20 Richard Henderson <rth@redhat.com>
2952 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2953 (create_lock_lock): New.
2954 (initialize_critical): Initialize it.
2955 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2956 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2958 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2960 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2962 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2964 * testsuite/libgomp.dg/omp-loop01.c: New test.
2965 * testsuite/libgomp.dg/omp-loop02.c: New test.
2967 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2969 * configure.ac (AC_PROG_FC): Add.
2970 (USE_FORTRAN): New automake conditional.
2971 * configure: Rebuilt.
2972 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2973 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2974 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2975 Add rules to build them.
2976 * Makefile.in: Rebuilt.
2977 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2979 * libgomp.map: Add Fortran wrappers.
2980 * libgomp_f.h.in: New file.
2981 * omp_lib.h.in: New file.
2982 * omp_lib.f90.in: New file.
2983 * fortran.c: New file.
2984 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2985 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2986 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2987 libgfortran has been built.
2988 * testsuite/libgomp.fortran/fortran.exp: New file.
2989 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2990 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2991 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2992 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2993 * testsuite/libgomp.fortran/omp_hello.f: New test.
2994 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2995 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2996 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2997 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2998 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2999 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3000 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3001 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3003 2005-08-30 Richard Henderson <rth@redhat.com>
3005 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3006 function for when aliases are not usable.
3007 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3008 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3009 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3010 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3011 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3012 GOMP_loop_ordered_guided_next): Likewise.
3013 * ordered.c (GOMP_ordered_start): Likewise.
3015 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3017 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3018 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3019 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3020 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3021 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3022 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3023 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3024 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3025 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3027 2005-07-07 Eric Christopher <echristo@redhat.com>
3028 Diego Novillo <dnovillo@redhat.com>
3030 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3031 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3033 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3034 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3035 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3036 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3037 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3038 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3039 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3041 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3043 * TOPLEVEL.patch: Remove.
3045 2005-05-16 Richard Henderson <rth@redhat.com>
3047 * configure.ac: Test for clock_gettime.
3048 * config.h.in, configure: Rebuild.
3049 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3050 (omp_get_wtime): Use clock_gettime if available.
3051 (omp_get_wtick): Use clock_getres if available.
3053 2005-05-11 Richard Henderson <rth@redhat.com>
3055 * config/linux/ia64/futex.h: New file.
3056 * configure.tgt: Use it.
3058 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3060 2005-05-07 Richard Henderson <rth@redhat.com>
3062 * config/linux/powerpc/futex.h: New file.
3063 * configure.tgt: Use it.
3065 * config/linux/i486/futex.h: Merge ...
3066 * config/linux/x86_64/futex.h: ... into ...
3067 * config/linux/x86/futex.h: ... here.
3068 * configure.tgt: Update to match.
3070 2005-05-06 Richard Henderson <rth@redhat.com>
3072 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3073 * config/linux/i486/futex.h: Likewise.
3074 * config/linux/x86_64/futex.h: Likewise.
3076 * config/linux/lock.c: New file.
3077 * config/linux/omp-lock.h: New file.
3079 * critical.c, env.h: Don't include omp.h
3080 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3081 * config/posix/time.c: Likewise.
3082 * config/posix/omp-lock.h: New file.
3083 * libgomp.h: Include omp-lock.h and omp.h.
3084 * Makefile.am (nodist_include_HEADERS): New.
3086 * configure.ac (PERL): New.
3087 * mkomp_h.pl: New file.
3088 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3090 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3092 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3093 build directory. Re-add -march=i486 hack.
3095 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3096 (libgomp_link_flags): Remove.
3097 (libgomp_initialized): Remove.
3098 (libgomp_init): Don't protect from reinitialization. Copy code
3099 from libstdc++ for getting the multilib set correctly.
3101 2005-05-05 Richard Henderson <rth@redhat.com>
3103 * config/linux/alpha/futex.h: New file.
3104 * configure.tgt (alpha*-*-linux*): Use it.
3106 * config/posix/mutex.c: New file.
3107 * config/posix/sem.c: Use libgomp.h.
3109 * configure.tgt (x86_64-linux): Also test CC for -m32.
3110 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3112 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3115 * Makefile.am (SUBDIRS): New.
3116 (libgomp_la_LDFLAGS): Add -lpthread.
3117 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3118 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3120 * libgomp_g.h: New file.
3121 * libgomp.h: Split out all public declarations to libgomp_g.h.
3122 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3123 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3124 * config/linux/sem.h: Likewise.
3125 * config/posix/sem.h: Likewise.
3127 * Makefile.am (AM_LDFLAGS): New.
3128 (libgomp_version_script): Split out from ...
3129 (libgomp_la_LDFLAGS): ... here.
3130 (libgomp_version_info): New.
3131 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3132 (LIBGOMP_ENABLE): New.
3133 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3134 (LIBGOMP_ENABLE_SYMVERS): New.
3135 * configure.ac (AC_INIT): Version 1.0.
3136 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3137 (enable-linux-futex): Likewise. Rename from enable-futex.
3138 (libtool_VERSION): New.
3139 (LIBGOMP_ENABLE_SYMVERS): Use it.
3140 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3141 * Makefile.in, aclocal.m4, configure: Rebuild.
3143 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3144 (gomp_mutex_unlock_slow): Fix typo.
3145 * config/linux/sem.c: Similarly.
3146 (gomp_sem_post_slow): Fix typo.
3147 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3148 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3149 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3151 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3152 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3153 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3154 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3155 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3156 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3157 LDFLAGS. Pull enable_futex check to top-level.
3158 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3159 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3161 First attempt at real configury.
3162 * Makefile, config.h: Remove file.
3163 * Makefile.am, Makefile.in: New file.
3164 * acinclude.m4 aclocal.m4: New file.
3165 * configure.ac, configure.tgt, configure: New file.
3167 * config/posix/lock.c: Rename from sys-lock.c.
3168 * config/posix/mutex.h: Rename from sys-mutex.h.
3169 * config/posix/sem.c: Rename from sys-sem.c.
3170 * config/posix/sem.h: Rename from sys-sem.h.
3171 * config/posix/proc.c: Rename from sys-proc.c.
3172 * config/posix/time.c: Rename from sys-proc.c.
3174 * config/linux/mutex.c: New file.
3175 * config/linux/mutex.h: New file.
3176 * config/linux/sem.c: New file.
3177 * config/linux/sem.h: New file.
3178 * config/linux/i486/futex.h: New file.
3179 * config/linux/x86_64/futex.h: New file.
3181 2005-05-04 Richard Henderson <rth@redhat.com>
3183 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3184 * libgomp.h: Declare them.
3185 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3186 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3188 2005-05-04 Richard Henderson <rth@redhat.com>
3190 * libgomp-1 code drop
3192 2005-05-04 Richard Henderson <rth@redhat.com>
3194 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3195 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3196 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3197 (gomp_iter_static_next): Update.
3198 (gomp_ordered_static_next): Update.
3199 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3200 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3201 totally empty range.
3202 (gomp_loop_ordered_static_next): Refine test for calling
3203 gomp_ordered_static_next.
3204 * testsuite/ordered-1.c: Add case for more threads than iterations.
3206 * iter.c (gomp_iter_runtime_next_locked): Remove.
3207 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3208 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3209 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3210 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3211 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3212 gomp_loop_ordered_guided_next): Downcase name, make static, add
3213 an external alias with the old name.
3214 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3215 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3216 switch and call one of the above static functions.
3217 * libgomp.h: Update.
3219 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3220 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3221 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3222 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3223 GOMP_loop_ordered_guided_start): Update to match.
3224 * sections.c (GOMP_sections_start): Likewise.
3225 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3227 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3228 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3229 Use bounds check instead of modulus.
3230 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3231 (gomp_ordered_last): Don't sync with ordered_owner here.
3232 (gomp_ordered_next): Likewise.
3233 (gomp_ordered_static_loop_next): Likewise.
3234 * loop.c, libgomp.h: Update to match.
3236 * libgomp.h (GOMP_barrier): Declare.
3238 * testsuite/barrier-1.c: New file.
3239 * testsuite/critical-1.c: New file.
3240 * testsuite/ordered-2.c: New file.
3241 * testsuite/ordered-1.c: New file.
3242 * testsuite/sections-1.c: New file.
3243 * testsuite/single-1.c: New file.
3244 * testsuite/Makefile (TESTS): Add them.
3246 2005-05-04 Richard Henderson <rth@redhat.com>
3248 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3249 * loop.c (GOMP_loop_static_start): If not the startup thread,
3250 acquire the mutex to wait for initialization complete.
3251 (GOMP_loop_ordered_static_start): Likewise.
3252 (GOMP_loop_ordered_runtime_start): Likewise.
3253 (GOMP_loop_ordered_static_first): Remove.
3254 (GOMP_loop_ordered_dynamic_first): Remove.
3255 (GOMP_loop_ordered_guided_first): Remove.
3256 (GOMP_loop_ordered_runtime_first): Remove.
3257 * ordered.c (gomp_ordered_loop_first): Post to own release when
3258 we're the first thread.
3259 (gomp_ordered_loop_last): Wait on release if not owner.
3260 (gomp_ordered_loop_next): Likewise.
3261 (gomp_ordered_static_loop_init): New.
3262 (gomp_ordered_static_loop_next): Use ordered_owner.
3263 (GOMP_ordered_start): Likewise.
3264 * work.c (gomp_new_work_share): Initialize ordered_owner.
3266 2005-05-03 Richard Henderson <rth@redhat.com>
3268 * Makefile (OPT): New.
3271 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3272 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3273 * libgomp.h, libgomp.map, NOTES: Update to match.
3275 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3276 Add initialized and thr members.
3277 (gomp_thread_start): Pause when initially spawned to wait for
3278 the whole team to be created.
3279 (gomp_team_start): Release team members at the end.
3281 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3282 (f_foo_1): Use GOMP_loop_end.
3283 (f_foo_2): Use GOMP_loop_end_nowait.
3285 * testsuite/loop-2.c: New file.
3286 * testsuite/Makefile (TESTS): Add it.
3288 2005-05-03 Richard Henderson <rth@redhat.com>
3290 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3291 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3292 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3295 * testsuite/Makefile: New file.
3296 * testsuite/loop-1.c: New file.
3298 2005-05-03 Richard Henderson <rth@redhat.com>
3300 Initial implementation and checkin.