1 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3 * testsuite/lib/libgomp.exp: load fortran-modules.exp
5 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7 * configure.tgt (mips-sgi-irix6*): Remove.
9 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11 * configure.tgt (alpha*-dec-osf*): Remove.
13 * config/osf/sem.h: Remove.
14 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
18 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
20 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
24 Remove ENABLE_SYMVERS_SOL2.
25 * configure: Regenerate.
26 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
27 (PREPROCESS): New variable.
28 (libgomp.ver): New target.
29 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
30 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
31 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
33 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
34 * Makefile.in: Regenerate.
36 2012-02-14 Walter Lee <walt@tilera.com>
38 * configure.tgt: Handle tilegx and tilepro.
39 * config/linux/tile/futex.h: New file.
41 2012-02-08 Richard Guenther <rguenther@suse.de>
43 PR tree-optimization/46886
44 * testsuite/libgomp.c/pr46886.c: New testcase.
46 2012-01-25 Matthias Klose <doko@ubuntu.com>
48 * config/linux/arm: Remove empty directory.
49 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
51 2011-12-09 Alan Modra <amodra@gmail.com>
54 * task.c (GOMP_taskwait): Don't access task->children outside of
55 task_lock mutex region.
56 (GOMP_task): Likewise.
58 2011-12-06 Jakub Jelinek <jakub@redhat.com>
61 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
63 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
64 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
65 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
66 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
67 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
69 2011-12-02 Alan Modra <amodra@gmail.com>
71 * config/linux/affinity.c: Use atomic rather than sync builtin.
72 * config/linux/lock.c: Likewise.
73 * config/linux/ptrlock.h: Likewise.
74 * config/linux/ptrlock.c: Likewise.
75 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
76 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
77 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
78 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
79 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
80 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
81 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
82 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
83 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
84 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
86 2011-11-30 Alan Modra <amodra@gmail.com>
89 * config/linux/bar.h: Use atomic rather than sync builtins.
90 * config/linux/bar.c: Likewise. Add missing acquire
91 synchronisation on generation field.
92 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
95 2011-11-30 Alan Modra <amodra@gmail.com>
97 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
98 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
99 * config/linux/mutex.h: Use atomic rather than sync builtins.
100 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
101 * config/linux/omp-lock.h: Comment fix.
102 * config/linux/arm/mutex.h: Delete.
103 * config/linux/powerpc/mutex.h: Delete.
104 * config/linux/ia64/mutex.h: Delete.
105 * config/linux/mips/mutex.h: Delete.
107 2011-11-30 Alan Modra <amodra@gmail.com>
110 * config/linux/sem.h: Rewrite.
111 * config/linux/sem.c: Rewrite.
113 2011-11-28 Richard Henderson <rth@redhat.com>
115 * libgomp.h (enum memmodel): New.
117 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
119 * configure: Regenerate.
121 2011-10-10 Matthias Klose <doko@ubuntu.com>
123 * config/posix95: Remove empty directory.
125 2011-08-26 Jakub Jelinek <jakub@redhat.com>
127 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
129 2011-08-19 Jakub Jelinek <jakub@redhat.com>
132 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
133 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
135 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
139 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
142 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
144 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
146 * config/linux/proc.h: New.
147 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
148 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
149 (gomp_init_num_threads): Update call to cpuset_popcount.
150 (get_num_procs): Ditto.
151 * config/linux/affinity.c (gomp_init_affinity): Call
152 gomp_cpuset_popcount.
154 2011-08-02 Jakub Jelinek <jakub@redhat.com>
158 * omp.h.in (omp_in_final): New prototype.
159 * omp_lib.f90.in (omp_in_final): New interface.
160 (omp_integer_kind, omp_logical_kind): Remove
161 and replace all its uses in the module with 4.
162 (openmp_version): Change to 201107.
163 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
164 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
165 kind for the parameters.
166 (omp_in_final): New external.
167 (openmp_version): Change to 201107.
168 * task.c (omp_in_final): New function.
169 (gomp_init_task): Initialize final_task.
170 (GOMP_task): Remove unused attribute from flags. Handle final
172 (GOMP_taskyield): New function.
173 (omp_in_final): Return true if if (false) or final (true) task
174 or descendant of final (true).
175 * fortran.c (omp_in_final_): New function.
176 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
177 (GOMP_3.0): Export GOMP_taskyield.
178 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
180 (parse_unsigned_long_list): New function.
181 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
182 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
183 even if parse_affinity returned false.
184 * config/linux/affinity.c (gomp_init_affinity): Handle
185 gomp_cpu_affinity_len == 0.
186 * libgomp_g.h (GOMP_taskyield): New prototype.
187 * libgomp.h (struct gomp_task): Add final_task field.
188 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
189 * team.c (gomp_team_start): Override new task's nthreads_var icv
190 if list form OMP_NUM_THREADS has been used and it has value for
191 the new nesting level.
193 * testsuite/libgomp.c/atomic-11.c: New test.
194 * testsuite/libgomp.c/atomic-12.c: New test.
195 * testsuite/libgomp.c/atomic-13.c: New test.
196 * testsuite/libgomp.c/atomic-14.c: New test.
197 * testsuite/libgomp.c/reduction-6.c: New test.
198 * testsuite/libgomp.c/task-5.c: New test.
199 * testsuite/libgomp.c++/atomic-2.C: New test.
200 * testsuite/libgomp.c++/atomic-3.C: New test.
201 * testsuite/libgomp.c++/atomic-4.C: New test.
202 * testsuite/libgomp.c++/atomic-5.C: New test.
203 * testsuite/libgomp.c++/atomic-6.C: New test.
204 * testsuite/libgomp.c++/atomic-7.C: New test.
205 * testsuite/libgomp.c++/atomic-8.C: New test.
206 * testsuite/libgomp.c++/atomic-9.C: New test.
207 * testsuite/libgomp.c++/task-8.C: New test.
208 * testsuite/libgomp.c++/reduction-4.C: New test.
209 * testsuite/libgomp.fortran/allocatable7.f90: New test.
210 * testsuite/libgomp.fortran/allocatable8.f90: New test.
211 * testsuite/libgomp.fortran/crayptr3.f90: New test.
212 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
213 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
214 * testsuite/libgomp.fortran/pointer1.f90: New test.
215 * testsuite/libgomp.fortran/pointer2.f90: New test.
216 * testsuite/libgomp.fortran/task4.f90: New test.
218 2011-08-02 Tobias Burnus <burnus@net-b.de>
220 * libgomp.texi: Update OpenMP spec references to 3.1.
221 (omp_in_final,OMP_PROC_BIND): New sections.
222 (OMP_NUM_THREADS): Document that the value can be now a list.
223 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
225 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
227 * config/linux/x86/futex.h: Check __x86_64__ instead of
230 2011-07-29 Jakub Jelinek <jakub@redhat.com>
234 * testsuite/libgomp.c/pr49897-1.c: New test.
235 * testsuite/libgomp.c/pr49897-2.c: New test.
236 * testsuite/libgomp.c/pr49898-1.c: New test.
237 * testsuite/libgomp.c/pr49898-2.c: New test.
239 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
241 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
242 for ia32 instead of ilp32.
244 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
245 * testsuite/libgomp.c/atomic-6.c: Likewise.
247 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
249 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
250 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
252 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255 * config/osf/sem.h: New file.
256 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
258 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
261 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
264 2011-07-15 Jakub Jelinek <jakub@redhat.com>
266 * config/linux/wait.h (do_spin): New inline, largely copied
267 from do_wait, just don't do futex_wait here, instead return true if
269 (do_wait): Implement using do_spin.
270 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
272 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
273 __sync_bool_compare_and_swap, pass the oldval to
274 gomp_mutex_lock_slow.
275 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
276 If all mutex contenders are just spinning and not sleeping, don't
277 change state to 2 unnecessarily. Optimize the loop when state has
278 already become 2 to use just one atomic operation per loop instead
280 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
282 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
283 __sync_bool_compare_and_swap, pass the oldval to
284 gomp_mutex_lock_slow.
286 2011-06-22 Jakub Jelinek <jakub@redhat.com>
289 * iter.c (gomp_iter_static_next): For chunk size 0
290 only use n ceil/ nthreads size for the first
291 n % nthreads threads in the team instead of
292 all threads except for the last few ones which
293 get less work or none at all.
294 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
295 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
296 chunk argument, set run_sched_modifier to 0 for static
297 resp. 1 for other kinds. If chunk argument is 0
298 and not static, set value to 1.
300 2011-05-19 Jakub Jelinek <jakub@redhat.com>
303 * testsuite/libgomp.c++/pr49043.C: New test.
306 * testsuite/libgomp.c++/pr48869.C: New test.
308 2011-05-06 Jakub Jelinek <jakub@redhat.com>
311 * fortran.c: Include limits.h.
313 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
315 (omp_set_num_threads_8_, omp_set_schedule_8_,
316 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
317 omp_get_team_size_8_): Use TO_INT macro.
318 * testsuite/libgomp.fortran/pr48894.f90: New test.
320 2011-04-13 Jakub Jelinek <jakub@redhat.com>
323 * testsuite/libgomp.c/pr48591.c: New test.
325 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
329 * configure: Regenerate.
331 2011-02-27 Jakub Jelinek <jakub@redhat.com>
334 * testsuite/libgomp.fortran/task3.f90: New test.
336 2011-02-24 Tobias Burnus <burnus@net-b.de>
338 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
340 2011-02-23 Jakub Jelinek <jakub@redhat.com>
343 * libgomp.texi (omp_get_wtime): Don't say time in the past
346 2011-02-18 Jakub Jelinek <jakub@redhat.com>
349 * testsuite/libgomp.fortran/fortran.exp: Check for both
350 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
351 but $blddir != "", still append ${blddir}/${lang_library_path}
354 2011-02-16 Tobias Burnus <burnus@net-b.de>
357 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
358 of libquadmath.a before adding its libpath to ldflags.
360 2011-02-14 Jakub Jelinek <jakub@redhat.com>
363 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
364 to FUTEX_WAIT futex syscall.
365 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
367 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
369 * configure: Regenerate.
371 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
374 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
376 2011-01-16 Gerald Pfeifer
378 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
380 2010-12-14 Jakub Jelinek <jakub@redhat.com>
383 * libgomp.fortran/allocatable6.f90: New test.
385 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
387 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
388 * configure: Regenerate.
390 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
394 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
395 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
396 * aclocal.m4: Regenerate.
397 * configure: Regenerate.
398 * Makefile.in: Regenerate.
399 * testsuite/Makefile.in: Regenerate.
401 2010-12-02 Jakub Jelinek <jakub@redhat.com>
404 * libgomp.fortran/pr46753.f90: New test.
407 * env.c (initialize_env): Default to spin count 300000
408 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
412 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
413 at the end if sync builtins aren't supported.
415 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
417 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
419 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
421 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
423 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
425 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
427 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
428 Tobias Burnus <burnus@net-b.de>
432 * configure: Regenerate.
434 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
436 * config/linux/futex.h: New.
437 * config/linux/arm/mutex.h: New.
438 * configure.tgt (arm*-*-linux*): Add config path.
440 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
442 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
444 2010-09-23 Tobias Burnus <burnus@net-b.de>
446 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
447 Change Fortran datatype to LOGICAL.
448 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
449 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
451 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
453 * configure: Regenerate.
455 2010-07-26 Jakub Jelinek <jakub@redhat.com>
457 * libgomp.texi: Add function keyword to a couple of Fortran
458 interfaces, use integer instead of int for Fortran.
460 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
462 * libgomp.texi: Fix spelling and pasto problems throughout.
463 Adjust prototypes to match code.
465 2010-07-24 Tobias Burnus <burnus@net-b.de>
467 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
468 silence -fwhole-file warning.
470 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
472 * configure.tgt (*-*-solaris2.[56]*): Removed.
474 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
476 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
477 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
478 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
479 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
480 targetting solaris2*.
481 * configure: Regenerate.
482 * config.h.in: Regenerate.
484 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
485 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
486 Add libgomp_version_dep.
487 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
489 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
490 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
491 * Makefile.in: Regenerate.
493 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
494 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
495 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
496 to common block, protected by
497 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
499 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
501 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
503 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
506 * configure: Regenerate.
508 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
511 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
512 * configure: Regenerate.
513 * Makefile.in: Regenerate.
514 * testsuite/Makefile.in: Regenerate.
516 2010-04-26 Jakub Jelinek <jakub@redhat.com>
519 * testsuite/libgomp.c/pr43893.c: New test.
520 * testsuite/libgomp.c++/pr43893.C: New test.
522 2010-04-21 Jakub Jelinek <jakub@redhat.com>
525 * testsuite/libgomp.fortran/vla8.f90: New test.
527 2010-04-20 Jakub Jelinek <jakub@redhat.com>
530 * config/linux/affinity.c (gomp_init_affinity): Decrease
531 gomp_available_cpus if affinity mask confines the process to fewer
533 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
534 non-NULL, just return gomp_available_cpus.
537 * sections.c (gomp_sections_init): Initialize ws->mode.
539 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
541 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
542 not unused bar variable.
543 * configure: Regenerate.
545 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
547 * Makefile.in: Regenerate.
548 * aclocal.m4: Regenerate.
549 * testsuite/Makefile.in: Regenerate.
551 2010-03-22 Jakub Jelinek <jakub@redhat.com>
554 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
555 (initialize_env): Adjust callers.
556 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
557 when the argument is 0.
559 * testsuite/libgomp.c/pr42942.c: New test.
561 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
565 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
566 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
568 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
570 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
571 * testsuite/libgomp.c++/task-6.C: Likewise.
573 2010-01-28 Steve Ellcey <sje@cup.hp.com>
575 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
577 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
579 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
580 * configure: Regenerate.
582 2010-01-26 Jakub Jelinek <jakub@redhat.com>
585 * testsuite/libgomp.fortran/allocatable5.f90: New test.
587 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
589 * configure.ac: Test for executability of GFORTRAN.
590 * configure: Regenerate.
592 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
594 * configure: Regenerate.
596 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
599 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
601 2010-01-03 Richard Guenther <rguenther@suse.de>
603 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
605 2009-12-23 Sebastian Pop <sebpop@gmail.com>
607 * testsuite/libgomp.graphite/pr4118.c: New.
609 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
611 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
612 for darwin, protect the test with require-effective-target tls_runtime.
613 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
615 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
618 * testsuite/lib/libgomp.exp: Provide -B options to allow for
619 link spec %s substitutions for static libraries.
621 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
624 * libgomp.graphite/force-parallel-2.c: Reduce array size.
626 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
628 * Makefile.in: Regenerate.
629 * configure: Regenerate.
630 * testsuite/Makefile.in: Regenerate.
632 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
634 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
635 settings for LC_ALL and LANG.
637 2009-11-25 Jakub Jelinek <jakub@redhat.com>
640 * testsuite/libgomp.fortran/pr42162.f90: New test.
642 2009-11-13 Jakub Jelinek <jakub@redhat.com>
645 * testsuite/libgomp.c/pr42029.c: New test.
647 2009-10-26 Jakub Jelinek <jakub@redhat.com>
649 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
650 *s. Accept ld version without text in ()s.
651 * configure: Regenerated.
653 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
655 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
657 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
660 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
661 or a hyphen (happens with fortran language disabled).
662 * configure: Regenerate.
664 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
666 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
667 use sed script portable to Solaris /bin/sed for extracting ld
669 * configure: Regenerate.
671 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
673 * testsuite/libgomp.graphite/bounds.c: New test.
675 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
677 * Makefile.am (libgomp_la_LINK): New.
678 * Makefile.in: Regenerate.
680 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
682 * configure.ac (AC_PREREQ): Bump to 2.64.
684 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
686 * Makefile.am (install-html, install-pdf): Remove.
687 * Makefile.in: Regenerate.
689 * Makefile.in: Regenerate.
690 * aclocal.m4: Regenerate.
691 * config.h.in: Regenerate.
692 * configure: Regenerate.
693 * testsuite/Makefile.in: Regenerate.
695 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
697 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
698 * Makefile.in: Regenerate.
700 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
702 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
703 * Makefile.in: Regenerate.
705 2009-08-19 Tobias Burnus <burnus@net-b.de>
708 omp_lib.h.in: Fix -std=f95 errors.
711 2009-08-14 David Edelsohn <edelsohn@gnu.org>
713 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
714 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
715 * testsuite/libgomp.graphite/graphite.exp: New.
717 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
719 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
722 2009-08-04 David Daney <ddaney@caviumnetworks.com>
724 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
725 needed memory barrier semantics.
726 * config/linux/mips/mutex.h: New file.
728 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
730 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
732 2009-07-16 Joseph Myers <joseph@codesourcery.com>
734 * configure: Regenerate.
736 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
741 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
742 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
743 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
745 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
747 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
748 options when choosing a multilib.
750 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
752 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
753 ld_library_path. Use add_path. Add just find_libgcc_s to
754 ld_library_path, not every libgcc multilib directory.
755 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
756 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
757 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
759 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
761 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
763 * Makefile.am (LTLDFLAGS): Define.
765 * Makefile.in: Regenerate.
767 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
770 * testsuite/libgomp.fortran/fortran.exp: Don't link with
771 libgfortranbegin, check existence of libgfortran.a instead of
774 2009-05-20 Jakub Jelinek <jakub@redhat.com>
777 * team.c (gomp_thread_start): Destroy thr->release semaphore.
778 (gomp_free_pool_helper): Likewise.
780 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
781 Jakub Jelinek <jakub@redhat.com>
784 * testsuite/libgomp.fortran/workshare2.f90: New test.
786 2009-04-09 Nick Clifton <nickc@redhat.com>
788 * iter.c: Change copyright header to refer to version 3 of the
789 GNU General Public License with version 3.1 of the GCC Runtime
790 Library Exception and to point readers at the COPYING3 and
791 COPYING3.RUNTIME files and the FSF's license web page.
793 * barrier.c: Likewise.
794 * config/bsd/proc.c: Likewise.
795 * config/linux/affinity.c: Likewise.
796 * config/linux/alpha/futex.h: Likewise.
797 * config/linux/bar.c: Likewise.
798 * config/linux/bar.h: Likewise.
799 * config/linux/ia64/futex.h: Likewise.
800 * config/linux/ia64/mutex.h: Likewise.
801 * config/linux/lock.c: Likewise.
802 * config/linux/mips/futex.h: Likewise.
803 * config/linux/mutex.c: Likewise.
804 * config/linux/mutex.h: Likewise.
805 * config/linux/powerpc/futex.h: Likewise.
806 * config/linux/proc.c: Likewise.
807 * config/linux/ptrlock.c: Likewise.
808 * config/linux/ptrlock.h: Likewise.
809 * config/linux/s390/futex.h: Likewise.
810 * config/linux/sem.c: Likewise.
811 * config/linux/sem.h: Likewise.
812 * config/linux/sparc/futex.h: Likewise.
813 * config/linux/wait.h: Likewise.
814 * config/linux/x86/futex.h: Likewise.
815 * config/mingw32/proc.c: Likewise.
816 * config/mingw32/time.c: Likewise.
817 * config/posix/affinity.c: Likewise.
818 * config/posix/bar.c: Likewise.
819 * config/posix/bar.h: Likewise.
820 * config/posix/lock.c: Likewise.
821 * config/posix/mutex.h: Likewise.
822 * config/posix/proc.c: Likewise.
823 * config/posix/ptrlock.h: Likewise.
824 * config/posix/sem.c: Likewise.
825 * config/posix/sem.h: Likewise.
826 * config/posix/time.c: Likewise.
827 * config/posix95/lock.c: Likewise.
828 * critical.c: Likewise.
831 * fortran.c: Likewise.
832 * iter_ull.c: Likewise.
833 * libgomp.h: Likewise.
834 * libgomp_f.h.in: Likewise.
835 * libgomp_g.h: Likewise.
837 * loop_ull.c: Likewise.
838 * omp.h.in: Likewise.
839 * omp_lib.f90.in: Likewise.
840 * omp_lib.h.in: Likewise.
841 * ordered.c: Likewise.
842 * parallel.c: Likewise.
843 * sections.c: Likewise.
844 * single.c: Likewise.
849 2009-04-09 Jakub Jelinek <jakub@redhat.com>
851 * testsuite/config/default.exp: Change copyright header to refer to
852 version 3 of the GNU General Public License and to point readers
853 at the COPYING3 file and the FSF's license web page.
855 2009-04-08 Jakub Jelinek <jakub@redhat.com>
858 * libgomp.c++/pr39573.C: New test.
860 2009-04-01 Jakub Jelinek <jakub@redhat.com>
863 * testsuite/libgomp.c/pr39591-1.c: New test.
864 * testsuite/libgomp.c/pr39591-2.c: New test.
865 * testsuite/libgomp.c/pr39591-3.c: New test.
867 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
869 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
870 * testsuite/libgomp.c/atomic-6.c: Ditto.
872 2009-03-23 Jakub Jelinek <jakub@redhat.com>
875 * testsuite/libgomp.c/loop-12.c: New test.
876 * testsuite/libgomp.c/loop-11.c: New test.
877 * testsuite/libgomp.c++/loop-11.C: New test.
878 * testsuite/libgomp.c++/loop-12.C: New test.
879 * testsuite/libgomp.c++/for-8.C: New test.
881 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
883 * configure: Regenerate.
885 2009-02-11 Jakub Jelinek <jakub@redhat.com>
888 * testsuite/libgomp.c/pr39154.c: New test.
890 2009-01-30 Ian Lance Taylor <iant@google.com>
892 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
893 libgomp_ld_is_gold. Get gold version number.
894 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
895 * configure: Rebuild.
897 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
899 * testsuite/lib/libgomp.exp: Add -B option for targets that
900 use libgfortran.a%s in their specs.
902 2009-01-07 Jakub Jelinek <jakub@redhat.com>
905 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
906 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
907 HAVE_AS_SYMVER_DIRECTIVE is not defined.
908 * configure: Regenerated.
909 * config.h.in: Likewise.
911 2008-12-28 Jakub Jelinek <jakub@redhat.com>
914 * testsuite/libgomp.c/pr38650.c: New test.
915 * testsuite/libgomp.c++/pr38650.C: New test.
917 2008-12-27 Jakub Jelinek <jakub@redhat.com>
919 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
921 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
923 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
925 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
927 * configure: Regenerate.
929 2008-12-08 Jakub Jelinek <jakub@redhat.com>
932 * testsuite/libgomp.c/pr36802-1.c: New test.
933 * testsuite/libgomp.c/pr36802-2.c: New test.
934 * testsuite/libgomp.c/pr36802-3.c: New test.
936 2008-12-01 Janis Johnson <janis187@us.ibm.com>
939 * config/linux/powerpc/mutex.h: New.
941 2008-12-01 Jakub Jelinek <jakub@redhat.com>
944 * testsuite/libgomp.c++/for-7.C: New test.
947 * testsuite/libgomp.c++/for-6.C: New test.
949 2008-11-26 Janis Johnson <janis187@us.ibm.com>
952 * testsuite/lib/libgomp.exp: Include new timeout library files.
953 (libgomp_target_compile): Set timeout value from new proc.
955 2008-11-13 Steve Ellcey <sje@cup.hp.com>
958 * config/linux/ia64/mutex.h: New.
960 2008-11-04 Tobias Burnus <burnus@net-b.de>
963 * libgomp.texi (Runtime library routines, environment variables):
964 Update for OpenMP version 3.0.
966 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
967 Steve Ellcey <sje@cup.hp.com>
969 * configure: Regenerate for new libtool.
970 * Makefile.in: Ditto.
971 * testsuite/Makefile.in: Ditto.
973 2008-09-19 Jakub Jelinek <jakub@redhat.com>
974 Andreas Tobler <a.tobler@schweiz.org>
976 * config/bsd/proc.c: New file.
977 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
978 * configure.ac: Check for header <sys/sysctl.h>
979 * configure: Regenerate.
980 * config.h.in: Likewise.
982 2008-09-05 Janis Johnson <janis187@us.ibm.com>
984 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
986 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
988 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
989 * Makefile.in: Regenerated.
990 * testsuite/Makefile.in: Regenerated.
992 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
994 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
995 depend on blddir if blddir exists.
996 (libgomp_target_compile): Likewise.
997 * testsuite/libgomp.c++/c++.exp: Likewise.
998 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1000 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1002 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1003 Do not list GPL as Invariant Section.
1005 2008-07-28 Ilie Garbacea <ilie@mips.com>
1006 Chao-ying Fu <fu@mips.com>
1008 * configure.tgt: Enable futex for MIPS.
1009 * config/linux/mips/futex.h: New file.
1011 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1013 * team.c (gomp_team_end): Free team immediately if it has
1016 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1018 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1019 * testsuite/libgomp.fortran/fortran.exp: Same.
1020 * testsuite/libgomp.c/c.exp: Same.
1021 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1022 directory to library path first.
1024 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1026 * env.c (parse_stacksize): Add cast to avoid warning.
1027 (parse_spincount): Likewise.
1029 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1031 * testsuite/libgomp.c/loop-10.c: New test.
1032 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1033 * libgomp.c++/loop-6.C (main): Likewise.
1036 * testsuite/libgomp.c/debug-1.c: New test.
1038 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1040 * testsuite/libgomp.c/nqueens-1.c: New test.
1043 * testsuite/libgomp.c++/task-7.C: New function.
1045 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1047 * configure: Regenerate.
1049 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1051 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1052 mutex when HAVE_SYNC_BUILTINS isn't defined.
1054 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1056 * libgomp.texi (omp_test_lock): Fix typo.
1058 2008-06-12 Tobias Burnus <burnus@net-b.de>
1060 * omp_lib.f90.in: Add "implicit none".
1062 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1065 * testsuite/libgomp.c/reduction-5.c: New test.
1067 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1069 * libgomp.h (struct gomp_task): Add in_tied_task field.
1070 * task.c (gomp_init_task): Initialize it.
1071 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1072 unconditionally. Don't call gomp_team_barrier_wake if
1073 current task is implicit or if(0) from implicit and number of
1074 running tasks is equal to nthreads - 1.
1077 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1078 omp_get_team_size_8): Fix pastos.
1081 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1082 * configure: Regenerated.
1083 * config.h.in: Regenerated.
1084 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1087 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1090 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1091 (GOMP_loop_ull_dynamic_start): Likewise.
1092 (GOMP_loop_ull_guided_start): Likewise.
1093 (GOMP_loop_ull_ordered_static_start): Likewise.
1094 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1095 (GOMP_loop_ull_ordered_guided_start): Likewise.
1097 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1098 Richard Henderson <rth@redhat.com>
1099 Ulrich Drepper <drepper@redhat.com>
1100 Jakob Blomer <jakob.blomer@ira.uka.de>
1102 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1103 Substitute also OMP_*LOCK_25*.
1104 * configure: Regenerated.
1105 * config.h.in: Regenerated.
1106 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1107 ptrlock.c and task.c.
1108 * Makefile.in: Regenerated.
1109 * testsuite/Makefile.in: Regenerated.
1111 * loop_ull.c: New file.
1112 * iter_ull.c: New file.
1113 * libgomp.h: Include ptrlock.h.
1114 (enum gomp_task_kind): New type.
1115 (struct gomp_team): Add task_lock, task_queue, task_count,
1116 task_running_count, single_count fields. Add
1117 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1118 Remove work_share_lock, generation_mask,
1119 oldest_live_gen, num_live_gen and init_work_shares fields, add
1120 work work_share_list_alloc, work_share_list_free and work_share_chunk
1121 fields. Change work_shares from pointer to pointers into an array.
1122 Change ordered_release field into gomp_sem_t ** from flexible array
1123 member. Add implicit_task and initial_work_shares fields.
1124 Move close to the end of the struct.
1125 (struct gomp_team_state): Add single_count, last_work_share,
1126 active_level and level fields, remove work_share_generation.
1127 (gomp_barrier_handle_tasks): New prototype.
1128 (gomp_finish_task): New inline function.
1129 (struct gomp_work_share): Move chunk_size, end, incr into
1130 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1131 next_ll fields. Reshuffle fields. Add next_alloc,
1132 next_ws, next_free and inline_ordered_team_ids fields, change
1133 ordered_team_ids into pointer from flexible array member.
1134 Add mode field. Put lock and next into a different cache line
1135 from most of the write-once fields.
1136 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1137 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1138 gomp_iter_ull_guided_next): New prototypes.
1139 (gomp_new_icv): New prototype.
1140 (struct gomp_thread): Add thread_pool and task fields.
1141 (struct gomp_thread_pool): New type.
1142 (gomp_new_team): New prototype.
1143 (gomp_team_start): Change type of last argument.
1144 (gomp_new_work_share): Removed.
1145 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1146 (gomp_work_share_init_done): New static inline.
1147 (gomp_throttled_spin_count_var, gomp_available_cpus,
1148 gomp_managed_threads): New extern decls.
1149 (gomp_init_task): New prototype.
1150 (gomp_spin_count_var): New extern var decl.
1151 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1152 or no alias support, or if not PIC.
1153 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1154 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1155 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1156 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1157 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1158 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1159 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1160 gomp_test_nest_lock_25): New prototypes.
1161 (omp_lock_symver, strong_alias): Define.
1162 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1164 (gomp_end_task): New.
1165 (struct gomp_task_icv, gomp_global_icv): New.
1166 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1167 (struct gomp_task): New.
1168 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1169 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1171 (gomp_schedule_type): Reorder enum to match
1173 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1175 (gomp_thread_start): Add gomp_team_barrier_wait call.
1176 For non-nested case remove clearing of docked thread thr fields.
1177 Use pool fields instead of global gomp_* variables. Use
1178 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1179 Create tasks for each member thread.
1180 (free_team): Only destroy team barrier, task_lock here and free it.
1181 (gomp_free_thread): Free last_team if non-NULL.
1182 (gomp_team_end): Call gomp_team_barrier_wait instead of
1183 gomp_barrier_wait. For nested case call one extra
1184 gomp_barrier_wait. Move here some destruction from free_team.
1185 Call free_team on pool->last_team if any, rather than freeing
1186 current team. Destroy work_share_list_free_lock ifndef
1188 (gomp_new_icv): New function.
1189 (gomp_threads, gomp_threads_size, gomp_threads_used,
1190 gomp_threads_dock): Removed.
1191 (gomp_thread_destructor): New variable.
1192 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1194 (gomp_team_start): Create new pool if current thread doesn't have
1195 one. Use pool fields instead of global gomp_* variables.
1196 Initialize thread_pool field for new threads. Clear single_count.
1197 Change last argument from ws to team, don't create
1198 new team, set ts.work_share to &team->work_shares[0] and clear
1199 ts.last_work_share. Don't clear ts.work_share_generation.
1200 If number of threads changed, adjust atomically gomp_managed_threads.
1201 Use gomp_init_task instead of gomp_new_task,
1202 set thr->task to the corresponding implicit_task array entry.
1203 Create tasks for each member thread. Initialize ts.level.
1204 (initialize_team): Call pthread_key_create on
1205 gomp_thread_destructor.
1206 (team_destructor): New function.
1207 (new_team): Removed.
1208 (gomp_new_team): New function.
1209 (free_team): Free gomp_work_share blocks chained through next_alloc,
1210 instead of freeing work_shares and destroying work_share_lock.
1211 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1212 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1213 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1214 of gomp_barrier_wait.
1215 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1216 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1217 if gomp_work_share_start returned true. Don't unlock ws->lock.
1218 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1219 of gomp_barrier_wait.
1220 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1221 gomp_work_share_init_done if gomp_work_share_start returned true.
1222 Don't unlock ws->lock.
1223 * work.c: Include stddef.h.
1224 (free_work_share): Use work_share_list_free_lock instead
1225 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1226 Call gomp_fini_work_share and then either free ws if orphaned, or
1227 put it into work_share_list_free list of the current team.
1228 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1230 (gomp_work_share_start, gomp_work_share_end,
1231 gomp_work_share_end_nowait): Rewritten.
1232 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1233 (openmp_version): Set to 200805.
1234 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1235 omp_sched_guided, omp_sched_auto): New parameters.
1236 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1237 omp_set_max_active_levels, omp_get_max_active_levels,
1238 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1239 omp_get_active_level): New interfaces.
1240 * omp_lib.h.in (openmp_version): Set to 200805.
1241 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1242 omp_sched_guided, omp_sched_auto): New parameters.
1243 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1244 omp_set_max_active_levels, omp_get_max_active_levels,
1245 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1246 omp_get_active_level): New externals.
1247 * loop.c: Include limits.h.
1248 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1250 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1251 Likewise. Use gomp_icv.
1252 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1253 ts.static_trip here.
1254 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1255 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1256 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1257 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1258 don't unlock ws->lock, otherwise lock it.
1259 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1260 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1261 (gomp_parallel_loop_start): Call gomp_new_team instead of
1262 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1263 Adjust gomp_team_start caller. Pass 0 as second argument to
1264 gomp_resolve_num_threads.
1265 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1266 If adding ws->chunk_size nthreads + 1 times after end won't
1267 overflow, set ws->mode to 1.
1268 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1269 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1270 GOMP_loop_ull_ordered_static_start,
1271 GOMP_loop_ull_ordered_dynamic_start,
1272 GOMP_loop_ull_ordered_guided_start,
1273 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1274 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1275 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1276 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1277 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1279 * libgomp.map: Export lock routines also @@OMP_2.0.
1280 (GOMP_loop_ordered_dynamic_first,
1281 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1282 GOMP_loop_ordered_static_first): Remove.
1283 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1284 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1285 GOMP_loop_ull_ordered_dynamic_next,
1286 GOMP_loop_ull_ordered_dynamic_start,
1287 GOMP_loop_ull_ordered_guided_next,
1288 GOMP_loop_ull_ordered_guided_start,
1289 GOMP_loop_ull_ordered_runtime_next,
1290 GOMP_loop_ull_ordered_runtime_start,
1291 GOMP_loop_ull_ordered_static_next,
1292 GOMP_loop_ull_ordered_static_start,
1293 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1294 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1295 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1296 (omp_set_schedule, omp_get_schedule,
1297 omp_get_thread_limit, omp_set_max_active_levels,
1298 omp_get_max_active_levels, omp_get_level,
1299 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1300 omp_set_schedule_, omp_set_schedule_8_,
1301 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1302 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1303 omp_get_max_active_levels_, omp_get_level_,
1304 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1305 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1306 New exports @@OMP_3.0.
1307 * omp.h.in (omp_sched_t): New type.
1308 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1309 omp_set_max_active_levels, omp_get_max_active_levels,
1310 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1311 omp_get_active_level): New prototypes.
1312 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1313 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1314 gomp_thread_limit_var, gomp_remaining_threads_count,
1315 gomp_remaining_threads_lock): New variables.
1316 (parse_spincount): New function.
1317 (initialize_env): Call gomp_init_num_threads unconditionally.
1318 Initialize gomp_available_cpus. Call parse_spincount,
1319 initialize gomp_{,throttled_}spin_count_var
1320 depending on presence and value of OMP_WAIT_POLICY and
1321 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1322 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1323 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1324 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1325 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1326 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1327 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1328 (gomp_global_icv): New.
1329 (parse_schedule): Use it. Parse "auto".
1330 (omp_set_num_threads): Use gomp_icv.
1331 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1333 (omp_get_max_threads): Move from parallel.c.
1334 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1335 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1337 (parse_stacksize, parse_wait_policy): New functions.
1338 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1339 both wrappers for compatibility and new locks.
1340 (omp_set_schedule, omp_get_schedule,
1341 omp_get_thread_limit, omp_set_max_active_levels,
1342 omp_get_max_active_levels, omp_get_level,
1343 omp_get_ancestor_thread_num, omp_get_team_size,
1344 omp_get_active_level): New ialias_redirect.
1345 (omp_set_schedule_, omp_set_schedule_8_,
1346 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1347 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1348 omp_get_max_active_levels_, omp_get_level_,
1349 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1350 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1352 * parallel.c: Include limits.h.
1353 (gomp_resolve_num_threads): Add count argument. Rewritten.
1354 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1355 argument to gomp_team_start. Pass 0 as second argument to
1356 gomp_resolve_num_threads.
1357 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1358 if gomp_thread_limit_var != ULONG_MAX.
1359 (omp_in_parallel): Implement using ts.active_level.
1360 (omp_get_max_threads): Move to env.c.
1361 (omp_get_level, omp_get_ancestor_thread_num,
1362 omp_get_team_size, omp_get_active_level): New functions,
1364 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1365 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1366 gomp_iter_dynamic_next instead of the _locked variant and don't take
1367 lock around it, otherwise acquire it before calling
1368 gomp_iter_dynamic_next_locked.
1369 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1370 gomp_iter_dynamic_next instead of the _locked variant and don't take
1372 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1373 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1374 Adjust gomp_team_start caller. Pass count as second argument to
1375 gomp_resolve_num_threads, don't adjust num_threads after the call.
1377 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1378 ws->chunk_size by incr.
1379 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1381 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1383 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1384 (omp_check_defines): Check even the compat defines.
1385 * config/linux/ptrlock.c: New file.
1386 * config/linux/ptrlock.h: New file.
1387 * config/linux/wait.h: New file.
1388 * config/posix/ptrlock.c: New file.
1389 * config/posix/ptrlock.h: New file.
1390 * config/linux/bar.h (gomp_team_barrier_wait,
1391 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1392 (gomp_team_barrier_set_task_pending,
1393 gomp_team_barrier_clear_task_pending,
1394 gomp_team_barrier_set_waiting_for_tasks,
1395 gomp_team_barrier_waiting_for_tasks,
1396 gomp_team_barrier_done): New inlines.
1397 (gomp_barrier_t): Rewritten.
1398 (gomp_barrier_state_t): New typedef.
1399 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1400 gomp_barrier_wait_start): Rewritten.
1401 (gomp_barrier_wait_end): Change second argument to
1402 gomp_barrier_state_t.
1403 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1405 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1407 (gomp_barrier_wait_end): Rewritten.
1408 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1409 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1410 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1411 (gomp_barrier_state_t): New typedef.
1412 (gomp_team_barrier_wait,
1413 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1414 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1415 into the return value. Return gomp_barrier_state_t.
1416 (gomp_team_barrier_set_task_pending,
1417 gomp_team_barrier_clear_task_pending,
1418 gomp_team_barrier_set_waiting_for_tasks,
1419 gomp_team_barrier_waiting_for_tasks,
1420 gomp_team_barrier_done): New inlines.
1421 (gomp_barrier_wait_end): Change second argument to
1422 gomp_barrier_state_t.
1423 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1425 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1426 (gomp_barrier_wait_end): Change second argument to
1427 gomp_barrier_state_t.
1428 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1429 gomp_team_barrier_wake): New functions.
1430 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1432 (gomp_futex_wake, gomp_futex_wait): New variables.
1433 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1434 * config/linux/lock.c: Rewrite to make locks task owned,
1435 for backwards compatibility provide the old entrypoints
1436 if symbol versioning. Include wait.h instead of libgomp.h and
1438 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1439 * config/posix95/lock.c: Rewrite to make locks task owned,
1440 for backwards compatibility provide the old entrypoints
1441 if symbol versioning.
1442 * config/posix/lock.c: Rewrite to make locks task owned,
1443 for backwards compatibility provide the old entrypoints
1444 if symbol versioning.
1445 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1446 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1447 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1448 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1449 (sys_futex0): Return error code.
1450 (futex_wake, futex_wait): If ENOSYS was returned, clear
1451 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1452 (cpu_relax, atomic_write_barrier): New static inlines.
1453 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1454 (futex_wake, futex_wait): If ENOSYS was returned, clear
1455 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1456 (cpu_relax, atomic_write_barrier): New static inlines.
1457 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1458 (sys_futex0): Return error code.
1459 (futex_wake, futex_wait): If ENOSYS was returned, clear
1460 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1461 (cpu_relax, atomic_write_barrier): New static inlines.
1462 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1463 (sys_futex0): Return error code.
1464 (futex_wake, futex_wait): If ENOSYS was returned, clear
1465 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1466 (cpu_relax, atomic_write_barrier): New static inlines.
1467 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1468 (sys_futex0): Return error code.
1469 (futex_wake, futex_wait): If ENOSYS was returned, clear
1470 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1471 (cpu_relax, atomic_write_barrier): New static inlines.
1472 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1473 (sys_futex0): Return error code.
1474 (futex_wake, futex_wait): If ENOSYS was returned, clear
1475 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1476 (cpu_relax, atomic_write_barrier): New static inlines.
1477 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1479 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1480 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1481 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1483 (omp_nest_lock_t): Change owner into void *, add lock field.
1484 * config/posix95/omp-lock.h: Include semaphore.h.
1485 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1486 (omp_lock_t): Use sem_t instead of mutex if semaphores
1488 (omp_nest_lock_t): Likewise. Change owner to void *.
1489 * config/posix/omp-lock.h: Include semaphore.h.
1490 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1491 (omp_lock_t): Use sem_t instead of mutex if semaphores
1493 (omp_nest_lock_t): Likewise. Add owner field.
1495 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1497 * testsuite/libgomp.c/collapse-1.c: New test.
1498 * testsuite/libgomp.c/collapse-2.c: New test.
1499 * testsuite/libgomp.c/collapse-3.c: New test.
1500 * testsuite/libgomp.c/icv-1.c: New test.
1501 * testsuite/libgomp.c/icv-2.c: New test.
1502 * testsuite/libgomp.c/lib-2.c: New test.
1503 * testsuite/libgomp.c/lock-1.c: New test.
1504 * testsuite/libgomp.c/lock-2.c: New test.
1505 * testsuite/libgomp.c/lock-3.c: New test.
1506 * testsuite/libgomp.c/loop-4.c: New test.
1507 * testsuite/libgomp.c/loop-5.c: New test.
1508 * testsuite/libgomp.c/loop-6.c: New test.
1509 * testsuite/libgomp.c/loop-7.c: New test.
1510 * testsuite/libgomp.c/loop-8.c: New test.
1511 * testsuite/libgomp.c/loop-9.c: New test.
1512 * testsuite/libgomp.c/nested-3.c: New test.
1513 * testsuite/libgomp.c/nestedfn-6.c: New test.
1514 * testsuite/libgomp.c/sort-1.c: New test.
1515 * testsuite/libgomp.c/task-1.c: New test.
1516 * testsuite/libgomp.c/task-2.c: New test.
1517 * testsuite/libgomp.c/task-3.c: New test.
1518 * testsuite/libgomp.c/task-4.c: New test.
1519 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1520 to C++ testsuite default compiler options.
1521 * testsuite/libgomp.c++/collapse-1.C: New test.
1522 * testsuite/libgomp.c++/collapse-2.C: New test.
1523 * testsuite/libgomp.c++/ctor-10.C: New test.
1524 * testsuite/libgomp.c++/for-1.C: New test.
1525 * testsuite/libgomp.c++/for-2.C: New test.
1526 * testsuite/libgomp.c++/for-3.C: New test.
1527 * testsuite/libgomp.c++/for-4.C: New test.
1528 * testsuite/libgomp.c++/for-5.C: New test.
1529 * testsuite/libgomp.c++/loop-8.C: New test.
1530 * testsuite/libgomp.c++/loop-9.C: New test.
1531 * testsuite/libgomp.c++/loop-10.C: New test.
1532 * testsuite/libgomp.c++/task-1.C: New test.
1533 * testsuite/libgomp.c++/task-2.C: New test.
1534 * testsuite/libgomp.c++/task-3.C: New test.
1535 * testsuite/libgomp.c++/task-4.C: New test.
1536 * testsuite/libgomp.c++/task-5.C: New test.
1537 * testsuite/libgomp.c++/task-6.C: New test.
1538 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1539 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1540 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1541 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1542 * testsuite/libgomp.fortran/collapse1.f90: New test.
1543 * testsuite/libgomp.fortran/collapse2.f90: New test.
1544 * testsuite/libgomp.fortran/collapse3.f90: New test.
1545 * testsuite/libgomp.fortran/collapse4.f90: New test.
1546 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1547 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1548 * testsuite/libgomp.fortran/lib4.f90: New test.
1549 * testsuite/libgomp.fortran/lock-1.f90: New test.
1550 * testsuite/libgomp.fortran/lock-2.f90: New test.
1551 * testsuite/libgomp.fortran/nested1.f90: New test.
1552 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1553 * testsuite/libgomp.fortran/strassen.f90: New test.
1554 * testsuite/libgomp.fortran/tabs1.f90: New test.
1555 * testsuite/libgomp.fortran/tabs2.f: New test.
1556 * testsuite/libgomp.fortran/task1.f90: New test.
1557 * testsuite/libgomp.fortran/task2.f90: New test.
1558 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1559 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1560 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1561 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1562 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1564 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1567 * testsuite/libgomp.c++/ctor-11.C: New test.
1568 * testsuite/libgomp.c++/ctor-12.C: New test.
1570 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1572 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1574 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1577 * testsuite/libgomp.c/atomic-5.c: New test.
1578 * testsuite/libgomp.c/atomic-6.c: New test.
1579 * testsuite/libgomp.c/autopar-1.c: New test.
1581 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1583 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1584 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1585 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1586 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1587 * configure: Regenerate.
1588 * Makefile.in, testsuite/Makefile.in: Likewise.
1590 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1593 * aclocal.m4: Regenerate.
1594 * configure: Regenerate.
1596 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1599 * testsuite/libgomp.c/atomic-4.c: New test.
1602 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1603 (gomp_iter_guided_next): Likewise.
1604 * testsuite/libgomp.c/pr35625.c: New test.
1606 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1608 * aclocal.m4: Regenerate.
1609 * configure: Likewise.
1610 * Makefile.in: Likewise.
1611 * testsuite/Makefile.in: Likewise.
1613 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1616 * testsuite/libgomp.c++/pr35185.C: New test.
1618 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1621 * testsuite/libgomp.c/pr35549.c: New test.
1623 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.c/atomic-3.c: New test.
1627 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1630 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1633 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1636 * configure.ac: Add ACX_HEADER_STRING.
1637 * env.c: Include strings.h.
1638 * aclocal.m4: Regenerate.
1639 * config.h.in: Regenerate.
1640 * configure: Regenerate.
1641 * Makefile.in: Regenerate.
1642 * testsuite/Makefile.in: Regenerate.
1644 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1647 * testsuite/libgomp.c/pr35196.c: New test.
1650 * testsuite/libgomp.fortran/pr35130.f90: New test.
1651 * testsuite/libgomp.c/pr35130.c: New test.
1653 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1656 * testsuite/libgomp.c/pr33880.c: New test.
1657 * testsuite/libgomp.fortran/pr33880.f90: New test.
1659 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1661 * configure: Regenerate.
1663 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1665 * configure.ac: Move futex checking into ../config/futex.m4.
1666 * configure: Rebuilt.
1667 * aclocal.m4: Rebuilt.
1668 * Makefile.in: Rebuilt.
1670 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1671 2007-10-15 ../config/tls.m4 change.
1673 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1676 * testsuite/libgomp.c/pr34513.c: New test.
1677 * testsuite/libgomp.c++/pr34513.C: New test.
1679 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1682 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1684 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1686 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1688 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1690 * testsuite/libgomp.c/private-1.c: New test.
1692 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1693 Paolo Bonzini <bonzini@gnu.org>
1695 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1696 instead of 'VPATH ='.
1697 * Makefile.in: Regenerate.
1699 2007-11-23 Matthias Klose <doko@ubuntu.com>
1701 * configure.ac: Adjust makeinfo version check.
1702 * configure: Regenerate.
1704 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1707 * testsuite/libgomp.fortran/pr34020.f90: New test.
1709 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1712 * testsuite/libgomp.c++/atomic-1.C: New test.
1714 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1717 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1718 Make x and y integers rather than (implicit) reals. Add private (j)
1719 clause to the last omp parallel.
1721 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1723 * configure: Regenerate following changes to ../config/tls.m4.
1725 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1727 * testsuite/libgomp.fortran/stack.f90: New test.
1729 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1731 * config/mingw32/proc.c: New file.
1733 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1735 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1736 (main): Use __get_cpuid to get i386 target fetaures.
1737 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1738 (main): Use __get_cpuid to get x86_64 target fetaures.
1740 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1743 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1744 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1746 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1749 * testsuite/libgomp.fortran/pr32550.f90: New test.
1750 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1752 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1754 * aclocal.m4: Regenerated.
1756 2007-07-05 Tobias Burnus <burnus@net-b.de>
1759 * testsuite/libgomp.fortran/pr32359.f90: New.
1761 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1764 * sections.c (GOMP_parallel_sections_start): Only decrease
1765 number of threads to COUNT if dyn_var is true.
1766 * testsuite/libgomp.c/pr32468.c: New test.
1768 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1771 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1773 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1776 * testsuite/libgomp.c/pr32362-1.c: New test.
1777 * testsuite/libgomp.c/pr32362-2.c: New test.
1778 * testsuite/libgomp.c/pr32362-3.c: New test.
1780 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1782 * team.c (gomp_team_start): Fix setting up thread_attr
1785 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1787 * configure: Regenerate.
1789 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1791 * Makefile.in: Regenerate.
1792 * configure: Regenerate.
1793 * aclocal.m4: Regenerate.
1794 * testsuite/Makefile.in: Regenerate.
1796 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1798 * config/linux/proc.c: New file.
1801 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1803 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1805 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1807 2007-04-16 Matthias Klose <doko@debian.org>
1809 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1810 flags if not building with -m64.
1811 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1812 flag for i?86-*-* targets, if current target matches -m64.
1814 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1816 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1817 * Makefile.in: Regenerate.
1819 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1822 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1824 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1826 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1828 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1830 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1831 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1832 (parse_affinity): New function.
1833 (initialize_env): Call it and gomp_init_affinity.
1834 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1835 create new pthread_attr_t and call gomp_init_thread_affinity
1836 on it for each thread before passing the attribute to pthread_create.
1837 * config/linux/affinity.c: New file.
1838 * config/posix/affinity.c: New file.
1839 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1840 * configure: Rebuilt.
1841 * config.h.in: Rebuilt.
1842 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1843 * Makefile.in: Rebuilt.
1845 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1847 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1849 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1850 and use it if found.
1852 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1854 * testsuite/config/default.exp: New file.
1855 * testsuite/lib/libgomp.exp: New file.
1856 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1857 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1858 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1859 (libgomp_load): Remove.
1860 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1861 always_ld_library_path, not ld_library_path. Set additional_flags
1862 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1863 (target_compile): Do not call libgomp_init. Append lang_library_path
1864 and lang_link_flags to options.
1865 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1866 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1868 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1869 always_ld_library_path. Set LD_LIBRARY_PATH here.
1870 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1871 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1872 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1874 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1875 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1876 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1877 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1878 * testsuite/libgomp.c/atomic-10.c: Ditto.
1880 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1882 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1883 dg-final cleanup-modules line.
1884 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1885 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1886 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1887 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1888 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1889 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1890 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1892 2007-03-18 Andreas Schwab <schwab@suse.de>
1894 * acinclude.m4: Adjust regular expression for ld version
1896 * configure: Regenerate.
1898 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1900 * Makefile.am: Add install-pdf target as copied from
1901 automake v1.10 rules.
1902 * Makefile.in: Regenerate
1904 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1907 * configure: Regenerate.
1910 * testsuite/libgomp.c++/pr30703.C: New test.
1912 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1915 2006-07-05 Eric Christopher <echristo@apple.com>
1916 * configure.ac: Depend addition of -pthread on host OS.
1917 * configure: Regenerate.
1919 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1921 * libgomp.texi: Fix spacing after abbreviations.
1923 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1926 * configure.ac: Add check for makeinfo
1927 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1928 if an appropiate version of makeinfo is found.
1929 * aclocal.m4: Regenerated.
1930 * configure: Regenerated.
1931 * Makefile.in: Regenerated.
1932 * testsuite/Makefile.in: Regenerated.
1934 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1937 * libgomp.texi: More about implementation-dependent settings.
1939 2007-01-26 Tobias Burnus <burnus@net-b.de>
1941 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1943 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1946 * testsuite/libgomp.c/pr30494.c: New test.
1948 2007-01-15 Tom Tromey <tromey@redhat.com>
1950 * configure: Rebuilt.
1951 * configure.ac: Fixed comment.
1953 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1955 * libgomp.texi: Document implementation specific default values of
1956 environment variables.
1958 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1961 * libgomp.texi: New file.
1962 * configure.ac: Add --enable-generated-files-in-srcdir option.
1963 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1965 * Makefile.in: Regenerated.
1966 * config.h.in: Regenerated.
1967 * testsuite/Makefile.in: Regenerated.
1970 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1973 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1975 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1977 * configure: Regenerate.
1979 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1982 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1983 start if there shouldn't be any loop iterations.
1984 (gomp_loop_ordered_static_start): Remove start == end test.
1985 * testsuite/libgomp.c/pr29947-1.c: New test.
1986 * testsuite/libgomp.c/pr29947-2.c: New test.
1988 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1990 * configure.tgt: Force initial-exec TLS model on Linux only.
1992 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1994 * configure: Regenerated.
1996 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1998 * env.c (parse_schedule): Reject out of range values.
1999 (parse_unsigned_long): Reject out of range, negative or zero values.
2001 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2004 * testsuite/libgomp.fortran/pr29629.f90: New test.
2006 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2009 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2010 * config/posix95: New directory.
2011 * config/posix95/omp-lock.h: New file.
2012 * config/posix95/lock.c: Likewise.
2014 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2016 * aclocal.m4: Regenerate.
2017 * configure: Regenerate.
2019 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2021 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2024 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2026 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2028 * configure: Regenerate.
2029 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2031 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2035 * testsuite/libgomp.c/nestedfn-4.c: New test.
2036 * testsuite/libgomp.c/nestedfn-5.c: New test.
2037 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2040 * testsuite/libgomp.fortran/condinc1.f: New test.
2041 * testsuite/libgomp.fortran/condinc2.f: New test.
2042 * testsuite/libgomp.fortran/condinc3.f90: New test.
2043 * testsuite/libgomp.fortran/condinc4.f90: New test.
2044 * testsuite/libgomp.fortran/condinc1.inc: New file.
2046 2006-09-18 Tom Tromey <tromey@redhat.com>
2048 * configure: Rebuilt.
2050 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2053 PR preprocessor/14634
2054 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2056 * configure: Regenerate.
2058 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2060 * testsuite/libgomp.fortran/reduction3.f90: Change
2061 -2147483648 to -huge(i)-1 to avoid overflow.
2062 * testsuite/libgomp.fortran/reduction4.f90: Change
2063 Z'ffffffff' to not(0) to avoid overflow.
2065 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2068 * Makefile.am (libsubincludedir): New.
2069 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2070 * Makefile.in: Regenerate.
2072 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2075 * env.c: Include ctype.h.
2076 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2077 leading and/or trailing whitespace and compare strings case
2080 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2083 * testsuite/libgomp.fortran/pr28390.f: New test.
2085 2006-07-05 Eric Christopher <echristo@apple.com>
2087 * configure.ac: Depend addition of -pthread on host OS.
2088 * configure: Regenerate.
2090 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2092 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2093 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2096 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2100 * configure.ac: If neither --enable-linux-futex nor
2101 --disable-linux-futex is passed, determine the default by checking
2102 for compiling and/or running against NPTL. With --enable-linux-futex,
2103 check if SYS_gettid and SYS_futex are defined.
2104 * configure: Rebuilt.
2106 2006-06-14 Richard Henderson <rth@redhat.com>
2109 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2110 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2112 2006-06-09 Richard Henderson <rth@redhat.com>
2114 * env.c (gomp_nthreads_var): Change to unsigned long.
2115 (gomp_run_sched_chunk): Likewise.
2116 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2117 (initialize_env): Initialize gomp_thread_attr.
2118 * libgomp.h (gomp_nthreads_var): Update decl.
2119 (gomp_run_sched_chunk): Likewise.
2120 (gomp_thread_attr): Declare.
2121 * team.c (gomp_thread_attr): Export.
2122 (initialize_team): Don't initialize it.
2124 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2127 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2128 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2130 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2132 * config/mingw32/time.c: New file.
2133 * configure.tgt: Use it.
2135 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2137 * Makefile.am: Add install-html target. Add install-html to .PHONY
2138 * Makefile.in: Regenerate.
2140 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2143 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2144 * testsuite/libgomp.c/critical-1.c: Likewise.
2145 * testsuite/libgomp.c/loop-1.c: Likewise.
2146 * testsuite/libgomp.c/loop-2.c: Likewise.
2147 * testsuite/libgomp.c/single-1.c: Likewise.
2148 * testsuite/libgomp.c/ordered-1.c: Likewise.
2149 * testsuite/libgomp.c/ordered-2.c: Likewise.
2151 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2154 * libgomp.fortran/pr27416-1.f90: New test.
2156 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2159 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2160 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2162 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2165 * testsuite/libgomp.c/pr26943-1.c: New test.
2166 * testsuite/libgomp.c/pr26943-2.c: New test.
2167 * testsuite/libgomp.c/pr26943-3.c: New test.
2168 * testsuite/libgomp.c/pr26943-4.c: New test.
2169 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2170 * testsuite/libgomp.c++/pr26943.C: New test.
2172 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2175 * testsuite/libgomp.c++/pr27337.C: New test.
2177 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2180 * testsuite/libgomp.c/pr26171.c: New test.
2182 2006-04-25 Richard Henderson <rth@redhat.com>
2185 * configure.ac: Use GCC_CHECK_TLS.
2186 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2187 * Makefile.in, aclocal.m4, configure: Regenerate.
2189 2006-04-10 Matthias Klose <doko@debian.org>
2191 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2192 directory names containing underscores.
2194 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2197 * testsuite/libgomp.c++/pr26691.C: New test.
2199 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2201 * testsuite/libgomp.fortran/retval2.f90: New test.
2203 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2205 * testsuite/libgomp.c++: New directory.
2207 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2209 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2210 * config/posix/sem.c: Implement the above.
2212 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2214 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2215 define HAVE_BROKEN_POSIX_SEMAPHORES.
2216 * configure: Rebuilt.
2217 * config.h.in: Rebuilt.
2219 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2222 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2223 for the other pthread check.
2224 * configure: Regenerate.
2225 * config.h.in: Regenerate.
2227 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2231 * Makefile.am (fincludedir): New variable.
2232 (nodist_include_HEADERS): Remove Fortran files.
2233 (nodist_finclude_HEADERS): New variable.
2234 * Makefile.in: Regenerated.
2236 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2238 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2239 Remove tests for returning assumed character length arrays.
2241 2006-02-12 Roger Sayle <roger@eyesopen.com>
2242 John David Anglin <dave@hiauly1.hia.nrc.ca>
2245 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2247 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2249 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2251 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2253 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2254 part of LD_LIBRARY_PATH manually.
2256 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2259 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2262 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2265 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2266 * configure.ac (PERL): Don't set.
2267 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2268 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2269 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2270 * omp.h.in: Wrap the new configure substitutions with @ characters.
2271 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2272 * aclocal.m4, configure, Makefile.in: Regenerate.
2273 * mkomp_h.pl: Delete.
2275 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2278 * configure.ac: Use GCC_HEADER_STDINT.
2279 * libgomp.h: Include gstdint.h.
2280 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2281 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2283 2006-01-24 Richard Henderson <rth@redhat.com>
2286 * configure.ac: Add AM_MAINTAINER_MODE.
2287 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2289 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2291 * Makefile.in: Regenerate.
2292 * testsuite/Makefile.in: Regenerate.
2293 * aclocal.m4: Regenerate.
2295 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2297 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2299 * configure.ac: Add check for loadavg.h.
2300 (link_gomp): Adjust comment.
2301 * configure: Regenerate.
2302 * config.h.in: Regenerate.
2304 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2307 * configure.ac: Remove check for alloca.h.
2308 * configure: Regenerate.
2309 * config.h.in: Regenerate.
2310 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2311 * team.c: Remove use of alloca.h.
2312 Call gomp_alloca instead of alloca.
2314 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2317 * team.c: Add include of alloca.h.
2318 * configure.ac: Add check for alloca.h.
2319 * configure: Regenerate.
2320 * config.h.in: Regenerate.
2322 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2325 * testsuite/libgomp.fortran/pr25219.f90: New test.
2327 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2329 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2330 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2331 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2332 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2333 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2334 testsuite/libgomp.fortran/threadprivate1.f90,
2335 testsuite/libgomp.fortran/threadprivate2.f90,
2336 testsuite/libgomp.fortran/threadprivate3.f90,
2337 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2338 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2339 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2340 effective-target to TLS runtime.
2342 * testsuite/libgomp.fortran/pr25162.f: Require
2343 effective-target TLS runtime.
2345 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2347 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2348 * testsuite/libgomp.c/nestedfn-3.c: New test.
2350 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2353 * testsuite/libgomp.fortran/pr25162.f: New test.
2355 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2357 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2358 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2360 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2362 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2363 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2364 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2365 single.c, team.c, work.c, config/linux/alpha/futex.h,
2366 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2367 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2368 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2369 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2370 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2371 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2372 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2375 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2377 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2378 to nodist_noinst_HEADERS.
2379 * Makefile.in: Rebuilt.
2381 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2382 add integer count field.
2383 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2384 omp_nest_lock_t type change.
2385 (omp_init_nest_lock): Likewise. Initialize count to 0.
2386 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2388 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2390 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2391 Increment count if successful and return the new nesting level.
2392 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2393 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2394 * testsuite/libgomp.c/lib-1.c: New test.
2395 * testsuite/libgomp.fortran/lib1.f90: New test.
2396 * testsuite/libgomp.fortran/lib2.f: New test.
2397 * testsuite/libgomp.fortran/lib3.f: New test.
2399 2005-11-17 Richard Henderson <rth@redhat.com>
2402 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2403 * configure.ac (link_gomp): New. Substitute it.
2404 (AC_CONFIG_FILES): Add libgomp.spec.
2405 * libgomp.spec.in: New file.
2406 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2407 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2409 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2411 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2412 reduction(-:var) behaving the same as reduction(+:var).
2413 * testsuite/libgomp.c/reduction-4.c: New test.
2415 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2417 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2418 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2419 testsuite/libgomp.c/copyin-3.c,
2420 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2421 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2422 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2423 testsuite/libgomp.c++/pr24455.C,
2424 testsuite/libgomp.fortran/threadprivate1.f90,
2425 testsuite/libgomp.fortran/threadprivate2.f90,
2426 testsuite/libgomp.fortran/threadprivate3.f90,
2427 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2428 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2429 testsuite/libgomp.fortran/omp_parse3.f90: Require
2430 effective-target TLS.
2432 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2436 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2439 * team.c (initialize_team): Pass NULL rather than free as
2440 pthread_key_create destructor. Initialize thread specific data
2441 pointer in initial thread to a static local variable rather than
2444 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2446 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2447 its location to ld_library_path.
2449 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2451 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2453 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2455 * testsuite/libgomp.c: Rename from libgomp.dg.
2457 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2459 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2460 threadprivate variable 'i'.
2462 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2464 * config/linux/s390/futex.h: New file.
2465 * configure.tgt: Use it.
2467 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2468 before the parallel.
2470 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2473 * testsuite/libgomp.c++/master-1.C: New test.
2475 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2477 * testsuite/libgomp.dg/copyin-3.c: New test.
2479 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2481 * testsuite/libgomp.fortran/retval1.f90: New test.
2482 * testsuite/libgomp.fortran/vla7.f90: New test.
2484 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2486 * testsuite/libgomp.fortran/vla2.f90: New test.
2487 * testsuite/libgomp.fortran/vla3.f90: New test.
2488 * testsuite/libgomp.fortran/vla4.f90: New test.
2489 * testsuite/libgomp.fortran/vla5.f90: New test.
2490 * testsuite/libgomp.fortran/vla6.f90: New test.
2492 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2494 * config/linux/sparc/futex.h: New file.
2495 * configure.tgt: Use it.
2496 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2498 * critical.c: Include stdlib.h.
2499 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2500 ignoring return value.
2501 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2502 LIBGOMP_CHECK_SYNC_BUILTINS check.
2503 * configure: Rebuilt.
2505 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2507 * testsuite/libgomp.fortran/vla1.f90: New test.
2509 2005-10-31 Richard Henderson <rth@redhat.com>
2511 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2512 setting 's' in different threads.
2514 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2516 * libgomp.h (attribute_hidden, ialias): Define.
2517 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2518 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2519 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2520 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2521 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2522 omp_test_lock, omp_test_nest_lock): Likewise.
2523 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2524 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2525 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2526 omp_test_lock, omp_test_nest_lock): Likewise.
2527 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2528 omp_get_dynamic, omp_get_nested): Likewise.
2529 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2530 omp_get_thread_num, omp_in_parallel): Likewise.
2531 * fortran.c (ialias_redirect): Define.
2532 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2533 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2534 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2535 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2536 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2537 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2538 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2539 omp_get_wtime): Add ialias_redirect.
2541 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2543 * fortran.c: Include stdlib.h.
2545 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2547 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2548 * Makefile.in: Regenerated.
2550 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2552 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2553 * libgomp_f.h.in (omp_check_defines): New function.
2554 * env.c: Include libgomp_f.h.
2555 (initialize_env): Call omp_check_defines.
2557 * testsuite/libgomp.dg/copyin-2.c: New test.
2558 * testsuite/libgomp.c++/copyin-2.C: New test.
2559 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2561 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2562 * testsuite/libgomp.fortran/sharing2.f90: New test.
2564 * testsuite/libgomp.dg/copyin-1.c: New test.
2565 * testsuite/libgomp.c++/copyin-1.C: New test.
2567 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2569 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2571 * testsuite/libgomp.fortran/workshare1.f90: New test.
2573 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2575 * libgomp.fortran/sharing1.f90: New test.
2577 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2580 * testsuite/libgomp.c++/loop-7.C: New test.
2582 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2584 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2585 * testsuite/libgomp.fortran/reduction6.f90: New test.
2586 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2588 2005-10-23 Richard Henderson <rth@redhat.com>
2590 * testsuite/libgomp.c++/ctor-1.C: New.
2591 * testsuite/libgomp.c++/ctor-2.C: New.
2592 * testsuite/libgomp.c++/ctor-3.C: New.
2593 * testsuite/libgomp.c++/ctor-4.C: New.
2594 * testsuite/libgomp.c++/ctor-5.C: New.
2595 * testsuite/libgomp.c++/ctor-6.C: New.
2596 * testsuite/libgomp.c++/ctor-7.C: New.
2597 * testsuite/libgomp.c++/ctor-8.C: New.
2598 * testsuite/libgomp.c++/ctor-9.C: New.
2600 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2603 * testsuite/libgomp.c++/pr24455-1.C: New test.
2604 * testsuite/libgomp.c++/pr24455.C: New test.
2605 * testsuite/libgomp.dg/pr24455-1.c: New test.
2606 * testsuite/libgomp.dg/pr24455.c: New test.
2608 2005-10-20 Richard Henderson <rth@redhat.com>
2610 * testsuite/libgomp.c++/loop-6.C: New.
2611 * testsuite/libgomp.dg/loop-3.c: New.
2613 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2615 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2617 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2620 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2622 * testsuite/libgomp.fortran/jacobi.f: New test.
2624 2005-10-19 Richard Henderson <rth@redhat.com>
2626 * configure.tgt (i?86-linux): Default to with_arch instead of
2627 CFLAGS. Add -mtune to match target_cpu.
2628 (x86_64-linux): Tune to i686.
2630 * fortran.c (omp_test_nest_lock_): Fix typo.
2632 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2634 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2635 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2636 * testsuite/libgomp.dg/ordered-3.c: New test.
2638 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2639 Remove volatile keyword.
2641 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2642 in COMMON block to avoid warnings on 64-bit targets.
2644 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2646 * testsuite/libgomp.dg/shared-3.c: New test.
2648 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2650 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2651 * testsuite/libgomp.fortran/reduction5.f90: New test.
2653 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2655 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2657 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2658 flush loop now that __sync_synchronize has proper memory barrier.
2659 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2660 Add -ffixed-form to dg-options.
2662 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2664 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2665 from subdirectories.
2666 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2667 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2668 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2669 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2670 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2671 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2672 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2673 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2674 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2675 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2676 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2677 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2678 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2679 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2680 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2681 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2682 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2683 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2684 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2685 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2686 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2687 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2688 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2689 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2690 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2692 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2694 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2695 lang_library_path exists. Use find instead of glob to gather tests.
2696 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2698 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2700 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2701 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2702 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2703 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2704 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2705 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2706 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2707 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2708 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2709 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2710 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2711 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2712 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2714 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2716 * testsuite/libgomp.dg/vla-1.c: New test.
2718 * testsuite/libgomp.fortran/reference2.f90: New test.
2720 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2721 declaration of omp_get_thread_num.
2722 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2725 * testsuite/libgomp.fortran/reduction1.f90: New test.
2726 * testsuite/libgomp.fortran/reduction2.f90: New test.
2727 * testsuite/libgomp.fortran/reduction3.f90: New test.
2728 * testsuite/libgomp.fortran/reduction4.f90: New test.
2730 2005-10-13 Richard Henderson <rth@redhat.com>
2732 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2733 * Makefile.in: Regenerate.
2734 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2735 * libgomp.h: Include bar.h.
2736 (struct gomp_barrier): Remove.
2737 (struct gomp_team): Add barrier. Replace master_barrier with
2738 master_release. Replace threads with ordered_release.
2739 (struct gomp_thread): Replace barrier with release.
2740 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2741 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2742 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2743 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2744 (GOMP_single_copy_end): Likewise.
2745 * team.c (gomp_threads_dock): New.
2746 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2747 (gomp_thread_start): Use gomp_barrier_wait.
2748 (new_team, free_team): Update for gomp_team changes.
2749 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2750 (gomp_team_end): Use gomp_barrier_wait.
2751 (initialize_team): Update for gomp_thread changes.
2752 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2753 (gomp_work_share_end_nowait): Use atomic ops when available.
2754 * config/linux/bar.c, config/linux/bar.h: New files.
2755 * config/posix/bar.c, config/posix/bar.h: New files.
2757 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2759 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2760 * testsuite/libgomp.dg/single-2.c: New test.
2762 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2763 lang_link_flags): Unset, so that they aren't inherited from previously
2766 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2768 2005-10-12 Richard Henderson <rth@redhat.com>
2770 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2771 (libgomp_init): Use lang_test_file, lang_library_path, and
2772 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2774 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2775 (lang_test_file, lang_link_flags): New.
2776 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2778 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2779 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2780 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2781 testsuite/libgomp.c++/parallel-1.C,
2782 testsuite/libgomp.c++/reduction-1.C,
2783 testsuite/libgomp.c++/reduction-2.C,
2784 testsuite/libgomp.c++/reduction-3.C,
2785 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2786 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2787 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2788 New files, largely cribbed from the C testsuite.
2790 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2792 * testsuite/libgomp.fortran/character1.f90: New test.
2793 * testsuite/libgomp.fortran/character2.f90: New test.
2795 * testsuite/libgomp.dg/nested-1.c: New test.
2796 * testsuite/libgomp.dg/nested-2.c: New test.
2797 * testsuite/libgomp.fortran/do1.f90: New test.
2798 * testsuite/libgomp.fortran/do2.f90: New test.
2800 * testsuite/libgomp.fortran/reference1.f90: New test.
2802 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2804 * testsuite/libgomp.dg/reduction-1.c: New test.
2805 * testsuite/libgomp.dg/reduction-2.c: New test.
2806 * testsuite/libgomp.dg/reduction-3.c: New test.
2808 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2810 * testsuite/libgomp.dg/atomic-1.c: New test.
2811 * testsuite/libgomp.dg/atomic-2.c: New test.
2813 2005-10-09 Richard Henderson <rth@redhat.com>
2815 * critical.c (atomic_lock): New.
2816 (initialize_critical): Initialize it.
2817 (GOMP_atomic_start, GOMP_atomic_end): New.
2818 * libgomp.map: Export them.
2819 * libgomp_g.h: Declare them.
2821 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2823 2005-10-02 Richard Henderson <rth@redhat.com>
2825 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2826 to XCFLAGS instead of CFLAGS.
2828 2005-09-30 Richard Henderson <rth@redhat.com>
2830 * configure.ac: Determine whether -pthread or -lpthread is needed.
2831 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2832 * Makefine.in, configure: Rebuild.
2834 2005-09-28 Richard Henderson <rth@redhat.com>
2836 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2837 * testsuite/libgomp.dg/omp-single-3.c: New test.
2839 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2841 * testsuite/libgomp.dg/omp-single-2.c: New test.
2842 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2844 2005-09-27 Richard Henderson <rth@redhat.com>
2846 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2847 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2849 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2851 * testsuite/libgomp.dg/omp-loop03.c: New test.
2853 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2855 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2857 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2859 * testsuite/libgomp.dg/omp-single-1.c: New test.
2860 * testsuite/libgomp.dg/shared-1.c: Return 0.
2861 Add prototype for abort.
2862 * testsuite/libgomp.dg/shared-2.c: Likewise.
2864 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2866 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2869 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2871 * testsuite/libgomp.dg/shared-1.c: New test.
2872 * testsuite/libgomp.dg/shared-2.c: New test.
2874 2005-09-24 Richard Henderson <rth@redhat.com>
2876 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2878 2005-09-24 Richard Henderson <rth@redhat.com>
2880 * iter.c (gomp_iter_static_next): Round up when computing number
2881 of iterations. Don't bother distributing a remainder equally.
2883 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2884 Don't call srand. Zero b before testing.
2887 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2889 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2890 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2892 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2894 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2895 without !$omp end do, followed immediately by subroutine end.
2897 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2899 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2901 2005-09-22 Richard Henderson <rth@redhat.com>
2903 * critical.c (GOMP_critical_name_start): Change argument to void**.
2904 Reuse the pointer space if the mutex fits.
2905 (GOMP_critical_name_end): Likewise.
2906 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2907 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2908 (GOMP_critical_name_end): Likewise.
2909 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2910 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2912 2005-09-20 Richard Henderson <rth@redhat.com>
2914 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2915 (create_lock_lock): New.
2916 (initialize_critical): Initialize it.
2917 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2918 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2920 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2922 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2924 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2926 * testsuite/libgomp.dg/omp-loop01.c: New test.
2927 * testsuite/libgomp.dg/omp-loop02.c: New test.
2929 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2931 * configure.ac (AC_PROG_FC): Add.
2932 (USE_FORTRAN): New automake conditional.
2933 * configure: Rebuilt.
2934 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2935 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2936 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2937 Add rules to build them.
2938 * Makefile.in: Rebuilt.
2939 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2941 * libgomp.map: Add Fortran wrappers.
2942 * libgomp_f.h.in: New file.
2943 * omp_lib.h.in: New file.
2944 * omp_lib.f90.in: New file.
2945 * fortran.c: New file.
2946 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2947 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2948 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2949 libgfortran has been built.
2950 * testsuite/libgomp.fortran/fortran.exp: New file.
2951 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2952 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2953 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2954 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2955 * testsuite/libgomp.fortran/omp_hello.f: New test.
2956 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2957 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2958 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2959 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2960 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2961 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2962 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2963 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2965 2005-08-30 Richard Henderson <rth@redhat.com>
2967 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2968 function for when aliases are not usable.
2969 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2970 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2971 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2972 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2973 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2974 GOMP_loop_ordered_guided_next): Likewise.
2975 * ordered.c (GOMP_ordered_start): Likewise.
2977 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2979 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2980 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2981 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2982 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2983 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2984 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2985 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2986 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2987 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2989 2005-07-07 Eric Christopher <echristo@redhat.com>
2990 Diego Novillo <dnovillo@redhat.com>
2992 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2993 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2995 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2996 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2997 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2998 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2999 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3000 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3001 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3003 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3005 * TOPLEVEL.patch: Remove.
3007 2005-05-16 Richard Henderson <rth@redhat.com>
3009 * configure.ac: Test for clock_gettime.
3010 * config.h.in, configure: Rebuild.
3011 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3012 (omp_get_wtime): Use clock_gettime if available.
3013 (omp_get_wtick): Use clock_getres if available.
3015 2005-05-11 Richard Henderson <rth@redhat.com>
3017 * config/linux/ia64/futex.h: New file.
3018 * configure.tgt: Use it.
3020 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3022 2005-05-07 Richard Henderson <rth@redhat.com>
3024 * config/linux/powerpc/futex.h: New file.
3025 * configure.tgt: Use it.
3027 * config/linux/i486/futex.h: Merge ...
3028 * config/linux/x86_64/futex.h: ... into ...
3029 * config/linux/x86/futex.h: ... here.
3030 * configure.tgt: Update to match.
3032 2005-05-06 Richard Henderson <rth@redhat.com>
3034 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3035 * config/linux/i486/futex.h: Likewise.
3036 * config/linux/x86_64/futex.h: Likewise.
3038 * config/linux/lock.c: New file.
3039 * config/linux/omp-lock.h: New file.
3041 * critical.c, env.h: Don't include omp.h
3042 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3043 * config/posix/time.c: Likewise.
3044 * config/posix/omp-lock.h: New file.
3045 * libgomp.h: Include omp-lock.h and omp.h.
3046 * Makefile.am (nodist_include_HEADERS): New.
3048 * configure.ac (PERL): New.
3049 * mkomp_h.pl: New file.
3050 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3052 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3054 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3055 build directory. Re-add -march=i486 hack.
3057 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3058 (libgomp_link_flags): Remove.
3059 (libgomp_initialized): Remove.
3060 (libgomp_init): Don't protect from reinitialization. Copy code
3061 from libstdc++ for getting the multilib set correctly.
3063 2005-05-05 Richard Henderson <rth@redhat.com>
3065 * config/linux/alpha/futex.h: New file.
3066 * configure.tgt (alpha*-*-linux*): Use it.
3068 * config/posix/mutex.c: New file.
3069 * config/posix/sem.c: Use libgomp.h.
3071 * configure.tgt (x86_64-linux): Also test CC for -m32.
3072 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3074 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3077 * Makefile.am (SUBDIRS): New.
3078 (libgomp_la_LDFLAGS): Add -lpthread.
3079 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3080 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3082 * libgomp_g.h: New file.
3083 * libgomp.h: Split out all public declarations to libgomp_g.h.
3084 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3085 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3086 * config/linux/sem.h: Likewise.
3087 * config/posix/sem.h: Likewise.
3089 * Makefile.am (AM_LDFLAGS): New.
3090 (libgomp_version_script): Split out from ...
3091 (libgomp_la_LDFLAGS): ... here.
3092 (libgomp_version_info): New.
3093 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3094 (LIBGOMP_ENABLE): New.
3095 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3096 (LIBGOMP_ENABLE_SYMVERS): New.
3097 * configure.ac (AC_INIT): Version 1.0.
3098 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3099 (enable-linux-futex): Likewise. Rename from enable-futex.
3100 (libtool_VERSION): New.
3101 (LIBGOMP_ENABLE_SYMVERS): Use it.
3102 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3103 * Makefile.in, aclocal.m4, configure: Rebuild.
3105 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3106 (gomp_mutex_unlock_slow): Fix typo.
3107 * config/linux/sem.c: Similarly.
3108 (gomp_sem_post_slow): Fix typo.
3109 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3110 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3111 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3113 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3114 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3115 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3116 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3117 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3118 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3119 LDFLAGS. Pull enable_futex check to top-level.
3120 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3121 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3123 First attempt at real configury.
3124 * Makefile, config.h: Remove file.
3125 * Makefile.am, Makefile.in: New file.
3126 * acinclude.m4 aclocal.m4: New file.
3127 * configure.ac, configure.tgt, configure: New file.
3129 * config/posix/lock.c: Rename from sys-lock.c.
3130 * config/posix/mutex.h: Rename from sys-mutex.h.
3131 * config/posix/sem.c: Rename from sys-sem.c.
3132 * config/posix/sem.h: Rename from sys-sem.h.
3133 * config/posix/proc.c: Rename from sys-proc.c.
3134 * config/posix/time.c: Rename from sys-proc.c.
3136 * config/linux/mutex.c: New file.
3137 * config/linux/mutex.h: New file.
3138 * config/linux/sem.c: New file.
3139 * config/linux/sem.h: New file.
3140 * config/linux/i486/futex.h: New file.
3141 * config/linux/x86_64/futex.h: New file.
3143 2005-05-04 Richard Henderson <rth@redhat.com>
3145 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3146 * libgomp.h: Declare them.
3147 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3148 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3150 2005-05-04 Richard Henderson <rth@redhat.com>
3152 * libgomp-1 code drop
3154 2005-05-04 Richard Henderson <rth@redhat.com>
3156 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3157 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3158 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3159 (gomp_iter_static_next): Update.
3160 (gomp_ordered_static_next): Update.
3161 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3162 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3163 totally empty range.
3164 (gomp_loop_ordered_static_next): Refine test for calling
3165 gomp_ordered_static_next.
3166 * testsuite/ordered-1.c: Add case for more threads than iterations.
3168 * iter.c (gomp_iter_runtime_next_locked): Remove.
3169 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3170 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3171 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3172 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3173 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3174 gomp_loop_ordered_guided_next): Downcase name, make static, add
3175 an external alias with the old name.
3176 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3177 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3178 switch and call one of the above static functions.
3179 * libgomp.h: Update.
3181 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3182 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3183 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3184 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3185 GOMP_loop_ordered_guided_start): Update to match.
3186 * sections.c (GOMP_sections_start): Likewise.
3187 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3189 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3190 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3191 Use bounds check instead of modulus.
3192 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3193 (gomp_ordered_last): Don't sync with ordered_owner here.
3194 (gomp_ordered_next): Likewise.
3195 (gomp_ordered_static_loop_next): Likewise.
3196 * loop.c, libgomp.h: Update to match.
3198 * libgomp.h (GOMP_barrier): Declare.
3200 * testsuite/barrier-1.c: New file.
3201 * testsuite/critical-1.c: New file.
3202 * testsuite/ordered-2.c: New file.
3203 * testsuite/ordered-1.c: New file.
3204 * testsuite/sections-1.c: New file.
3205 * testsuite/single-1.c: New file.
3206 * testsuite/Makefile (TESTS): Add them.
3208 2005-05-04 Richard Henderson <rth@redhat.com>
3210 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3211 * loop.c (GOMP_loop_static_start): If not the startup thread,
3212 acquire the mutex to wait for initialization complete.
3213 (GOMP_loop_ordered_static_start): Likewise.
3214 (GOMP_loop_ordered_runtime_start): Likewise.
3215 (GOMP_loop_ordered_static_first): Remove.
3216 (GOMP_loop_ordered_dynamic_first): Remove.
3217 (GOMP_loop_ordered_guided_first): Remove.
3218 (GOMP_loop_ordered_runtime_first): Remove.
3219 * ordered.c (gomp_ordered_loop_first): Post to own release when
3220 we're the first thread.
3221 (gomp_ordered_loop_last): Wait on release if not owner.
3222 (gomp_ordered_loop_next): Likewise.
3223 (gomp_ordered_static_loop_init): New.
3224 (gomp_ordered_static_loop_next): Use ordered_owner.
3225 (GOMP_ordered_start): Likewise.
3226 * work.c (gomp_new_work_share): Initialize ordered_owner.
3228 2005-05-03 Richard Henderson <rth@redhat.com>
3230 * Makefile (OPT): New.
3233 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3234 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3235 * libgomp.h, libgomp.map, NOTES: Update to match.
3237 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3238 Add initialized and thr members.
3239 (gomp_thread_start): Pause when initially spawned to wait for
3240 the whole team to be created.
3241 (gomp_team_start): Release team members at the end.
3243 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3244 (f_foo_1): Use GOMP_loop_end.
3245 (f_foo_2): Use GOMP_loop_end_nowait.
3247 * testsuite/loop-2.c: New file.
3248 * testsuite/Makefile (TESTS): Add it.
3250 2005-05-03 Richard Henderson <rth@redhat.com>
3252 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3253 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3254 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3257 * testsuite/Makefile: New file.
3258 * testsuite/loop-1.c: New file.
3260 2005-05-03 Richard Henderson <rth@redhat.com>
3262 Initial implementation and checkin.