1 2012-02-08 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/46886
4 * testsuite/libgomp.c/pr46886.c: New testcase.
6 2012-01-25 Matthias Klose <doko@ubuntu.com>
8 * config/linux/arm: Remove empty directory.
9 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
11 2011-12-09 Alan Modra <amodra@gmail.com>
14 * task.c (GOMP_taskwait): Don't access task->children outside of
15 task_lock mutex region.
16 (GOMP_task): Likewise.
18 2011-12-06 Jakub Jelinek <jakub@redhat.com>
21 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
23 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
24 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
25 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
26 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
27 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
29 2011-12-02 Alan Modra <amodra@gmail.com>
31 * config/linux/affinity.c: Use atomic rather than sync builtin.
32 * config/linux/lock.c: Likewise.
33 * config/linux/ptrlock.h: Likewise.
34 * config/linux/ptrlock.c: Likewise.
35 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
36 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
37 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
38 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
39 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
40 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
41 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
42 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
43 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
44 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
46 2011-11-30 Alan Modra <amodra@gmail.com>
49 * config/linux/bar.h: Use atomic rather than sync builtins.
50 * config/linux/bar.c: Likewise. Add missing acquire
51 synchronisation on generation field.
52 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
55 2011-11-30 Alan Modra <amodra@gmail.com>
57 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
58 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
59 * config/linux/mutex.h: Use atomic rather than sync builtins.
60 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
61 * config/linux/omp-lock.h: Comment fix.
62 * config/linux/arm/mutex.h: Delete.
63 * config/linux/powerpc/mutex.h: Delete.
64 * config/linux/ia64/mutex.h: Delete.
65 * config/linux/mips/mutex.h: Delete.
67 2011-11-30 Alan Modra <amodra@gmail.com>
70 * config/linux/sem.h: Rewrite.
71 * config/linux/sem.c: Rewrite.
73 2011-11-28 Richard Henderson <rth@redhat.com>
75 * libgomp.h (enum memmodel): New.
77 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
79 * configure: Regenerate.
81 2011-10-10 Matthias Klose <doko@ubuntu.com>
83 * config/posix95: Remove empty directory.
85 2011-08-26 Jakub Jelinek <jakub@redhat.com>
87 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
89 2011-08-19 Jakub Jelinek <jakub@redhat.com>
92 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
93 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
95 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
97 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
99 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
102 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
104 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
106 * config/linux/proc.h: New.
107 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
108 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
109 (gomp_init_num_threads): Update call to cpuset_popcount.
110 (get_num_procs): Ditto.
111 * config/linux/affinity.c (gomp_init_affinity): Call
112 gomp_cpuset_popcount.
114 2011-08-02 Jakub Jelinek <jakub@redhat.com>
118 * omp.h.in (omp_in_final): New prototype.
119 * omp_lib.f90.in (omp_in_final): New interface.
120 (omp_integer_kind, omp_logical_kind): Remove
121 and replace all its uses in the module with 4.
122 (openmp_version): Change to 201107.
123 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
124 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
125 kind for the parameters.
126 (omp_in_final): New external.
127 (openmp_version): Change to 201107.
128 * task.c (omp_in_final): New function.
129 (gomp_init_task): Initialize final_task.
130 (GOMP_task): Remove unused attribute from flags. Handle final
132 (GOMP_taskyield): New function.
133 (omp_in_final): Return true if if (false) or final (true) task
134 or descendant of final (true).
135 * fortran.c (omp_in_final_): New function.
136 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
137 (GOMP_3.0): Export GOMP_taskyield.
138 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
140 (parse_unsigned_long_list): New function.
141 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
142 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
143 even if parse_affinity returned false.
144 * config/linux/affinity.c (gomp_init_affinity): Handle
145 gomp_cpu_affinity_len == 0.
146 * libgomp_g.h (GOMP_taskyield): New prototype.
147 * libgomp.h (struct gomp_task): Add final_task field.
148 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
149 * team.c (gomp_team_start): Override new task's nthreads_var icv
150 if list form OMP_NUM_THREADS has been used and it has value for
151 the new nesting level.
153 * testsuite/libgomp.c/atomic-11.c: New test.
154 * testsuite/libgomp.c/atomic-12.c: New test.
155 * testsuite/libgomp.c/atomic-13.c: New test.
156 * testsuite/libgomp.c/atomic-14.c: New test.
157 * testsuite/libgomp.c/reduction-6.c: New test.
158 * testsuite/libgomp.c/task-5.c: New test.
159 * testsuite/libgomp.c++/atomic-2.C: New test.
160 * testsuite/libgomp.c++/atomic-3.C: New test.
161 * testsuite/libgomp.c++/atomic-4.C: New test.
162 * testsuite/libgomp.c++/atomic-5.C: New test.
163 * testsuite/libgomp.c++/atomic-6.C: New test.
164 * testsuite/libgomp.c++/atomic-7.C: New test.
165 * testsuite/libgomp.c++/atomic-8.C: New test.
166 * testsuite/libgomp.c++/atomic-9.C: New test.
167 * testsuite/libgomp.c++/task-8.C: New test.
168 * testsuite/libgomp.c++/reduction-4.C: New test.
169 * testsuite/libgomp.fortran/allocatable7.f90: New test.
170 * testsuite/libgomp.fortran/allocatable8.f90: New test.
171 * testsuite/libgomp.fortran/crayptr3.f90: New test.
172 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
173 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
174 * testsuite/libgomp.fortran/pointer1.f90: New test.
175 * testsuite/libgomp.fortran/pointer2.f90: New test.
176 * testsuite/libgomp.fortran/task4.f90: New test.
178 2011-08-02 Tobias Burnus <burnus@net-b.de>
180 * libgomp.texi: Update OpenMP spec references to 3.1.
181 (omp_in_final,OMP_PROC_BIND): New sections.
182 (OMP_NUM_THREADS): Document that the value can be now a list.
183 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
185 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
187 * config/linux/x86/futex.h: Check __x86_64__ instead of
190 2011-07-29 Jakub Jelinek <jakub@redhat.com>
194 * testsuite/libgomp.c/pr49897-1.c: New test.
195 * testsuite/libgomp.c/pr49897-2.c: New test.
196 * testsuite/libgomp.c/pr49898-1.c: New test.
197 * testsuite/libgomp.c/pr49898-2.c: New test.
199 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
201 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
202 for ia32 instead of ilp32.
204 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
205 * testsuite/libgomp.c/atomic-6.c: Likewise.
207 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
209 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
210 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
212 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215 * config/osf/sem.h: New file.
216 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
218 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
221 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
224 2011-07-15 Jakub Jelinek <jakub@redhat.com>
226 * config/linux/wait.h (do_spin): New inline, largely copied
227 from do_wait, just don't do futex_wait here, instead return true if
229 (do_wait): Implement using do_spin.
230 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
232 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
233 __sync_bool_compare_and_swap, pass the oldval to
234 gomp_mutex_lock_slow.
235 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
236 If all mutex contenders are just spinning and not sleeping, don't
237 change state to 2 unnecessarily. Optimize the loop when state has
238 already become 2 to use just one atomic operation per loop instead
240 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
242 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
243 __sync_bool_compare_and_swap, pass the oldval to
244 gomp_mutex_lock_slow.
246 2011-06-22 Jakub Jelinek <jakub@redhat.com>
249 * iter.c (gomp_iter_static_next): For chunk size 0
250 only use n ceil/ nthreads size for the first
251 n % nthreads threads in the team instead of
252 all threads except for the last few ones which
253 get less work or none at all.
254 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
255 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
256 chunk argument, set run_sched_modifier to 0 for static
257 resp. 1 for other kinds. If chunk argument is 0
258 and not static, set value to 1.
260 2011-05-19 Jakub Jelinek <jakub@redhat.com>
263 * testsuite/libgomp.c++/pr49043.C: New test.
266 * testsuite/libgomp.c++/pr48869.C: New test.
268 2011-05-06 Jakub Jelinek <jakub@redhat.com>
271 * fortran.c: Include limits.h.
273 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
275 (omp_set_num_threads_8_, omp_set_schedule_8_,
276 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
277 omp_get_team_size_8_): Use TO_INT macro.
278 * testsuite/libgomp.fortran/pr48894.f90: New test.
280 2011-04-13 Jakub Jelinek <jakub@redhat.com>
283 * testsuite/libgomp.c/pr48591.c: New test.
285 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
288 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
289 * configure: Regenerate.
291 2011-02-27 Jakub Jelinek <jakub@redhat.com>
294 * testsuite/libgomp.fortran/task3.f90: New test.
296 2011-02-24 Tobias Burnus <burnus@net-b.de>
298 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
300 2011-02-23 Jakub Jelinek <jakub@redhat.com>
303 * libgomp.texi (omp_get_wtime): Don't say time in the past
306 2011-02-18 Jakub Jelinek <jakub@redhat.com>
309 * testsuite/libgomp.fortran/fortran.exp: Check for both
310 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
311 but $blddir != "", still append ${blddir}/${lang_library_path}
314 2011-02-16 Tobias Burnus <burnus@net-b.de>
317 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
318 of libquadmath.a before adding its libpath to ldflags.
320 2011-02-14 Jakub Jelinek <jakub@redhat.com>
323 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
324 to FUTEX_WAIT futex syscall.
325 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
327 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
329 * configure: Regenerate.
331 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
334 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
336 2011-01-16 Gerald Pfeifer
338 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
340 2010-12-14 Jakub Jelinek <jakub@redhat.com>
343 * libgomp.fortran/allocatable6.f90: New test.
345 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
347 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
348 * configure: Regenerate.
350 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
354 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
355 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
356 * aclocal.m4: Regenerate.
357 * configure: Regenerate.
358 * Makefile.in: Regenerate.
359 * testsuite/Makefile.in: Regenerate.
361 2010-12-02 Jakub Jelinek <jakub@redhat.com>
364 * libgomp.fortran/pr46753.f90: New test.
367 * env.c (initialize_env): Default to spin count 300000
368 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
372 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
373 at the end if sync builtins aren't supported.
375 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
377 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
379 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
383 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
385 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
387 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
388 Tobias Burnus <burnus@net-b.de>
392 * configure: Regenerate.
394 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
396 * config/linux/futex.h: New.
397 * config/linux/arm/mutex.h: New.
398 * configure.tgt (arm*-*-linux*): Add config path.
400 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
402 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
404 2010-09-23 Tobias Burnus <burnus@net-b.de>
406 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
407 Change Fortran datatype to LOGICAL.
408 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
409 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
411 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
413 * configure: Regenerate.
415 2010-07-26 Jakub Jelinek <jakub@redhat.com>
417 * libgomp.texi: Add function keyword to a couple of Fortran
418 interfaces, use integer instead of int for Fortran.
420 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
422 * libgomp.texi: Fix spelling and pasto problems throughout.
423 Adjust prototypes to match code.
425 2010-07-24 Tobias Burnus <burnus@net-b.de>
427 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
428 silence -fwhole-file warning.
430 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
432 * configure.tgt (*-*-solaris2.[56]*): Removed.
434 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
436 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
437 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
438 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
439 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
440 targetting solaris2*.
441 * configure: Regenerate.
442 * config.h.in: Regenerate.
444 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
445 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
446 Add libgomp_version_dep.
447 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
449 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
450 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
451 * Makefile.in: Regenerate.
453 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
454 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
455 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
456 to common block, protected by
457 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
459 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
461 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
463 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
466 * configure: Regenerate.
468 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
471 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
472 * configure: Regenerate.
473 * Makefile.in: Regenerate.
474 * testsuite/Makefile.in: Regenerate.
476 2010-04-26 Jakub Jelinek <jakub@redhat.com>
479 * testsuite/libgomp.c/pr43893.c: New test.
480 * testsuite/libgomp.c++/pr43893.C: New test.
482 2010-04-21 Jakub Jelinek <jakub@redhat.com>
485 * testsuite/libgomp.fortran/vla8.f90: New test.
487 2010-04-20 Jakub Jelinek <jakub@redhat.com>
490 * config/linux/affinity.c (gomp_init_affinity): Decrease
491 gomp_available_cpus if affinity mask confines the process to fewer
493 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
494 non-NULL, just return gomp_available_cpus.
497 * sections.c (gomp_sections_init): Initialize ws->mode.
499 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
501 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
502 not unused bar variable.
503 * configure: Regenerate.
505 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
507 * Makefile.in: Regenerate.
508 * aclocal.m4: Regenerate.
509 * testsuite/Makefile.in: Regenerate.
511 2010-03-22 Jakub Jelinek <jakub@redhat.com>
514 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
515 (initialize_env): Adjust callers.
516 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
517 when the argument is 0.
519 * testsuite/libgomp.c/pr42942.c: New test.
521 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
525 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
526 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
528 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
530 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
531 * testsuite/libgomp.c++/task-6.C: Likewise.
533 2010-01-28 Steve Ellcey <sje@cup.hp.com>
535 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
537 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
539 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
540 * configure: Regenerate.
542 2010-01-26 Jakub Jelinek <jakub@redhat.com>
545 * testsuite/libgomp.fortran/allocatable5.f90: New test.
547 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
549 * configure.ac: Test for executability of GFORTRAN.
550 * configure: Regenerate.
552 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
554 * configure: Regenerate.
556 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
559 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
561 2010-01-03 Richard Guenther <rguenther@suse.de>
563 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
565 2009-12-23 Sebastian Pop <sebpop@gmail.com>
567 * testsuite/libgomp.graphite/pr4118.c: New.
569 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
571 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
572 for darwin, protect the test with require-effective-target tls_runtime.
573 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
575 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
578 * testsuite/lib/libgomp.exp: Provide -B options to allow for
579 link spec %s substitutions for static libraries.
581 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
584 * libgomp.graphite/force-parallel-2.c: Reduce array size.
586 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
588 * Makefile.in: Regenerate.
589 * configure: Regenerate.
590 * testsuite/Makefile.in: Regenerate.
592 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
594 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
595 settings for LC_ALL and LANG.
597 2009-11-25 Jakub Jelinek <jakub@redhat.com>
600 * testsuite/libgomp.fortran/pr42162.f90: New test.
602 2009-11-13 Jakub Jelinek <jakub@redhat.com>
605 * testsuite/libgomp.c/pr42029.c: New test.
607 2009-10-26 Jakub Jelinek <jakub@redhat.com>
609 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
610 *s. Accept ld version without text in ()s.
611 * configure: Regenerated.
613 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
615 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
617 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
620 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
621 or a hyphen (happens with fortran language disabled).
622 * configure: Regenerate.
624 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
626 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
627 use sed script portable to Solaris /bin/sed for extracting ld
629 * configure: Regenerate.
631 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
633 * testsuite/libgomp.graphite/bounds.c: New test.
635 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
637 * Makefile.am (libgomp_la_LINK): New.
638 * Makefile.in: Regenerate.
640 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
642 * configure.ac (AC_PREREQ): Bump to 2.64.
644 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
646 * Makefile.am (install-html, install-pdf): Remove.
647 * Makefile.in: Regenerate.
649 * Makefile.in: Regenerate.
650 * aclocal.m4: Regenerate.
651 * config.h.in: Regenerate.
652 * configure: Regenerate.
653 * testsuite/Makefile.in: Regenerate.
655 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
657 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
658 * Makefile.in: Regenerate.
660 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
662 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
663 * Makefile.in: Regenerate.
665 2009-08-19 Tobias Burnus <burnus@net-b.de>
668 omp_lib.h.in: Fix -std=f95 errors.
671 2009-08-14 David Edelsohn <edelsohn@gnu.org>
673 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
674 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
675 * testsuite/libgomp.graphite/graphite.exp: New.
677 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
679 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
682 2009-08-04 David Daney <ddaney@caviumnetworks.com>
684 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
685 needed memory barrier semantics.
686 * config/linux/mips/mutex.h: New file.
688 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
690 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
692 2009-07-16 Joseph Myers <joseph@codesourcery.com>
694 * configure: Regenerate.
696 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
701 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
702 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
703 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
705 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
707 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
708 options when choosing a multilib.
710 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
712 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
713 ld_library_path. Use add_path. Add just find_libgcc_s to
714 ld_library_path, not every libgcc multilib directory.
715 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
716 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
717 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
719 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
721 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
723 * Makefile.am (LTLDFLAGS): Define.
725 * Makefile.in: Regenerate.
727 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
730 * testsuite/libgomp.fortran/fortran.exp: Don't link with
731 libgfortranbegin, check existence of libgfortran.a instead of
734 2009-05-20 Jakub Jelinek <jakub@redhat.com>
737 * team.c (gomp_thread_start): Destroy thr->release semaphore.
738 (gomp_free_pool_helper): Likewise.
740 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
741 Jakub Jelinek <jakub@redhat.com>
744 * testsuite/libgomp.fortran/workshare2.f90: New test.
746 2009-04-09 Nick Clifton <nickc@redhat.com>
748 * iter.c: Change copyright header to refer to version 3 of the
749 GNU General Public License with version 3.1 of the GCC Runtime
750 Library Exception and to point readers at the COPYING3 and
751 COPYING3.RUNTIME files and the FSF's license web page.
753 * barrier.c: Likewise.
754 * config/bsd/proc.c: Likewise.
755 * config/linux/affinity.c: Likewise.
756 * config/linux/alpha/futex.h: Likewise.
757 * config/linux/bar.c: Likewise.
758 * config/linux/bar.h: Likewise.
759 * config/linux/ia64/futex.h: Likewise.
760 * config/linux/ia64/mutex.h: Likewise.
761 * config/linux/lock.c: Likewise.
762 * config/linux/mips/futex.h: Likewise.
763 * config/linux/mutex.c: Likewise.
764 * config/linux/mutex.h: Likewise.
765 * config/linux/powerpc/futex.h: Likewise.
766 * config/linux/proc.c: Likewise.
767 * config/linux/ptrlock.c: Likewise.
768 * config/linux/ptrlock.h: Likewise.
769 * config/linux/s390/futex.h: Likewise.
770 * config/linux/sem.c: Likewise.
771 * config/linux/sem.h: Likewise.
772 * config/linux/sparc/futex.h: Likewise.
773 * config/linux/wait.h: Likewise.
774 * config/linux/x86/futex.h: Likewise.
775 * config/mingw32/proc.c: Likewise.
776 * config/mingw32/time.c: Likewise.
777 * config/posix/affinity.c: Likewise.
778 * config/posix/bar.c: Likewise.
779 * config/posix/bar.h: Likewise.
780 * config/posix/lock.c: Likewise.
781 * config/posix/mutex.h: Likewise.
782 * config/posix/proc.c: Likewise.
783 * config/posix/ptrlock.h: Likewise.
784 * config/posix/sem.c: Likewise.
785 * config/posix/sem.h: Likewise.
786 * config/posix/time.c: Likewise.
787 * config/posix95/lock.c: Likewise.
788 * critical.c: Likewise.
791 * fortran.c: Likewise.
792 * iter_ull.c: Likewise.
793 * libgomp.h: Likewise.
794 * libgomp_f.h.in: Likewise.
795 * libgomp_g.h: Likewise.
797 * loop_ull.c: Likewise.
798 * omp.h.in: Likewise.
799 * omp_lib.f90.in: Likewise.
800 * omp_lib.h.in: Likewise.
801 * ordered.c: Likewise.
802 * parallel.c: Likewise.
803 * sections.c: Likewise.
804 * single.c: Likewise.
809 2009-04-09 Jakub Jelinek <jakub@redhat.com>
811 * testsuite/config/default.exp: Change copyright header to refer to
812 version 3 of the GNU General Public License and to point readers
813 at the COPYING3 file and the FSF's license web page.
815 2009-04-08 Jakub Jelinek <jakub@redhat.com>
818 * libgomp.c++/pr39573.C: New test.
820 2009-04-01 Jakub Jelinek <jakub@redhat.com>
823 * testsuite/libgomp.c/pr39591-1.c: New test.
824 * testsuite/libgomp.c/pr39591-2.c: New test.
825 * testsuite/libgomp.c/pr39591-3.c: New test.
827 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
829 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
830 * testsuite/libgomp.c/atomic-6.c: Ditto.
832 2009-03-23 Jakub Jelinek <jakub@redhat.com>
835 * testsuite/libgomp.c/loop-12.c: New test.
836 * testsuite/libgomp.c/loop-11.c: New test.
837 * testsuite/libgomp.c++/loop-11.C: New test.
838 * testsuite/libgomp.c++/loop-12.C: New test.
839 * testsuite/libgomp.c++/for-8.C: New test.
841 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
843 * configure: Regenerate.
845 2009-02-11 Jakub Jelinek <jakub@redhat.com>
848 * testsuite/libgomp.c/pr39154.c: New test.
850 2009-01-30 Ian Lance Taylor <iant@google.com>
852 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
853 libgomp_ld_is_gold. Get gold version number.
854 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
855 * configure: Rebuild.
857 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
859 * testsuite/lib/libgomp.exp: Add -B option for targets that
860 use libgfortran.a%s in their specs.
862 2009-01-07 Jakub Jelinek <jakub@redhat.com>
865 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
866 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
867 HAVE_AS_SYMVER_DIRECTIVE is not defined.
868 * configure: Regenerated.
869 * config.h.in: Likewise.
871 2008-12-28 Jakub Jelinek <jakub@redhat.com>
874 * testsuite/libgomp.c/pr38650.c: New test.
875 * testsuite/libgomp.c++/pr38650.C: New test.
877 2008-12-27 Jakub Jelinek <jakub@redhat.com>
879 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
881 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
883 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
885 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
887 * configure: Regenerate.
889 2008-12-08 Jakub Jelinek <jakub@redhat.com>
892 * testsuite/libgomp.c/pr36802-1.c: New test.
893 * testsuite/libgomp.c/pr36802-2.c: New test.
894 * testsuite/libgomp.c/pr36802-3.c: New test.
896 2008-12-01 Janis Johnson <janis187@us.ibm.com>
899 * config/linux/powerpc/mutex.h: New.
901 2008-12-01 Jakub Jelinek <jakub@redhat.com>
904 * testsuite/libgomp.c++/for-7.C: New test.
907 * testsuite/libgomp.c++/for-6.C: New test.
909 2008-11-26 Janis Johnson <janis187@us.ibm.com>
912 * testsuite/lib/libgomp.exp: Include new timeout library files.
913 (libgomp_target_compile): Set timeout value from new proc.
915 2008-11-13 Steve Ellcey <sje@cup.hp.com>
918 * config/linux/ia64/mutex.h: New.
920 2008-11-04 Tobias Burnus <burnus@net-b.de>
923 * libgomp.texi (Runtime library routines, environment variables):
924 Update for OpenMP version 3.0.
926 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
927 Steve Ellcey <sje@cup.hp.com>
929 * configure: Regenerate for new libtool.
930 * Makefile.in: Ditto.
931 * testsuite/Makefile.in: Ditto.
933 2008-09-19 Jakub Jelinek <jakub@redhat.com>
934 Andreas Tobler <a.tobler@schweiz.org>
936 * config/bsd/proc.c: New file.
937 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
938 * configure.ac: Check for header <sys/sysctl.h>
939 * configure: Regenerate.
940 * config.h.in: Likewise.
942 2008-09-05 Janis Johnson <janis187@us.ibm.com>
944 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
946 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
948 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
949 * Makefile.in: Regenerated.
950 * testsuite/Makefile.in: Regenerated.
952 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
954 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
955 depend on blddir if blddir exists.
956 (libgomp_target_compile): Likewise.
957 * testsuite/libgomp.c++/c++.exp: Likewise.
958 * testsuite/libgomp.fortran/fortran.exp: Likewise.
960 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
962 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
963 Do not list GPL as Invariant Section.
965 2008-07-28 Ilie Garbacea <ilie@mips.com>
966 Chao-ying Fu <fu@mips.com>
968 * configure.tgt: Enable futex for MIPS.
969 * config/linux/mips/futex.h: New file.
971 2008-07-16 Jakub Jelinek <jakub@redhat.com>
973 * team.c (gomp_team_end): Free team immediately if it has
976 2008-07-08 David Edelsohn <edelsohn@gnu.org>
978 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
979 * testsuite/libgomp.fortran/fortran.exp: Same.
980 * testsuite/libgomp.c/c.exp: Same.
981 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
982 directory to library path first.
984 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
986 * env.c (parse_stacksize): Add cast to avoid warning.
987 (parse_spincount): Likewise.
989 2008-06-27 Jakub Jelinek <jakub@redhat.com>
991 * testsuite/libgomp.c/loop-10.c: New test.
992 * libgomp.c/loop-3.c (main): Add lastprivate clause.
993 * libgomp.c++/loop-6.C (main): Likewise.
996 * testsuite/libgomp.c/debug-1.c: New test.
998 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1000 * testsuite/libgomp.c/nqueens-1.c: New test.
1003 * testsuite/libgomp.c++/task-7.C: New function.
1005 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1007 * configure: Regenerate.
1009 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1011 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1012 mutex when HAVE_SYNC_BUILTINS isn't defined.
1014 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1016 * libgomp.texi (omp_test_lock): Fix typo.
1018 2008-06-12 Tobias Burnus <burnus@net-b.de>
1020 * omp_lib.f90.in: Add "implicit none".
1022 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1025 * testsuite/libgomp.c/reduction-5.c: New test.
1027 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1029 * libgomp.h (struct gomp_task): Add in_tied_task field.
1030 * task.c (gomp_init_task): Initialize it.
1031 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1032 unconditionally. Don't call gomp_team_barrier_wake if
1033 current task is implicit or if(0) from implicit and number of
1034 running tasks is equal to nthreads - 1.
1037 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1038 omp_get_team_size_8): Fix pastos.
1041 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1042 * configure: Regenerated.
1043 * config.h.in: Regenerated.
1044 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1047 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1050 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1051 (GOMP_loop_ull_dynamic_start): Likewise.
1052 (GOMP_loop_ull_guided_start): Likewise.
1053 (GOMP_loop_ull_ordered_static_start): Likewise.
1054 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1055 (GOMP_loop_ull_ordered_guided_start): Likewise.
1057 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1058 Richard Henderson <rth@redhat.com>
1059 Ulrich Drepper <drepper@redhat.com>
1060 Jakob Blomer <jakob.blomer@ira.uka.de>
1062 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1063 Substitute also OMP_*LOCK_25*.
1064 * configure: Regenerated.
1065 * config.h.in: Regenerated.
1066 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1067 ptrlock.c and task.c.
1068 * Makefile.in: Regenerated.
1069 * testsuite/Makefile.in: Regenerated.
1071 * loop_ull.c: New file.
1072 * iter_ull.c: New file.
1073 * libgomp.h: Include ptrlock.h.
1074 (enum gomp_task_kind): New type.
1075 (struct gomp_team): Add task_lock, task_queue, task_count,
1076 task_running_count, single_count fields. Add
1077 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1078 Remove work_share_lock, generation_mask,
1079 oldest_live_gen, num_live_gen and init_work_shares fields, add
1080 work work_share_list_alloc, work_share_list_free and work_share_chunk
1081 fields. Change work_shares from pointer to pointers into an array.
1082 Change ordered_release field into gomp_sem_t ** from flexible array
1083 member. Add implicit_task and initial_work_shares fields.
1084 Move close to the end of the struct.
1085 (struct gomp_team_state): Add single_count, last_work_share,
1086 active_level and level fields, remove work_share_generation.
1087 (gomp_barrier_handle_tasks): New prototype.
1088 (gomp_finish_task): New inline function.
1089 (struct gomp_work_share): Move chunk_size, end, incr into
1090 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1091 next_ll fields. Reshuffle fields. Add next_alloc,
1092 next_ws, next_free and inline_ordered_team_ids fields, change
1093 ordered_team_ids into pointer from flexible array member.
1094 Add mode field. Put lock and next into a different cache line
1095 from most of the write-once fields.
1096 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1097 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1098 gomp_iter_ull_guided_next): New prototypes.
1099 (gomp_new_icv): New prototype.
1100 (struct gomp_thread): Add thread_pool and task fields.
1101 (struct gomp_thread_pool): New type.
1102 (gomp_new_team): New prototype.
1103 (gomp_team_start): Change type of last argument.
1104 (gomp_new_work_share): Removed.
1105 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1106 (gomp_work_share_init_done): New static inline.
1107 (gomp_throttled_spin_count_var, gomp_available_cpus,
1108 gomp_managed_threads): New extern decls.
1109 (gomp_init_task): New prototype.
1110 (gomp_spin_count_var): New extern var decl.
1111 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1112 or no alias support, or if not PIC.
1113 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1114 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1115 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1116 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1117 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1118 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1119 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1120 gomp_test_nest_lock_25): New prototypes.
1121 (omp_lock_symver, strong_alias): Define.
1122 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1124 (gomp_end_task): New.
1125 (struct gomp_task_icv, gomp_global_icv): New.
1126 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1127 (struct gomp_task): New.
1128 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1129 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1131 (gomp_schedule_type): Reorder enum to match
1133 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1135 (gomp_thread_start): Add gomp_team_barrier_wait call.
1136 For non-nested case remove clearing of docked thread thr fields.
1137 Use pool fields instead of global gomp_* variables. Use
1138 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1139 Create tasks for each member thread.
1140 (free_team): Only destroy team barrier, task_lock here and free it.
1141 (gomp_free_thread): Free last_team if non-NULL.
1142 (gomp_team_end): Call gomp_team_barrier_wait instead of
1143 gomp_barrier_wait. For nested case call one extra
1144 gomp_barrier_wait. Move here some destruction from free_team.
1145 Call free_team on pool->last_team if any, rather than freeing
1146 current team. Destroy work_share_list_free_lock ifndef
1148 (gomp_new_icv): New function.
1149 (gomp_threads, gomp_threads_size, gomp_threads_used,
1150 gomp_threads_dock): Removed.
1151 (gomp_thread_destructor): New variable.
1152 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1154 (gomp_team_start): Create new pool if current thread doesn't have
1155 one. Use pool fields instead of global gomp_* variables.
1156 Initialize thread_pool field for new threads. Clear single_count.
1157 Change last argument from ws to team, don't create
1158 new team, set ts.work_share to &team->work_shares[0] and clear
1159 ts.last_work_share. Don't clear ts.work_share_generation.
1160 If number of threads changed, adjust atomically gomp_managed_threads.
1161 Use gomp_init_task instead of gomp_new_task,
1162 set thr->task to the corresponding implicit_task array entry.
1163 Create tasks for each member thread. Initialize ts.level.
1164 (initialize_team): Call pthread_key_create on
1165 gomp_thread_destructor.
1166 (team_destructor): New function.
1167 (new_team): Removed.
1168 (gomp_new_team): New function.
1169 (free_team): Free gomp_work_share blocks chained through next_alloc,
1170 instead of freeing work_shares and destroying work_share_lock.
1171 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1172 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1173 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1174 of gomp_barrier_wait.
1175 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1176 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1177 if gomp_work_share_start returned true. Don't unlock ws->lock.
1178 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1179 of gomp_barrier_wait.
1180 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1181 gomp_work_share_init_done if gomp_work_share_start returned true.
1182 Don't unlock ws->lock.
1183 * work.c: Include stddef.h.
1184 (free_work_share): Use work_share_list_free_lock instead
1185 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1186 Call gomp_fini_work_share and then either free ws if orphaned, or
1187 put it into work_share_list_free list of the current team.
1188 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1190 (gomp_work_share_start, gomp_work_share_end,
1191 gomp_work_share_end_nowait): Rewritten.
1192 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1193 (openmp_version): Set to 200805.
1194 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1195 omp_sched_guided, omp_sched_auto): New parameters.
1196 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1197 omp_set_max_active_levels, omp_get_max_active_levels,
1198 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1199 omp_get_active_level): New interfaces.
1200 * omp_lib.h.in (openmp_version): Set to 200805.
1201 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1202 omp_sched_guided, omp_sched_auto): New parameters.
1203 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1204 omp_set_max_active_levels, omp_get_max_active_levels,
1205 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1206 omp_get_active_level): New externals.
1207 * loop.c: Include limits.h.
1208 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1210 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1211 Likewise. Use gomp_icv.
1212 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1213 ts.static_trip here.
1214 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1215 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1216 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1217 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1218 don't unlock ws->lock, otherwise lock it.
1219 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1220 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1221 (gomp_parallel_loop_start): Call gomp_new_team instead of
1222 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1223 Adjust gomp_team_start caller. Pass 0 as second argument to
1224 gomp_resolve_num_threads.
1225 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1226 If adding ws->chunk_size nthreads + 1 times after end won't
1227 overflow, set ws->mode to 1.
1228 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1229 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1230 GOMP_loop_ull_ordered_static_start,
1231 GOMP_loop_ull_ordered_dynamic_start,
1232 GOMP_loop_ull_ordered_guided_start,
1233 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1234 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1235 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1236 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1237 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1239 * libgomp.map: Export lock routines also @@OMP_2.0.
1240 (GOMP_loop_ordered_dynamic_first,
1241 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1242 GOMP_loop_ordered_static_first): Remove.
1243 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1244 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1245 GOMP_loop_ull_ordered_dynamic_next,
1246 GOMP_loop_ull_ordered_dynamic_start,
1247 GOMP_loop_ull_ordered_guided_next,
1248 GOMP_loop_ull_ordered_guided_start,
1249 GOMP_loop_ull_ordered_runtime_next,
1250 GOMP_loop_ull_ordered_runtime_start,
1251 GOMP_loop_ull_ordered_static_next,
1252 GOMP_loop_ull_ordered_static_start,
1253 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1254 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1255 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1256 (omp_set_schedule, omp_get_schedule,
1257 omp_get_thread_limit, omp_set_max_active_levels,
1258 omp_get_max_active_levels, omp_get_level,
1259 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1260 omp_set_schedule_, omp_set_schedule_8_,
1261 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1262 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1263 omp_get_max_active_levels_, omp_get_level_,
1264 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1265 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1266 New exports @@OMP_3.0.
1267 * omp.h.in (omp_sched_t): New type.
1268 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1269 omp_set_max_active_levels, omp_get_max_active_levels,
1270 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1271 omp_get_active_level): New prototypes.
1272 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1273 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1274 gomp_thread_limit_var, gomp_remaining_threads_count,
1275 gomp_remaining_threads_lock): New variables.
1276 (parse_spincount): New function.
1277 (initialize_env): Call gomp_init_num_threads unconditionally.
1278 Initialize gomp_available_cpus. Call parse_spincount,
1279 initialize gomp_{,throttled_}spin_count_var
1280 depending on presence and value of OMP_WAIT_POLICY and
1281 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1282 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1283 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1284 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1285 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1286 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1287 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1288 (gomp_global_icv): New.
1289 (parse_schedule): Use it. Parse "auto".
1290 (omp_set_num_threads): Use gomp_icv.
1291 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1293 (omp_get_max_threads): Move from parallel.c.
1294 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1295 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1297 (parse_stacksize, parse_wait_policy): New functions.
1298 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1299 both wrappers for compatibility and new locks.
1300 (omp_set_schedule, omp_get_schedule,
1301 omp_get_thread_limit, omp_set_max_active_levels,
1302 omp_get_max_active_levels, omp_get_level,
1303 omp_get_ancestor_thread_num, omp_get_team_size,
1304 omp_get_active_level): New ialias_redirect.
1305 (omp_set_schedule_, omp_set_schedule_8_,
1306 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1307 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1308 omp_get_max_active_levels_, omp_get_level_,
1309 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1310 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1312 * parallel.c: Include limits.h.
1313 (gomp_resolve_num_threads): Add count argument. Rewritten.
1314 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1315 argument to gomp_team_start. Pass 0 as second argument to
1316 gomp_resolve_num_threads.
1317 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1318 if gomp_thread_limit_var != ULONG_MAX.
1319 (omp_in_parallel): Implement using ts.active_level.
1320 (omp_get_max_threads): Move to env.c.
1321 (omp_get_level, omp_get_ancestor_thread_num,
1322 omp_get_team_size, omp_get_active_level): New functions,
1324 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1325 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1326 gomp_iter_dynamic_next instead of the _locked variant and don't take
1327 lock around it, otherwise acquire it before calling
1328 gomp_iter_dynamic_next_locked.
1329 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1330 gomp_iter_dynamic_next instead of the _locked variant and don't take
1332 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1333 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1334 Adjust gomp_team_start caller. Pass count as second argument to
1335 gomp_resolve_num_threads, don't adjust num_threads after the call.
1337 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1338 ws->chunk_size by incr.
1339 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1341 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1343 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1344 (omp_check_defines): Check even the compat defines.
1345 * config/linux/ptrlock.c: New file.
1346 * config/linux/ptrlock.h: New file.
1347 * config/linux/wait.h: New file.
1348 * config/posix/ptrlock.c: New file.
1349 * config/posix/ptrlock.h: New file.
1350 * config/linux/bar.h (gomp_team_barrier_wait,
1351 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1352 (gomp_team_barrier_set_task_pending,
1353 gomp_team_barrier_clear_task_pending,
1354 gomp_team_barrier_set_waiting_for_tasks,
1355 gomp_team_barrier_waiting_for_tasks,
1356 gomp_team_barrier_done): New inlines.
1357 (gomp_barrier_t): Rewritten.
1358 (gomp_barrier_state_t): New typedef.
1359 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1360 gomp_barrier_wait_start): Rewritten.
1361 (gomp_barrier_wait_end): Change second argument to
1362 gomp_barrier_state_t.
1363 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1365 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1367 (gomp_barrier_wait_end): Rewritten.
1368 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1369 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1370 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1371 (gomp_barrier_state_t): New typedef.
1372 (gomp_team_barrier_wait,
1373 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1374 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1375 into the return value. Return gomp_barrier_state_t.
1376 (gomp_team_barrier_set_task_pending,
1377 gomp_team_barrier_clear_task_pending,
1378 gomp_team_barrier_set_waiting_for_tasks,
1379 gomp_team_barrier_waiting_for_tasks,
1380 gomp_team_barrier_done): New inlines.
1381 (gomp_barrier_wait_end): Change second argument to
1382 gomp_barrier_state_t.
1383 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1385 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1386 (gomp_barrier_wait_end): Change second argument to
1387 gomp_barrier_state_t.
1388 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1389 gomp_team_barrier_wake): New functions.
1390 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1392 (gomp_futex_wake, gomp_futex_wait): New variables.
1393 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1394 * config/linux/lock.c: Rewrite to make locks task owned,
1395 for backwards compatibility provide the old entrypoints
1396 if symbol versioning. Include wait.h instead of libgomp.h and
1398 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1399 * config/posix95/lock.c: Rewrite to make locks task owned,
1400 for backwards compatibility provide the old entrypoints
1401 if symbol versioning.
1402 * config/posix/lock.c: Rewrite to make locks task owned,
1403 for backwards compatibility provide the old entrypoints
1404 if symbol versioning.
1405 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1406 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1407 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1408 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1409 (sys_futex0): Return error code.
1410 (futex_wake, futex_wait): If ENOSYS was returned, clear
1411 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1412 (cpu_relax, atomic_write_barrier): New static inlines.
1413 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1414 (futex_wake, futex_wait): If ENOSYS was returned, clear
1415 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1416 (cpu_relax, atomic_write_barrier): New static inlines.
1417 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1418 (sys_futex0): Return error code.
1419 (futex_wake, futex_wait): If ENOSYS was returned, clear
1420 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1421 (cpu_relax, atomic_write_barrier): New static inlines.
1422 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1423 (sys_futex0): Return error code.
1424 (futex_wake, futex_wait): If ENOSYS was returned, clear
1425 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1426 (cpu_relax, atomic_write_barrier): New static inlines.
1427 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1428 (sys_futex0): Return error code.
1429 (futex_wake, futex_wait): If ENOSYS was returned, clear
1430 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1431 (cpu_relax, atomic_write_barrier): New static inlines.
1432 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1433 (sys_futex0): Return error code.
1434 (futex_wake, futex_wait): If ENOSYS was returned, clear
1435 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1436 (cpu_relax, atomic_write_barrier): New static inlines.
1437 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1439 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1440 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1441 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1443 (omp_nest_lock_t): Change owner into void *, add lock field.
1444 * config/posix95/omp-lock.h: Include semaphore.h.
1445 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1446 (omp_lock_t): Use sem_t instead of mutex if semaphores
1448 (omp_nest_lock_t): Likewise. Change owner to void *.
1449 * config/posix/omp-lock.h: Include semaphore.h.
1450 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1451 (omp_lock_t): Use sem_t instead of mutex if semaphores
1453 (omp_nest_lock_t): Likewise. Add owner field.
1455 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1457 * testsuite/libgomp.c/collapse-1.c: New test.
1458 * testsuite/libgomp.c/collapse-2.c: New test.
1459 * testsuite/libgomp.c/collapse-3.c: New test.
1460 * testsuite/libgomp.c/icv-1.c: New test.
1461 * testsuite/libgomp.c/icv-2.c: New test.
1462 * testsuite/libgomp.c/lib-2.c: New test.
1463 * testsuite/libgomp.c/lock-1.c: New test.
1464 * testsuite/libgomp.c/lock-2.c: New test.
1465 * testsuite/libgomp.c/lock-3.c: New test.
1466 * testsuite/libgomp.c/loop-4.c: New test.
1467 * testsuite/libgomp.c/loop-5.c: New test.
1468 * testsuite/libgomp.c/loop-6.c: New test.
1469 * testsuite/libgomp.c/loop-7.c: New test.
1470 * testsuite/libgomp.c/loop-8.c: New test.
1471 * testsuite/libgomp.c/loop-9.c: New test.
1472 * testsuite/libgomp.c/nested-3.c: New test.
1473 * testsuite/libgomp.c/nestedfn-6.c: New test.
1474 * testsuite/libgomp.c/sort-1.c: New test.
1475 * testsuite/libgomp.c/task-1.c: New test.
1476 * testsuite/libgomp.c/task-2.c: New test.
1477 * testsuite/libgomp.c/task-3.c: New test.
1478 * testsuite/libgomp.c/task-4.c: New test.
1479 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1480 to C++ testsuite default compiler options.
1481 * testsuite/libgomp.c++/collapse-1.C: New test.
1482 * testsuite/libgomp.c++/collapse-2.C: New test.
1483 * testsuite/libgomp.c++/ctor-10.C: New test.
1484 * testsuite/libgomp.c++/for-1.C: New test.
1485 * testsuite/libgomp.c++/for-2.C: New test.
1486 * testsuite/libgomp.c++/for-3.C: New test.
1487 * testsuite/libgomp.c++/for-4.C: New test.
1488 * testsuite/libgomp.c++/for-5.C: New test.
1489 * testsuite/libgomp.c++/loop-8.C: New test.
1490 * testsuite/libgomp.c++/loop-9.C: New test.
1491 * testsuite/libgomp.c++/loop-10.C: New test.
1492 * testsuite/libgomp.c++/task-1.C: New test.
1493 * testsuite/libgomp.c++/task-2.C: New test.
1494 * testsuite/libgomp.c++/task-3.C: New test.
1495 * testsuite/libgomp.c++/task-4.C: New test.
1496 * testsuite/libgomp.c++/task-5.C: New test.
1497 * testsuite/libgomp.c++/task-6.C: New test.
1498 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1499 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1500 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1501 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1502 * testsuite/libgomp.fortran/collapse1.f90: New test.
1503 * testsuite/libgomp.fortran/collapse2.f90: New test.
1504 * testsuite/libgomp.fortran/collapse3.f90: New test.
1505 * testsuite/libgomp.fortran/collapse4.f90: New test.
1506 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1507 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1508 * testsuite/libgomp.fortran/lib4.f90: New test.
1509 * testsuite/libgomp.fortran/lock-1.f90: New test.
1510 * testsuite/libgomp.fortran/lock-2.f90: New test.
1511 * testsuite/libgomp.fortran/nested1.f90: New test.
1512 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1513 * testsuite/libgomp.fortran/strassen.f90: New test.
1514 * testsuite/libgomp.fortran/tabs1.f90: New test.
1515 * testsuite/libgomp.fortran/tabs2.f: New test.
1516 * testsuite/libgomp.fortran/task1.f90: New test.
1517 * testsuite/libgomp.fortran/task2.f90: New test.
1518 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1519 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1520 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1521 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1522 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1524 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1527 * testsuite/libgomp.c++/ctor-11.C: New test.
1528 * testsuite/libgomp.c++/ctor-12.C: New test.
1530 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1532 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1534 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1537 * testsuite/libgomp.c/atomic-5.c: New test.
1538 * testsuite/libgomp.c/atomic-6.c: New test.
1539 * testsuite/libgomp.c/autopar-1.c: New test.
1541 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1543 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1544 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1545 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1546 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1547 * configure: Regenerate.
1548 * Makefile.in, testsuite/Makefile.in: Likewise.
1550 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1553 * aclocal.m4: Regenerate.
1554 * configure: Regenerate.
1556 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1559 * testsuite/libgomp.c/atomic-4.c: New test.
1562 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1563 (gomp_iter_guided_next): Likewise.
1564 * testsuite/libgomp.c/pr35625.c: New test.
1566 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1568 * aclocal.m4: Regenerate.
1569 * configure: Likewise.
1570 * Makefile.in: Likewise.
1571 * testsuite/Makefile.in: Likewise.
1573 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1576 * testsuite/libgomp.c++/pr35185.C: New test.
1578 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1581 * testsuite/libgomp.c/pr35549.c: New test.
1583 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1585 * testsuite/libgomp.c/atomic-3.c: New test.
1587 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1590 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1593 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1596 * configure.ac: Add ACX_HEADER_STRING.
1597 * env.c: Include strings.h.
1598 * aclocal.m4: Regenerate.
1599 * config.h.in: Regenerate.
1600 * configure: Regenerate.
1601 * Makefile.in: Regenerate.
1602 * testsuite/Makefile.in: Regenerate.
1604 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1607 * testsuite/libgomp.c/pr35196.c: New test.
1610 * testsuite/libgomp.fortran/pr35130.f90: New test.
1611 * testsuite/libgomp.c/pr35130.c: New test.
1613 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1616 * testsuite/libgomp.c/pr33880.c: New test.
1617 * testsuite/libgomp.fortran/pr33880.f90: New test.
1619 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1621 * configure: Regenerate.
1623 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1625 * configure.ac: Move futex checking into ../config/futex.m4.
1626 * configure: Rebuilt.
1627 * aclocal.m4: Rebuilt.
1628 * Makefile.in: Rebuilt.
1630 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1631 2007-10-15 ../config/tls.m4 change.
1633 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1636 * testsuite/libgomp.c/pr34513.c: New test.
1637 * testsuite/libgomp.c++/pr34513.C: New test.
1639 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1642 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1644 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1646 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1648 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1650 * testsuite/libgomp.c/private-1.c: New test.
1652 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1653 Paolo Bonzini <bonzini@gnu.org>
1655 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1656 instead of 'VPATH ='.
1657 * Makefile.in: Regenerate.
1659 2007-11-23 Matthias Klose <doko@ubuntu.com>
1661 * configure.ac: Adjust makeinfo version check.
1662 * configure: Regenerate.
1664 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.fortran/pr34020.f90: New test.
1669 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1672 * testsuite/libgomp.c++/atomic-1.C: New test.
1674 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1677 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1678 Make x and y integers rather than (implicit) reals. Add private (j)
1679 clause to the last omp parallel.
1681 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1683 * configure: Regenerate following changes to ../config/tls.m4.
1685 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1687 * testsuite/libgomp.fortran/stack.f90: New test.
1689 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1691 * config/mingw32/proc.c: New file.
1693 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1695 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1696 (main): Use __get_cpuid to get i386 target fetaures.
1697 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1698 (main): Use __get_cpuid to get x86_64 target fetaures.
1700 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1703 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1704 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1706 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1709 * testsuite/libgomp.fortran/pr32550.f90: New test.
1710 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1712 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1714 * aclocal.m4: Regenerated.
1716 2007-07-05 Tobias Burnus <burnus@net-b.de>
1719 * testsuite/libgomp.fortran/pr32359.f90: New.
1721 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1724 * sections.c (GOMP_parallel_sections_start): Only decrease
1725 number of threads to COUNT if dyn_var is true.
1726 * testsuite/libgomp.c/pr32468.c: New test.
1728 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1731 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1733 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1736 * testsuite/libgomp.c/pr32362-1.c: New test.
1737 * testsuite/libgomp.c/pr32362-2.c: New test.
1738 * testsuite/libgomp.c/pr32362-3.c: New test.
1740 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1742 * team.c (gomp_team_start): Fix setting up thread_attr
1745 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1747 * configure: Regenerate.
1749 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1751 * Makefile.in: Regenerate.
1752 * configure: Regenerate.
1753 * aclocal.m4: Regenerate.
1754 * testsuite/Makefile.in: Regenerate.
1756 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1758 * config/linux/proc.c: New file.
1761 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1763 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1765 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1767 2007-04-16 Matthias Klose <doko@debian.org>
1769 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1770 flags if not building with -m64.
1771 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1772 flag for i?86-*-* targets, if current target matches -m64.
1774 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1776 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1777 * Makefile.in: Regenerate.
1779 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1782 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1784 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1786 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1788 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1790 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1791 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1792 (parse_affinity): New function.
1793 (initialize_env): Call it and gomp_init_affinity.
1794 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1795 create new pthread_attr_t and call gomp_init_thread_affinity
1796 on it for each thread before passing the attribute to pthread_create.
1797 * config/linux/affinity.c: New file.
1798 * config/posix/affinity.c: New file.
1799 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1800 * configure: Rebuilt.
1801 * config.h.in: Rebuilt.
1802 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1803 * Makefile.in: Rebuilt.
1805 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1807 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1809 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1810 and use it if found.
1812 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1814 * testsuite/config/default.exp: New file.
1815 * testsuite/lib/libgomp.exp: New file.
1816 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1817 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1818 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1819 (libgomp_load): Remove.
1820 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1821 always_ld_library_path, not ld_library_path. Set additional_flags
1822 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1823 (target_compile): Do not call libgomp_init. Append lang_library_path
1824 and lang_link_flags to options.
1825 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1826 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1828 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1829 always_ld_library_path. Set LD_LIBRARY_PATH here.
1830 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1831 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1832 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1834 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1835 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1836 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1837 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1838 * testsuite/libgomp.c/atomic-10.c: Ditto.
1840 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1842 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1843 dg-final cleanup-modules line.
1844 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1845 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1846 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1847 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1848 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1849 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1850 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1852 2007-03-18 Andreas Schwab <schwab@suse.de>
1854 * acinclude.m4: Adjust regular expression for ld version
1856 * configure: Regenerate.
1858 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1860 * Makefile.am: Add install-pdf target as copied from
1861 automake v1.10 rules.
1862 * Makefile.in: Regenerate
1864 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1867 * configure: Regenerate.
1870 * testsuite/libgomp.c++/pr30703.C: New test.
1872 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1875 2006-07-05 Eric Christopher <echristo@apple.com>
1876 * configure.ac: Depend addition of -pthread on host OS.
1877 * configure: Regenerate.
1879 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1881 * libgomp.texi: Fix spacing after abbreviations.
1883 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1886 * configure.ac: Add check for makeinfo
1887 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1888 if an appropiate version of makeinfo is found.
1889 * aclocal.m4: Regenerated.
1890 * configure: Regenerated.
1891 * Makefile.in: Regenerated.
1892 * testsuite/Makefile.in: Regenerated.
1894 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1897 * libgomp.texi: More about implementation-dependent settings.
1899 2007-01-26 Tobias Burnus <burnus@net-b.de>
1901 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1903 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1906 * testsuite/libgomp.c/pr30494.c: New test.
1908 2007-01-15 Tom Tromey <tromey@redhat.com>
1910 * configure: Rebuilt.
1911 * configure.ac: Fixed comment.
1913 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1915 * libgomp.texi: Document implementation specific default values of
1916 environment variables.
1918 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1921 * libgomp.texi: New file.
1922 * configure.ac: Add --enable-generated-files-in-srcdir option.
1923 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1925 * Makefile.in: Regenerated.
1926 * config.h.in: Regenerated.
1927 * testsuite/Makefile.in: Regenerated.
1930 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1933 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1935 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1937 * configure: Regenerate.
1939 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1942 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1943 start if there shouldn't be any loop iterations.
1944 (gomp_loop_ordered_static_start): Remove start == end test.
1945 * testsuite/libgomp.c/pr29947-1.c: New test.
1946 * testsuite/libgomp.c/pr29947-2.c: New test.
1948 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1950 * configure.tgt: Force initial-exec TLS model on Linux only.
1952 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1954 * configure: Regenerated.
1956 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1958 * env.c (parse_schedule): Reject out of range values.
1959 (parse_unsigned_long): Reject out of range, negative or zero values.
1961 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1964 * testsuite/libgomp.fortran/pr29629.f90: New test.
1966 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1969 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1970 * config/posix95: New directory.
1971 * config/posix95/omp-lock.h: New file.
1972 * config/posix95/lock.c: Likewise.
1974 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1976 * aclocal.m4: Regenerate.
1977 * configure: Regenerate.
1979 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1981 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1984 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1986 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1988 * configure: Regenerate.
1989 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1991 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1995 * testsuite/libgomp.c/nestedfn-4.c: New test.
1996 * testsuite/libgomp.c/nestedfn-5.c: New test.
1997 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2000 * testsuite/libgomp.fortran/condinc1.f: New test.
2001 * testsuite/libgomp.fortran/condinc2.f: New test.
2002 * testsuite/libgomp.fortran/condinc3.f90: New test.
2003 * testsuite/libgomp.fortran/condinc4.f90: New test.
2004 * testsuite/libgomp.fortran/condinc1.inc: New file.
2006 2006-09-18 Tom Tromey <tromey@redhat.com>
2008 * configure: Rebuilt.
2010 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2013 PR preprocessor/14634
2014 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2016 * configure: Regenerate.
2018 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2020 * testsuite/libgomp.fortran/reduction3.f90: Change
2021 -2147483648 to -huge(i)-1 to avoid overflow.
2022 * testsuite/libgomp.fortran/reduction4.f90: Change
2023 Z'ffffffff' to not(0) to avoid overflow.
2025 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2028 * Makefile.am (libsubincludedir): New.
2029 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2030 * Makefile.in: Regenerate.
2032 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2035 * env.c: Include ctype.h.
2036 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2037 leading and/or trailing whitespace and compare strings case
2040 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2043 * testsuite/libgomp.fortran/pr28390.f: New test.
2045 2006-07-05 Eric Christopher <echristo@apple.com>
2047 * configure.ac: Depend addition of -pthread on host OS.
2048 * configure: Regenerate.
2050 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2052 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2053 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2056 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2060 * configure.ac: If neither --enable-linux-futex nor
2061 --disable-linux-futex is passed, determine the default by checking
2062 for compiling and/or running against NPTL. With --enable-linux-futex,
2063 check if SYS_gettid and SYS_futex are defined.
2064 * configure: Rebuilt.
2066 2006-06-14 Richard Henderson <rth@redhat.com>
2069 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2070 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2072 2006-06-09 Richard Henderson <rth@redhat.com>
2074 * env.c (gomp_nthreads_var): Change to unsigned long.
2075 (gomp_run_sched_chunk): Likewise.
2076 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2077 (initialize_env): Initialize gomp_thread_attr.
2078 * libgomp.h (gomp_nthreads_var): Update decl.
2079 (gomp_run_sched_chunk): Likewise.
2080 (gomp_thread_attr): Declare.
2081 * team.c (gomp_thread_attr): Export.
2082 (initialize_team): Don't initialize it.
2084 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2087 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2088 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2090 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2092 * config/mingw32/time.c: New file.
2093 * configure.tgt: Use it.
2095 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2097 * Makefile.am: Add install-html target. Add install-html to .PHONY
2098 * Makefile.in: Regenerate.
2100 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2103 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2104 * testsuite/libgomp.c/critical-1.c: Likewise.
2105 * testsuite/libgomp.c/loop-1.c: Likewise.
2106 * testsuite/libgomp.c/loop-2.c: Likewise.
2107 * testsuite/libgomp.c/single-1.c: Likewise.
2108 * testsuite/libgomp.c/ordered-1.c: Likewise.
2109 * testsuite/libgomp.c/ordered-2.c: Likewise.
2111 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2114 * libgomp.fortran/pr27416-1.f90: New test.
2116 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2119 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2120 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2122 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2125 * testsuite/libgomp.c/pr26943-1.c: New test.
2126 * testsuite/libgomp.c/pr26943-2.c: New test.
2127 * testsuite/libgomp.c/pr26943-3.c: New test.
2128 * testsuite/libgomp.c/pr26943-4.c: New test.
2129 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2130 * testsuite/libgomp.c++/pr26943.C: New test.
2132 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2135 * testsuite/libgomp.c++/pr27337.C: New test.
2137 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2140 * testsuite/libgomp.c/pr26171.c: New test.
2142 2006-04-25 Richard Henderson <rth@redhat.com>
2145 * configure.ac: Use GCC_CHECK_TLS.
2146 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2147 * Makefile.in, aclocal.m4, configure: Regenerate.
2149 2006-04-10 Matthias Klose <doko@debian.org>
2151 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2152 directory names containing underscores.
2154 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2157 * testsuite/libgomp.c++/pr26691.C: New test.
2159 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2161 * testsuite/libgomp.fortran/retval2.f90: New test.
2163 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2165 * testsuite/libgomp.c++: New directory.
2167 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2169 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2170 * config/posix/sem.c: Implement the above.
2172 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2174 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2175 define HAVE_BROKEN_POSIX_SEMAPHORES.
2176 * configure: Rebuilt.
2177 * config.h.in: Rebuilt.
2179 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2182 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2183 for the other pthread check.
2184 * configure: Regenerate.
2185 * config.h.in: Regenerate.
2187 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2191 * Makefile.am (fincludedir): New variable.
2192 (nodist_include_HEADERS): Remove Fortran files.
2193 (nodist_finclude_HEADERS): New variable.
2194 * Makefile.in: Regenerated.
2196 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2198 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2199 Remove tests for returning assumed character length arrays.
2201 2006-02-12 Roger Sayle <roger@eyesopen.com>
2202 John David Anglin <dave@hiauly1.hia.nrc.ca>
2205 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2207 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2209 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2211 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2213 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2214 part of LD_LIBRARY_PATH manually.
2216 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2219 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2222 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2225 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2226 * configure.ac (PERL): Don't set.
2227 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2228 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2229 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2230 * omp.h.in: Wrap the new configure substitutions with @ characters.
2231 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2232 * aclocal.m4, configure, Makefile.in: Regenerate.
2233 * mkomp_h.pl: Delete.
2235 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2238 * configure.ac: Use GCC_HEADER_STDINT.
2239 * libgomp.h: Include gstdint.h.
2240 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2241 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2243 2006-01-24 Richard Henderson <rth@redhat.com>
2246 * configure.ac: Add AM_MAINTAINER_MODE.
2247 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2249 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2251 * Makefile.in: Regenerate.
2252 * testsuite/Makefile.in: Regenerate.
2253 * aclocal.m4: Regenerate.
2255 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2257 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2259 * configure.ac: Add check for loadavg.h.
2260 (link_gomp): Adjust comment.
2261 * configure: Regenerate.
2262 * config.h.in: Regenerate.
2264 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2267 * configure.ac: Remove check for alloca.h.
2268 * configure: Regenerate.
2269 * config.h.in: Regenerate.
2270 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2271 * team.c: Remove use of alloca.h.
2272 Call gomp_alloca instead of alloca.
2274 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2277 * team.c: Add include of alloca.h.
2278 * configure.ac: Add check for alloca.h.
2279 * configure: Regenerate.
2280 * config.h.in: Regenerate.
2282 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2285 * testsuite/libgomp.fortran/pr25219.f90: New test.
2287 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2289 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2290 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2291 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2292 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2293 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2294 testsuite/libgomp.fortran/threadprivate1.f90,
2295 testsuite/libgomp.fortran/threadprivate2.f90,
2296 testsuite/libgomp.fortran/threadprivate3.f90,
2297 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2298 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2299 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2300 effective-target to TLS runtime.
2302 * testsuite/libgomp.fortran/pr25162.f: Require
2303 effective-target TLS runtime.
2305 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2307 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2308 * testsuite/libgomp.c/nestedfn-3.c: New test.
2310 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2313 * testsuite/libgomp.fortran/pr25162.f: New test.
2315 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2317 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2318 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2320 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2322 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2323 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2324 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2325 single.c, team.c, work.c, config/linux/alpha/futex.h,
2326 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2327 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2328 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2329 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2330 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2331 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2332 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2335 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2337 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2338 to nodist_noinst_HEADERS.
2339 * Makefile.in: Rebuilt.
2341 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2342 add integer count field.
2343 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2344 omp_nest_lock_t type change.
2345 (omp_init_nest_lock): Likewise. Initialize count to 0.
2346 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2348 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2350 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2351 Increment count if successful and return the new nesting level.
2352 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2353 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2354 * testsuite/libgomp.c/lib-1.c: New test.
2355 * testsuite/libgomp.fortran/lib1.f90: New test.
2356 * testsuite/libgomp.fortran/lib2.f: New test.
2357 * testsuite/libgomp.fortran/lib3.f: New test.
2359 2005-11-17 Richard Henderson <rth@redhat.com>
2362 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2363 * configure.ac (link_gomp): New. Substitute it.
2364 (AC_CONFIG_FILES): Add libgomp.spec.
2365 * libgomp.spec.in: New file.
2366 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2367 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2369 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2371 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2372 reduction(-:var) behaving the same as reduction(+:var).
2373 * testsuite/libgomp.c/reduction-4.c: New test.
2375 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2377 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2378 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2379 testsuite/libgomp.c/copyin-3.c,
2380 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2381 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2382 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2383 testsuite/libgomp.c++/pr24455.C,
2384 testsuite/libgomp.fortran/threadprivate1.f90,
2385 testsuite/libgomp.fortran/threadprivate2.f90,
2386 testsuite/libgomp.fortran/threadprivate3.f90,
2387 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2388 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2389 testsuite/libgomp.fortran/omp_parse3.f90: Require
2390 effective-target TLS.
2392 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2396 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2399 * team.c (initialize_team): Pass NULL rather than free as
2400 pthread_key_create destructor. Initialize thread specific data
2401 pointer in initial thread to a static local variable rather than
2404 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2406 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2407 its location to ld_library_path.
2409 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2411 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2413 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2415 * testsuite/libgomp.c: Rename from libgomp.dg.
2417 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2419 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2420 threadprivate variable 'i'.
2422 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2424 * config/linux/s390/futex.h: New file.
2425 * configure.tgt: Use it.
2427 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2428 before the parallel.
2430 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2433 * testsuite/libgomp.c++/master-1.C: New test.
2435 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2437 * testsuite/libgomp.dg/copyin-3.c: New test.
2439 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2441 * testsuite/libgomp.fortran/retval1.f90: New test.
2442 * testsuite/libgomp.fortran/vla7.f90: New test.
2444 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2446 * testsuite/libgomp.fortran/vla2.f90: New test.
2447 * testsuite/libgomp.fortran/vla3.f90: New test.
2448 * testsuite/libgomp.fortran/vla4.f90: New test.
2449 * testsuite/libgomp.fortran/vla5.f90: New test.
2450 * testsuite/libgomp.fortran/vla6.f90: New test.
2452 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2454 * config/linux/sparc/futex.h: New file.
2455 * configure.tgt: Use it.
2456 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2458 * critical.c: Include stdlib.h.
2459 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2460 ignoring return value.
2461 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2462 LIBGOMP_CHECK_SYNC_BUILTINS check.
2463 * configure: Rebuilt.
2465 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2467 * testsuite/libgomp.fortran/vla1.f90: New test.
2469 2005-10-31 Richard Henderson <rth@redhat.com>
2471 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2472 setting 's' in different threads.
2474 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2476 * libgomp.h (attribute_hidden, ialias): Define.
2477 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2478 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2479 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2480 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2481 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2482 omp_test_lock, omp_test_nest_lock): Likewise.
2483 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2484 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2485 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2486 omp_test_lock, omp_test_nest_lock): Likewise.
2487 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2488 omp_get_dynamic, omp_get_nested): Likewise.
2489 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2490 omp_get_thread_num, omp_in_parallel): Likewise.
2491 * fortran.c (ialias_redirect): Define.
2492 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2493 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2494 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2495 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2496 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2497 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2498 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2499 omp_get_wtime): Add ialias_redirect.
2501 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2503 * fortran.c: Include stdlib.h.
2505 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2507 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2508 * Makefile.in: Regenerated.
2510 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2512 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2513 * libgomp_f.h.in (omp_check_defines): New function.
2514 * env.c: Include libgomp_f.h.
2515 (initialize_env): Call omp_check_defines.
2517 * testsuite/libgomp.dg/copyin-2.c: New test.
2518 * testsuite/libgomp.c++/copyin-2.C: New test.
2519 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2521 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2522 * testsuite/libgomp.fortran/sharing2.f90: New test.
2524 * testsuite/libgomp.dg/copyin-1.c: New test.
2525 * testsuite/libgomp.c++/copyin-1.C: New test.
2527 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2529 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2531 * testsuite/libgomp.fortran/workshare1.f90: New test.
2533 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2535 * libgomp.fortran/sharing1.f90: New test.
2537 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2540 * testsuite/libgomp.c++/loop-7.C: New test.
2542 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2544 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2545 * testsuite/libgomp.fortran/reduction6.f90: New test.
2546 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2548 2005-10-23 Richard Henderson <rth@redhat.com>
2550 * testsuite/libgomp.c++/ctor-1.C: New.
2551 * testsuite/libgomp.c++/ctor-2.C: New.
2552 * testsuite/libgomp.c++/ctor-3.C: New.
2553 * testsuite/libgomp.c++/ctor-4.C: New.
2554 * testsuite/libgomp.c++/ctor-5.C: New.
2555 * testsuite/libgomp.c++/ctor-6.C: New.
2556 * testsuite/libgomp.c++/ctor-7.C: New.
2557 * testsuite/libgomp.c++/ctor-8.C: New.
2558 * testsuite/libgomp.c++/ctor-9.C: New.
2560 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2563 * testsuite/libgomp.c++/pr24455-1.C: New test.
2564 * testsuite/libgomp.c++/pr24455.C: New test.
2565 * testsuite/libgomp.dg/pr24455-1.c: New test.
2566 * testsuite/libgomp.dg/pr24455.c: New test.
2568 2005-10-20 Richard Henderson <rth@redhat.com>
2570 * testsuite/libgomp.c++/loop-6.C: New.
2571 * testsuite/libgomp.dg/loop-3.c: New.
2573 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2575 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2577 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2580 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2582 * testsuite/libgomp.fortran/jacobi.f: New test.
2584 2005-10-19 Richard Henderson <rth@redhat.com>
2586 * configure.tgt (i?86-linux): Default to with_arch instead of
2587 CFLAGS. Add -mtune to match target_cpu.
2588 (x86_64-linux): Tune to i686.
2590 * fortran.c (omp_test_nest_lock_): Fix typo.
2592 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2594 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2595 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2596 * testsuite/libgomp.dg/ordered-3.c: New test.
2598 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2599 Remove volatile keyword.
2601 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2602 in COMMON block to avoid warnings on 64-bit targets.
2604 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2606 * testsuite/libgomp.dg/shared-3.c: New test.
2608 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2610 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2611 * testsuite/libgomp.fortran/reduction5.f90: New test.
2613 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2615 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2617 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2618 flush loop now that __sync_synchronize has proper memory barrier.
2619 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2620 Add -ffixed-form to dg-options.
2622 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2624 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2625 from subdirectories.
2626 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2627 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2628 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2629 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2630 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2631 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2632 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2633 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2634 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2635 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2636 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2637 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2638 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2639 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2640 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2641 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2642 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2643 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2644 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2645 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2646 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2647 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2648 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2649 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2650 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2652 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2654 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2655 lang_library_path exists. Use find instead of glob to gather tests.
2656 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2658 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2660 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2661 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2662 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2663 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2664 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2665 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2666 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2667 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2668 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2669 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2670 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2671 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2672 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2674 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2676 * testsuite/libgomp.dg/vla-1.c: New test.
2678 * testsuite/libgomp.fortran/reference2.f90: New test.
2680 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2681 declaration of omp_get_thread_num.
2682 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2685 * testsuite/libgomp.fortran/reduction1.f90: New test.
2686 * testsuite/libgomp.fortran/reduction2.f90: New test.
2687 * testsuite/libgomp.fortran/reduction3.f90: New test.
2688 * testsuite/libgomp.fortran/reduction4.f90: New test.
2690 2005-10-13 Richard Henderson <rth@redhat.com>
2692 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2693 * Makefile.in: Regenerate.
2694 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2695 * libgomp.h: Include bar.h.
2696 (struct gomp_barrier): Remove.
2697 (struct gomp_team): Add barrier. Replace master_barrier with
2698 master_release. Replace threads with ordered_release.
2699 (struct gomp_thread): Replace barrier with release.
2700 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2701 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2702 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2703 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2704 (GOMP_single_copy_end): Likewise.
2705 * team.c (gomp_threads_dock): New.
2706 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2707 (gomp_thread_start): Use gomp_barrier_wait.
2708 (new_team, free_team): Update for gomp_team changes.
2709 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2710 (gomp_team_end): Use gomp_barrier_wait.
2711 (initialize_team): Update for gomp_thread changes.
2712 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2713 (gomp_work_share_end_nowait): Use atomic ops when available.
2714 * config/linux/bar.c, config/linux/bar.h: New files.
2715 * config/posix/bar.c, config/posix/bar.h: New files.
2717 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2719 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2720 * testsuite/libgomp.dg/single-2.c: New test.
2722 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2723 lang_link_flags): Unset, so that they aren't inherited from previously
2726 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2728 2005-10-12 Richard Henderson <rth@redhat.com>
2730 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2731 (libgomp_init): Use lang_test_file, lang_library_path, and
2732 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2734 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2735 (lang_test_file, lang_link_flags): New.
2736 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2738 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2739 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2740 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2741 testsuite/libgomp.c++/parallel-1.C,
2742 testsuite/libgomp.c++/reduction-1.C,
2743 testsuite/libgomp.c++/reduction-2.C,
2744 testsuite/libgomp.c++/reduction-3.C,
2745 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2746 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2747 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2748 New files, largely cribbed from the C testsuite.
2750 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2752 * testsuite/libgomp.fortran/character1.f90: New test.
2753 * testsuite/libgomp.fortran/character2.f90: New test.
2755 * testsuite/libgomp.dg/nested-1.c: New test.
2756 * testsuite/libgomp.dg/nested-2.c: New test.
2757 * testsuite/libgomp.fortran/do1.f90: New test.
2758 * testsuite/libgomp.fortran/do2.f90: New test.
2760 * testsuite/libgomp.fortran/reference1.f90: New test.
2762 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2764 * testsuite/libgomp.dg/reduction-1.c: New test.
2765 * testsuite/libgomp.dg/reduction-2.c: New test.
2766 * testsuite/libgomp.dg/reduction-3.c: New test.
2768 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2770 * testsuite/libgomp.dg/atomic-1.c: New test.
2771 * testsuite/libgomp.dg/atomic-2.c: New test.
2773 2005-10-09 Richard Henderson <rth@redhat.com>
2775 * critical.c (atomic_lock): New.
2776 (initialize_critical): Initialize it.
2777 (GOMP_atomic_start, GOMP_atomic_end): New.
2778 * libgomp.map: Export them.
2779 * libgomp_g.h: Declare them.
2781 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2783 2005-10-02 Richard Henderson <rth@redhat.com>
2785 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2786 to XCFLAGS instead of CFLAGS.
2788 2005-09-30 Richard Henderson <rth@redhat.com>
2790 * configure.ac: Determine whether -pthread or -lpthread is needed.
2791 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2792 * Makefine.in, configure: Rebuild.
2794 2005-09-28 Richard Henderson <rth@redhat.com>
2796 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2797 * testsuite/libgomp.dg/omp-single-3.c: New test.
2799 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2801 * testsuite/libgomp.dg/omp-single-2.c: New test.
2802 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2804 2005-09-27 Richard Henderson <rth@redhat.com>
2806 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2807 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2809 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2811 * testsuite/libgomp.dg/omp-loop03.c: New test.
2813 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2815 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2817 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2819 * testsuite/libgomp.dg/omp-single-1.c: New test.
2820 * testsuite/libgomp.dg/shared-1.c: Return 0.
2821 Add prototype for abort.
2822 * testsuite/libgomp.dg/shared-2.c: Likewise.
2824 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2826 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2829 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2831 * testsuite/libgomp.dg/shared-1.c: New test.
2832 * testsuite/libgomp.dg/shared-2.c: New test.
2834 2005-09-24 Richard Henderson <rth@redhat.com>
2836 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2838 2005-09-24 Richard Henderson <rth@redhat.com>
2840 * iter.c (gomp_iter_static_next): Round up when computing number
2841 of iterations. Don't bother distributing a remainder equally.
2843 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2844 Don't call srand. Zero b before testing.
2847 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2849 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2850 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2852 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2854 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2855 without !$omp end do, followed immediately by subroutine end.
2857 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2859 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2861 2005-09-22 Richard Henderson <rth@redhat.com>
2863 * critical.c (GOMP_critical_name_start): Change argument to void**.
2864 Reuse the pointer space if the mutex fits.
2865 (GOMP_critical_name_end): Likewise.
2866 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2867 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2868 (GOMP_critical_name_end): Likewise.
2869 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2870 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2872 2005-09-20 Richard Henderson <rth@redhat.com>
2874 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2875 (create_lock_lock): New.
2876 (initialize_critical): Initialize it.
2877 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2878 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2880 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2882 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2884 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2886 * testsuite/libgomp.dg/omp-loop01.c: New test.
2887 * testsuite/libgomp.dg/omp-loop02.c: New test.
2889 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2891 * configure.ac (AC_PROG_FC): Add.
2892 (USE_FORTRAN): New automake conditional.
2893 * configure: Rebuilt.
2894 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2895 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2896 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2897 Add rules to build them.
2898 * Makefile.in: Rebuilt.
2899 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2901 * libgomp.map: Add Fortran wrappers.
2902 * libgomp_f.h.in: New file.
2903 * omp_lib.h.in: New file.
2904 * omp_lib.f90.in: New file.
2905 * fortran.c: New file.
2906 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2907 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2908 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2909 libgfortran has been built.
2910 * testsuite/libgomp.fortran/fortran.exp: New file.
2911 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2912 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2913 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2914 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2915 * testsuite/libgomp.fortran/omp_hello.f: New test.
2916 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2917 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2918 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2919 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2920 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2921 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2922 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2923 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2925 2005-08-30 Richard Henderson <rth@redhat.com>
2927 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2928 function for when aliases are not usable.
2929 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2930 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2931 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2932 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2933 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2934 GOMP_loop_ordered_guided_next): Likewise.
2935 * ordered.c (GOMP_ordered_start): Likewise.
2937 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2939 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2940 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2941 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2942 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2943 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2944 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2945 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2946 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2947 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2949 2005-07-07 Eric Christopher <echristo@redhat.com>
2950 Diego Novillo <dnovillo@redhat.com>
2952 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2953 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2955 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2956 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2957 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2958 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2959 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2960 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2961 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2963 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2965 * TOPLEVEL.patch: Remove.
2967 2005-05-16 Richard Henderson <rth@redhat.com>
2969 * configure.ac: Test for clock_gettime.
2970 * config.h.in, configure: Rebuild.
2971 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2972 (omp_get_wtime): Use clock_gettime if available.
2973 (omp_get_wtick): Use clock_getres if available.
2975 2005-05-11 Richard Henderson <rth@redhat.com>
2977 * config/linux/ia64/futex.h: New file.
2978 * configure.tgt: Use it.
2980 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2982 2005-05-07 Richard Henderson <rth@redhat.com>
2984 * config/linux/powerpc/futex.h: New file.
2985 * configure.tgt: Use it.
2987 * config/linux/i486/futex.h: Merge ...
2988 * config/linux/x86_64/futex.h: ... into ...
2989 * config/linux/x86/futex.h: ... here.
2990 * configure.tgt: Update to match.
2992 2005-05-06 Richard Henderson <rth@redhat.com>
2994 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2995 * config/linux/i486/futex.h: Likewise.
2996 * config/linux/x86_64/futex.h: Likewise.
2998 * config/linux/lock.c: New file.
2999 * config/linux/omp-lock.h: New file.
3001 * critical.c, env.h: Don't include omp.h
3002 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3003 * config/posix/time.c: Likewise.
3004 * config/posix/omp-lock.h: New file.
3005 * libgomp.h: Include omp-lock.h and omp.h.
3006 * Makefile.am (nodist_include_HEADERS): New.
3008 * configure.ac (PERL): New.
3009 * mkomp_h.pl: New file.
3010 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3012 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3014 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3015 build directory. Re-add -march=i486 hack.
3017 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3018 (libgomp_link_flags): Remove.
3019 (libgomp_initialized): Remove.
3020 (libgomp_init): Don't protect from reinitialization. Copy code
3021 from libstdc++ for getting the multilib set correctly.
3023 2005-05-05 Richard Henderson <rth@redhat.com>
3025 * config/linux/alpha/futex.h: New file.
3026 * configure.tgt (alpha*-*-linux*): Use it.
3028 * config/posix/mutex.c: New file.
3029 * config/posix/sem.c: Use libgomp.h.
3031 * configure.tgt (x86_64-linux): Also test CC for -m32.
3032 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3034 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3037 * Makefile.am (SUBDIRS): New.
3038 (libgomp_la_LDFLAGS): Add -lpthread.
3039 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3040 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3042 * libgomp_g.h: New file.
3043 * libgomp.h: Split out all public declarations to libgomp_g.h.
3044 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3045 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3046 * config/linux/sem.h: Likewise.
3047 * config/posix/sem.h: Likewise.
3049 * Makefile.am (AM_LDFLAGS): New.
3050 (libgomp_version_script): Split out from ...
3051 (libgomp_la_LDFLAGS): ... here.
3052 (libgomp_version_info): New.
3053 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3054 (LIBGOMP_ENABLE): New.
3055 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3056 (LIBGOMP_ENABLE_SYMVERS): New.
3057 * configure.ac (AC_INIT): Version 1.0.
3058 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3059 (enable-linux-futex): Likewise. Rename from enable-futex.
3060 (libtool_VERSION): New.
3061 (LIBGOMP_ENABLE_SYMVERS): Use it.
3062 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3063 * Makefile.in, aclocal.m4, configure: Rebuild.
3065 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3066 (gomp_mutex_unlock_slow): Fix typo.
3067 * config/linux/sem.c: Similarly.
3068 (gomp_sem_post_slow): Fix typo.
3069 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3070 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3071 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3073 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3074 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3075 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3076 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3077 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3078 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3079 LDFLAGS. Pull enable_futex check to top-level.
3080 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3081 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3083 First attempt at real configury.
3084 * Makefile, config.h: Remove file.
3085 * Makefile.am, Makefile.in: New file.
3086 * acinclude.m4 aclocal.m4: New file.
3087 * configure.ac, configure.tgt, configure: New file.
3089 * config/posix/lock.c: Rename from sys-lock.c.
3090 * config/posix/mutex.h: Rename from sys-mutex.h.
3091 * config/posix/sem.c: Rename from sys-sem.c.
3092 * config/posix/sem.h: Rename from sys-sem.h.
3093 * config/posix/proc.c: Rename from sys-proc.c.
3094 * config/posix/time.c: Rename from sys-proc.c.
3096 * config/linux/mutex.c: New file.
3097 * config/linux/mutex.h: New file.
3098 * config/linux/sem.c: New file.
3099 * config/linux/sem.h: New file.
3100 * config/linux/i486/futex.h: New file.
3101 * config/linux/x86_64/futex.h: New file.
3103 2005-05-04 Richard Henderson <rth@redhat.com>
3105 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3106 * libgomp.h: Declare them.
3107 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3108 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3110 2005-05-04 Richard Henderson <rth@redhat.com>
3112 * libgomp-1 code drop
3114 2005-05-04 Richard Henderson <rth@redhat.com>
3116 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3117 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3118 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3119 (gomp_iter_static_next): Update.
3120 (gomp_ordered_static_next): Update.
3121 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3122 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3123 totally empty range.
3124 (gomp_loop_ordered_static_next): Refine test for calling
3125 gomp_ordered_static_next.
3126 * testsuite/ordered-1.c: Add case for more threads than iterations.
3128 * iter.c (gomp_iter_runtime_next_locked): Remove.
3129 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3130 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3131 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3132 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3133 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3134 gomp_loop_ordered_guided_next): Downcase name, make static, add
3135 an external alias with the old name.
3136 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3137 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3138 switch and call one of the above static functions.
3139 * libgomp.h: Update.
3141 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3142 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3143 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3144 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3145 GOMP_loop_ordered_guided_start): Update to match.
3146 * sections.c (GOMP_sections_start): Likewise.
3147 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3149 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3150 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3151 Use bounds check instead of modulus.
3152 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3153 (gomp_ordered_last): Don't sync with ordered_owner here.
3154 (gomp_ordered_next): Likewise.
3155 (gomp_ordered_static_loop_next): Likewise.
3156 * loop.c, libgomp.h: Update to match.
3158 * libgomp.h (GOMP_barrier): Declare.
3160 * testsuite/barrier-1.c: New file.
3161 * testsuite/critical-1.c: New file.
3162 * testsuite/ordered-2.c: New file.
3163 * testsuite/ordered-1.c: New file.
3164 * testsuite/sections-1.c: New file.
3165 * testsuite/single-1.c: New file.
3166 * testsuite/Makefile (TESTS): Add them.
3168 2005-05-04 Richard Henderson <rth@redhat.com>
3170 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3171 * loop.c (GOMP_loop_static_start): If not the startup thread,
3172 acquire the mutex to wait for initialization complete.
3173 (GOMP_loop_ordered_static_start): Likewise.
3174 (GOMP_loop_ordered_runtime_start): Likewise.
3175 (GOMP_loop_ordered_static_first): Remove.
3176 (GOMP_loop_ordered_dynamic_first): Remove.
3177 (GOMP_loop_ordered_guided_first): Remove.
3178 (GOMP_loop_ordered_runtime_first): Remove.
3179 * ordered.c (gomp_ordered_loop_first): Post to own release when
3180 we're the first thread.
3181 (gomp_ordered_loop_last): Wait on release if not owner.
3182 (gomp_ordered_loop_next): Likewise.
3183 (gomp_ordered_static_loop_init): New.
3184 (gomp_ordered_static_loop_next): Use ordered_owner.
3185 (GOMP_ordered_start): Likewise.
3186 * work.c (gomp_new_work_share): Initialize ordered_owner.
3188 2005-05-03 Richard Henderson <rth@redhat.com>
3190 * Makefile (OPT): New.
3193 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3194 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3195 * libgomp.h, libgomp.map, NOTES: Update to match.
3197 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3198 Add initialized and thr members.
3199 (gomp_thread_start): Pause when initially spawned to wait for
3200 the whole team to be created.
3201 (gomp_team_start): Release team members at the end.
3203 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3204 (f_foo_1): Use GOMP_loop_end.
3205 (f_foo_2): Use GOMP_loop_end_nowait.
3207 * testsuite/loop-2.c: New file.
3208 * testsuite/Makefile (TESTS): Add it.
3210 2005-05-03 Richard Henderson <rth@redhat.com>
3212 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3213 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3214 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3217 * testsuite/Makefile: New file.
3218 * testsuite/loop-1.c: New file.
3220 2005-05-03 Richard Henderson <rth@redhat.com>
3222 Initial implementation and checkin.