1 2013-05-27 Tobias Burnus <burnus@net-b.de>
4 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
5 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
6 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
7 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8 omp_destroy_nest_lock): Correct arguments to match the one in
10 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
11 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
13 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
15 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17 * testsuite/libgomp.c/loop-13.c: New test.
18 * testsuite/libgomp.c/loop-14.c: New test.
19 * testsuite/libgomp.c/loop-15.c: New test.
20 * testsuite/libgomp.c++/loop-13.C: New test.
21 * testsuite/libgomp.c++/loop-14.C: New test.
22 * testsuite/libgomp.c++/loop-15.C: New test.
24 2013-02-06 Jakub Jelinek <jakub@redhat.com>
27 * testsuite/libgomp.c++/pr56217.C: New test.
29 2013-02-01 Alan Modra <amodra@gmail.com>
31 * task.c (GOMP_task, GOMP_taskwait): Comment.
33 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
34 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
37 * config/linux/wait.h (do_spin): Use atomic load for addr.
38 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
39 for intptr and ptrlock.
40 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
43 2013-01-22 Alan Modra <amodra@gmail.com>
47 * task.c (GOMP_task): Revert 2011-12-09 change.
48 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
49 barrier to read task->children..
50 (gomp_barrier_handle_tasks): ..and matching atomic store with
51 release barrier here when setting parent->children to NULL.
53 2013-01-16 Jakub Jelinek <jakub@redhat.com>
54 Tobias Burnus <burnus@net-b.de>
57 * testsuite/libgomp.fortran/fortran.exp: Use
58 -fintrinsic-modules-path= instead of
59 -fintrinsic-modules-path.
61 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
63 Update copyright years.
65 2012-12-19 Tobias Burnus <burnus@net-b.de>
67 * testsuite/libgomp.fortran/fortran.exp: Set
68 -fintrinsic-modules-path.
70 2012-12-19 Tobias Burnus <burnus@net-b.de>
72 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
73 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
75 2012-11-21 Jakub Jelinek <jakub@redhat.com>
78 * team.c (gomp_free_thread): Decrease gomp_managed_threads
79 if pool had any threads_used.
81 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
83 * testsuite/libgomp.c++/pr24455.C: Use
84 -Wl,-undefined,dynamic_lookup on darwin.
86 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
88 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
90 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
92 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
94 2012-10-23 Ian Bolton <ian.bolton@arm.com>
95 Jim MacArthur <jim.macarthur@arm.com>
96 Marcus Shawcroft <marcus.shawcroft@arm.com>
97 Nigel Stephens <nigel.stephens@arm.com>
98 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
99 Richard Earnshaw <rearnsha@arm.com>
100 Sofiane Naci <sofiane.naci@arm.com>
101 Stephen Thomas <stephen.thomas@arm.com>
102 Tejas Belagod <tejas.belagod@arm.com>
103 Yufeng Zhang <yufeng.zhang@arm.com>
105 * configure.tgt: Add AArch64.
107 2012-10-04 Jason Merrill <jason@redhat.com>
109 * testsuite/libgomp.c++/tls-init1.C: New.
111 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
113 * configure: Regenerated.
115 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
117 * config/linux/mips/futex.h (sys_futex0): Change to static
118 function with noinline, nomips16 attributes under MIPS16. Adjust
119 asm statement to place 'li v0,SYS_futex' immediately before
122 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
124 * libgomp.texi (Library Index): Renamed from "Index" to prevent
125 conflict with index.html on case-insensitive file systems.
127 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
129 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
130 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
132 2012-07-02 Richard Guenther <rguenther@suse.de>
133 Michael Matz <matz@suse.de>
134 Tobias Grosser <tobias@grosser.es>
135 Sebastian Pop <sebpop@gmail.com>
137 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
138 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
139 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
140 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
142 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
144 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
146 2012-06-22 Richard Guenther <rguenther@suse.de>
148 Merge from graphite branch
149 2012-01-13 Tobias Grosser <tobias@grosser.es>
151 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
152 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
154 2012-06-07 Jakub Jelinek <jakub@redhat.com>
157 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
158 use GOMP_barrier () call instead.
159 * testsuite/libgomp.c/pr26943-3.c: Likewise.
160 * testsuite/libgomp.c/pr26943-4.c: Likewise.
161 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
162 call GOMP_barrier instead.
163 * testsuite/libgomp.fortran/vla5.f90: Likewise.
165 2012-06-06 Jakub Jelinek <jakub@redhat.com>
168 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
169 argument to memset call.
171 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
173 * configure: Regenerated.
175 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
177 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
179 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
182 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
184 2012-03-22 Jakub Jelinek <jakub@redhat.com>
187 * testsuite/libgomp.c/pr52547.c: New test.
189 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
191 * testsuite/lib/libgomp.exp: load fortran-modules.exp
193 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195 * configure.tgt (mips-sgi-irix6*): Remove.
197 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
199 * configure.tgt (alpha*-dec-osf*): Remove.
201 * config/osf/sem.h: Remove.
202 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
204 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
206 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
208 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
211 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
212 Remove ENABLE_SYMVERS_SOL2.
213 * configure: Regenerate.
214 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
215 (PREPROCESS): New variable.
216 (libgomp.ver): New target.
217 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
218 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
219 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
221 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
222 * Makefile.in: Regenerate.
224 2012-02-14 Walter Lee <walt@tilera.com>
226 * configure.tgt: Handle tilegx and tilepro.
227 * config/linux/tile/futex.h: New file.
229 2012-02-08 Richard Guenther <rguenther@suse.de>
231 PR tree-optimization/46886
232 * testsuite/libgomp.c/pr46886.c: New testcase.
234 2012-01-25 Matthias Klose <doko@ubuntu.com>
236 * config/linux/arm: Remove empty directory.
237 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
239 2011-12-09 Alan Modra <amodra@gmail.com>
242 * task.c (GOMP_taskwait): Don't access task->children outside of
243 task_lock mutex region.
244 (GOMP_task): Likewise.
246 2011-12-06 Jakub Jelinek <jakub@redhat.com>
249 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
251 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
252 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
253 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
254 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
255 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
257 2011-12-02 Alan Modra <amodra@gmail.com>
259 * config/linux/affinity.c: Use atomic rather than sync builtin.
260 * config/linux/lock.c: Likewise.
261 * config/linux/ptrlock.h: Likewise.
262 * config/linux/ptrlock.c: Likewise.
263 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
264 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
265 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
266 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
267 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
268 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
269 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
270 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
271 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
272 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
274 2011-11-30 Alan Modra <amodra@gmail.com>
277 * config/linux/bar.h: Use atomic rather than sync builtins.
278 * config/linux/bar.c: Likewise. Add missing acquire
279 synchronisation on generation field.
280 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
283 2011-11-30 Alan Modra <amodra@gmail.com>
285 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
286 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
287 * config/linux/mutex.h: Use atomic rather than sync builtins.
288 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
289 * config/linux/omp-lock.h: Comment fix.
290 * config/linux/arm/mutex.h: Delete.
291 * config/linux/powerpc/mutex.h: Delete.
292 * config/linux/ia64/mutex.h: Delete.
293 * config/linux/mips/mutex.h: Delete.
295 2011-11-30 Alan Modra <amodra@gmail.com>
298 * config/linux/sem.h: Rewrite.
299 * config/linux/sem.c: Rewrite.
301 2011-11-28 Richard Henderson <rth@redhat.com>
303 * libgomp.h (enum memmodel): New.
305 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
307 * configure: Regenerate.
309 2011-10-10 Matthias Klose <doko@ubuntu.com>
311 * config/posix95: Remove empty directory.
313 2011-08-26 Jakub Jelinek <jakub@redhat.com>
315 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
317 2011-08-19 Jakub Jelinek <jakub@redhat.com>
320 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
321 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
323 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
325 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
327 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
330 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
332 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
334 * config/linux/proc.h: New.
335 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
336 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
337 (gomp_init_num_threads): Update call to cpuset_popcount.
338 (get_num_procs): Ditto.
339 * config/linux/affinity.c (gomp_init_affinity): Call
340 gomp_cpuset_popcount.
342 2011-08-02 Jakub Jelinek <jakub@redhat.com>
346 * omp.h.in (omp_in_final): New prototype.
347 * omp_lib.f90.in (omp_in_final): New interface.
348 (omp_integer_kind, omp_logical_kind): Remove
349 and replace all its uses in the module with 4.
350 (openmp_version): Change to 201107.
351 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
352 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
353 kind for the parameters.
354 (omp_in_final): New external.
355 (openmp_version): Change to 201107.
356 * task.c (omp_in_final): New function.
357 (gomp_init_task): Initialize final_task.
358 (GOMP_task): Remove unused attribute from flags. Handle final
360 (GOMP_taskyield): New function.
361 (omp_in_final): Return true if if (false) or final (true) task
362 or descendant of final (true).
363 * fortran.c (omp_in_final_): New function.
364 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
365 (GOMP_3.0): Export GOMP_taskyield.
366 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
368 (parse_unsigned_long_list): New function.
369 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
370 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
371 even if parse_affinity returned false.
372 * config/linux/affinity.c (gomp_init_affinity): Handle
373 gomp_cpu_affinity_len == 0.
374 * libgomp_g.h (GOMP_taskyield): New prototype.
375 * libgomp.h (struct gomp_task): Add final_task field.
376 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
377 * team.c (gomp_team_start): Override new task's nthreads_var icv
378 if list form OMP_NUM_THREADS has been used and it has value for
379 the new nesting level.
381 * testsuite/libgomp.c/atomic-11.c: New test.
382 * testsuite/libgomp.c/atomic-12.c: New test.
383 * testsuite/libgomp.c/atomic-13.c: New test.
384 * testsuite/libgomp.c/atomic-14.c: New test.
385 * testsuite/libgomp.c/reduction-6.c: New test.
386 * testsuite/libgomp.c/task-5.c: New test.
387 * testsuite/libgomp.c++/atomic-2.C: New test.
388 * testsuite/libgomp.c++/atomic-3.C: New test.
389 * testsuite/libgomp.c++/atomic-4.C: New test.
390 * testsuite/libgomp.c++/atomic-5.C: New test.
391 * testsuite/libgomp.c++/atomic-6.C: New test.
392 * testsuite/libgomp.c++/atomic-7.C: New test.
393 * testsuite/libgomp.c++/atomic-8.C: New test.
394 * testsuite/libgomp.c++/atomic-9.C: New test.
395 * testsuite/libgomp.c++/task-8.C: New test.
396 * testsuite/libgomp.c++/reduction-4.C: New test.
397 * testsuite/libgomp.fortran/allocatable7.f90: New test.
398 * testsuite/libgomp.fortran/allocatable8.f90: New test.
399 * testsuite/libgomp.fortran/crayptr3.f90: New test.
400 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
401 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
402 * testsuite/libgomp.fortran/pointer1.f90: New test.
403 * testsuite/libgomp.fortran/pointer2.f90: New test.
404 * testsuite/libgomp.fortran/task4.f90: New test.
406 2011-08-02 Tobias Burnus <burnus@net-b.de>
408 * libgomp.texi: Update OpenMP spec references to 3.1.
409 (omp_in_final,OMP_PROC_BIND): New sections.
410 (OMP_NUM_THREADS): Document that the value can be now a list.
411 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
413 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
415 * config/linux/x86/futex.h: Check __x86_64__ instead of
418 2011-07-29 Jakub Jelinek <jakub@redhat.com>
422 * testsuite/libgomp.c/pr49897-1.c: New test.
423 * testsuite/libgomp.c/pr49897-2.c: New test.
424 * testsuite/libgomp.c/pr49898-1.c: New test.
425 * testsuite/libgomp.c/pr49898-2.c: New test.
427 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
429 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
430 for ia32 instead of ilp32.
432 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
433 * testsuite/libgomp.c/atomic-6.c: Likewise.
435 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
437 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
438 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
440 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
443 * config/osf/sem.h: New file.
444 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
446 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
449 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
452 2011-07-15 Jakub Jelinek <jakub@redhat.com>
454 * config/linux/wait.h (do_spin): New inline, largely copied
455 from do_wait, just don't do futex_wait here, instead return true if
457 (do_wait): Implement using do_spin.
458 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
460 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
461 __sync_bool_compare_and_swap, pass the oldval to
462 gomp_mutex_lock_slow.
463 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
464 If all mutex contenders are just spinning and not sleeping, don't
465 change state to 2 unnecessarily. Optimize the loop when state has
466 already become 2 to use just one atomic operation per loop instead
468 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
470 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
471 __sync_bool_compare_and_swap, pass the oldval to
472 gomp_mutex_lock_slow.
474 2011-06-22 Jakub Jelinek <jakub@redhat.com>
477 * iter.c (gomp_iter_static_next): For chunk size 0
478 only use n ceil/ nthreads size for the first
479 n % nthreads threads in the team instead of
480 all threads except for the last few ones which
481 get less work or none at all.
482 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
483 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
484 chunk argument, set run_sched_modifier to 0 for static
485 resp. 1 for other kinds. If chunk argument is 0
486 and not static, set value to 1.
488 2011-05-19 Jakub Jelinek <jakub@redhat.com>
491 * testsuite/libgomp.c++/pr49043.C: New test.
494 * testsuite/libgomp.c++/pr48869.C: New test.
496 2011-05-06 Jakub Jelinek <jakub@redhat.com>
499 * fortran.c: Include limits.h.
501 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
503 (omp_set_num_threads_8_, omp_set_schedule_8_,
504 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
505 omp_get_team_size_8_): Use TO_INT macro.
506 * testsuite/libgomp.fortran/pr48894.f90: New test.
508 2011-04-13 Jakub Jelinek <jakub@redhat.com>
511 * testsuite/libgomp.c/pr48591.c: New test.
513 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
516 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
517 * configure: Regenerate.
519 2011-02-27 Jakub Jelinek <jakub@redhat.com>
522 * testsuite/libgomp.fortran/task3.f90: New test.
524 2011-02-24 Tobias Burnus <burnus@net-b.de>
526 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
528 2011-02-23 Jakub Jelinek <jakub@redhat.com>
531 * libgomp.texi (omp_get_wtime): Don't say time in the past
534 2011-02-18 Jakub Jelinek <jakub@redhat.com>
537 * testsuite/libgomp.fortran/fortran.exp: Check for both
538 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
539 but $blddir != "", still append ${blddir}/${lang_library_path}
542 2011-02-16 Tobias Burnus <burnus@net-b.de>
545 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
546 of libquadmath.a before adding its libpath to ldflags.
548 2011-02-14 Jakub Jelinek <jakub@redhat.com>
551 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
552 to FUTEX_WAIT futex syscall.
553 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
555 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
557 * configure: Regenerate.
559 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
562 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
564 2011-01-16 Gerald Pfeifer
566 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
568 2010-12-14 Jakub Jelinek <jakub@redhat.com>
571 * libgomp.fortran/allocatable6.f90: New test.
573 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
575 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
576 * configure: Regenerate.
578 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
582 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
583 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
584 * aclocal.m4: Regenerate.
585 * configure: Regenerate.
586 * Makefile.in: Regenerate.
587 * testsuite/Makefile.in: Regenerate.
589 2010-12-02 Jakub Jelinek <jakub@redhat.com>
592 * libgomp.fortran/pr46753.f90: New test.
595 * env.c (initialize_env): Default to spin count 300000
596 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
600 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
601 at the end if sync builtins aren't supported.
603 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
605 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
607 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
609 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
611 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
613 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
615 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
616 Tobias Burnus <burnus@net-b.de>
620 * configure: Regenerate.
622 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
624 * config/linux/futex.h: New.
625 * config/linux/arm/mutex.h: New.
626 * configure.tgt (arm*-*-linux*): Add config path.
628 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
630 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
632 2010-09-23 Tobias Burnus <burnus@net-b.de>
634 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
635 Change Fortran datatype to LOGICAL.
636 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
637 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
639 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
641 * configure: Regenerate.
643 2010-07-26 Jakub Jelinek <jakub@redhat.com>
645 * libgomp.texi: Add function keyword to a couple of Fortran
646 interfaces, use integer instead of int for Fortran.
648 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
650 * libgomp.texi: Fix spelling and pasto problems throughout.
651 Adjust prototypes to match code.
653 2010-07-24 Tobias Burnus <burnus@net-b.de>
655 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
656 silence -fwhole-file warning.
658 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
660 * configure.tgt (*-*-solaris2.[56]*): Removed.
662 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
664 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
665 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
666 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
667 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
668 targetting solaris2*.
669 * configure: Regenerate.
670 * config.h.in: Regenerate.
672 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
673 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
674 Add libgomp_version_dep.
675 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
677 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
678 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
679 * Makefile.in: Regenerate.
681 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
682 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
683 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
684 to common block, protected by
685 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
687 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
689 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
691 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
694 * configure: Regenerate.
696 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
699 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
700 * configure: Regenerate.
701 * Makefile.in: Regenerate.
702 * testsuite/Makefile.in: Regenerate.
704 2010-04-26 Jakub Jelinek <jakub@redhat.com>
707 * testsuite/libgomp.c/pr43893.c: New test.
708 * testsuite/libgomp.c++/pr43893.C: New test.
710 2010-04-21 Jakub Jelinek <jakub@redhat.com>
713 * testsuite/libgomp.fortran/vla8.f90: New test.
715 2010-04-20 Jakub Jelinek <jakub@redhat.com>
718 * config/linux/affinity.c (gomp_init_affinity): Decrease
719 gomp_available_cpus if affinity mask confines the process to fewer
721 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
722 non-NULL, just return gomp_available_cpus.
725 * sections.c (gomp_sections_init): Initialize ws->mode.
727 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
729 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
730 not unused bar variable.
731 * configure: Regenerate.
733 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
735 * Makefile.in: Regenerate.
736 * aclocal.m4: Regenerate.
737 * testsuite/Makefile.in: Regenerate.
739 2010-03-22 Jakub Jelinek <jakub@redhat.com>
742 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
743 (initialize_env): Adjust callers.
744 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
745 when the argument is 0.
747 * testsuite/libgomp.c/pr42942.c: New test.
749 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
753 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
754 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
756 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
758 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
759 * testsuite/libgomp.c++/task-6.C: Likewise.
761 2010-01-28 Steve Ellcey <sje@cup.hp.com>
763 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
765 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
767 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
768 * configure: Regenerate.
770 2010-01-26 Jakub Jelinek <jakub@redhat.com>
773 * testsuite/libgomp.fortran/allocatable5.f90: New test.
775 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
777 * configure.ac: Test for executability of GFORTRAN.
778 * configure: Regenerate.
780 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
782 * configure: Regenerate.
784 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
787 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
789 2010-01-03 Richard Guenther <rguenther@suse.de>
791 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
793 2009-12-23 Sebastian Pop <sebpop@gmail.com>
795 * testsuite/libgomp.graphite/pr4118.c: New.
797 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
799 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
800 for darwin, protect the test with require-effective-target tls_runtime.
801 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
803 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
806 * testsuite/lib/libgomp.exp: Provide -B options to allow for
807 link spec %s substitutions for static libraries.
809 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
812 * libgomp.graphite/force-parallel-2.c: Reduce array size.
814 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
816 * Makefile.in: Regenerate.
817 * configure: Regenerate.
818 * testsuite/Makefile.in: Regenerate.
820 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
822 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
823 settings for LC_ALL and LANG.
825 2009-11-25 Jakub Jelinek <jakub@redhat.com>
828 * testsuite/libgomp.fortran/pr42162.f90: New test.
830 2009-11-13 Jakub Jelinek <jakub@redhat.com>
833 * testsuite/libgomp.c/pr42029.c: New test.
835 2009-10-26 Jakub Jelinek <jakub@redhat.com>
837 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
838 *s. Accept ld version without text in ()s.
839 * configure: Regenerated.
841 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
843 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
845 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
848 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
849 or a hyphen (happens with fortran language disabled).
850 * configure: Regenerate.
852 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
854 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
855 use sed script portable to Solaris /bin/sed for extracting ld
857 * configure: Regenerate.
859 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
861 * testsuite/libgomp.graphite/bounds.c: New test.
863 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
865 * Makefile.am (libgomp_la_LINK): New.
866 * Makefile.in: Regenerate.
868 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
870 * configure.ac (AC_PREREQ): Bump to 2.64.
872 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
874 * Makefile.am (install-html, install-pdf): Remove.
875 * Makefile.in: Regenerate.
877 * Makefile.in: Regenerate.
878 * aclocal.m4: Regenerate.
879 * config.h.in: Regenerate.
880 * configure: Regenerate.
881 * testsuite/Makefile.in: Regenerate.
883 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
885 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
886 * Makefile.in: Regenerate.
888 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
890 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
891 * Makefile.in: Regenerate.
893 2009-08-19 Tobias Burnus <burnus@net-b.de>
896 omp_lib.h.in: Fix -std=f95 errors.
899 2009-08-14 David Edelsohn <edelsohn@gnu.org>
901 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
902 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
903 * testsuite/libgomp.graphite/graphite.exp: New.
905 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
907 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
910 2009-08-04 David Daney <ddaney@caviumnetworks.com>
912 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
913 needed memory barrier semantics.
914 * config/linux/mips/mutex.h: New file.
916 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
918 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
920 2009-07-16 Joseph Myers <joseph@codesourcery.com>
922 * configure: Regenerate.
924 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
929 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
930 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
931 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
933 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
935 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
936 options when choosing a multilib.
938 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
940 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
941 ld_library_path. Use add_path. Add just find_libgcc_s to
942 ld_library_path, not every libgcc multilib directory.
943 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
944 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
945 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
947 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
949 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
951 * Makefile.am (LTLDFLAGS): Define.
953 * Makefile.in: Regenerate.
955 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
958 * testsuite/libgomp.fortran/fortran.exp: Don't link with
959 libgfortranbegin, check existence of libgfortran.a instead of
962 2009-05-20 Jakub Jelinek <jakub@redhat.com>
965 * team.c (gomp_thread_start): Destroy thr->release semaphore.
966 (gomp_free_pool_helper): Likewise.
968 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
969 Jakub Jelinek <jakub@redhat.com>
972 * testsuite/libgomp.fortran/workshare2.f90: New test.
974 2009-04-09 Nick Clifton <nickc@redhat.com>
976 * iter.c: Change copyright header to refer to version 3 of the
977 GNU General Public License with version 3.1 of the GCC Runtime
978 Library Exception and to point readers at the COPYING3 and
979 COPYING3.RUNTIME files and the FSF's license web page.
981 * barrier.c: Likewise.
982 * config/bsd/proc.c: Likewise.
983 * config/linux/affinity.c: Likewise.
984 * config/linux/alpha/futex.h: Likewise.
985 * config/linux/bar.c: Likewise.
986 * config/linux/bar.h: Likewise.
987 * config/linux/ia64/futex.h: Likewise.
988 * config/linux/ia64/mutex.h: Likewise.
989 * config/linux/lock.c: Likewise.
990 * config/linux/mips/futex.h: Likewise.
991 * config/linux/mutex.c: Likewise.
992 * config/linux/mutex.h: Likewise.
993 * config/linux/powerpc/futex.h: Likewise.
994 * config/linux/proc.c: Likewise.
995 * config/linux/ptrlock.c: Likewise.
996 * config/linux/ptrlock.h: Likewise.
997 * config/linux/s390/futex.h: Likewise.
998 * config/linux/sem.c: Likewise.
999 * config/linux/sem.h: Likewise.
1000 * config/linux/sparc/futex.h: Likewise.
1001 * config/linux/wait.h: Likewise.
1002 * config/linux/x86/futex.h: Likewise.
1003 * config/mingw32/proc.c: Likewise.
1004 * config/mingw32/time.c: Likewise.
1005 * config/posix/affinity.c: Likewise.
1006 * config/posix/bar.c: Likewise.
1007 * config/posix/bar.h: Likewise.
1008 * config/posix/lock.c: Likewise.
1009 * config/posix/mutex.h: Likewise.
1010 * config/posix/proc.c: Likewise.
1011 * config/posix/ptrlock.h: Likewise.
1012 * config/posix/sem.c: Likewise.
1013 * config/posix/sem.h: Likewise.
1014 * config/posix/time.c: Likewise.
1015 * config/posix95/lock.c: Likewise.
1016 * critical.c: Likewise.
1018 * error.c: Likewise.
1019 * fortran.c: Likewise.
1020 * iter_ull.c: Likewise.
1021 * libgomp.h: Likewise.
1022 * libgomp_f.h.in: Likewise.
1023 * libgomp_g.h: Likewise.
1025 * loop_ull.c: Likewise.
1026 * omp.h.in: Likewise.
1027 * omp_lib.f90.in: Likewise.
1028 * omp_lib.h.in: Likewise.
1029 * ordered.c: Likewise.
1030 * parallel.c: Likewise.
1031 * sections.c: Likewise.
1032 * single.c: Likewise.
1037 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1039 * testsuite/config/default.exp: Change copyright header to refer to
1040 version 3 of the GNU General Public License and to point readers
1041 at the COPYING3 file and the FSF's license web page.
1043 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1046 * libgomp.c++/pr39573.C: New test.
1048 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1051 * testsuite/libgomp.c/pr39591-1.c: New test.
1052 * testsuite/libgomp.c/pr39591-2.c: New test.
1053 * testsuite/libgomp.c/pr39591-3.c: New test.
1055 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1057 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1058 * testsuite/libgomp.c/atomic-6.c: Ditto.
1060 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1063 * testsuite/libgomp.c/loop-12.c: New test.
1064 * testsuite/libgomp.c/loop-11.c: New test.
1065 * testsuite/libgomp.c++/loop-11.C: New test.
1066 * testsuite/libgomp.c++/loop-12.C: New test.
1067 * testsuite/libgomp.c++/for-8.C: New test.
1069 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1071 * configure: Regenerate.
1073 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.c/pr39154.c: New test.
1078 2009-01-30 Ian Lance Taylor <iant@google.com>
1080 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1081 libgomp_ld_is_gold. Get gold version number.
1082 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1083 * configure: Rebuild.
1085 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1087 * testsuite/lib/libgomp.exp: Add -B option for targets that
1088 use libgfortran.a%s in their specs.
1090 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1093 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1094 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1095 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1096 * configure: Regenerated.
1097 * config.h.in: Likewise.
1099 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1102 * testsuite/libgomp.c/pr38650.c: New test.
1103 * testsuite/libgomp.c++/pr38650.C: New test.
1105 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1107 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1109 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1111 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1113 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1115 * configure: Regenerate.
1117 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1120 * testsuite/libgomp.c/pr36802-1.c: New test.
1121 * testsuite/libgomp.c/pr36802-2.c: New test.
1122 * testsuite/libgomp.c/pr36802-3.c: New test.
1124 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1127 * config/linux/powerpc/mutex.h: New.
1129 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1132 * testsuite/libgomp.c++/for-7.C: New test.
1135 * testsuite/libgomp.c++/for-6.C: New test.
1137 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1140 * testsuite/lib/libgomp.exp: Include new timeout library files.
1141 (libgomp_target_compile): Set timeout value from new proc.
1143 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1146 * config/linux/ia64/mutex.h: New.
1148 2008-11-04 Tobias Burnus <burnus@net-b.de>
1151 * libgomp.texi (Runtime library routines, environment variables):
1152 Update for OpenMP version 3.0.
1154 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1155 Steve Ellcey <sje@cup.hp.com>
1157 * configure: Regenerate for new libtool.
1158 * Makefile.in: Ditto.
1159 * testsuite/Makefile.in: Ditto.
1161 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1162 Andreas Tobler <a.tobler@schweiz.org>
1164 * config/bsd/proc.c: New file.
1165 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1166 * configure.ac: Check for header <sys/sysctl.h>
1167 * configure: Regenerate.
1168 * config.h.in: Likewise.
1170 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1172 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1174 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1176 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1177 * Makefile.in: Regenerated.
1178 * testsuite/Makefile.in: Regenerated.
1180 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1182 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1183 depend on blddir if blddir exists.
1184 (libgomp_target_compile): Likewise.
1185 * testsuite/libgomp.c++/c++.exp: Likewise.
1186 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1188 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1190 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1191 Do not list GPL as Invariant Section.
1193 2008-07-28 Ilie Garbacea <ilie@mips.com>
1194 Chao-ying Fu <fu@mips.com>
1196 * configure.tgt: Enable futex for MIPS.
1197 * config/linux/mips/futex.h: New file.
1199 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1201 * team.c (gomp_team_end): Free team immediately if it has
1204 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1206 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1207 * testsuite/libgomp.fortran/fortran.exp: Same.
1208 * testsuite/libgomp.c/c.exp: Same.
1209 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1210 directory to library path first.
1212 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1214 * env.c (parse_stacksize): Add cast to avoid warning.
1215 (parse_spincount): Likewise.
1217 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1219 * testsuite/libgomp.c/loop-10.c: New test.
1220 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1221 * libgomp.c++/loop-6.C (main): Likewise.
1224 * testsuite/libgomp.c/debug-1.c: New test.
1226 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1228 * testsuite/libgomp.c/nqueens-1.c: New test.
1231 * testsuite/libgomp.c++/task-7.C: New function.
1233 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1235 * configure: Regenerate.
1237 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1239 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1240 mutex when HAVE_SYNC_BUILTINS isn't defined.
1242 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1244 * libgomp.texi (omp_test_lock): Fix typo.
1246 2008-06-12 Tobias Burnus <burnus@net-b.de>
1248 * omp_lib.f90.in: Add "implicit none".
1250 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1253 * testsuite/libgomp.c/reduction-5.c: New test.
1255 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1257 * libgomp.h (struct gomp_task): Add in_tied_task field.
1258 * task.c (gomp_init_task): Initialize it.
1259 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1260 unconditionally. Don't call gomp_team_barrier_wake if
1261 current task is implicit or if(0) from implicit and number of
1262 running tasks is equal to nthreads - 1.
1265 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1266 omp_get_team_size_8): Fix pastos.
1269 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1270 * configure: Regenerated.
1271 * config.h.in: Regenerated.
1272 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1275 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1278 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1279 (GOMP_loop_ull_dynamic_start): Likewise.
1280 (GOMP_loop_ull_guided_start): Likewise.
1281 (GOMP_loop_ull_ordered_static_start): Likewise.
1282 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1283 (GOMP_loop_ull_ordered_guided_start): Likewise.
1285 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1286 Richard Henderson <rth@redhat.com>
1287 Ulrich Drepper <drepper@redhat.com>
1288 Jakob Blomer <jakob.blomer@ira.uka.de>
1290 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1291 Substitute also OMP_*LOCK_25*.
1292 * configure: Regenerated.
1293 * config.h.in: Regenerated.
1294 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1295 ptrlock.c and task.c.
1296 * Makefile.in: Regenerated.
1297 * testsuite/Makefile.in: Regenerated.
1299 * loop_ull.c: New file.
1300 * iter_ull.c: New file.
1301 * libgomp.h: Include ptrlock.h.
1302 (enum gomp_task_kind): New type.
1303 (struct gomp_team): Add task_lock, task_queue, task_count,
1304 task_running_count, single_count fields. Add
1305 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1306 Remove work_share_lock, generation_mask,
1307 oldest_live_gen, num_live_gen and init_work_shares fields, add
1308 work work_share_list_alloc, work_share_list_free and work_share_chunk
1309 fields. Change work_shares from pointer to pointers into an array.
1310 Change ordered_release field into gomp_sem_t ** from flexible array
1311 member. Add implicit_task and initial_work_shares fields.
1312 Move close to the end of the struct.
1313 (struct gomp_team_state): Add single_count, last_work_share,
1314 active_level and level fields, remove work_share_generation.
1315 (gomp_barrier_handle_tasks): New prototype.
1316 (gomp_finish_task): New inline function.
1317 (struct gomp_work_share): Move chunk_size, end, incr into
1318 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1319 next_ll fields. Reshuffle fields. Add next_alloc,
1320 next_ws, next_free and inline_ordered_team_ids fields, change
1321 ordered_team_ids into pointer from flexible array member.
1322 Add mode field. Put lock and next into a different cache line
1323 from most of the write-once fields.
1324 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1325 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1326 gomp_iter_ull_guided_next): New prototypes.
1327 (gomp_new_icv): New prototype.
1328 (struct gomp_thread): Add thread_pool and task fields.
1329 (struct gomp_thread_pool): New type.
1330 (gomp_new_team): New prototype.
1331 (gomp_team_start): Change type of last argument.
1332 (gomp_new_work_share): Removed.
1333 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1334 (gomp_work_share_init_done): New static inline.
1335 (gomp_throttled_spin_count_var, gomp_available_cpus,
1336 gomp_managed_threads): New extern decls.
1337 (gomp_init_task): New prototype.
1338 (gomp_spin_count_var): New extern var decl.
1339 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1340 or no alias support, or if not PIC.
1341 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1342 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1343 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1344 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1345 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1346 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1347 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1348 gomp_test_nest_lock_25): New prototypes.
1349 (omp_lock_symver, strong_alias): Define.
1350 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1352 (gomp_end_task): New.
1353 (struct gomp_task_icv, gomp_global_icv): New.
1354 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1355 (struct gomp_task): New.
1356 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1357 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1359 (gomp_schedule_type): Reorder enum to match
1361 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1363 (gomp_thread_start): Add gomp_team_barrier_wait call.
1364 For non-nested case remove clearing of docked thread thr fields.
1365 Use pool fields instead of global gomp_* variables. Use
1366 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1367 Create tasks for each member thread.
1368 (free_team): Only destroy team barrier, task_lock here and free it.
1369 (gomp_free_thread): Free last_team if non-NULL.
1370 (gomp_team_end): Call gomp_team_barrier_wait instead of
1371 gomp_barrier_wait. For nested case call one extra
1372 gomp_barrier_wait. Move here some destruction from free_team.
1373 Call free_team on pool->last_team if any, rather than freeing
1374 current team. Destroy work_share_list_free_lock ifndef
1376 (gomp_new_icv): New function.
1377 (gomp_threads, gomp_threads_size, gomp_threads_used,
1378 gomp_threads_dock): Removed.
1379 (gomp_thread_destructor): New variable.
1380 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1382 (gomp_team_start): Create new pool if current thread doesn't have
1383 one. Use pool fields instead of global gomp_* variables.
1384 Initialize thread_pool field for new threads. Clear single_count.
1385 Change last argument from ws to team, don't create
1386 new team, set ts.work_share to &team->work_shares[0] and clear
1387 ts.last_work_share. Don't clear ts.work_share_generation.
1388 If number of threads changed, adjust atomically gomp_managed_threads.
1389 Use gomp_init_task instead of gomp_new_task,
1390 set thr->task to the corresponding implicit_task array entry.
1391 Create tasks for each member thread. Initialize ts.level.
1392 (initialize_team): Call pthread_key_create on
1393 gomp_thread_destructor.
1394 (team_destructor): New function.
1395 (new_team): Removed.
1396 (gomp_new_team): New function.
1397 (free_team): Free gomp_work_share blocks chained through next_alloc,
1398 instead of freeing work_shares and destroying work_share_lock.
1399 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1400 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1401 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1402 of gomp_barrier_wait.
1403 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1404 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1405 if gomp_work_share_start returned true. Don't unlock ws->lock.
1406 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1407 of gomp_barrier_wait.
1408 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1409 gomp_work_share_init_done if gomp_work_share_start returned true.
1410 Don't unlock ws->lock.
1411 * work.c: Include stddef.h.
1412 (free_work_share): Use work_share_list_free_lock instead
1413 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1414 Call gomp_fini_work_share and then either free ws if orphaned, or
1415 put it into work_share_list_free list of the current team.
1416 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1418 (gomp_work_share_start, gomp_work_share_end,
1419 gomp_work_share_end_nowait): Rewritten.
1420 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1421 (openmp_version): Set to 200805.
1422 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1423 omp_sched_guided, omp_sched_auto): New parameters.
1424 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1425 omp_set_max_active_levels, omp_get_max_active_levels,
1426 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1427 omp_get_active_level): New interfaces.
1428 * omp_lib.h.in (openmp_version): Set to 200805.
1429 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1430 omp_sched_guided, omp_sched_auto): New parameters.
1431 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1432 omp_set_max_active_levels, omp_get_max_active_levels,
1433 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1434 omp_get_active_level): New externals.
1435 * loop.c: Include limits.h.
1436 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1438 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1439 Likewise. Use gomp_icv.
1440 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1441 ts.static_trip here.
1442 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1443 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1444 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1445 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1446 don't unlock ws->lock, otherwise lock it.
1447 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1448 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1449 (gomp_parallel_loop_start): Call gomp_new_team instead of
1450 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1451 Adjust gomp_team_start caller. Pass 0 as second argument to
1452 gomp_resolve_num_threads.
1453 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1454 If adding ws->chunk_size nthreads + 1 times after end won't
1455 overflow, set ws->mode to 1.
1456 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1457 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1458 GOMP_loop_ull_ordered_static_start,
1459 GOMP_loop_ull_ordered_dynamic_start,
1460 GOMP_loop_ull_ordered_guided_start,
1461 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1462 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1463 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1464 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1465 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1467 * libgomp.map: Export lock routines also @@OMP_2.0.
1468 (GOMP_loop_ordered_dynamic_first,
1469 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1470 GOMP_loop_ordered_static_first): Remove.
1471 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1472 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1473 GOMP_loop_ull_ordered_dynamic_next,
1474 GOMP_loop_ull_ordered_dynamic_start,
1475 GOMP_loop_ull_ordered_guided_next,
1476 GOMP_loop_ull_ordered_guided_start,
1477 GOMP_loop_ull_ordered_runtime_next,
1478 GOMP_loop_ull_ordered_runtime_start,
1479 GOMP_loop_ull_ordered_static_next,
1480 GOMP_loop_ull_ordered_static_start,
1481 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1482 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1483 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1484 (omp_set_schedule, omp_get_schedule,
1485 omp_get_thread_limit, omp_set_max_active_levels,
1486 omp_get_max_active_levels, omp_get_level,
1487 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1488 omp_set_schedule_, omp_set_schedule_8_,
1489 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1490 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1491 omp_get_max_active_levels_, omp_get_level_,
1492 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1493 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1494 New exports @@OMP_3.0.
1495 * omp.h.in (omp_sched_t): New type.
1496 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1497 omp_set_max_active_levels, omp_get_max_active_levels,
1498 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1499 omp_get_active_level): New prototypes.
1500 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1501 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1502 gomp_thread_limit_var, gomp_remaining_threads_count,
1503 gomp_remaining_threads_lock): New variables.
1504 (parse_spincount): New function.
1505 (initialize_env): Call gomp_init_num_threads unconditionally.
1506 Initialize gomp_available_cpus. Call parse_spincount,
1507 initialize gomp_{,throttled_}spin_count_var
1508 depending on presence and value of OMP_WAIT_POLICY and
1509 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1510 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1511 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1512 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1513 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1514 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1515 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1516 (gomp_global_icv): New.
1517 (parse_schedule): Use it. Parse "auto".
1518 (omp_set_num_threads): Use gomp_icv.
1519 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1521 (omp_get_max_threads): Move from parallel.c.
1522 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1523 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1525 (parse_stacksize, parse_wait_policy): New functions.
1526 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1527 both wrappers for compatibility and new locks.
1528 (omp_set_schedule, omp_get_schedule,
1529 omp_get_thread_limit, omp_set_max_active_levels,
1530 omp_get_max_active_levels, omp_get_level,
1531 omp_get_ancestor_thread_num, omp_get_team_size,
1532 omp_get_active_level): New ialias_redirect.
1533 (omp_set_schedule_, omp_set_schedule_8_,
1534 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1535 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1536 omp_get_max_active_levels_, omp_get_level_,
1537 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1538 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1540 * parallel.c: Include limits.h.
1541 (gomp_resolve_num_threads): Add count argument. Rewritten.
1542 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1543 argument to gomp_team_start. Pass 0 as second argument to
1544 gomp_resolve_num_threads.
1545 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1546 if gomp_thread_limit_var != ULONG_MAX.
1547 (omp_in_parallel): Implement using ts.active_level.
1548 (omp_get_max_threads): Move to env.c.
1549 (omp_get_level, omp_get_ancestor_thread_num,
1550 omp_get_team_size, omp_get_active_level): New functions,
1552 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1553 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1554 gomp_iter_dynamic_next instead of the _locked variant and don't take
1555 lock around it, otherwise acquire it before calling
1556 gomp_iter_dynamic_next_locked.
1557 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1558 gomp_iter_dynamic_next instead of the _locked variant and don't take
1560 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1561 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1562 Adjust gomp_team_start caller. Pass count as second argument to
1563 gomp_resolve_num_threads, don't adjust num_threads after the call.
1565 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1566 ws->chunk_size by incr.
1567 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1569 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1571 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1572 (omp_check_defines): Check even the compat defines.
1573 * config/linux/ptrlock.c: New file.
1574 * config/linux/ptrlock.h: New file.
1575 * config/linux/wait.h: New file.
1576 * config/posix/ptrlock.c: New file.
1577 * config/posix/ptrlock.h: New file.
1578 * config/linux/bar.h (gomp_team_barrier_wait,
1579 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1580 (gomp_team_barrier_set_task_pending,
1581 gomp_team_barrier_clear_task_pending,
1582 gomp_team_barrier_set_waiting_for_tasks,
1583 gomp_team_barrier_waiting_for_tasks,
1584 gomp_team_barrier_done): New inlines.
1585 (gomp_barrier_t): Rewritten.
1586 (gomp_barrier_state_t): New typedef.
1587 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1588 gomp_barrier_wait_start): Rewritten.
1589 (gomp_barrier_wait_end): Change second argument to
1590 gomp_barrier_state_t.
1591 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1593 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1595 (gomp_barrier_wait_end): Rewritten.
1596 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1597 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1598 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1599 (gomp_barrier_state_t): New typedef.
1600 (gomp_team_barrier_wait,
1601 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1602 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1603 into the return value. Return gomp_barrier_state_t.
1604 (gomp_team_barrier_set_task_pending,
1605 gomp_team_barrier_clear_task_pending,
1606 gomp_team_barrier_set_waiting_for_tasks,
1607 gomp_team_barrier_waiting_for_tasks,
1608 gomp_team_barrier_done): New inlines.
1609 (gomp_barrier_wait_end): Change second argument to
1610 gomp_barrier_state_t.
1611 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1613 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1614 (gomp_barrier_wait_end): Change second argument to
1615 gomp_barrier_state_t.
1616 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1617 gomp_team_barrier_wake): New functions.
1618 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1620 (gomp_futex_wake, gomp_futex_wait): New variables.
1621 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1622 * config/linux/lock.c: Rewrite to make locks task owned,
1623 for backwards compatibility provide the old entrypoints
1624 if symbol versioning. Include wait.h instead of libgomp.h and
1626 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1627 * config/posix95/lock.c: Rewrite to make locks task owned,
1628 for backwards compatibility provide the old entrypoints
1629 if symbol versioning.
1630 * config/posix/lock.c: Rewrite to make locks task owned,
1631 for backwards compatibility provide the old entrypoints
1632 if symbol versioning.
1633 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1634 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1635 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1636 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1637 (sys_futex0): Return error code.
1638 (futex_wake, futex_wait): If ENOSYS was returned, clear
1639 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1640 (cpu_relax, atomic_write_barrier): New static inlines.
1641 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1642 (futex_wake, futex_wait): If ENOSYS was returned, clear
1643 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1644 (cpu_relax, atomic_write_barrier): New static inlines.
1645 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1646 (sys_futex0): Return error code.
1647 (futex_wake, futex_wait): If ENOSYS was returned, clear
1648 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1649 (cpu_relax, atomic_write_barrier): New static inlines.
1650 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1651 (sys_futex0): Return error code.
1652 (futex_wake, futex_wait): If ENOSYS was returned, clear
1653 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1654 (cpu_relax, atomic_write_barrier): New static inlines.
1655 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1656 (sys_futex0): Return error code.
1657 (futex_wake, futex_wait): If ENOSYS was returned, clear
1658 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1659 (cpu_relax, atomic_write_barrier): New static inlines.
1660 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1661 (sys_futex0): Return error code.
1662 (futex_wake, futex_wait): If ENOSYS was returned, clear
1663 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1664 (cpu_relax, atomic_write_barrier): New static inlines.
1665 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1667 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1668 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1669 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1671 (omp_nest_lock_t): Change owner into void *, add lock field.
1672 * config/posix95/omp-lock.h: Include semaphore.h.
1673 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1674 (omp_lock_t): Use sem_t instead of mutex if semaphores
1676 (omp_nest_lock_t): Likewise. Change owner to void *.
1677 * config/posix/omp-lock.h: Include semaphore.h.
1678 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1679 (omp_lock_t): Use sem_t instead of mutex if semaphores
1681 (omp_nest_lock_t): Likewise. Add owner field.
1683 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1685 * testsuite/libgomp.c/collapse-1.c: New test.
1686 * testsuite/libgomp.c/collapse-2.c: New test.
1687 * testsuite/libgomp.c/collapse-3.c: New test.
1688 * testsuite/libgomp.c/icv-1.c: New test.
1689 * testsuite/libgomp.c/icv-2.c: New test.
1690 * testsuite/libgomp.c/lib-2.c: New test.
1691 * testsuite/libgomp.c/lock-1.c: New test.
1692 * testsuite/libgomp.c/lock-2.c: New test.
1693 * testsuite/libgomp.c/lock-3.c: New test.
1694 * testsuite/libgomp.c/loop-4.c: New test.
1695 * testsuite/libgomp.c/loop-5.c: New test.
1696 * testsuite/libgomp.c/loop-6.c: New test.
1697 * testsuite/libgomp.c/loop-7.c: New test.
1698 * testsuite/libgomp.c/loop-8.c: New test.
1699 * testsuite/libgomp.c/loop-9.c: New test.
1700 * testsuite/libgomp.c/nested-3.c: New test.
1701 * testsuite/libgomp.c/nestedfn-6.c: New test.
1702 * testsuite/libgomp.c/sort-1.c: New test.
1703 * testsuite/libgomp.c/task-1.c: New test.
1704 * testsuite/libgomp.c/task-2.c: New test.
1705 * testsuite/libgomp.c/task-3.c: New test.
1706 * testsuite/libgomp.c/task-4.c: New test.
1707 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1708 to C++ testsuite default compiler options.
1709 * testsuite/libgomp.c++/collapse-1.C: New test.
1710 * testsuite/libgomp.c++/collapse-2.C: New test.
1711 * testsuite/libgomp.c++/ctor-10.C: New test.
1712 * testsuite/libgomp.c++/for-1.C: New test.
1713 * testsuite/libgomp.c++/for-2.C: New test.
1714 * testsuite/libgomp.c++/for-3.C: New test.
1715 * testsuite/libgomp.c++/for-4.C: New test.
1716 * testsuite/libgomp.c++/for-5.C: New test.
1717 * testsuite/libgomp.c++/loop-8.C: New test.
1718 * testsuite/libgomp.c++/loop-9.C: New test.
1719 * testsuite/libgomp.c++/loop-10.C: New test.
1720 * testsuite/libgomp.c++/task-1.C: New test.
1721 * testsuite/libgomp.c++/task-2.C: New test.
1722 * testsuite/libgomp.c++/task-3.C: New test.
1723 * testsuite/libgomp.c++/task-4.C: New test.
1724 * testsuite/libgomp.c++/task-5.C: New test.
1725 * testsuite/libgomp.c++/task-6.C: New test.
1726 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1727 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1728 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1729 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1730 * testsuite/libgomp.fortran/collapse1.f90: New test.
1731 * testsuite/libgomp.fortran/collapse2.f90: New test.
1732 * testsuite/libgomp.fortran/collapse3.f90: New test.
1733 * testsuite/libgomp.fortran/collapse4.f90: New test.
1734 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1735 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1736 * testsuite/libgomp.fortran/lib4.f90: New test.
1737 * testsuite/libgomp.fortran/lock-1.f90: New test.
1738 * testsuite/libgomp.fortran/lock-2.f90: New test.
1739 * testsuite/libgomp.fortran/nested1.f90: New test.
1740 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1741 * testsuite/libgomp.fortran/strassen.f90: New test.
1742 * testsuite/libgomp.fortran/tabs1.f90: New test.
1743 * testsuite/libgomp.fortran/tabs2.f: New test.
1744 * testsuite/libgomp.fortran/task1.f90: New test.
1745 * testsuite/libgomp.fortran/task2.f90: New test.
1746 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1747 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1748 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1749 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1750 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1752 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1755 * testsuite/libgomp.c++/ctor-11.C: New test.
1756 * testsuite/libgomp.c++/ctor-12.C: New test.
1758 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1760 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1762 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1765 * testsuite/libgomp.c/atomic-5.c: New test.
1766 * testsuite/libgomp.c/atomic-6.c: New test.
1767 * testsuite/libgomp.c/autopar-1.c: New test.
1769 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1771 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1772 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1773 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1774 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1775 * configure: Regenerate.
1776 * Makefile.in, testsuite/Makefile.in: Likewise.
1778 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1781 * aclocal.m4: Regenerate.
1782 * configure: Regenerate.
1784 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1787 * testsuite/libgomp.c/atomic-4.c: New test.
1790 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1791 (gomp_iter_guided_next): Likewise.
1792 * testsuite/libgomp.c/pr35625.c: New test.
1794 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1796 * aclocal.m4: Regenerate.
1797 * configure: Likewise.
1798 * Makefile.in: Likewise.
1799 * testsuite/Makefile.in: Likewise.
1801 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1804 * testsuite/libgomp.c++/pr35185.C: New test.
1806 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1809 * testsuite/libgomp.c/pr35549.c: New test.
1811 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1813 * testsuite/libgomp.c/atomic-3.c: New test.
1815 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1818 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1821 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1824 * configure.ac: Add ACX_HEADER_STRING.
1825 * env.c: Include strings.h.
1826 * aclocal.m4: Regenerate.
1827 * config.h.in: Regenerate.
1828 * configure: Regenerate.
1829 * Makefile.in: Regenerate.
1830 * testsuite/Makefile.in: Regenerate.
1832 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1835 * testsuite/libgomp.c/pr35196.c: New test.
1838 * testsuite/libgomp.fortran/pr35130.f90: New test.
1839 * testsuite/libgomp.c/pr35130.c: New test.
1841 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1844 * testsuite/libgomp.c/pr33880.c: New test.
1845 * testsuite/libgomp.fortran/pr33880.f90: New test.
1847 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1849 * configure: Regenerate.
1851 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1853 * configure.ac: Move futex checking into ../config/futex.m4.
1854 * configure: Rebuilt.
1855 * aclocal.m4: Rebuilt.
1856 * Makefile.in: Rebuilt.
1858 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1859 2007-10-15 ../config/tls.m4 change.
1861 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1864 * testsuite/libgomp.c/pr34513.c: New test.
1865 * testsuite/libgomp.c++/pr34513.C: New test.
1867 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1870 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1872 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1874 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1876 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1878 * testsuite/libgomp.c/private-1.c: New test.
1880 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1881 Paolo Bonzini <bonzini@gnu.org>
1883 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1884 instead of 'VPATH ='.
1885 * Makefile.in: Regenerate.
1887 2007-11-23 Matthias Klose <doko@ubuntu.com>
1889 * configure.ac: Adjust makeinfo version check.
1890 * configure: Regenerate.
1892 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1895 * testsuite/libgomp.fortran/pr34020.f90: New test.
1897 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1900 * testsuite/libgomp.c++/atomic-1.C: New test.
1902 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1905 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1906 Make x and y integers rather than (implicit) reals. Add private (j)
1907 clause to the last omp parallel.
1909 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1911 * configure: Regenerate following changes to ../config/tls.m4.
1913 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1915 * testsuite/libgomp.fortran/stack.f90: New test.
1917 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1919 * config/mingw32/proc.c: New file.
1921 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1923 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1924 (main): Use __get_cpuid to get i386 target fetaures.
1925 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1926 (main): Use __get_cpuid to get x86_64 target fetaures.
1928 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1931 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1932 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1934 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1937 * testsuite/libgomp.fortran/pr32550.f90: New test.
1938 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1940 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1942 * aclocal.m4: Regenerated.
1944 2007-07-05 Tobias Burnus <burnus@net-b.de>
1947 * testsuite/libgomp.fortran/pr32359.f90: New.
1949 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1952 * sections.c (GOMP_parallel_sections_start): Only decrease
1953 number of threads to COUNT if dyn_var is true.
1954 * testsuite/libgomp.c/pr32468.c: New test.
1956 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1959 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1961 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1964 * testsuite/libgomp.c/pr32362-1.c: New test.
1965 * testsuite/libgomp.c/pr32362-2.c: New test.
1966 * testsuite/libgomp.c/pr32362-3.c: New test.
1968 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1970 * team.c (gomp_team_start): Fix setting up thread_attr
1973 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1975 * configure: Regenerate.
1977 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1979 * Makefile.in: Regenerate.
1980 * configure: Regenerate.
1981 * aclocal.m4: Regenerate.
1982 * testsuite/Makefile.in: Regenerate.
1984 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1986 * config/linux/proc.c: New file.
1989 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1991 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1993 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1995 2007-04-16 Matthias Klose <doko@debian.org>
1997 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1998 flags if not building with -m64.
1999 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2000 flag for i?86-*-* targets, if current target matches -m64.
2002 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2004 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2005 * Makefile.in: Regenerate.
2007 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2010 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2012 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2014 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2016 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2018 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2019 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2020 (parse_affinity): New function.
2021 (initialize_env): Call it and gomp_init_affinity.
2022 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2023 create new pthread_attr_t and call gomp_init_thread_affinity
2024 on it for each thread before passing the attribute to pthread_create.
2025 * config/linux/affinity.c: New file.
2026 * config/posix/affinity.c: New file.
2027 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2028 * configure: Rebuilt.
2029 * config.h.in: Rebuilt.
2030 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2031 * Makefile.in: Rebuilt.
2033 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2035 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2037 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2038 and use it if found.
2040 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2042 * testsuite/config/default.exp: New file.
2043 * testsuite/lib/libgomp.exp: New file.
2044 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2045 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2046 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2047 (libgomp_load): Remove.
2048 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2049 always_ld_library_path, not ld_library_path. Set additional_flags
2050 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2051 (target_compile): Do not call libgomp_init. Append lang_library_path
2052 and lang_link_flags to options.
2053 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2054 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2056 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2057 always_ld_library_path. Set LD_LIBRARY_PATH here.
2058 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2059 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2060 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2062 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2063 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2064 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2065 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2066 * testsuite/libgomp.c/atomic-10.c: Ditto.
2068 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2070 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2071 dg-final cleanup-modules line.
2072 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2073 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2074 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2075 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2076 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2077 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2078 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2080 2007-03-18 Andreas Schwab <schwab@suse.de>
2082 * acinclude.m4: Adjust regular expression for ld version
2084 * configure: Regenerate.
2086 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2088 * Makefile.am: Add install-pdf target as copied from
2089 automake v1.10 rules.
2090 * Makefile.in: Regenerate
2092 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2095 * configure: Regenerate.
2098 * testsuite/libgomp.c++/pr30703.C: New test.
2100 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2103 2006-07-05 Eric Christopher <echristo@apple.com>
2104 * configure.ac: Depend addition of -pthread on host OS.
2105 * configure: Regenerate.
2107 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2109 * libgomp.texi: Fix spacing after abbreviations.
2111 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2114 * configure.ac: Add check for makeinfo
2115 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2116 if an appropiate version of makeinfo is found.
2117 * aclocal.m4: Regenerated.
2118 * configure: Regenerated.
2119 * Makefile.in: Regenerated.
2120 * testsuite/Makefile.in: Regenerated.
2122 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2125 * libgomp.texi: More about implementation-dependent settings.
2127 2007-01-26 Tobias Burnus <burnus@net-b.de>
2129 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2131 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2134 * testsuite/libgomp.c/pr30494.c: New test.
2136 2007-01-15 Tom Tromey <tromey@redhat.com>
2138 * configure: Rebuilt.
2139 * configure.ac: Fixed comment.
2141 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2143 * libgomp.texi: Document implementation specific default values of
2144 environment variables.
2146 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2149 * libgomp.texi: New file.
2150 * configure.ac: Add --enable-generated-files-in-srcdir option.
2151 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2153 * Makefile.in: Regenerated.
2154 * config.h.in: Regenerated.
2155 * testsuite/Makefile.in: Regenerated.
2158 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2161 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2163 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2165 * configure: Regenerate.
2167 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2170 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2171 start if there shouldn't be any loop iterations.
2172 (gomp_loop_ordered_static_start): Remove start == end test.
2173 * testsuite/libgomp.c/pr29947-1.c: New test.
2174 * testsuite/libgomp.c/pr29947-2.c: New test.
2176 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2178 * configure.tgt: Force initial-exec TLS model on Linux only.
2180 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2182 * configure: Regenerated.
2184 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2186 * env.c (parse_schedule): Reject out of range values.
2187 (parse_unsigned_long): Reject out of range, negative or zero values.
2189 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2192 * testsuite/libgomp.fortran/pr29629.f90: New test.
2194 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2197 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2198 * config/posix95: New directory.
2199 * config/posix95/omp-lock.h: New file.
2200 * config/posix95/lock.c: Likewise.
2202 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2204 * aclocal.m4: Regenerate.
2205 * configure: Regenerate.
2207 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2209 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2212 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2214 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2216 * configure: Regenerate.
2217 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2219 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2223 * testsuite/libgomp.c/nestedfn-4.c: New test.
2224 * testsuite/libgomp.c/nestedfn-5.c: New test.
2225 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2228 * testsuite/libgomp.fortran/condinc1.f: New test.
2229 * testsuite/libgomp.fortran/condinc2.f: New test.
2230 * testsuite/libgomp.fortran/condinc3.f90: New test.
2231 * testsuite/libgomp.fortran/condinc4.f90: New test.
2232 * testsuite/libgomp.fortran/condinc1.inc: New file.
2234 2006-09-18 Tom Tromey <tromey@redhat.com>
2236 * configure: Rebuilt.
2238 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2241 PR preprocessor/14634
2242 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2244 * configure: Regenerate.
2246 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2248 * testsuite/libgomp.fortran/reduction3.f90: Change
2249 -2147483648 to -huge(i)-1 to avoid overflow.
2250 * testsuite/libgomp.fortran/reduction4.f90: Change
2251 Z'ffffffff' to not(0) to avoid overflow.
2253 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2256 * Makefile.am (libsubincludedir): New.
2257 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2258 * Makefile.in: Regenerate.
2260 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2263 * env.c: Include ctype.h.
2264 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2265 leading and/or trailing whitespace and compare strings case
2268 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2271 * testsuite/libgomp.fortran/pr28390.f: New test.
2273 2006-07-05 Eric Christopher <echristo@apple.com>
2275 * configure.ac: Depend addition of -pthread on host OS.
2276 * configure: Regenerate.
2278 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2280 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2281 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2284 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2288 * configure.ac: If neither --enable-linux-futex nor
2289 --disable-linux-futex is passed, determine the default by checking
2290 for compiling and/or running against NPTL. With --enable-linux-futex,
2291 check if SYS_gettid and SYS_futex are defined.
2292 * configure: Rebuilt.
2294 2006-06-14 Richard Henderson <rth@redhat.com>
2297 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2298 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2300 2006-06-09 Richard Henderson <rth@redhat.com>
2302 * env.c (gomp_nthreads_var): Change to unsigned long.
2303 (gomp_run_sched_chunk): Likewise.
2304 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2305 (initialize_env): Initialize gomp_thread_attr.
2306 * libgomp.h (gomp_nthreads_var): Update decl.
2307 (gomp_run_sched_chunk): Likewise.
2308 (gomp_thread_attr): Declare.
2309 * team.c (gomp_thread_attr): Export.
2310 (initialize_team): Don't initialize it.
2312 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2315 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2316 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2318 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2320 * config/mingw32/time.c: New file.
2321 * configure.tgt: Use it.
2323 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2325 * Makefile.am: Add install-html target. Add install-html to .PHONY
2326 * Makefile.in: Regenerate.
2328 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2331 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2332 * testsuite/libgomp.c/critical-1.c: Likewise.
2333 * testsuite/libgomp.c/loop-1.c: Likewise.
2334 * testsuite/libgomp.c/loop-2.c: Likewise.
2335 * testsuite/libgomp.c/single-1.c: Likewise.
2336 * testsuite/libgomp.c/ordered-1.c: Likewise.
2337 * testsuite/libgomp.c/ordered-2.c: Likewise.
2339 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2342 * libgomp.fortran/pr27416-1.f90: New test.
2344 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2347 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2348 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2350 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2353 * testsuite/libgomp.c/pr26943-1.c: New test.
2354 * testsuite/libgomp.c/pr26943-2.c: New test.
2355 * testsuite/libgomp.c/pr26943-3.c: New test.
2356 * testsuite/libgomp.c/pr26943-4.c: New test.
2357 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2358 * testsuite/libgomp.c++/pr26943.C: New test.
2360 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2363 * testsuite/libgomp.c++/pr27337.C: New test.
2365 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2368 * testsuite/libgomp.c/pr26171.c: New test.
2370 2006-04-25 Richard Henderson <rth@redhat.com>
2373 * configure.ac: Use GCC_CHECK_TLS.
2374 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2375 * Makefile.in, aclocal.m4, configure: Regenerate.
2377 2006-04-10 Matthias Klose <doko@debian.org>
2379 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2380 directory names containing underscores.
2382 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2385 * testsuite/libgomp.c++/pr26691.C: New test.
2387 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2389 * testsuite/libgomp.fortran/retval2.f90: New test.
2391 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2393 * testsuite/libgomp.c++: New directory.
2395 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2397 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2398 * config/posix/sem.c: Implement the above.
2400 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2402 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2403 define HAVE_BROKEN_POSIX_SEMAPHORES.
2404 * configure: Rebuilt.
2405 * config.h.in: Rebuilt.
2407 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2410 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2411 for the other pthread check.
2412 * configure: Regenerate.
2413 * config.h.in: Regenerate.
2415 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2419 * Makefile.am (fincludedir): New variable.
2420 (nodist_include_HEADERS): Remove Fortran files.
2421 (nodist_finclude_HEADERS): New variable.
2422 * Makefile.in: Regenerated.
2424 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2426 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2427 Remove tests for returning assumed character length arrays.
2429 2006-02-12 Roger Sayle <roger@eyesopen.com>
2430 John David Anglin <dave@hiauly1.hia.nrc.ca>
2433 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2435 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2437 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2439 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2441 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2442 part of LD_LIBRARY_PATH manually.
2444 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2447 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2450 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2453 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2454 * configure.ac (PERL): Don't set.
2455 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2456 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2457 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2458 * omp.h.in: Wrap the new configure substitutions with @ characters.
2459 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2460 * aclocal.m4, configure, Makefile.in: Regenerate.
2461 * mkomp_h.pl: Delete.
2463 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2466 * configure.ac: Use GCC_HEADER_STDINT.
2467 * libgomp.h: Include gstdint.h.
2468 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2469 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2471 2006-01-24 Richard Henderson <rth@redhat.com>
2474 * configure.ac: Add AM_MAINTAINER_MODE.
2475 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2477 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2479 * Makefile.in: Regenerate.
2480 * testsuite/Makefile.in: Regenerate.
2481 * aclocal.m4: Regenerate.
2483 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2485 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2487 * configure.ac: Add check for loadavg.h.
2488 (link_gomp): Adjust comment.
2489 * configure: Regenerate.
2490 * config.h.in: Regenerate.
2492 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2495 * configure.ac: Remove check for alloca.h.
2496 * configure: Regenerate.
2497 * config.h.in: Regenerate.
2498 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2499 * team.c: Remove use of alloca.h.
2500 Call gomp_alloca instead of alloca.
2502 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2505 * team.c: Add include of alloca.h.
2506 * configure.ac: Add check for alloca.h.
2507 * configure: Regenerate.
2508 * config.h.in: Regenerate.
2510 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2513 * testsuite/libgomp.fortran/pr25219.f90: New test.
2515 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2517 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2518 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2519 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2520 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2521 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2522 testsuite/libgomp.fortran/threadprivate1.f90,
2523 testsuite/libgomp.fortran/threadprivate2.f90,
2524 testsuite/libgomp.fortran/threadprivate3.f90,
2525 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2526 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2527 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2528 effective-target to TLS runtime.
2530 * testsuite/libgomp.fortran/pr25162.f: Require
2531 effective-target TLS runtime.
2533 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2535 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2536 * testsuite/libgomp.c/nestedfn-3.c: New test.
2538 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2541 * testsuite/libgomp.fortran/pr25162.f: New test.
2543 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2545 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2546 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2548 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2550 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2551 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2552 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2553 single.c, team.c, work.c, config/linux/alpha/futex.h,
2554 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2555 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2556 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2557 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2558 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2559 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2560 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2563 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2565 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2566 to nodist_noinst_HEADERS.
2567 * Makefile.in: Rebuilt.
2569 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2570 add integer count field.
2571 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2572 omp_nest_lock_t type change.
2573 (omp_init_nest_lock): Likewise. Initialize count to 0.
2574 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2576 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2578 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2579 Increment count if successful and return the new nesting level.
2580 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2581 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2582 * testsuite/libgomp.c/lib-1.c: New test.
2583 * testsuite/libgomp.fortran/lib1.f90: New test.
2584 * testsuite/libgomp.fortran/lib2.f: New test.
2585 * testsuite/libgomp.fortran/lib3.f: New test.
2587 2005-11-17 Richard Henderson <rth@redhat.com>
2590 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2591 * configure.ac (link_gomp): New. Substitute it.
2592 (AC_CONFIG_FILES): Add libgomp.spec.
2593 * libgomp.spec.in: New file.
2594 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2595 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2597 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2599 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2600 reduction(-:var) behaving the same as reduction(+:var).
2601 * testsuite/libgomp.c/reduction-4.c: New test.
2603 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2605 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2606 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2607 testsuite/libgomp.c/copyin-3.c,
2608 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2609 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2610 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2611 testsuite/libgomp.c++/pr24455.C,
2612 testsuite/libgomp.fortran/threadprivate1.f90,
2613 testsuite/libgomp.fortran/threadprivate2.f90,
2614 testsuite/libgomp.fortran/threadprivate3.f90,
2615 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2616 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2617 testsuite/libgomp.fortran/omp_parse3.f90: Require
2618 effective-target TLS.
2620 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2624 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2627 * team.c (initialize_team): Pass NULL rather than free as
2628 pthread_key_create destructor. Initialize thread specific data
2629 pointer in initial thread to a static local variable rather than
2632 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2634 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2635 its location to ld_library_path.
2637 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2639 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2641 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2643 * testsuite/libgomp.c: Rename from libgomp.dg.
2645 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2647 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2648 threadprivate variable 'i'.
2650 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2652 * config/linux/s390/futex.h: New file.
2653 * configure.tgt: Use it.
2655 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2656 before the parallel.
2658 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2661 * testsuite/libgomp.c++/master-1.C: New test.
2663 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2665 * testsuite/libgomp.dg/copyin-3.c: New test.
2667 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2669 * testsuite/libgomp.fortran/retval1.f90: New test.
2670 * testsuite/libgomp.fortran/vla7.f90: New test.
2672 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2674 * testsuite/libgomp.fortran/vla2.f90: New test.
2675 * testsuite/libgomp.fortran/vla3.f90: New test.
2676 * testsuite/libgomp.fortran/vla4.f90: New test.
2677 * testsuite/libgomp.fortran/vla5.f90: New test.
2678 * testsuite/libgomp.fortran/vla6.f90: New test.
2680 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2682 * config/linux/sparc/futex.h: New file.
2683 * configure.tgt: Use it.
2684 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2686 * critical.c: Include stdlib.h.
2687 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2688 ignoring return value.
2689 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2690 LIBGOMP_CHECK_SYNC_BUILTINS check.
2691 * configure: Rebuilt.
2693 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2695 * testsuite/libgomp.fortran/vla1.f90: New test.
2697 2005-10-31 Richard Henderson <rth@redhat.com>
2699 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2700 setting 's' in different threads.
2702 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2704 * libgomp.h (attribute_hidden, ialias): Define.
2705 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2706 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2707 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2708 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2709 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2710 omp_test_lock, omp_test_nest_lock): Likewise.
2711 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2712 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2713 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2714 omp_test_lock, omp_test_nest_lock): Likewise.
2715 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2716 omp_get_dynamic, omp_get_nested): Likewise.
2717 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2718 omp_get_thread_num, omp_in_parallel): Likewise.
2719 * fortran.c (ialias_redirect): Define.
2720 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2721 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2722 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2723 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2724 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2725 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2726 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2727 omp_get_wtime): Add ialias_redirect.
2729 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2731 * fortran.c: Include stdlib.h.
2733 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2735 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2736 * Makefile.in: Regenerated.
2738 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2740 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2741 * libgomp_f.h.in (omp_check_defines): New function.
2742 * env.c: Include libgomp_f.h.
2743 (initialize_env): Call omp_check_defines.
2745 * testsuite/libgomp.dg/copyin-2.c: New test.
2746 * testsuite/libgomp.c++/copyin-2.C: New test.
2747 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2749 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2750 * testsuite/libgomp.fortran/sharing2.f90: New test.
2752 * testsuite/libgomp.dg/copyin-1.c: New test.
2753 * testsuite/libgomp.c++/copyin-1.C: New test.
2755 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2757 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2759 * testsuite/libgomp.fortran/workshare1.f90: New test.
2761 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2763 * libgomp.fortran/sharing1.f90: New test.
2765 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2768 * testsuite/libgomp.c++/loop-7.C: New test.
2770 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2772 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2773 * testsuite/libgomp.fortran/reduction6.f90: New test.
2774 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2776 2005-10-23 Richard Henderson <rth@redhat.com>
2778 * testsuite/libgomp.c++/ctor-1.C: New.
2779 * testsuite/libgomp.c++/ctor-2.C: New.
2780 * testsuite/libgomp.c++/ctor-3.C: New.
2781 * testsuite/libgomp.c++/ctor-4.C: New.
2782 * testsuite/libgomp.c++/ctor-5.C: New.
2783 * testsuite/libgomp.c++/ctor-6.C: New.
2784 * testsuite/libgomp.c++/ctor-7.C: New.
2785 * testsuite/libgomp.c++/ctor-8.C: New.
2786 * testsuite/libgomp.c++/ctor-9.C: New.
2788 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2791 * testsuite/libgomp.c++/pr24455-1.C: New test.
2792 * testsuite/libgomp.c++/pr24455.C: New test.
2793 * testsuite/libgomp.dg/pr24455-1.c: New test.
2794 * testsuite/libgomp.dg/pr24455.c: New test.
2796 2005-10-20 Richard Henderson <rth@redhat.com>
2798 * testsuite/libgomp.c++/loop-6.C: New.
2799 * testsuite/libgomp.dg/loop-3.c: New.
2801 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2803 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2805 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2808 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2810 * testsuite/libgomp.fortran/jacobi.f: New test.
2812 2005-10-19 Richard Henderson <rth@redhat.com>
2814 * configure.tgt (i?86-linux): Default to with_arch instead of
2815 CFLAGS. Add -mtune to match target_cpu.
2816 (x86_64-linux): Tune to i686.
2818 * fortran.c (omp_test_nest_lock_): Fix typo.
2820 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2822 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2823 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2824 * testsuite/libgomp.dg/ordered-3.c: New test.
2826 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2827 Remove volatile keyword.
2829 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2830 in COMMON block to avoid warnings on 64-bit targets.
2832 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2834 * testsuite/libgomp.dg/shared-3.c: New test.
2836 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2838 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2839 * testsuite/libgomp.fortran/reduction5.f90: New test.
2841 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2843 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2845 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2846 flush loop now that __sync_synchronize has proper memory barrier.
2847 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2848 Add -ffixed-form to dg-options.
2850 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2852 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2853 from subdirectories.
2854 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2855 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2856 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2857 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2858 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2859 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2860 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2861 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2862 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2863 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2864 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2865 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2866 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2867 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2868 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2869 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2870 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2871 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2872 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2873 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2874 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2875 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2876 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2877 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2878 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2880 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2882 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2883 lang_library_path exists. Use find instead of glob to gather tests.
2884 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2886 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2888 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2889 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2890 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2891 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2892 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2893 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2894 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2895 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2896 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2897 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2898 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2899 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2900 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2902 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2904 * testsuite/libgomp.dg/vla-1.c: New test.
2906 * testsuite/libgomp.fortran/reference2.f90: New test.
2908 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2909 declaration of omp_get_thread_num.
2910 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2913 * testsuite/libgomp.fortran/reduction1.f90: New test.
2914 * testsuite/libgomp.fortran/reduction2.f90: New test.
2915 * testsuite/libgomp.fortran/reduction3.f90: New test.
2916 * testsuite/libgomp.fortran/reduction4.f90: New test.
2918 2005-10-13 Richard Henderson <rth@redhat.com>
2920 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2921 * Makefile.in: Regenerate.
2922 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2923 * libgomp.h: Include bar.h.
2924 (struct gomp_barrier): Remove.
2925 (struct gomp_team): Add barrier. Replace master_barrier with
2926 master_release. Replace threads with ordered_release.
2927 (struct gomp_thread): Replace barrier with release.
2928 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2929 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2930 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2931 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2932 (GOMP_single_copy_end): Likewise.
2933 * team.c (gomp_threads_dock): New.
2934 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2935 (gomp_thread_start): Use gomp_barrier_wait.
2936 (new_team, free_team): Update for gomp_team changes.
2937 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2938 (gomp_team_end): Use gomp_barrier_wait.
2939 (initialize_team): Update for gomp_thread changes.
2940 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2941 (gomp_work_share_end_nowait): Use atomic ops when available.
2942 * config/linux/bar.c, config/linux/bar.h: New files.
2943 * config/posix/bar.c, config/posix/bar.h: New files.
2945 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2947 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2948 * testsuite/libgomp.dg/single-2.c: New test.
2950 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2951 lang_link_flags): Unset, so that they aren't inherited from previously
2954 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2956 2005-10-12 Richard Henderson <rth@redhat.com>
2958 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2959 (libgomp_init): Use lang_test_file, lang_library_path, and
2960 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2962 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2963 (lang_test_file, lang_link_flags): New.
2964 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2966 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2967 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2968 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2969 testsuite/libgomp.c++/parallel-1.C,
2970 testsuite/libgomp.c++/reduction-1.C,
2971 testsuite/libgomp.c++/reduction-2.C,
2972 testsuite/libgomp.c++/reduction-3.C,
2973 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2974 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2975 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2976 New files, largely cribbed from the C testsuite.
2978 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2980 * testsuite/libgomp.fortran/character1.f90: New test.
2981 * testsuite/libgomp.fortran/character2.f90: New test.
2983 * testsuite/libgomp.dg/nested-1.c: New test.
2984 * testsuite/libgomp.dg/nested-2.c: New test.
2985 * testsuite/libgomp.fortran/do1.f90: New test.
2986 * testsuite/libgomp.fortran/do2.f90: New test.
2988 * testsuite/libgomp.fortran/reference1.f90: New test.
2990 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2992 * testsuite/libgomp.dg/reduction-1.c: New test.
2993 * testsuite/libgomp.dg/reduction-2.c: New test.
2994 * testsuite/libgomp.dg/reduction-3.c: New test.
2996 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2998 * testsuite/libgomp.dg/atomic-1.c: New test.
2999 * testsuite/libgomp.dg/atomic-2.c: New test.
3001 2005-10-09 Richard Henderson <rth@redhat.com>
3003 * critical.c (atomic_lock): New.
3004 (initialize_critical): Initialize it.
3005 (GOMP_atomic_start, GOMP_atomic_end): New.
3006 * libgomp.map: Export them.
3007 * libgomp_g.h: Declare them.
3009 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3011 2005-10-02 Richard Henderson <rth@redhat.com>
3013 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3014 to XCFLAGS instead of CFLAGS.
3016 2005-09-30 Richard Henderson <rth@redhat.com>
3018 * configure.ac: Determine whether -pthread or -lpthread is needed.
3019 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3020 * Makefine.in, configure: Rebuild.
3022 2005-09-28 Richard Henderson <rth@redhat.com>
3024 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3025 * testsuite/libgomp.dg/omp-single-3.c: New test.
3027 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3029 * testsuite/libgomp.dg/omp-single-2.c: New test.
3030 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3032 2005-09-27 Richard Henderson <rth@redhat.com>
3034 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3035 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3037 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3039 * testsuite/libgomp.dg/omp-loop03.c: New test.
3041 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3043 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3045 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3047 * testsuite/libgomp.dg/omp-single-1.c: New test.
3048 * testsuite/libgomp.dg/shared-1.c: Return 0.
3049 Add prototype for abort.
3050 * testsuite/libgomp.dg/shared-2.c: Likewise.
3052 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3054 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3057 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3059 * testsuite/libgomp.dg/shared-1.c: New test.
3060 * testsuite/libgomp.dg/shared-2.c: New test.
3062 2005-09-24 Richard Henderson <rth@redhat.com>
3064 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3066 2005-09-24 Richard Henderson <rth@redhat.com>
3068 * iter.c (gomp_iter_static_next): Round up when computing number
3069 of iterations. Don't bother distributing a remainder equally.
3071 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3072 Don't call srand. Zero b before testing.
3075 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3077 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3078 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3080 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3082 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3083 without !$omp end do, followed immediately by subroutine end.
3085 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3087 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3089 2005-09-22 Richard Henderson <rth@redhat.com>
3091 * critical.c (GOMP_critical_name_start): Change argument to void**.
3092 Reuse the pointer space if the mutex fits.
3093 (GOMP_critical_name_end): Likewise.
3094 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3095 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3096 (GOMP_critical_name_end): Likewise.
3097 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3098 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3100 2005-09-20 Richard Henderson <rth@redhat.com>
3102 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3103 (create_lock_lock): New.
3104 (initialize_critical): Initialize it.
3105 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3106 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3108 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3110 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3112 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3114 * testsuite/libgomp.dg/omp-loop01.c: New test.
3115 * testsuite/libgomp.dg/omp-loop02.c: New test.
3117 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3119 * configure.ac (AC_PROG_FC): Add.
3120 (USE_FORTRAN): New automake conditional.
3121 * configure: Rebuilt.
3122 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3123 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3124 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3125 Add rules to build them.
3126 * Makefile.in: Rebuilt.
3127 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3129 * libgomp.map: Add Fortran wrappers.
3130 * libgomp_f.h.in: New file.
3131 * omp_lib.h.in: New file.
3132 * omp_lib.f90.in: New file.
3133 * fortran.c: New file.
3134 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3135 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3136 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3137 libgfortran has been built.
3138 * testsuite/libgomp.fortran/fortran.exp: New file.
3139 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3140 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3141 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3142 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3143 * testsuite/libgomp.fortran/omp_hello.f: New test.
3144 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3145 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3146 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3147 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3148 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3149 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3150 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3151 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3153 2005-08-30 Richard Henderson <rth@redhat.com>
3155 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3156 function for when aliases are not usable.
3157 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3158 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3159 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3160 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3161 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3162 GOMP_loop_ordered_guided_next): Likewise.
3163 * ordered.c (GOMP_ordered_start): Likewise.
3165 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3167 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3168 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3169 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3170 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3171 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3172 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3173 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3174 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3175 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3177 2005-07-07 Eric Christopher <echristo@redhat.com>
3178 Diego Novillo <dnovillo@redhat.com>
3180 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3181 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3183 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3184 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3185 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3186 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3187 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3188 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3189 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3191 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3193 * TOPLEVEL.patch: Remove.
3195 2005-05-16 Richard Henderson <rth@redhat.com>
3197 * configure.ac: Test for clock_gettime.
3198 * config.h.in, configure: Rebuild.
3199 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3200 (omp_get_wtime): Use clock_gettime if available.
3201 (omp_get_wtick): Use clock_getres if available.
3203 2005-05-11 Richard Henderson <rth@redhat.com>
3205 * config/linux/ia64/futex.h: New file.
3206 * configure.tgt: Use it.
3208 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3210 2005-05-07 Richard Henderson <rth@redhat.com>
3212 * config/linux/powerpc/futex.h: New file.
3213 * configure.tgt: Use it.
3215 * config/linux/i486/futex.h: Merge ...
3216 * config/linux/x86_64/futex.h: ... into ...
3217 * config/linux/x86/futex.h: ... here.
3218 * configure.tgt: Update to match.
3220 2005-05-06 Richard Henderson <rth@redhat.com>
3222 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3223 * config/linux/i486/futex.h: Likewise.
3224 * config/linux/x86_64/futex.h: Likewise.
3226 * config/linux/lock.c: New file.
3227 * config/linux/omp-lock.h: New file.
3229 * critical.c, env.h: Don't include omp.h
3230 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3231 * config/posix/time.c: Likewise.
3232 * config/posix/omp-lock.h: New file.
3233 * libgomp.h: Include omp-lock.h and omp.h.
3234 * Makefile.am (nodist_include_HEADERS): New.
3236 * configure.ac (PERL): New.
3237 * mkomp_h.pl: New file.
3238 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3240 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3242 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3243 build directory. Re-add -march=i486 hack.
3245 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3246 (libgomp_link_flags): Remove.
3247 (libgomp_initialized): Remove.
3248 (libgomp_init): Don't protect from reinitialization. Copy code
3249 from libstdc++ for getting the multilib set correctly.
3251 2005-05-05 Richard Henderson <rth@redhat.com>
3253 * config/linux/alpha/futex.h: New file.
3254 * configure.tgt (alpha*-*-linux*): Use it.
3256 * config/posix/mutex.c: New file.
3257 * config/posix/sem.c: Use libgomp.h.
3259 * configure.tgt (x86_64-linux): Also test CC for -m32.
3260 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3262 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3265 * Makefile.am (SUBDIRS): New.
3266 (libgomp_la_LDFLAGS): Add -lpthread.
3267 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3268 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3270 * libgomp_g.h: New file.
3271 * libgomp.h: Split out all public declarations to libgomp_g.h.
3272 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3273 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3274 * config/linux/sem.h: Likewise.
3275 * config/posix/sem.h: Likewise.
3277 * Makefile.am (AM_LDFLAGS): New.
3278 (libgomp_version_script): Split out from ...
3279 (libgomp_la_LDFLAGS): ... here.
3280 (libgomp_version_info): New.
3281 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3282 (LIBGOMP_ENABLE): New.
3283 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3284 (LIBGOMP_ENABLE_SYMVERS): New.
3285 * configure.ac (AC_INIT): Version 1.0.
3286 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3287 (enable-linux-futex): Likewise. Rename from enable-futex.
3288 (libtool_VERSION): New.
3289 (LIBGOMP_ENABLE_SYMVERS): Use it.
3290 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3291 * Makefile.in, aclocal.m4, configure: Rebuild.
3293 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3294 (gomp_mutex_unlock_slow): Fix typo.
3295 * config/linux/sem.c: Similarly.
3296 (gomp_sem_post_slow): Fix typo.
3297 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3298 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3299 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3301 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3302 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3303 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3304 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3305 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3306 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3307 LDFLAGS. Pull enable_futex check to top-level.
3308 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3309 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3311 First attempt at real configury.
3312 * Makefile, config.h: Remove file.
3313 * Makefile.am, Makefile.in: New file.
3314 * acinclude.m4 aclocal.m4: New file.
3315 * configure.ac, configure.tgt, configure: New file.
3317 * config/posix/lock.c: Rename from sys-lock.c.
3318 * config/posix/mutex.h: Rename from sys-mutex.h.
3319 * config/posix/sem.c: Rename from sys-sem.c.
3320 * config/posix/sem.h: Rename from sys-sem.h.
3321 * config/posix/proc.c: Rename from sys-proc.c.
3322 * config/posix/time.c: Rename from sys-proc.c.
3324 * config/linux/mutex.c: New file.
3325 * config/linux/mutex.h: New file.
3326 * config/linux/sem.c: New file.
3327 * config/linux/sem.h: New file.
3328 * config/linux/i486/futex.h: New file.
3329 * config/linux/x86_64/futex.h: New file.
3331 2005-05-04 Richard Henderson <rth@redhat.com>
3333 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3334 * libgomp.h: Declare them.
3335 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3336 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3338 2005-05-04 Richard Henderson <rth@redhat.com>
3340 * libgomp-1 code drop
3342 2005-05-04 Richard Henderson <rth@redhat.com>
3344 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3345 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3346 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3347 (gomp_iter_static_next): Update.
3348 (gomp_ordered_static_next): Update.
3349 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3350 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3351 totally empty range.
3352 (gomp_loop_ordered_static_next): Refine test for calling
3353 gomp_ordered_static_next.
3354 * testsuite/ordered-1.c: Add case for more threads than iterations.
3356 * iter.c (gomp_iter_runtime_next_locked): Remove.
3357 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3358 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3359 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3360 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3361 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3362 gomp_loop_ordered_guided_next): Downcase name, make static, add
3363 an external alias with the old name.
3364 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3365 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3366 switch and call one of the above static functions.
3367 * libgomp.h: Update.
3369 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3370 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3371 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3372 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3373 GOMP_loop_ordered_guided_start): Update to match.
3374 * sections.c (GOMP_sections_start): Likewise.
3375 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3377 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3378 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3379 Use bounds check instead of modulus.
3380 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3381 (gomp_ordered_last): Don't sync with ordered_owner here.
3382 (gomp_ordered_next): Likewise.
3383 (gomp_ordered_static_loop_next): Likewise.
3384 * loop.c, libgomp.h: Update to match.
3386 * libgomp.h (GOMP_barrier): Declare.
3388 * testsuite/barrier-1.c: New file.
3389 * testsuite/critical-1.c: New file.
3390 * testsuite/ordered-2.c: New file.
3391 * testsuite/ordered-1.c: New file.
3392 * testsuite/sections-1.c: New file.
3393 * testsuite/single-1.c: New file.
3394 * testsuite/Makefile (TESTS): Add them.
3396 2005-05-04 Richard Henderson <rth@redhat.com>
3398 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3399 * loop.c (GOMP_loop_static_start): If not the startup thread,
3400 acquire the mutex to wait for initialization complete.
3401 (GOMP_loop_ordered_static_start): Likewise.
3402 (GOMP_loop_ordered_runtime_start): Likewise.
3403 (GOMP_loop_ordered_static_first): Remove.
3404 (GOMP_loop_ordered_dynamic_first): Remove.
3405 (GOMP_loop_ordered_guided_first): Remove.
3406 (GOMP_loop_ordered_runtime_first): Remove.
3407 * ordered.c (gomp_ordered_loop_first): Post to own release when
3408 we're the first thread.
3409 (gomp_ordered_loop_last): Wait on release if not owner.
3410 (gomp_ordered_loop_next): Likewise.
3411 (gomp_ordered_static_loop_init): New.
3412 (gomp_ordered_static_loop_next): Use ordered_owner.
3413 (GOMP_ordered_start): Likewise.
3414 * work.c (gomp_new_work_share): Initialize ordered_owner.
3416 2005-05-03 Richard Henderson <rth@redhat.com>
3418 * Makefile (OPT): New.
3421 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3422 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3423 * libgomp.h, libgomp.map, NOTES: Update to match.
3425 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3426 Add initialized and thr members.
3427 (gomp_thread_start): Pause when initially spawned to wait for
3428 the whole team to be created.
3429 (gomp_team_start): Release team members at the end.
3431 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3432 (f_foo_1): Use GOMP_loop_end.
3433 (f_foo_2): Use GOMP_loop_end_nowait.
3435 * testsuite/loop-2.c: New file.
3436 * testsuite/Makefile (TESTS): Add it.
3438 2005-05-03 Richard Henderson <rth@redhat.com>
3440 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3441 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3442 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3445 * testsuite/Makefile: New file.
3446 * testsuite/loop-1.c: New file.
3448 2005-05-03 Richard Henderson <rth@redhat.com>
3450 Initial implementation and checkin.