1 2012-06-14 Jakub Jelinek <jakub@redhat.com>
3 Backported from mainline
4 2012-06-06 Jakub Jelinek <jakub@redhat.com>
7 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8 argument to memset call.
10 2012-06-14 Release Manager
14 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17 * testsuite/libgomp.c/pr52547.c: New test.
19 2012-03-22 Release Manager
23 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
25 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
27 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
31 Remove ENABLE_SYMVERS_SOL2.
32 * configure: Regenerate.
33 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
34 (PREPROCESS): New variable.
35 (libgomp.ver): New target.
36 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
37 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
38 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
40 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
41 * Makefile.in: Regenerate.
43 2012-02-14 Walter Lee <walt@tilera.com>
45 * configure.tgt: Handle tilegx and tilepro.
46 * config/linux/tile/futex.h: New file.
48 2012-02-08 Richard Guenther <rguenther@suse.de>
50 PR tree-optimization/46886
51 * testsuite/libgomp.c/pr46886.c: New testcase.
53 2012-01-25 Matthias Klose <doko@ubuntu.com>
55 * config/linux/arm: Remove empty directory.
56 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
58 2011-12-09 Alan Modra <amodra@gmail.com>
61 * task.c (GOMP_taskwait): Don't access task->children outside of
62 task_lock mutex region.
63 (GOMP_task): Likewise.
65 2011-12-06 Jakub Jelinek <jakub@redhat.com>
68 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
70 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
71 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
72 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
73 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
74 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
76 2011-12-02 Alan Modra <amodra@gmail.com>
78 * config/linux/affinity.c: Use atomic rather than sync builtin.
79 * config/linux/lock.c: Likewise.
80 * config/linux/ptrlock.h: Likewise.
81 * config/linux/ptrlock.c: Likewise.
82 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
83 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
84 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
85 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
86 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
87 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
88 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
89 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
90 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
91 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
93 2011-11-30 Alan Modra <amodra@gmail.com>
96 * config/linux/bar.h: Use atomic rather than sync builtins.
97 * config/linux/bar.c: Likewise. Add missing acquire
98 synchronisation on generation field.
99 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
102 2011-11-30 Alan Modra <amodra@gmail.com>
104 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
105 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
106 * config/linux/mutex.h: Use atomic rather than sync builtins.
107 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
108 * config/linux/omp-lock.h: Comment fix.
109 * config/linux/arm/mutex.h: Delete.
110 * config/linux/powerpc/mutex.h: Delete.
111 * config/linux/ia64/mutex.h: Delete.
112 * config/linux/mips/mutex.h: Delete.
114 2011-11-30 Alan Modra <amodra@gmail.com>
117 * config/linux/sem.h: Rewrite.
118 * config/linux/sem.c: Rewrite.
120 2011-11-28 Richard Henderson <rth@redhat.com>
122 * libgomp.h (enum memmodel): New.
124 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
126 * configure: Regenerate.
128 2011-10-10 Matthias Klose <doko@ubuntu.com>
130 * config/posix95: Remove empty directory.
132 2011-08-26 Jakub Jelinek <jakub@redhat.com>
134 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
136 2011-08-19 Jakub Jelinek <jakub@redhat.com>
139 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
140 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
142 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
144 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
146 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
149 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
151 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
153 * config/linux/proc.h: New.
154 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
155 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
156 (gomp_init_num_threads): Update call to cpuset_popcount.
157 (get_num_procs): Ditto.
158 * config/linux/affinity.c (gomp_init_affinity): Call
159 gomp_cpuset_popcount.
161 2011-08-02 Jakub Jelinek <jakub@redhat.com>
165 * omp.h.in (omp_in_final): New prototype.
166 * omp_lib.f90.in (omp_in_final): New interface.
167 (omp_integer_kind, omp_logical_kind): Remove
168 and replace all its uses in the module with 4.
169 (openmp_version): Change to 201107.
170 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
171 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
172 kind for the parameters.
173 (omp_in_final): New external.
174 (openmp_version): Change to 201107.
175 * task.c (omp_in_final): New function.
176 (gomp_init_task): Initialize final_task.
177 (GOMP_task): Remove unused attribute from flags. Handle final
179 (GOMP_taskyield): New function.
180 (omp_in_final): Return true if if (false) or final (true) task
181 or descendant of final (true).
182 * fortran.c (omp_in_final_): New function.
183 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
184 (GOMP_3.0): Export GOMP_taskyield.
185 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
187 (parse_unsigned_long_list): New function.
188 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
189 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
190 even if parse_affinity returned false.
191 * config/linux/affinity.c (gomp_init_affinity): Handle
192 gomp_cpu_affinity_len == 0.
193 * libgomp_g.h (GOMP_taskyield): New prototype.
194 * libgomp.h (struct gomp_task): Add final_task field.
195 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
196 * team.c (gomp_team_start): Override new task's nthreads_var icv
197 if list form OMP_NUM_THREADS has been used and it has value for
198 the new nesting level.
200 * testsuite/libgomp.c/atomic-11.c: New test.
201 * testsuite/libgomp.c/atomic-12.c: New test.
202 * testsuite/libgomp.c/atomic-13.c: New test.
203 * testsuite/libgomp.c/atomic-14.c: New test.
204 * testsuite/libgomp.c/reduction-6.c: New test.
205 * testsuite/libgomp.c/task-5.c: New test.
206 * testsuite/libgomp.c++/atomic-2.C: New test.
207 * testsuite/libgomp.c++/atomic-3.C: New test.
208 * testsuite/libgomp.c++/atomic-4.C: New test.
209 * testsuite/libgomp.c++/atomic-5.C: New test.
210 * testsuite/libgomp.c++/atomic-6.C: New test.
211 * testsuite/libgomp.c++/atomic-7.C: New test.
212 * testsuite/libgomp.c++/atomic-8.C: New test.
213 * testsuite/libgomp.c++/atomic-9.C: New test.
214 * testsuite/libgomp.c++/task-8.C: New test.
215 * testsuite/libgomp.c++/reduction-4.C: New test.
216 * testsuite/libgomp.fortran/allocatable7.f90: New test.
217 * testsuite/libgomp.fortran/allocatable8.f90: New test.
218 * testsuite/libgomp.fortran/crayptr3.f90: New test.
219 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
220 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
221 * testsuite/libgomp.fortran/pointer1.f90: New test.
222 * testsuite/libgomp.fortran/pointer2.f90: New test.
223 * testsuite/libgomp.fortran/task4.f90: New test.
225 2011-08-02 Tobias Burnus <burnus@net-b.de>
227 * libgomp.texi: Update OpenMP spec references to 3.1.
228 (omp_in_final,OMP_PROC_BIND): New sections.
229 (OMP_NUM_THREADS): Document that the value can be now a list.
230 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
232 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
234 * config/linux/x86/futex.h: Check __x86_64__ instead of
237 2011-07-29 Jakub Jelinek <jakub@redhat.com>
241 * testsuite/libgomp.c/pr49897-1.c: New test.
242 * testsuite/libgomp.c/pr49897-2.c: New test.
243 * testsuite/libgomp.c/pr49898-1.c: New test.
244 * testsuite/libgomp.c/pr49898-2.c: New test.
246 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
248 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
249 for ia32 instead of ilp32.
251 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
252 * testsuite/libgomp.c/atomic-6.c: Likewise.
254 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
256 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
257 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
259 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
262 * config/osf/sem.h: New file.
263 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
265 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
268 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
271 2011-07-15 Jakub Jelinek <jakub@redhat.com>
273 * config/linux/wait.h (do_spin): New inline, largely copied
274 from do_wait, just don't do futex_wait here, instead return true if
276 (do_wait): Implement using do_spin.
277 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
279 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
280 __sync_bool_compare_and_swap, pass the oldval to
281 gomp_mutex_lock_slow.
282 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
283 If all mutex contenders are just spinning and not sleeping, don't
284 change state to 2 unnecessarily. Optimize the loop when state has
285 already become 2 to use just one atomic operation per loop instead
287 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
289 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
290 __sync_bool_compare_and_swap, pass the oldval to
291 gomp_mutex_lock_slow.
293 2011-06-22 Jakub Jelinek <jakub@redhat.com>
296 * iter.c (gomp_iter_static_next): For chunk size 0
297 only use n ceil/ nthreads size for the first
298 n % nthreads threads in the team instead of
299 all threads except for the last few ones which
300 get less work or none at all.
301 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
302 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
303 chunk argument, set run_sched_modifier to 0 for static
304 resp. 1 for other kinds. If chunk argument is 0
305 and not static, set value to 1.
307 2011-05-19 Jakub Jelinek <jakub@redhat.com>
310 * testsuite/libgomp.c++/pr49043.C: New test.
313 * testsuite/libgomp.c++/pr48869.C: New test.
315 2011-05-06 Jakub Jelinek <jakub@redhat.com>
318 * fortran.c: Include limits.h.
320 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
322 (omp_set_num_threads_8_, omp_set_schedule_8_,
323 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
324 omp_get_team_size_8_): Use TO_INT macro.
325 * testsuite/libgomp.fortran/pr48894.f90: New test.
327 2011-04-13 Jakub Jelinek <jakub@redhat.com>
330 * testsuite/libgomp.c/pr48591.c: New test.
332 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
336 * configure: Regenerate.
338 2011-02-27 Jakub Jelinek <jakub@redhat.com>
341 * testsuite/libgomp.fortran/task3.f90: New test.
343 2011-02-24 Tobias Burnus <burnus@net-b.de>
345 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
347 2011-02-23 Jakub Jelinek <jakub@redhat.com>
350 * libgomp.texi (omp_get_wtime): Don't say time in the past
353 2011-02-18 Jakub Jelinek <jakub@redhat.com>
356 * testsuite/libgomp.fortran/fortran.exp: Check for both
357 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
358 but $blddir != "", still append ${blddir}/${lang_library_path}
361 2011-02-16 Tobias Burnus <burnus@net-b.de>
364 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
365 of libquadmath.a before adding its libpath to ldflags.
367 2011-02-14 Jakub Jelinek <jakub@redhat.com>
370 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
371 to FUTEX_WAIT futex syscall.
372 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
374 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
376 * configure: Regenerate.
378 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
381 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
383 2011-01-16 Gerald Pfeifer
385 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
387 2010-12-14 Jakub Jelinek <jakub@redhat.com>
390 * libgomp.fortran/allocatable6.f90: New test.
392 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
395 * configure: Regenerate.
397 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
401 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
402 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
403 * aclocal.m4: Regenerate.
404 * configure: Regenerate.
405 * Makefile.in: Regenerate.
406 * testsuite/Makefile.in: Regenerate.
408 2010-12-02 Jakub Jelinek <jakub@redhat.com>
411 * libgomp.fortran/pr46753.f90: New test.
414 * env.c (initialize_env): Default to spin count 300000
415 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
419 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
420 at the end if sync builtins aren't supported.
422 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
424 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
426 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
428 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
430 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
432 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
434 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
435 Tobias Burnus <burnus@net-b.de>
439 * configure: Regenerate.
441 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
443 * config/linux/futex.h: New.
444 * config/linux/arm/mutex.h: New.
445 * configure.tgt (arm*-*-linux*): Add config path.
447 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
449 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
451 2010-09-23 Tobias Burnus <burnus@net-b.de>
453 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
454 Change Fortran datatype to LOGICAL.
455 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
456 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
458 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
460 * configure: Regenerate.
462 2010-07-26 Jakub Jelinek <jakub@redhat.com>
464 * libgomp.texi: Add function keyword to a couple of Fortran
465 interfaces, use integer instead of int for Fortran.
467 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
469 * libgomp.texi: Fix spelling and pasto problems throughout.
470 Adjust prototypes to match code.
472 2010-07-24 Tobias Burnus <burnus@net-b.de>
474 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
475 silence -fwhole-file warning.
477 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
479 * configure.tgt (*-*-solaris2.[56]*): Removed.
481 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
483 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
484 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
485 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
486 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
487 targetting solaris2*.
488 * configure: Regenerate.
489 * config.h.in: Regenerate.
491 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
492 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
493 Add libgomp_version_dep.
494 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
496 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
497 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
498 * Makefile.in: Regenerate.
500 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
501 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
502 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
503 to common block, protected by
504 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
506 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
508 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
510 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
513 * configure: Regenerate.
515 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
518 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
519 * configure: Regenerate.
520 * Makefile.in: Regenerate.
521 * testsuite/Makefile.in: Regenerate.
523 2010-04-26 Jakub Jelinek <jakub@redhat.com>
526 * testsuite/libgomp.c/pr43893.c: New test.
527 * testsuite/libgomp.c++/pr43893.C: New test.
529 2010-04-21 Jakub Jelinek <jakub@redhat.com>
532 * testsuite/libgomp.fortran/vla8.f90: New test.
534 2010-04-20 Jakub Jelinek <jakub@redhat.com>
537 * config/linux/affinity.c (gomp_init_affinity): Decrease
538 gomp_available_cpus if affinity mask confines the process to fewer
540 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
541 non-NULL, just return gomp_available_cpus.
544 * sections.c (gomp_sections_init): Initialize ws->mode.
546 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
548 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
549 not unused bar variable.
550 * configure: Regenerate.
552 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
554 * Makefile.in: Regenerate.
555 * aclocal.m4: Regenerate.
556 * testsuite/Makefile.in: Regenerate.
558 2010-03-22 Jakub Jelinek <jakub@redhat.com>
561 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
562 (initialize_env): Adjust callers.
563 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
564 when the argument is 0.
566 * testsuite/libgomp.c/pr42942.c: New test.
568 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
572 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
573 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
575 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
577 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
578 * testsuite/libgomp.c++/task-6.C: Likewise.
580 2010-01-28 Steve Ellcey <sje@cup.hp.com>
582 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
584 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
586 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
587 * configure: Regenerate.
589 2010-01-26 Jakub Jelinek <jakub@redhat.com>
592 * testsuite/libgomp.fortran/allocatable5.f90: New test.
594 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
596 * configure.ac: Test for executability of GFORTRAN.
597 * configure: Regenerate.
599 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
601 * configure: Regenerate.
603 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
606 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
608 2010-01-03 Richard Guenther <rguenther@suse.de>
610 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
612 2009-12-23 Sebastian Pop <sebpop@gmail.com>
614 * testsuite/libgomp.graphite/pr4118.c: New.
616 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
618 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
619 for darwin, protect the test with require-effective-target tls_runtime.
620 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
622 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
625 * testsuite/lib/libgomp.exp: Provide -B options to allow for
626 link spec %s substitutions for static libraries.
628 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
631 * libgomp.graphite/force-parallel-2.c: Reduce array size.
633 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
635 * Makefile.in: Regenerate.
636 * configure: Regenerate.
637 * testsuite/Makefile.in: Regenerate.
639 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
641 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
642 settings for LC_ALL and LANG.
644 2009-11-25 Jakub Jelinek <jakub@redhat.com>
647 * testsuite/libgomp.fortran/pr42162.f90: New test.
649 2009-11-13 Jakub Jelinek <jakub@redhat.com>
652 * testsuite/libgomp.c/pr42029.c: New test.
654 2009-10-26 Jakub Jelinek <jakub@redhat.com>
656 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
657 *s. Accept ld version without text in ()s.
658 * configure: Regenerated.
660 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
662 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
664 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
667 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
668 or a hyphen (happens with fortran language disabled).
669 * configure: Regenerate.
671 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
673 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
674 use sed script portable to Solaris /bin/sed for extracting ld
676 * configure: Regenerate.
678 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
680 * testsuite/libgomp.graphite/bounds.c: New test.
682 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
684 * Makefile.am (libgomp_la_LINK): New.
685 * Makefile.in: Regenerate.
687 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
689 * configure.ac (AC_PREREQ): Bump to 2.64.
691 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
693 * Makefile.am (install-html, install-pdf): Remove.
694 * Makefile.in: Regenerate.
696 * Makefile.in: Regenerate.
697 * aclocal.m4: Regenerate.
698 * config.h.in: Regenerate.
699 * configure: Regenerate.
700 * testsuite/Makefile.in: Regenerate.
702 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
704 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
705 * Makefile.in: Regenerate.
707 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
709 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
710 * Makefile.in: Regenerate.
712 2009-08-19 Tobias Burnus <burnus@net-b.de>
715 omp_lib.h.in: Fix -std=f95 errors.
718 2009-08-14 David Edelsohn <edelsohn@gnu.org>
720 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
721 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
722 * testsuite/libgomp.graphite/graphite.exp: New.
724 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
726 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
729 2009-08-04 David Daney <ddaney@caviumnetworks.com>
731 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
732 needed memory barrier semantics.
733 * config/linux/mips/mutex.h: New file.
735 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
737 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
739 2009-07-16 Joseph Myers <joseph@codesourcery.com>
741 * configure: Regenerate.
743 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
748 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
749 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
750 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
752 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
754 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
755 options when choosing a multilib.
757 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
759 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
760 ld_library_path. Use add_path. Add just find_libgcc_s to
761 ld_library_path, not every libgcc multilib directory.
762 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
763 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
764 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
766 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
768 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
770 * Makefile.am (LTLDFLAGS): Define.
772 * Makefile.in: Regenerate.
774 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
777 * testsuite/libgomp.fortran/fortran.exp: Don't link with
778 libgfortranbegin, check existence of libgfortran.a instead of
781 2009-05-20 Jakub Jelinek <jakub@redhat.com>
784 * team.c (gomp_thread_start): Destroy thr->release semaphore.
785 (gomp_free_pool_helper): Likewise.
787 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
788 Jakub Jelinek <jakub@redhat.com>
791 * testsuite/libgomp.fortran/workshare2.f90: New test.
793 2009-04-09 Nick Clifton <nickc@redhat.com>
795 * iter.c: Change copyright header to refer to version 3 of the
796 GNU General Public License with version 3.1 of the GCC Runtime
797 Library Exception and to point readers at the COPYING3 and
798 COPYING3.RUNTIME files and the FSF's license web page.
800 * barrier.c: Likewise.
801 * config/bsd/proc.c: Likewise.
802 * config/linux/affinity.c: Likewise.
803 * config/linux/alpha/futex.h: Likewise.
804 * config/linux/bar.c: Likewise.
805 * config/linux/bar.h: Likewise.
806 * config/linux/ia64/futex.h: Likewise.
807 * config/linux/ia64/mutex.h: Likewise.
808 * config/linux/lock.c: Likewise.
809 * config/linux/mips/futex.h: Likewise.
810 * config/linux/mutex.c: Likewise.
811 * config/linux/mutex.h: Likewise.
812 * config/linux/powerpc/futex.h: Likewise.
813 * config/linux/proc.c: Likewise.
814 * config/linux/ptrlock.c: Likewise.
815 * config/linux/ptrlock.h: Likewise.
816 * config/linux/s390/futex.h: Likewise.
817 * config/linux/sem.c: Likewise.
818 * config/linux/sem.h: Likewise.
819 * config/linux/sparc/futex.h: Likewise.
820 * config/linux/wait.h: Likewise.
821 * config/linux/x86/futex.h: Likewise.
822 * config/mingw32/proc.c: Likewise.
823 * config/mingw32/time.c: Likewise.
824 * config/posix/affinity.c: Likewise.
825 * config/posix/bar.c: Likewise.
826 * config/posix/bar.h: Likewise.
827 * config/posix/lock.c: Likewise.
828 * config/posix/mutex.h: Likewise.
829 * config/posix/proc.c: Likewise.
830 * config/posix/ptrlock.h: Likewise.
831 * config/posix/sem.c: Likewise.
832 * config/posix/sem.h: Likewise.
833 * config/posix/time.c: Likewise.
834 * config/posix95/lock.c: Likewise.
835 * critical.c: Likewise.
838 * fortran.c: Likewise.
839 * iter_ull.c: Likewise.
840 * libgomp.h: Likewise.
841 * libgomp_f.h.in: Likewise.
842 * libgomp_g.h: Likewise.
844 * loop_ull.c: Likewise.
845 * omp.h.in: Likewise.
846 * omp_lib.f90.in: Likewise.
847 * omp_lib.h.in: Likewise.
848 * ordered.c: Likewise.
849 * parallel.c: Likewise.
850 * sections.c: Likewise.
851 * single.c: Likewise.
856 2009-04-09 Jakub Jelinek <jakub@redhat.com>
858 * testsuite/config/default.exp: Change copyright header to refer to
859 version 3 of the GNU General Public License and to point readers
860 at the COPYING3 file and the FSF's license web page.
862 2009-04-08 Jakub Jelinek <jakub@redhat.com>
865 * libgomp.c++/pr39573.C: New test.
867 2009-04-01 Jakub Jelinek <jakub@redhat.com>
870 * testsuite/libgomp.c/pr39591-1.c: New test.
871 * testsuite/libgomp.c/pr39591-2.c: New test.
872 * testsuite/libgomp.c/pr39591-3.c: New test.
874 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
876 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
877 * testsuite/libgomp.c/atomic-6.c: Ditto.
879 2009-03-23 Jakub Jelinek <jakub@redhat.com>
882 * testsuite/libgomp.c/loop-12.c: New test.
883 * testsuite/libgomp.c/loop-11.c: New test.
884 * testsuite/libgomp.c++/loop-11.C: New test.
885 * testsuite/libgomp.c++/loop-12.C: New test.
886 * testsuite/libgomp.c++/for-8.C: New test.
888 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
890 * configure: Regenerate.
892 2009-02-11 Jakub Jelinek <jakub@redhat.com>
895 * testsuite/libgomp.c/pr39154.c: New test.
897 2009-01-30 Ian Lance Taylor <iant@google.com>
899 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
900 libgomp_ld_is_gold. Get gold version number.
901 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
902 * configure: Rebuild.
904 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
906 * testsuite/lib/libgomp.exp: Add -B option for targets that
907 use libgfortran.a%s in their specs.
909 2009-01-07 Jakub Jelinek <jakub@redhat.com>
912 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
913 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
914 HAVE_AS_SYMVER_DIRECTIVE is not defined.
915 * configure: Regenerated.
916 * config.h.in: Likewise.
918 2008-12-28 Jakub Jelinek <jakub@redhat.com>
921 * testsuite/libgomp.c/pr38650.c: New test.
922 * testsuite/libgomp.c++/pr38650.C: New test.
924 2008-12-27 Jakub Jelinek <jakub@redhat.com>
926 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
928 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
930 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
932 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
934 * configure: Regenerate.
936 2008-12-08 Jakub Jelinek <jakub@redhat.com>
939 * testsuite/libgomp.c/pr36802-1.c: New test.
940 * testsuite/libgomp.c/pr36802-2.c: New test.
941 * testsuite/libgomp.c/pr36802-3.c: New test.
943 2008-12-01 Janis Johnson <janis187@us.ibm.com>
946 * config/linux/powerpc/mutex.h: New.
948 2008-12-01 Jakub Jelinek <jakub@redhat.com>
951 * testsuite/libgomp.c++/for-7.C: New test.
954 * testsuite/libgomp.c++/for-6.C: New test.
956 2008-11-26 Janis Johnson <janis187@us.ibm.com>
959 * testsuite/lib/libgomp.exp: Include new timeout library files.
960 (libgomp_target_compile): Set timeout value from new proc.
962 2008-11-13 Steve Ellcey <sje@cup.hp.com>
965 * config/linux/ia64/mutex.h: New.
967 2008-11-04 Tobias Burnus <burnus@net-b.de>
970 * libgomp.texi (Runtime library routines, environment variables):
971 Update for OpenMP version 3.0.
973 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
974 Steve Ellcey <sje@cup.hp.com>
976 * configure: Regenerate for new libtool.
977 * Makefile.in: Ditto.
978 * testsuite/Makefile.in: Ditto.
980 2008-09-19 Jakub Jelinek <jakub@redhat.com>
981 Andreas Tobler <a.tobler@schweiz.org>
983 * config/bsd/proc.c: New file.
984 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
985 * configure.ac: Check for header <sys/sysctl.h>
986 * configure: Regenerate.
987 * config.h.in: Likewise.
989 2008-09-05 Janis Johnson <janis187@us.ibm.com>
991 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
993 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
995 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
996 * Makefile.in: Regenerated.
997 * testsuite/Makefile.in: Regenerated.
999 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1001 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1002 depend on blddir if blddir exists.
1003 (libgomp_target_compile): Likewise.
1004 * testsuite/libgomp.c++/c++.exp: Likewise.
1005 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1007 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1009 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1010 Do not list GPL as Invariant Section.
1012 2008-07-28 Ilie Garbacea <ilie@mips.com>
1013 Chao-ying Fu <fu@mips.com>
1015 * configure.tgt: Enable futex for MIPS.
1016 * config/linux/mips/futex.h: New file.
1018 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1020 * team.c (gomp_team_end): Free team immediately if it has
1023 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1025 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1026 * testsuite/libgomp.fortran/fortran.exp: Same.
1027 * testsuite/libgomp.c/c.exp: Same.
1028 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1029 directory to library path first.
1031 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1033 * env.c (parse_stacksize): Add cast to avoid warning.
1034 (parse_spincount): Likewise.
1036 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1038 * testsuite/libgomp.c/loop-10.c: New test.
1039 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1040 * libgomp.c++/loop-6.C (main): Likewise.
1043 * testsuite/libgomp.c/debug-1.c: New test.
1045 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1047 * testsuite/libgomp.c/nqueens-1.c: New test.
1050 * testsuite/libgomp.c++/task-7.C: New function.
1052 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1054 * configure: Regenerate.
1056 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1058 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1059 mutex when HAVE_SYNC_BUILTINS isn't defined.
1061 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1063 * libgomp.texi (omp_test_lock): Fix typo.
1065 2008-06-12 Tobias Burnus <burnus@net-b.de>
1067 * omp_lib.f90.in: Add "implicit none".
1069 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1072 * testsuite/libgomp.c/reduction-5.c: New test.
1074 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1076 * libgomp.h (struct gomp_task): Add in_tied_task field.
1077 * task.c (gomp_init_task): Initialize it.
1078 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1079 unconditionally. Don't call gomp_team_barrier_wake if
1080 current task is implicit or if(0) from implicit and number of
1081 running tasks is equal to nthreads - 1.
1084 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1085 omp_get_team_size_8): Fix pastos.
1088 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1089 * configure: Regenerated.
1090 * config.h.in: Regenerated.
1091 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1094 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1097 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1098 (GOMP_loop_ull_dynamic_start): Likewise.
1099 (GOMP_loop_ull_guided_start): Likewise.
1100 (GOMP_loop_ull_ordered_static_start): Likewise.
1101 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1102 (GOMP_loop_ull_ordered_guided_start): Likewise.
1104 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1105 Richard Henderson <rth@redhat.com>
1106 Ulrich Drepper <drepper@redhat.com>
1107 Jakob Blomer <jakob.blomer@ira.uka.de>
1109 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1110 Substitute also OMP_*LOCK_25*.
1111 * configure: Regenerated.
1112 * config.h.in: Regenerated.
1113 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1114 ptrlock.c and task.c.
1115 * Makefile.in: Regenerated.
1116 * testsuite/Makefile.in: Regenerated.
1118 * loop_ull.c: New file.
1119 * iter_ull.c: New file.
1120 * libgomp.h: Include ptrlock.h.
1121 (enum gomp_task_kind): New type.
1122 (struct gomp_team): Add task_lock, task_queue, task_count,
1123 task_running_count, single_count fields. Add
1124 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1125 Remove work_share_lock, generation_mask,
1126 oldest_live_gen, num_live_gen and init_work_shares fields, add
1127 work work_share_list_alloc, work_share_list_free and work_share_chunk
1128 fields. Change work_shares from pointer to pointers into an array.
1129 Change ordered_release field into gomp_sem_t ** from flexible array
1130 member. Add implicit_task and initial_work_shares fields.
1131 Move close to the end of the struct.
1132 (struct gomp_team_state): Add single_count, last_work_share,
1133 active_level and level fields, remove work_share_generation.
1134 (gomp_barrier_handle_tasks): New prototype.
1135 (gomp_finish_task): New inline function.
1136 (struct gomp_work_share): Move chunk_size, end, incr into
1137 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1138 next_ll fields. Reshuffle fields. Add next_alloc,
1139 next_ws, next_free and inline_ordered_team_ids fields, change
1140 ordered_team_ids into pointer from flexible array member.
1141 Add mode field. Put lock and next into a different cache line
1142 from most of the write-once fields.
1143 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1144 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1145 gomp_iter_ull_guided_next): New prototypes.
1146 (gomp_new_icv): New prototype.
1147 (struct gomp_thread): Add thread_pool and task fields.
1148 (struct gomp_thread_pool): New type.
1149 (gomp_new_team): New prototype.
1150 (gomp_team_start): Change type of last argument.
1151 (gomp_new_work_share): Removed.
1152 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1153 (gomp_work_share_init_done): New static inline.
1154 (gomp_throttled_spin_count_var, gomp_available_cpus,
1155 gomp_managed_threads): New extern decls.
1156 (gomp_init_task): New prototype.
1157 (gomp_spin_count_var): New extern var decl.
1158 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1159 or no alias support, or if not PIC.
1160 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1161 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1162 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1163 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1164 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1165 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1166 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1167 gomp_test_nest_lock_25): New prototypes.
1168 (omp_lock_symver, strong_alias): Define.
1169 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1171 (gomp_end_task): New.
1172 (struct gomp_task_icv, gomp_global_icv): New.
1173 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1174 (struct gomp_task): New.
1175 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1176 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1178 (gomp_schedule_type): Reorder enum to match
1180 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1182 (gomp_thread_start): Add gomp_team_barrier_wait call.
1183 For non-nested case remove clearing of docked thread thr fields.
1184 Use pool fields instead of global gomp_* variables. Use
1185 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1186 Create tasks for each member thread.
1187 (free_team): Only destroy team barrier, task_lock here and free it.
1188 (gomp_free_thread): Free last_team if non-NULL.
1189 (gomp_team_end): Call gomp_team_barrier_wait instead of
1190 gomp_barrier_wait. For nested case call one extra
1191 gomp_barrier_wait. Move here some destruction from free_team.
1192 Call free_team on pool->last_team if any, rather than freeing
1193 current team. Destroy work_share_list_free_lock ifndef
1195 (gomp_new_icv): New function.
1196 (gomp_threads, gomp_threads_size, gomp_threads_used,
1197 gomp_threads_dock): Removed.
1198 (gomp_thread_destructor): New variable.
1199 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1201 (gomp_team_start): Create new pool if current thread doesn't have
1202 one. Use pool fields instead of global gomp_* variables.
1203 Initialize thread_pool field for new threads. Clear single_count.
1204 Change last argument from ws to team, don't create
1205 new team, set ts.work_share to &team->work_shares[0] and clear
1206 ts.last_work_share. Don't clear ts.work_share_generation.
1207 If number of threads changed, adjust atomically gomp_managed_threads.
1208 Use gomp_init_task instead of gomp_new_task,
1209 set thr->task to the corresponding implicit_task array entry.
1210 Create tasks for each member thread. Initialize ts.level.
1211 (initialize_team): Call pthread_key_create on
1212 gomp_thread_destructor.
1213 (team_destructor): New function.
1214 (new_team): Removed.
1215 (gomp_new_team): New function.
1216 (free_team): Free gomp_work_share blocks chained through next_alloc,
1217 instead of freeing work_shares and destroying work_share_lock.
1218 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1219 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1220 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1221 of gomp_barrier_wait.
1222 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1223 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1224 if gomp_work_share_start returned true. Don't unlock ws->lock.
1225 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1226 of gomp_barrier_wait.
1227 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1228 gomp_work_share_init_done if gomp_work_share_start returned true.
1229 Don't unlock ws->lock.
1230 * work.c: Include stddef.h.
1231 (free_work_share): Use work_share_list_free_lock instead
1232 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1233 Call gomp_fini_work_share and then either free ws if orphaned, or
1234 put it into work_share_list_free list of the current team.
1235 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1237 (gomp_work_share_start, gomp_work_share_end,
1238 gomp_work_share_end_nowait): Rewritten.
1239 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1240 (openmp_version): Set to 200805.
1241 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1242 omp_sched_guided, omp_sched_auto): New parameters.
1243 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1244 omp_set_max_active_levels, omp_get_max_active_levels,
1245 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1246 omp_get_active_level): New interfaces.
1247 * omp_lib.h.in (openmp_version): Set to 200805.
1248 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1249 omp_sched_guided, omp_sched_auto): New parameters.
1250 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1251 omp_set_max_active_levels, omp_get_max_active_levels,
1252 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1253 omp_get_active_level): New externals.
1254 * loop.c: Include limits.h.
1255 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1257 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1258 Likewise. Use gomp_icv.
1259 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1260 ts.static_trip here.
1261 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1262 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1263 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1264 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1265 don't unlock ws->lock, otherwise lock it.
1266 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1267 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1268 (gomp_parallel_loop_start): Call gomp_new_team instead of
1269 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1270 Adjust gomp_team_start caller. Pass 0 as second argument to
1271 gomp_resolve_num_threads.
1272 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1273 If adding ws->chunk_size nthreads + 1 times after end won't
1274 overflow, set ws->mode to 1.
1275 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1276 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1277 GOMP_loop_ull_ordered_static_start,
1278 GOMP_loop_ull_ordered_dynamic_start,
1279 GOMP_loop_ull_ordered_guided_start,
1280 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1281 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1282 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1283 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1284 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1286 * libgomp.map: Export lock routines also @@OMP_2.0.
1287 (GOMP_loop_ordered_dynamic_first,
1288 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1289 GOMP_loop_ordered_static_first): Remove.
1290 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1291 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1292 GOMP_loop_ull_ordered_dynamic_next,
1293 GOMP_loop_ull_ordered_dynamic_start,
1294 GOMP_loop_ull_ordered_guided_next,
1295 GOMP_loop_ull_ordered_guided_start,
1296 GOMP_loop_ull_ordered_runtime_next,
1297 GOMP_loop_ull_ordered_runtime_start,
1298 GOMP_loop_ull_ordered_static_next,
1299 GOMP_loop_ull_ordered_static_start,
1300 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1301 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1302 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1303 (omp_set_schedule, omp_get_schedule,
1304 omp_get_thread_limit, omp_set_max_active_levels,
1305 omp_get_max_active_levels, omp_get_level,
1306 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1307 omp_set_schedule_, omp_set_schedule_8_,
1308 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1309 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1310 omp_get_max_active_levels_, omp_get_level_,
1311 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1312 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1313 New exports @@OMP_3.0.
1314 * omp.h.in (omp_sched_t): New type.
1315 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1316 omp_set_max_active_levels, omp_get_max_active_levels,
1317 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1318 omp_get_active_level): New prototypes.
1319 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1320 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1321 gomp_thread_limit_var, gomp_remaining_threads_count,
1322 gomp_remaining_threads_lock): New variables.
1323 (parse_spincount): New function.
1324 (initialize_env): Call gomp_init_num_threads unconditionally.
1325 Initialize gomp_available_cpus. Call parse_spincount,
1326 initialize gomp_{,throttled_}spin_count_var
1327 depending on presence and value of OMP_WAIT_POLICY and
1328 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1329 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1330 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1331 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1332 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1333 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1334 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1335 (gomp_global_icv): New.
1336 (parse_schedule): Use it. Parse "auto".
1337 (omp_set_num_threads): Use gomp_icv.
1338 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1340 (omp_get_max_threads): Move from parallel.c.
1341 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1342 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1344 (parse_stacksize, parse_wait_policy): New functions.
1345 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1346 both wrappers for compatibility and new locks.
1347 (omp_set_schedule, omp_get_schedule,
1348 omp_get_thread_limit, omp_set_max_active_levels,
1349 omp_get_max_active_levels, omp_get_level,
1350 omp_get_ancestor_thread_num, omp_get_team_size,
1351 omp_get_active_level): New ialias_redirect.
1352 (omp_set_schedule_, omp_set_schedule_8_,
1353 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1354 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1355 omp_get_max_active_levels_, omp_get_level_,
1356 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1357 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1359 * parallel.c: Include limits.h.
1360 (gomp_resolve_num_threads): Add count argument. Rewritten.
1361 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1362 argument to gomp_team_start. Pass 0 as second argument to
1363 gomp_resolve_num_threads.
1364 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1365 if gomp_thread_limit_var != ULONG_MAX.
1366 (omp_in_parallel): Implement using ts.active_level.
1367 (omp_get_max_threads): Move to env.c.
1368 (omp_get_level, omp_get_ancestor_thread_num,
1369 omp_get_team_size, omp_get_active_level): New functions,
1371 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1372 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1373 gomp_iter_dynamic_next instead of the _locked variant and don't take
1374 lock around it, otherwise acquire it before calling
1375 gomp_iter_dynamic_next_locked.
1376 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1377 gomp_iter_dynamic_next instead of the _locked variant and don't take
1379 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1380 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1381 Adjust gomp_team_start caller. Pass count as second argument to
1382 gomp_resolve_num_threads, don't adjust num_threads after the call.
1384 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1385 ws->chunk_size by incr.
1386 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1388 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1390 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1391 (omp_check_defines): Check even the compat defines.
1392 * config/linux/ptrlock.c: New file.
1393 * config/linux/ptrlock.h: New file.
1394 * config/linux/wait.h: New file.
1395 * config/posix/ptrlock.c: New file.
1396 * config/posix/ptrlock.h: New file.
1397 * config/linux/bar.h (gomp_team_barrier_wait,
1398 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1399 (gomp_team_barrier_set_task_pending,
1400 gomp_team_barrier_clear_task_pending,
1401 gomp_team_barrier_set_waiting_for_tasks,
1402 gomp_team_barrier_waiting_for_tasks,
1403 gomp_team_barrier_done): New inlines.
1404 (gomp_barrier_t): Rewritten.
1405 (gomp_barrier_state_t): New typedef.
1406 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1407 gomp_barrier_wait_start): Rewritten.
1408 (gomp_barrier_wait_end): Change second argument to
1409 gomp_barrier_state_t.
1410 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1412 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1414 (gomp_barrier_wait_end): Rewritten.
1415 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1416 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1417 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1418 (gomp_barrier_state_t): New typedef.
1419 (gomp_team_barrier_wait,
1420 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1421 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1422 into the return value. Return gomp_barrier_state_t.
1423 (gomp_team_barrier_set_task_pending,
1424 gomp_team_barrier_clear_task_pending,
1425 gomp_team_barrier_set_waiting_for_tasks,
1426 gomp_team_barrier_waiting_for_tasks,
1427 gomp_team_barrier_done): New inlines.
1428 (gomp_barrier_wait_end): Change second argument to
1429 gomp_barrier_state_t.
1430 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1432 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1433 (gomp_barrier_wait_end): Change second argument to
1434 gomp_barrier_state_t.
1435 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1436 gomp_team_barrier_wake): New functions.
1437 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1439 (gomp_futex_wake, gomp_futex_wait): New variables.
1440 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1441 * config/linux/lock.c: Rewrite to make locks task owned,
1442 for backwards compatibility provide the old entrypoints
1443 if symbol versioning. Include wait.h instead of libgomp.h and
1445 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1446 * config/posix95/lock.c: Rewrite to make locks task owned,
1447 for backwards compatibility provide the old entrypoints
1448 if symbol versioning.
1449 * config/posix/lock.c: Rewrite to make locks task owned,
1450 for backwards compatibility provide the old entrypoints
1451 if symbol versioning.
1452 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1453 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1454 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1455 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1456 (sys_futex0): Return error code.
1457 (futex_wake, futex_wait): If ENOSYS was returned, clear
1458 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1459 (cpu_relax, atomic_write_barrier): New static inlines.
1460 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1461 (futex_wake, futex_wait): If ENOSYS was returned, clear
1462 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1463 (cpu_relax, atomic_write_barrier): New static inlines.
1464 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1465 (sys_futex0): Return error code.
1466 (futex_wake, futex_wait): If ENOSYS was returned, clear
1467 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1468 (cpu_relax, atomic_write_barrier): New static inlines.
1469 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1470 (sys_futex0): Return error code.
1471 (futex_wake, futex_wait): If ENOSYS was returned, clear
1472 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1473 (cpu_relax, atomic_write_barrier): New static inlines.
1474 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1475 (sys_futex0): Return error code.
1476 (futex_wake, futex_wait): If ENOSYS was returned, clear
1477 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1478 (cpu_relax, atomic_write_barrier): New static inlines.
1479 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1480 (sys_futex0): Return error code.
1481 (futex_wake, futex_wait): If ENOSYS was returned, clear
1482 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1483 (cpu_relax, atomic_write_barrier): New static inlines.
1484 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1486 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1487 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1488 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1490 (omp_nest_lock_t): Change owner into void *, add lock field.
1491 * config/posix95/omp-lock.h: Include semaphore.h.
1492 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1493 (omp_lock_t): Use sem_t instead of mutex if semaphores
1495 (omp_nest_lock_t): Likewise. Change owner to void *.
1496 * config/posix/omp-lock.h: Include semaphore.h.
1497 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1498 (omp_lock_t): Use sem_t instead of mutex if semaphores
1500 (omp_nest_lock_t): Likewise. Add owner field.
1502 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1504 * testsuite/libgomp.c/collapse-1.c: New test.
1505 * testsuite/libgomp.c/collapse-2.c: New test.
1506 * testsuite/libgomp.c/collapse-3.c: New test.
1507 * testsuite/libgomp.c/icv-1.c: New test.
1508 * testsuite/libgomp.c/icv-2.c: New test.
1509 * testsuite/libgomp.c/lib-2.c: New test.
1510 * testsuite/libgomp.c/lock-1.c: New test.
1511 * testsuite/libgomp.c/lock-2.c: New test.
1512 * testsuite/libgomp.c/lock-3.c: New test.
1513 * testsuite/libgomp.c/loop-4.c: New test.
1514 * testsuite/libgomp.c/loop-5.c: New test.
1515 * testsuite/libgomp.c/loop-6.c: New test.
1516 * testsuite/libgomp.c/loop-7.c: New test.
1517 * testsuite/libgomp.c/loop-8.c: New test.
1518 * testsuite/libgomp.c/loop-9.c: New test.
1519 * testsuite/libgomp.c/nested-3.c: New test.
1520 * testsuite/libgomp.c/nestedfn-6.c: New test.
1521 * testsuite/libgomp.c/sort-1.c: New test.
1522 * testsuite/libgomp.c/task-1.c: New test.
1523 * testsuite/libgomp.c/task-2.c: New test.
1524 * testsuite/libgomp.c/task-3.c: New test.
1525 * testsuite/libgomp.c/task-4.c: New test.
1526 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1527 to C++ testsuite default compiler options.
1528 * testsuite/libgomp.c++/collapse-1.C: New test.
1529 * testsuite/libgomp.c++/collapse-2.C: New test.
1530 * testsuite/libgomp.c++/ctor-10.C: New test.
1531 * testsuite/libgomp.c++/for-1.C: New test.
1532 * testsuite/libgomp.c++/for-2.C: New test.
1533 * testsuite/libgomp.c++/for-3.C: New test.
1534 * testsuite/libgomp.c++/for-4.C: New test.
1535 * testsuite/libgomp.c++/for-5.C: New test.
1536 * testsuite/libgomp.c++/loop-8.C: New test.
1537 * testsuite/libgomp.c++/loop-9.C: New test.
1538 * testsuite/libgomp.c++/loop-10.C: New test.
1539 * testsuite/libgomp.c++/task-1.C: New test.
1540 * testsuite/libgomp.c++/task-2.C: New test.
1541 * testsuite/libgomp.c++/task-3.C: New test.
1542 * testsuite/libgomp.c++/task-4.C: New test.
1543 * testsuite/libgomp.c++/task-5.C: New test.
1544 * testsuite/libgomp.c++/task-6.C: New test.
1545 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1546 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1547 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1548 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1549 * testsuite/libgomp.fortran/collapse1.f90: New test.
1550 * testsuite/libgomp.fortran/collapse2.f90: New test.
1551 * testsuite/libgomp.fortran/collapse3.f90: New test.
1552 * testsuite/libgomp.fortran/collapse4.f90: New test.
1553 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1554 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1555 * testsuite/libgomp.fortran/lib4.f90: New test.
1556 * testsuite/libgomp.fortran/lock-1.f90: New test.
1557 * testsuite/libgomp.fortran/lock-2.f90: New test.
1558 * testsuite/libgomp.fortran/nested1.f90: New test.
1559 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1560 * testsuite/libgomp.fortran/strassen.f90: New test.
1561 * testsuite/libgomp.fortran/tabs1.f90: New test.
1562 * testsuite/libgomp.fortran/tabs2.f: New test.
1563 * testsuite/libgomp.fortran/task1.f90: New test.
1564 * testsuite/libgomp.fortran/task2.f90: New test.
1565 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1566 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1567 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1568 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1569 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1571 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1574 * testsuite/libgomp.c++/ctor-11.C: New test.
1575 * testsuite/libgomp.c++/ctor-12.C: New test.
1577 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1579 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1581 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1584 * testsuite/libgomp.c/atomic-5.c: New test.
1585 * testsuite/libgomp.c/atomic-6.c: New test.
1586 * testsuite/libgomp.c/autopar-1.c: New test.
1588 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1590 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1591 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1592 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1593 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1594 * configure: Regenerate.
1595 * Makefile.in, testsuite/Makefile.in: Likewise.
1597 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1600 * aclocal.m4: Regenerate.
1601 * configure: Regenerate.
1603 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1606 * testsuite/libgomp.c/atomic-4.c: New test.
1609 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1610 (gomp_iter_guided_next): Likewise.
1611 * testsuite/libgomp.c/pr35625.c: New test.
1613 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1615 * aclocal.m4: Regenerate.
1616 * configure: Likewise.
1617 * Makefile.in: Likewise.
1618 * testsuite/Makefile.in: Likewise.
1620 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1623 * testsuite/libgomp.c++/pr35185.C: New test.
1625 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1628 * testsuite/libgomp.c/pr35549.c: New test.
1630 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1632 * testsuite/libgomp.c/atomic-3.c: New test.
1634 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1637 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1640 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1643 * configure.ac: Add ACX_HEADER_STRING.
1644 * env.c: Include strings.h.
1645 * aclocal.m4: Regenerate.
1646 * config.h.in: Regenerate.
1647 * configure: Regenerate.
1648 * Makefile.in: Regenerate.
1649 * testsuite/Makefile.in: Regenerate.
1651 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1654 * testsuite/libgomp.c/pr35196.c: New test.
1657 * testsuite/libgomp.fortran/pr35130.f90: New test.
1658 * testsuite/libgomp.c/pr35130.c: New test.
1660 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1663 * testsuite/libgomp.c/pr33880.c: New test.
1664 * testsuite/libgomp.fortran/pr33880.f90: New test.
1666 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1668 * configure: Regenerate.
1670 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1672 * configure.ac: Move futex checking into ../config/futex.m4.
1673 * configure: Rebuilt.
1674 * aclocal.m4: Rebuilt.
1675 * Makefile.in: Rebuilt.
1677 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1678 2007-10-15 ../config/tls.m4 change.
1680 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1683 * testsuite/libgomp.c/pr34513.c: New test.
1684 * testsuite/libgomp.c++/pr34513.C: New test.
1686 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1689 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1691 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1693 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1695 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1697 * testsuite/libgomp.c/private-1.c: New test.
1699 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1700 Paolo Bonzini <bonzini@gnu.org>
1702 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1703 instead of 'VPATH ='.
1704 * Makefile.in: Regenerate.
1706 2007-11-23 Matthias Klose <doko@ubuntu.com>
1708 * configure.ac: Adjust makeinfo version check.
1709 * configure: Regenerate.
1711 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1714 * testsuite/libgomp.fortran/pr34020.f90: New test.
1716 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1719 * testsuite/libgomp.c++/atomic-1.C: New test.
1721 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1724 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1725 Make x and y integers rather than (implicit) reals. Add private (j)
1726 clause to the last omp parallel.
1728 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1730 * configure: Regenerate following changes to ../config/tls.m4.
1732 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1734 * testsuite/libgomp.fortran/stack.f90: New test.
1736 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1738 * config/mingw32/proc.c: New file.
1740 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1742 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1743 (main): Use __get_cpuid to get i386 target fetaures.
1744 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1745 (main): Use __get_cpuid to get x86_64 target fetaures.
1747 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1750 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1751 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1753 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1756 * testsuite/libgomp.fortran/pr32550.f90: New test.
1757 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1759 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1761 * aclocal.m4: Regenerated.
1763 2007-07-05 Tobias Burnus <burnus@net-b.de>
1766 * testsuite/libgomp.fortran/pr32359.f90: New.
1768 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1771 * sections.c (GOMP_parallel_sections_start): Only decrease
1772 number of threads to COUNT if dyn_var is true.
1773 * testsuite/libgomp.c/pr32468.c: New test.
1775 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1778 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1780 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1783 * testsuite/libgomp.c/pr32362-1.c: New test.
1784 * testsuite/libgomp.c/pr32362-2.c: New test.
1785 * testsuite/libgomp.c/pr32362-3.c: New test.
1787 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1789 * team.c (gomp_team_start): Fix setting up thread_attr
1792 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1794 * configure: Regenerate.
1796 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1798 * Makefile.in: Regenerate.
1799 * configure: Regenerate.
1800 * aclocal.m4: Regenerate.
1801 * testsuite/Makefile.in: Regenerate.
1803 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1805 * config/linux/proc.c: New file.
1808 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1810 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1812 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1814 2007-04-16 Matthias Klose <doko@debian.org>
1816 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1817 flags if not building with -m64.
1818 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1819 flag for i?86-*-* targets, if current target matches -m64.
1821 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1823 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1824 * Makefile.in: Regenerate.
1826 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1829 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1831 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1833 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1835 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1837 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1838 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1839 (parse_affinity): New function.
1840 (initialize_env): Call it and gomp_init_affinity.
1841 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1842 create new pthread_attr_t and call gomp_init_thread_affinity
1843 on it for each thread before passing the attribute to pthread_create.
1844 * config/linux/affinity.c: New file.
1845 * config/posix/affinity.c: New file.
1846 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1847 * configure: Rebuilt.
1848 * config.h.in: Rebuilt.
1849 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1850 * Makefile.in: Rebuilt.
1852 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1854 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1856 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1857 and use it if found.
1859 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1861 * testsuite/config/default.exp: New file.
1862 * testsuite/lib/libgomp.exp: New file.
1863 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1864 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1865 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1866 (libgomp_load): Remove.
1867 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1868 always_ld_library_path, not ld_library_path. Set additional_flags
1869 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1870 (target_compile): Do not call libgomp_init. Append lang_library_path
1871 and lang_link_flags to options.
1872 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1873 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1875 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1876 always_ld_library_path. Set LD_LIBRARY_PATH here.
1877 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1878 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1879 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1881 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1882 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1883 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1884 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1885 * testsuite/libgomp.c/atomic-10.c: Ditto.
1887 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1889 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1890 dg-final cleanup-modules line.
1891 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1892 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1893 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1894 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1895 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1896 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1897 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1899 2007-03-18 Andreas Schwab <schwab@suse.de>
1901 * acinclude.m4: Adjust regular expression for ld version
1903 * configure: Regenerate.
1905 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1907 * Makefile.am: Add install-pdf target as copied from
1908 automake v1.10 rules.
1909 * Makefile.in: Regenerate
1911 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1914 * configure: Regenerate.
1917 * testsuite/libgomp.c++/pr30703.C: New test.
1919 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1922 2006-07-05 Eric Christopher <echristo@apple.com>
1923 * configure.ac: Depend addition of -pthread on host OS.
1924 * configure: Regenerate.
1926 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1928 * libgomp.texi: Fix spacing after abbreviations.
1930 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1933 * configure.ac: Add check for makeinfo
1934 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1935 if an appropiate version of makeinfo is found.
1936 * aclocal.m4: Regenerated.
1937 * configure: Regenerated.
1938 * Makefile.in: Regenerated.
1939 * testsuite/Makefile.in: Regenerated.
1941 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1944 * libgomp.texi: More about implementation-dependent settings.
1946 2007-01-26 Tobias Burnus <burnus@net-b.de>
1948 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1950 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1953 * testsuite/libgomp.c/pr30494.c: New test.
1955 2007-01-15 Tom Tromey <tromey@redhat.com>
1957 * configure: Rebuilt.
1958 * configure.ac: Fixed comment.
1960 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1962 * libgomp.texi: Document implementation specific default values of
1963 environment variables.
1965 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1968 * libgomp.texi: New file.
1969 * configure.ac: Add --enable-generated-files-in-srcdir option.
1970 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1972 * Makefile.in: Regenerated.
1973 * config.h.in: Regenerated.
1974 * testsuite/Makefile.in: Regenerated.
1977 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1980 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1982 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1984 * configure: Regenerate.
1986 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1989 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1990 start if there shouldn't be any loop iterations.
1991 (gomp_loop_ordered_static_start): Remove start == end test.
1992 * testsuite/libgomp.c/pr29947-1.c: New test.
1993 * testsuite/libgomp.c/pr29947-2.c: New test.
1995 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1997 * configure.tgt: Force initial-exec TLS model on Linux only.
1999 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2001 * configure: Regenerated.
2003 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2005 * env.c (parse_schedule): Reject out of range values.
2006 (parse_unsigned_long): Reject out of range, negative or zero values.
2008 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2011 * testsuite/libgomp.fortran/pr29629.f90: New test.
2013 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2016 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2017 * config/posix95: New directory.
2018 * config/posix95/omp-lock.h: New file.
2019 * config/posix95/lock.c: Likewise.
2021 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2023 * aclocal.m4: Regenerate.
2024 * configure: Regenerate.
2026 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2028 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2031 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2033 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2035 * configure: Regenerate.
2036 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2038 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2042 * testsuite/libgomp.c/nestedfn-4.c: New test.
2043 * testsuite/libgomp.c/nestedfn-5.c: New test.
2044 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2047 * testsuite/libgomp.fortran/condinc1.f: New test.
2048 * testsuite/libgomp.fortran/condinc2.f: New test.
2049 * testsuite/libgomp.fortran/condinc3.f90: New test.
2050 * testsuite/libgomp.fortran/condinc4.f90: New test.
2051 * testsuite/libgomp.fortran/condinc1.inc: New file.
2053 2006-09-18 Tom Tromey <tromey@redhat.com>
2055 * configure: Rebuilt.
2057 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2060 PR preprocessor/14634
2061 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2063 * configure: Regenerate.
2065 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2067 * testsuite/libgomp.fortran/reduction3.f90: Change
2068 -2147483648 to -huge(i)-1 to avoid overflow.
2069 * testsuite/libgomp.fortran/reduction4.f90: Change
2070 Z'ffffffff' to not(0) to avoid overflow.
2072 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2075 * Makefile.am (libsubincludedir): New.
2076 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2077 * Makefile.in: Regenerate.
2079 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2082 * env.c: Include ctype.h.
2083 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2084 leading and/or trailing whitespace and compare strings case
2087 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2090 * testsuite/libgomp.fortran/pr28390.f: New test.
2092 2006-07-05 Eric Christopher <echristo@apple.com>
2094 * configure.ac: Depend addition of -pthread on host OS.
2095 * configure: Regenerate.
2097 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2099 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2100 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2103 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2107 * configure.ac: If neither --enable-linux-futex nor
2108 --disable-linux-futex is passed, determine the default by checking
2109 for compiling and/or running against NPTL. With --enable-linux-futex,
2110 check if SYS_gettid and SYS_futex are defined.
2111 * configure: Rebuilt.
2113 2006-06-14 Richard Henderson <rth@redhat.com>
2116 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2117 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2119 2006-06-09 Richard Henderson <rth@redhat.com>
2121 * env.c (gomp_nthreads_var): Change to unsigned long.
2122 (gomp_run_sched_chunk): Likewise.
2123 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2124 (initialize_env): Initialize gomp_thread_attr.
2125 * libgomp.h (gomp_nthreads_var): Update decl.
2126 (gomp_run_sched_chunk): Likewise.
2127 (gomp_thread_attr): Declare.
2128 * team.c (gomp_thread_attr): Export.
2129 (initialize_team): Don't initialize it.
2131 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2134 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2135 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2137 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2139 * config/mingw32/time.c: New file.
2140 * configure.tgt: Use it.
2142 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2144 * Makefile.am: Add install-html target. Add install-html to .PHONY
2145 * Makefile.in: Regenerate.
2147 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2150 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2151 * testsuite/libgomp.c/critical-1.c: Likewise.
2152 * testsuite/libgomp.c/loop-1.c: Likewise.
2153 * testsuite/libgomp.c/loop-2.c: Likewise.
2154 * testsuite/libgomp.c/single-1.c: Likewise.
2155 * testsuite/libgomp.c/ordered-1.c: Likewise.
2156 * testsuite/libgomp.c/ordered-2.c: Likewise.
2158 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2161 * libgomp.fortran/pr27416-1.f90: New test.
2163 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2166 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2167 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2169 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2172 * testsuite/libgomp.c/pr26943-1.c: New test.
2173 * testsuite/libgomp.c/pr26943-2.c: New test.
2174 * testsuite/libgomp.c/pr26943-3.c: New test.
2175 * testsuite/libgomp.c/pr26943-4.c: New test.
2176 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2177 * testsuite/libgomp.c++/pr26943.C: New test.
2179 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2182 * testsuite/libgomp.c++/pr27337.C: New test.
2184 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2187 * testsuite/libgomp.c/pr26171.c: New test.
2189 2006-04-25 Richard Henderson <rth@redhat.com>
2192 * configure.ac: Use GCC_CHECK_TLS.
2193 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2194 * Makefile.in, aclocal.m4, configure: Regenerate.
2196 2006-04-10 Matthias Klose <doko@debian.org>
2198 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2199 directory names containing underscores.
2201 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2204 * testsuite/libgomp.c++/pr26691.C: New test.
2206 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2208 * testsuite/libgomp.fortran/retval2.f90: New test.
2210 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2212 * testsuite/libgomp.c++: New directory.
2214 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2216 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2217 * config/posix/sem.c: Implement the above.
2219 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2221 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2222 define HAVE_BROKEN_POSIX_SEMAPHORES.
2223 * configure: Rebuilt.
2224 * config.h.in: Rebuilt.
2226 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2229 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2230 for the other pthread check.
2231 * configure: Regenerate.
2232 * config.h.in: Regenerate.
2234 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2238 * Makefile.am (fincludedir): New variable.
2239 (nodist_include_HEADERS): Remove Fortran files.
2240 (nodist_finclude_HEADERS): New variable.
2241 * Makefile.in: Regenerated.
2243 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2245 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2246 Remove tests for returning assumed character length arrays.
2248 2006-02-12 Roger Sayle <roger@eyesopen.com>
2249 John David Anglin <dave@hiauly1.hia.nrc.ca>
2252 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2254 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2256 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2258 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2260 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2261 part of LD_LIBRARY_PATH manually.
2263 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2266 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2269 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2272 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2273 * configure.ac (PERL): Don't set.
2274 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2275 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2276 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2277 * omp.h.in: Wrap the new configure substitutions with @ characters.
2278 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2279 * aclocal.m4, configure, Makefile.in: Regenerate.
2280 * mkomp_h.pl: Delete.
2282 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2285 * configure.ac: Use GCC_HEADER_STDINT.
2286 * libgomp.h: Include gstdint.h.
2287 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2288 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2290 2006-01-24 Richard Henderson <rth@redhat.com>
2293 * configure.ac: Add AM_MAINTAINER_MODE.
2294 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2296 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2298 * Makefile.in: Regenerate.
2299 * testsuite/Makefile.in: Regenerate.
2300 * aclocal.m4: Regenerate.
2302 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2304 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2306 * configure.ac: Add check for loadavg.h.
2307 (link_gomp): Adjust comment.
2308 * configure: Regenerate.
2309 * config.h.in: Regenerate.
2311 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2314 * configure.ac: Remove check for alloca.h.
2315 * configure: Regenerate.
2316 * config.h.in: Regenerate.
2317 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2318 * team.c: Remove use of alloca.h.
2319 Call gomp_alloca instead of alloca.
2321 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2324 * team.c: Add include of alloca.h.
2325 * configure.ac: Add check for alloca.h.
2326 * configure: Regenerate.
2327 * config.h.in: Regenerate.
2329 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2332 * testsuite/libgomp.fortran/pr25219.f90: New test.
2334 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2336 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2337 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2338 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2339 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2340 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2341 testsuite/libgomp.fortran/threadprivate1.f90,
2342 testsuite/libgomp.fortran/threadprivate2.f90,
2343 testsuite/libgomp.fortran/threadprivate3.f90,
2344 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2345 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2346 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2347 effective-target to TLS runtime.
2349 * testsuite/libgomp.fortran/pr25162.f: Require
2350 effective-target TLS runtime.
2352 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2354 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2355 * testsuite/libgomp.c/nestedfn-3.c: New test.
2357 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2360 * testsuite/libgomp.fortran/pr25162.f: New test.
2362 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2364 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2365 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2367 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2369 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2370 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2371 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2372 single.c, team.c, work.c, config/linux/alpha/futex.h,
2373 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2374 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2375 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2376 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2377 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2378 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2379 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2382 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2384 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2385 to nodist_noinst_HEADERS.
2386 * Makefile.in: Rebuilt.
2388 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2389 add integer count field.
2390 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2391 omp_nest_lock_t type change.
2392 (omp_init_nest_lock): Likewise. Initialize count to 0.
2393 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2395 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2397 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2398 Increment count if successful and return the new nesting level.
2399 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2400 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2401 * testsuite/libgomp.c/lib-1.c: New test.
2402 * testsuite/libgomp.fortran/lib1.f90: New test.
2403 * testsuite/libgomp.fortran/lib2.f: New test.
2404 * testsuite/libgomp.fortran/lib3.f: New test.
2406 2005-11-17 Richard Henderson <rth@redhat.com>
2409 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2410 * configure.ac (link_gomp): New. Substitute it.
2411 (AC_CONFIG_FILES): Add libgomp.spec.
2412 * libgomp.spec.in: New file.
2413 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2414 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2416 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2418 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2419 reduction(-:var) behaving the same as reduction(+:var).
2420 * testsuite/libgomp.c/reduction-4.c: New test.
2422 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2424 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2425 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2426 testsuite/libgomp.c/copyin-3.c,
2427 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2428 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2429 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2430 testsuite/libgomp.c++/pr24455.C,
2431 testsuite/libgomp.fortran/threadprivate1.f90,
2432 testsuite/libgomp.fortran/threadprivate2.f90,
2433 testsuite/libgomp.fortran/threadprivate3.f90,
2434 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2435 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2436 testsuite/libgomp.fortran/omp_parse3.f90: Require
2437 effective-target TLS.
2439 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2443 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2446 * team.c (initialize_team): Pass NULL rather than free as
2447 pthread_key_create destructor. Initialize thread specific data
2448 pointer in initial thread to a static local variable rather than
2451 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2453 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2454 its location to ld_library_path.
2456 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2458 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2460 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2462 * testsuite/libgomp.c: Rename from libgomp.dg.
2464 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2466 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2467 threadprivate variable 'i'.
2469 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2471 * config/linux/s390/futex.h: New file.
2472 * configure.tgt: Use it.
2474 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2475 before the parallel.
2477 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2480 * testsuite/libgomp.c++/master-1.C: New test.
2482 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2484 * testsuite/libgomp.dg/copyin-3.c: New test.
2486 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2488 * testsuite/libgomp.fortran/retval1.f90: New test.
2489 * testsuite/libgomp.fortran/vla7.f90: New test.
2491 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2493 * testsuite/libgomp.fortran/vla2.f90: New test.
2494 * testsuite/libgomp.fortran/vla3.f90: New test.
2495 * testsuite/libgomp.fortran/vla4.f90: New test.
2496 * testsuite/libgomp.fortran/vla5.f90: New test.
2497 * testsuite/libgomp.fortran/vla6.f90: New test.
2499 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2501 * config/linux/sparc/futex.h: New file.
2502 * configure.tgt: Use it.
2503 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2505 * critical.c: Include stdlib.h.
2506 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2507 ignoring return value.
2508 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2509 LIBGOMP_CHECK_SYNC_BUILTINS check.
2510 * configure: Rebuilt.
2512 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2514 * testsuite/libgomp.fortran/vla1.f90: New test.
2516 2005-10-31 Richard Henderson <rth@redhat.com>
2518 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2519 setting 's' in different threads.
2521 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2523 * libgomp.h (attribute_hidden, ialias): Define.
2524 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2525 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2526 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2527 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2528 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2529 omp_test_lock, omp_test_nest_lock): Likewise.
2530 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2531 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2532 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2533 omp_test_lock, omp_test_nest_lock): Likewise.
2534 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2535 omp_get_dynamic, omp_get_nested): Likewise.
2536 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2537 omp_get_thread_num, omp_in_parallel): Likewise.
2538 * fortran.c (ialias_redirect): Define.
2539 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2540 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2541 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2542 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2543 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2544 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2545 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2546 omp_get_wtime): Add ialias_redirect.
2548 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2550 * fortran.c: Include stdlib.h.
2552 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2554 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2555 * Makefile.in: Regenerated.
2557 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2559 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2560 * libgomp_f.h.in (omp_check_defines): New function.
2561 * env.c: Include libgomp_f.h.
2562 (initialize_env): Call omp_check_defines.
2564 * testsuite/libgomp.dg/copyin-2.c: New test.
2565 * testsuite/libgomp.c++/copyin-2.C: New test.
2566 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2568 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2569 * testsuite/libgomp.fortran/sharing2.f90: New test.
2571 * testsuite/libgomp.dg/copyin-1.c: New test.
2572 * testsuite/libgomp.c++/copyin-1.C: New test.
2574 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2576 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2578 * testsuite/libgomp.fortran/workshare1.f90: New test.
2580 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2582 * libgomp.fortran/sharing1.f90: New test.
2584 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2587 * testsuite/libgomp.c++/loop-7.C: New test.
2589 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2591 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2592 * testsuite/libgomp.fortran/reduction6.f90: New test.
2593 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2595 2005-10-23 Richard Henderson <rth@redhat.com>
2597 * testsuite/libgomp.c++/ctor-1.C: New.
2598 * testsuite/libgomp.c++/ctor-2.C: New.
2599 * testsuite/libgomp.c++/ctor-3.C: New.
2600 * testsuite/libgomp.c++/ctor-4.C: New.
2601 * testsuite/libgomp.c++/ctor-5.C: New.
2602 * testsuite/libgomp.c++/ctor-6.C: New.
2603 * testsuite/libgomp.c++/ctor-7.C: New.
2604 * testsuite/libgomp.c++/ctor-8.C: New.
2605 * testsuite/libgomp.c++/ctor-9.C: New.
2607 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2610 * testsuite/libgomp.c++/pr24455-1.C: New test.
2611 * testsuite/libgomp.c++/pr24455.C: New test.
2612 * testsuite/libgomp.dg/pr24455-1.c: New test.
2613 * testsuite/libgomp.dg/pr24455.c: New test.
2615 2005-10-20 Richard Henderson <rth@redhat.com>
2617 * testsuite/libgomp.c++/loop-6.C: New.
2618 * testsuite/libgomp.dg/loop-3.c: New.
2620 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2622 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2624 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2627 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2629 * testsuite/libgomp.fortran/jacobi.f: New test.
2631 2005-10-19 Richard Henderson <rth@redhat.com>
2633 * configure.tgt (i?86-linux): Default to with_arch instead of
2634 CFLAGS. Add -mtune to match target_cpu.
2635 (x86_64-linux): Tune to i686.
2637 * fortran.c (omp_test_nest_lock_): Fix typo.
2639 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2641 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2642 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2643 * testsuite/libgomp.dg/ordered-3.c: New test.
2645 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2646 Remove volatile keyword.
2648 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2649 in COMMON block to avoid warnings on 64-bit targets.
2651 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2653 * testsuite/libgomp.dg/shared-3.c: New test.
2655 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2657 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2658 * testsuite/libgomp.fortran/reduction5.f90: New test.
2660 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2662 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2664 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2665 flush loop now that __sync_synchronize has proper memory barrier.
2666 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2667 Add -ffixed-form to dg-options.
2669 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2671 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2672 from subdirectories.
2673 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2674 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2675 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2676 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2677 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2678 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2679 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2680 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2681 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2682 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2683 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2684 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2685 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2686 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2687 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2688 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2689 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2690 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2691 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2692 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2693 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2694 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2695 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2696 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2697 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2699 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2701 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2702 lang_library_path exists. Use find instead of glob to gather tests.
2703 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2705 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2707 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2708 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2709 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2710 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2711 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2712 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2713 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2714 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2715 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2716 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2717 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2718 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2719 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2721 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2723 * testsuite/libgomp.dg/vla-1.c: New test.
2725 * testsuite/libgomp.fortran/reference2.f90: New test.
2727 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2728 declaration of omp_get_thread_num.
2729 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2732 * testsuite/libgomp.fortran/reduction1.f90: New test.
2733 * testsuite/libgomp.fortran/reduction2.f90: New test.
2734 * testsuite/libgomp.fortran/reduction3.f90: New test.
2735 * testsuite/libgomp.fortran/reduction4.f90: New test.
2737 2005-10-13 Richard Henderson <rth@redhat.com>
2739 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2740 * Makefile.in: Regenerate.
2741 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2742 * libgomp.h: Include bar.h.
2743 (struct gomp_barrier): Remove.
2744 (struct gomp_team): Add barrier. Replace master_barrier with
2745 master_release. Replace threads with ordered_release.
2746 (struct gomp_thread): Replace barrier with release.
2747 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2748 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2749 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2750 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2751 (GOMP_single_copy_end): Likewise.
2752 * team.c (gomp_threads_dock): New.
2753 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2754 (gomp_thread_start): Use gomp_barrier_wait.
2755 (new_team, free_team): Update for gomp_team changes.
2756 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2757 (gomp_team_end): Use gomp_barrier_wait.
2758 (initialize_team): Update for gomp_thread changes.
2759 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2760 (gomp_work_share_end_nowait): Use atomic ops when available.
2761 * config/linux/bar.c, config/linux/bar.h: New files.
2762 * config/posix/bar.c, config/posix/bar.h: New files.
2764 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2766 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2767 * testsuite/libgomp.dg/single-2.c: New test.
2769 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2770 lang_link_flags): Unset, so that they aren't inherited from previously
2773 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2775 2005-10-12 Richard Henderson <rth@redhat.com>
2777 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2778 (libgomp_init): Use lang_test_file, lang_library_path, and
2779 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2781 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2782 (lang_test_file, lang_link_flags): New.
2783 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2785 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2786 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2787 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2788 testsuite/libgomp.c++/parallel-1.C,
2789 testsuite/libgomp.c++/reduction-1.C,
2790 testsuite/libgomp.c++/reduction-2.C,
2791 testsuite/libgomp.c++/reduction-3.C,
2792 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2793 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2794 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2795 New files, largely cribbed from the C testsuite.
2797 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2799 * testsuite/libgomp.fortran/character1.f90: New test.
2800 * testsuite/libgomp.fortran/character2.f90: New test.
2802 * testsuite/libgomp.dg/nested-1.c: New test.
2803 * testsuite/libgomp.dg/nested-2.c: New test.
2804 * testsuite/libgomp.fortran/do1.f90: New test.
2805 * testsuite/libgomp.fortran/do2.f90: New test.
2807 * testsuite/libgomp.fortran/reference1.f90: New test.
2809 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2811 * testsuite/libgomp.dg/reduction-1.c: New test.
2812 * testsuite/libgomp.dg/reduction-2.c: New test.
2813 * testsuite/libgomp.dg/reduction-3.c: New test.
2815 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2817 * testsuite/libgomp.dg/atomic-1.c: New test.
2818 * testsuite/libgomp.dg/atomic-2.c: New test.
2820 2005-10-09 Richard Henderson <rth@redhat.com>
2822 * critical.c (atomic_lock): New.
2823 (initialize_critical): Initialize it.
2824 (GOMP_atomic_start, GOMP_atomic_end): New.
2825 * libgomp.map: Export them.
2826 * libgomp_g.h: Declare them.
2828 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2830 2005-10-02 Richard Henderson <rth@redhat.com>
2832 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2833 to XCFLAGS instead of CFLAGS.
2835 2005-09-30 Richard Henderson <rth@redhat.com>
2837 * configure.ac: Determine whether -pthread or -lpthread is needed.
2838 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2839 * Makefine.in, configure: Rebuild.
2841 2005-09-28 Richard Henderson <rth@redhat.com>
2843 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2844 * testsuite/libgomp.dg/omp-single-3.c: New test.
2846 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2848 * testsuite/libgomp.dg/omp-single-2.c: New test.
2849 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2851 2005-09-27 Richard Henderson <rth@redhat.com>
2853 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2854 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2856 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2858 * testsuite/libgomp.dg/omp-loop03.c: New test.
2860 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2862 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2864 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2866 * testsuite/libgomp.dg/omp-single-1.c: New test.
2867 * testsuite/libgomp.dg/shared-1.c: Return 0.
2868 Add prototype for abort.
2869 * testsuite/libgomp.dg/shared-2.c: Likewise.
2871 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2873 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2876 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2878 * testsuite/libgomp.dg/shared-1.c: New test.
2879 * testsuite/libgomp.dg/shared-2.c: New test.
2881 2005-09-24 Richard Henderson <rth@redhat.com>
2883 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2885 2005-09-24 Richard Henderson <rth@redhat.com>
2887 * iter.c (gomp_iter_static_next): Round up when computing number
2888 of iterations. Don't bother distributing a remainder equally.
2890 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2891 Don't call srand. Zero b before testing.
2894 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2896 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2897 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2899 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2901 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2902 without !$omp end do, followed immediately by subroutine end.
2904 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2906 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2908 2005-09-22 Richard Henderson <rth@redhat.com>
2910 * critical.c (GOMP_critical_name_start): Change argument to void**.
2911 Reuse the pointer space if the mutex fits.
2912 (GOMP_critical_name_end): Likewise.
2913 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2914 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2915 (GOMP_critical_name_end): Likewise.
2916 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2917 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2919 2005-09-20 Richard Henderson <rth@redhat.com>
2921 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2922 (create_lock_lock): New.
2923 (initialize_critical): Initialize it.
2924 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2925 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2927 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2929 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2931 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2933 * testsuite/libgomp.dg/omp-loop01.c: New test.
2934 * testsuite/libgomp.dg/omp-loop02.c: New test.
2936 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2938 * configure.ac (AC_PROG_FC): Add.
2939 (USE_FORTRAN): New automake conditional.
2940 * configure: Rebuilt.
2941 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2942 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2943 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2944 Add rules to build them.
2945 * Makefile.in: Rebuilt.
2946 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2948 * libgomp.map: Add Fortran wrappers.
2949 * libgomp_f.h.in: New file.
2950 * omp_lib.h.in: New file.
2951 * omp_lib.f90.in: New file.
2952 * fortran.c: New file.
2953 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2954 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2955 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2956 libgfortran has been built.
2957 * testsuite/libgomp.fortran/fortran.exp: New file.
2958 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2959 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2960 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2961 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2962 * testsuite/libgomp.fortran/omp_hello.f: New test.
2963 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2964 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2965 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2966 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2967 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2968 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2969 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2970 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2972 2005-08-30 Richard Henderson <rth@redhat.com>
2974 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2975 function for when aliases are not usable.
2976 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2977 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2978 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2979 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2980 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2981 GOMP_loop_ordered_guided_next): Likewise.
2982 * ordered.c (GOMP_ordered_start): Likewise.
2984 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2986 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2987 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2988 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2989 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2990 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2991 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2992 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2993 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2994 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2996 2005-07-07 Eric Christopher <echristo@redhat.com>
2997 Diego Novillo <dnovillo@redhat.com>
2999 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3000 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3002 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3003 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3004 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3005 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3006 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3007 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3008 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3010 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3012 * TOPLEVEL.patch: Remove.
3014 2005-05-16 Richard Henderson <rth@redhat.com>
3016 * configure.ac: Test for clock_gettime.
3017 * config.h.in, configure: Rebuild.
3018 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3019 (omp_get_wtime): Use clock_gettime if available.
3020 (omp_get_wtick): Use clock_getres if available.
3022 2005-05-11 Richard Henderson <rth@redhat.com>
3024 * config/linux/ia64/futex.h: New file.
3025 * configure.tgt: Use it.
3027 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3029 2005-05-07 Richard Henderson <rth@redhat.com>
3031 * config/linux/powerpc/futex.h: New file.
3032 * configure.tgt: Use it.
3034 * config/linux/i486/futex.h: Merge ...
3035 * config/linux/x86_64/futex.h: ... into ...
3036 * config/linux/x86/futex.h: ... here.
3037 * configure.tgt: Update to match.
3039 2005-05-06 Richard Henderson <rth@redhat.com>
3041 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3042 * config/linux/i486/futex.h: Likewise.
3043 * config/linux/x86_64/futex.h: Likewise.
3045 * config/linux/lock.c: New file.
3046 * config/linux/omp-lock.h: New file.
3048 * critical.c, env.h: Don't include omp.h
3049 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3050 * config/posix/time.c: Likewise.
3051 * config/posix/omp-lock.h: New file.
3052 * libgomp.h: Include omp-lock.h and omp.h.
3053 * Makefile.am (nodist_include_HEADERS): New.
3055 * configure.ac (PERL): New.
3056 * mkomp_h.pl: New file.
3057 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3059 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3061 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3062 build directory. Re-add -march=i486 hack.
3064 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3065 (libgomp_link_flags): Remove.
3066 (libgomp_initialized): Remove.
3067 (libgomp_init): Don't protect from reinitialization. Copy code
3068 from libstdc++ for getting the multilib set correctly.
3070 2005-05-05 Richard Henderson <rth@redhat.com>
3072 * config/linux/alpha/futex.h: New file.
3073 * configure.tgt (alpha*-*-linux*): Use it.
3075 * config/posix/mutex.c: New file.
3076 * config/posix/sem.c: Use libgomp.h.
3078 * configure.tgt (x86_64-linux): Also test CC for -m32.
3079 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3081 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3084 * Makefile.am (SUBDIRS): New.
3085 (libgomp_la_LDFLAGS): Add -lpthread.
3086 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3087 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3089 * libgomp_g.h: New file.
3090 * libgomp.h: Split out all public declarations to libgomp_g.h.
3091 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3092 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3093 * config/linux/sem.h: Likewise.
3094 * config/posix/sem.h: Likewise.
3096 * Makefile.am (AM_LDFLAGS): New.
3097 (libgomp_version_script): Split out from ...
3098 (libgomp_la_LDFLAGS): ... here.
3099 (libgomp_version_info): New.
3100 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3101 (LIBGOMP_ENABLE): New.
3102 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3103 (LIBGOMP_ENABLE_SYMVERS): New.
3104 * configure.ac (AC_INIT): Version 1.0.
3105 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3106 (enable-linux-futex): Likewise. Rename from enable-futex.
3107 (libtool_VERSION): New.
3108 (LIBGOMP_ENABLE_SYMVERS): Use it.
3109 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3110 * Makefile.in, aclocal.m4, configure: Rebuild.
3112 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3113 (gomp_mutex_unlock_slow): Fix typo.
3114 * config/linux/sem.c: Similarly.
3115 (gomp_sem_post_slow): Fix typo.
3116 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3117 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3118 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3120 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3121 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3122 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3123 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3124 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3125 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3126 LDFLAGS. Pull enable_futex check to top-level.
3127 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3128 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3130 First attempt at real configury.
3131 * Makefile, config.h: Remove file.
3132 * Makefile.am, Makefile.in: New file.
3133 * acinclude.m4 aclocal.m4: New file.
3134 * configure.ac, configure.tgt, configure: New file.
3136 * config/posix/lock.c: Rename from sys-lock.c.
3137 * config/posix/mutex.h: Rename from sys-mutex.h.
3138 * config/posix/sem.c: Rename from sys-sem.c.
3139 * config/posix/sem.h: Rename from sys-sem.h.
3140 * config/posix/proc.c: Rename from sys-proc.c.
3141 * config/posix/time.c: Rename from sys-proc.c.
3143 * config/linux/mutex.c: New file.
3144 * config/linux/mutex.h: New file.
3145 * config/linux/sem.c: New file.
3146 * config/linux/sem.h: New file.
3147 * config/linux/i486/futex.h: New file.
3148 * config/linux/x86_64/futex.h: New file.
3150 2005-05-04 Richard Henderson <rth@redhat.com>
3152 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3153 * libgomp.h: Declare them.
3154 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3155 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3157 2005-05-04 Richard Henderson <rth@redhat.com>
3159 * libgomp-1 code drop
3161 2005-05-04 Richard Henderson <rth@redhat.com>
3163 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3164 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3165 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3166 (gomp_iter_static_next): Update.
3167 (gomp_ordered_static_next): Update.
3168 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3169 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3170 totally empty range.
3171 (gomp_loop_ordered_static_next): Refine test for calling
3172 gomp_ordered_static_next.
3173 * testsuite/ordered-1.c: Add case for more threads than iterations.
3175 * iter.c (gomp_iter_runtime_next_locked): Remove.
3176 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3177 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3178 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3179 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3180 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3181 gomp_loop_ordered_guided_next): Downcase name, make static, add
3182 an external alias with the old name.
3183 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3184 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3185 switch and call one of the above static functions.
3186 * libgomp.h: Update.
3188 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3189 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3190 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3191 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3192 GOMP_loop_ordered_guided_start): Update to match.
3193 * sections.c (GOMP_sections_start): Likewise.
3194 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3196 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3197 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3198 Use bounds check instead of modulus.
3199 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3200 (gomp_ordered_last): Don't sync with ordered_owner here.
3201 (gomp_ordered_next): Likewise.
3202 (gomp_ordered_static_loop_next): Likewise.
3203 * loop.c, libgomp.h: Update to match.
3205 * libgomp.h (GOMP_barrier): Declare.
3207 * testsuite/barrier-1.c: New file.
3208 * testsuite/critical-1.c: New file.
3209 * testsuite/ordered-2.c: New file.
3210 * testsuite/ordered-1.c: New file.
3211 * testsuite/sections-1.c: New file.
3212 * testsuite/single-1.c: New file.
3213 * testsuite/Makefile (TESTS): Add them.
3215 2005-05-04 Richard Henderson <rth@redhat.com>
3217 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3218 * loop.c (GOMP_loop_static_start): If not the startup thread,
3219 acquire the mutex to wait for initialization complete.
3220 (GOMP_loop_ordered_static_start): Likewise.
3221 (GOMP_loop_ordered_runtime_start): Likewise.
3222 (GOMP_loop_ordered_static_first): Remove.
3223 (GOMP_loop_ordered_dynamic_first): Remove.
3224 (GOMP_loop_ordered_guided_first): Remove.
3225 (GOMP_loop_ordered_runtime_first): Remove.
3226 * ordered.c (gomp_ordered_loop_first): Post to own release when
3227 we're the first thread.
3228 (gomp_ordered_loop_last): Wait on release if not owner.
3229 (gomp_ordered_loop_next): Likewise.
3230 (gomp_ordered_static_loop_init): New.
3231 (gomp_ordered_static_loop_next): Use ordered_owner.
3232 (GOMP_ordered_start): Likewise.
3233 * work.c (gomp_new_work_share): Initialize ordered_owner.
3235 2005-05-03 Richard Henderson <rth@redhat.com>
3237 * Makefile (OPT): New.
3240 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3241 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3242 * libgomp.h, libgomp.map, NOTES: Update to match.
3244 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3245 Add initialized and thr members.
3246 (gomp_thread_start): Pause when initially spawned to wait for
3247 the whole team to be created.
3248 (gomp_team_start): Release team members at the end.
3250 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3251 (f_foo_1): Use GOMP_loop_end.
3252 (f_foo_2): Use GOMP_loop_end_nowait.
3254 * testsuite/loop-2.c: New file.
3255 * testsuite/Makefile (TESTS): Add it.
3257 2005-05-03 Richard Henderson <rth@redhat.com>
3259 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3260 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3261 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3264 * testsuite/Makefile: New file.
3265 * testsuite/loop-1.c: New file.
3267 2005-05-03 Richard Henderson <rth@redhat.com>
3269 Initial implementation and checkin.