1 2013-06-20 Iain Sandoe <iain@codesourcery.com>
2 Cesar Philippidis <cesar@codesourcery.com>
4 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
5 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
6 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
10 Use dg-runtest rather than gfortran-dg-runtest.
12 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
14 * testsuite/libgomp.c/icv-2.c: Extend current handling of
15 Linux-based x86 systems to cover all GNU systems.
16 * testsuite/libgomp.c/lock-3.c: Likewise.
17 * testsuite/libgomp.c/pr48591.c: Likewise.
19 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
21 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
22 GNU/Hurd, as done for Linux-based systems.
24 * config/posix/ptrlock.h: Fix comment.
26 2013-05-27 Tobias Burnus <burnus@net-b.de>
29 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
30 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
31 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
32 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
33 omp_destroy_nest_lock): Correct arguments to match the one in
35 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
36 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
37 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
38 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
40 2013-05-16 Jakub Jelinek <jakub@redhat.com>
42 * testsuite/libgomp.c/loop-13.c: New test.
43 * testsuite/libgomp.c/loop-14.c: New test.
44 * testsuite/libgomp.c/loop-15.c: New test.
45 * testsuite/libgomp.c++/loop-13.C: New test.
46 * testsuite/libgomp.c++/loop-14.C: New test.
47 * testsuite/libgomp.c++/loop-15.C: New test.
49 2013-02-06 Jakub Jelinek <jakub@redhat.com>
52 * testsuite/libgomp.c++/pr56217.C: New test.
54 2013-02-01 Alan Modra <amodra@gmail.com>
56 * task.c (GOMP_task, GOMP_taskwait): Comment.
58 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
59 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
62 * config/linux/wait.h (do_spin): Use atomic load for addr.
63 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
64 for intptr and ptrlock.
65 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
68 2013-01-22 Alan Modra <amodra@gmail.com>
72 * task.c (GOMP_task): Revert 2011-12-09 change.
73 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
74 barrier to read task->children..
75 (gomp_barrier_handle_tasks): ..and matching atomic store with
76 release barrier here when setting parent->children to NULL.
78 2013-01-16 Jakub Jelinek <jakub@redhat.com>
79 Tobias Burnus <burnus@net-b.de>
82 * testsuite/libgomp.fortran/fortran.exp: Use
83 -fintrinsic-modules-path= instead of
84 -fintrinsic-modules-path.
86 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
88 Update copyright years.
90 2012-12-19 Tobias Burnus <burnus@net-b.de>
92 * testsuite/libgomp.fortran/fortran.exp: Set
93 -fintrinsic-modules-path.
95 2012-12-19 Tobias Burnus <burnus@net-b.de>
97 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
98 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
100 2012-11-21 Jakub Jelinek <jakub@redhat.com>
103 * team.c (gomp_free_thread): Decrease gomp_managed_threads
104 if pool had any threads_used.
106 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
108 * testsuite/libgomp.c++/pr24455.C: Use
109 -Wl,-undefined,dynamic_lookup on darwin.
111 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
113 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
115 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
117 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
119 2012-10-23 Ian Bolton <ian.bolton@arm.com>
120 Jim MacArthur <jim.macarthur@arm.com>
121 Marcus Shawcroft <marcus.shawcroft@arm.com>
122 Nigel Stephens <nigel.stephens@arm.com>
123 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
124 Richard Earnshaw <rearnsha@arm.com>
125 Sofiane Naci <sofiane.naci@arm.com>
126 Stephen Thomas <stephen.thomas@arm.com>
127 Tejas Belagod <tejas.belagod@arm.com>
128 Yufeng Zhang <yufeng.zhang@arm.com>
130 * configure.tgt: Add AArch64.
132 2012-10-04 Jason Merrill <jason@redhat.com>
134 * testsuite/libgomp.c++/tls-init1.C: New.
136 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
138 * configure: Regenerated.
140 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
142 * config/linux/mips/futex.h (sys_futex0): Change to static
143 function with noinline, nomips16 attributes under MIPS16. Adjust
144 asm statement to place 'li v0,SYS_futex' immediately before
147 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
149 * libgomp.texi (Library Index): Renamed from "Index" to prevent
150 conflict with index.html on case-insensitive file systems.
152 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
154 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
155 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
157 2012-07-02 Richard Guenther <rguenther@suse.de>
158 Michael Matz <matz@suse.de>
159 Tobias Grosser <tobias@grosser.es>
160 Sebastian Pop <sebpop@gmail.com>
162 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
163 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
164 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
165 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
167 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
169 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
171 2012-06-22 Richard Guenther <rguenther@suse.de>
173 Merge from graphite branch
174 2012-01-13 Tobias Grosser <tobias@grosser.es>
176 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
177 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
179 2012-06-07 Jakub Jelinek <jakub@redhat.com>
182 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
183 use GOMP_barrier () call instead.
184 * testsuite/libgomp.c/pr26943-3.c: Likewise.
185 * testsuite/libgomp.c/pr26943-4.c: Likewise.
186 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
187 call GOMP_barrier instead.
188 * testsuite/libgomp.fortran/vla5.f90: Likewise.
190 2012-06-06 Jakub Jelinek <jakub@redhat.com>
193 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
194 argument to memset call.
196 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
198 * configure: Regenerated.
200 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
202 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
204 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
207 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
209 2012-03-22 Jakub Jelinek <jakub@redhat.com>
212 * testsuite/libgomp.c/pr52547.c: New test.
214 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
216 * testsuite/lib/libgomp.exp: load fortran-modules.exp
218 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
220 * configure.tgt (mips-sgi-irix6*): Remove.
222 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
224 * configure.tgt (alpha*-dec-osf*): Remove.
226 * config/osf/sem.h: Remove.
227 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
229 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
231 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
233 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
236 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
237 Remove ENABLE_SYMVERS_SOL2.
238 * configure: Regenerate.
239 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
240 (PREPROCESS): New variable.
241 (libgomp.ver): New target.
242 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
243 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
244 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
246 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
247 * Makefile.in: Regenerate.
249 2012-02-14 Walter Lee <walt@tilera.com>
251 * configure.tgt: Handle tilegx and tilepro.
252 * config/linux/tile/futex.h: New file.
254 2012-02-08 Richard Guenther <rguenther@suse.de>
256 PR tree-optimization/46886
257 * testsuite/libgomp.c/pr46886.c: New testcase.
259 2012-01-25 Matthias Klose <doko@ubuntu.com>
261 * config/linux/arm: Remove empty directory.
262 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
264 2011-12-09 Alan Modra <amodra@gmail.com>
267 * task.c (GOMP_taskwait): Don't access task->children outside of
268 task_lock mutex region.
269 (GOMP_task): Likewise.
271 2011-12-06 Jakub Jelinek <jakub@redhat.com>
274 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
276 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
277 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
278 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
279 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
280 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
282 2011-12-02 Alan Modra <amodra@gmail.com>
284 * config/linux/affinity.c: Use atomic rather than sync builtin.
285 * config/linux/lock.c: Likewise.
286 * config/linux/ptrlock.h: Likewise.
287 * config/linux/ptrlock.c: Likewise.
288 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
289 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
290 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
291 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
292 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
293 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
294 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
295 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
296 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
297 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
299 2011-11-30 Alan Modra <amodra@gmail.com>
302 * config/linux/bar.h: Use atomic rather than sync builtins.
303 * config/linux/bar.c: Likewise. Add missing acquire
304 synchronisation on generation field.
305 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
308 2011-11-30 Alan Modra <amodra@gmail.com>
310 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
311 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
312 * config/linux/mutex.h: Use atomic rather than sync builtins.
313 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
314 * config/linux/omp-lock.h: Comment fix.
315 * config/linux/arm/mutex.h: Delete.
316 * config/linux/powerpc/mutex.h: Delete.
317 * config/linux/ia64/mutex.h: Delete.
318 * config/linux/mips/mutex.h: Delete.
320 2011-11-30 Alan Modra <amodra@gmail.com>
323 * config/linux/sem.h: Rewrite.
324 * config/linux/sem.c: Rewrite.
326 2011-11-28 Richard Henderson <rth@redhat.com>
328 * libgomp.h (enum memmodel): New.
330 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
332 * configure: Regenerate.
334 2011-10-10 Matthias Klose <doko@ubuntu.com>
336 * config/posix95: Remove empty directory.
338 2011-08-26 Jakub Jelinek <jakub@redhat.com>
340 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
342 2011-08-19 Jakub Jelinek <jakub@redhat.com>
345 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
346 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
348 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
350 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
352 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
355 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
357 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
359 * config/linux/proc.h: New.
360 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
361 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
362 (gomp_init_num_threads): Update call to cpuset_popcount.
363 (get_num_procs): Ditto.
364 * config/linux/affinity.c (gomp_init_affinity): Call
365 gomp_cpuset_popcount.
367 2011-08-02 Jakub Jelinek <jakub@redhat.com>
371 * omp.h.in (omp_in_final): New prototype.
372 * omp_lib.f90.in (omp_in_final): New interface.
373 (omp_integer_kind, omp_logical_kind): Remove
374 and replace all its uses in the module with 4.
375 (openmp_version): Change to 201107.
376 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
377 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
378 kind for the parameters.
379 (omp_in_final): New external.
380 (openmp_version): Change to 201107.
381 * task.c (omp_in_final): New function.
382 (gomp_init_task): Initialize final_task.
383 (GOMP_task): Remove unused attribute from flags. Handle final
385 (GOMP_taskyield): New function.
386 (omp_in_final): Return true if if (false) or final (true) task
387 or descendant of final (true).
388 * fortran.c (omp_in_final_): New function.
389 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
390 (GOMP_3.0): Export GOMP_taskyield.
391 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
393 (parse_unsigned_long_list): New function.
394 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
395 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
396 even if parse_affinity returned false.
397 * config/linux/affinity.c (gomp_init_affinity): Handle
398 gomp_cpu_affinity_len == 0.
399 * libgomp_g.h (GOMP_taskyield): New prototype.
400 * libgomp.h (struct gomp_task): Add final_task field.
401 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
402 * team.c (gomp_team_start): Override new task's nthreads_var icv
403 if list form OMP_NUM_THREADS has been used and it has value for
404 the new nesting level.
406 * testsuite/libgomp.c/atomic-11.c: New test.
407 * testsuite/libgomp.c/atomic-12.c: New test.
408 * testsuite/libgomp.c/atomic-13.c: New test.
409 * testsuite/libgomp.c/atomic-14.c: New test.
410 * testsuite/libgomp.c/reduction-6.c: New test.
411 * testsuite/libgomp.c/task-5.c: New test.
412 * testsuite/libgomp.c++/atomic-2.C: New test.
413 * testsuite/libgomp.c++/atomic-3.C: New test.
414 * testsuite/libgomp.c++/atomic-4.C: New test.
415 * testsuite/libgomp.c++/atomic-5.C: New test.
416 * testsuite/libgomp.c++/atomic-6.C: New test.
417 * testsuite/libgomp.c++/atomic-7.C: New test.
418 * testsuite/libgomp.c++/atomic-8.C: New test.
419 * testsuite/libgomp.c++/atomic-9.C: New test.
420 * testsuite/libgomp.c++/task-8.C: New test.
421 * testsuite/libgomp.c++/reduction-4.C: New test.
422 * testsuite/libgomp.fortran/allocatable7.f90: New test.
423 * testsuite/libgomp.fortran/allocatable8.f90: New test.
424 * testsuite/libgomp.fortran/crayptr3.f90: New test.
425 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
426 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
427 * testsuite/libgomp.fortran/pointer1.f90: New test.
428 * testsuite/libgomp.fortran/pointer2.f90: New test.
429 * testsuite/libgomp.fortran/task4.f90: New test.
431 2011-08-02 Tobias Burnus <burnus@net-b.de>
433 * libgomp.texi: Update OpenMP spec references to 3.1.
434 (omp_in_final,OMP_PROC_BIND): New sections.
435 (OMP_NUM_THREADS): Document that the value can be now a list.
436 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
438 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
440 * config/linux/x86/futex.h: Check __x86_64__ instead of
443 2011-07-29 Jakub Jelinek <jakub@redhat.com>
447 * testsuite/libgomp.c/pr49897-1.c: New test.
448 * testsuite/libgomp.c/pr49897-2.c: New test.
449 * testsuite/libgomp.c/pr49898-1.c: New test.
450 * testsuite/libgomp.c/pr49898-2.c: New test.
452 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
454 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
455 for ia32 instead of ilp32.
457 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
458 * testsuite/libgomp.c/atomic-6.c: Likewise.
460 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
462 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
463 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
465 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
468 * config/osf/sem.h: New file.
469 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
471 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
474 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
477 2011-07-15 Jakub Jelinek <jakub@redhat.com>
479 * config/linux/wait.h (do_spin): New inline, largely copied
480 from do_wait, just don't do futex_wait here, instead return true if
482 (do_wait): Implement using do_spin.
483 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
485 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
486 __sync_bool_compare_and_swap, pass the oldval to
487 gomp_mutex_lock_slow.
488 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
489 If all mutex contenders are just spinning and not sleeping, don't
490 change state to 2 unnecessarily. Optimize the loop when state has
491 already become 2 to use just one atomic operation per loop instead
493 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
495 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
496 __sync_bool_compare_and_swap, pass the oldval to
497 gomp_mutex_lock_slow.
499 2011-06-22 Jakub Jelinek <jakub@redhat.com>
502 * iter.c (gomp_iter_static_next): For chunk size 0
503 only use n ceil/ nthreads size for the first
504 n % nthreads threads in the team instead of
505 all threads except for the last few ones which
506 get less work or none at all.
507 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
508 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
509 chunk argument, set run_sched_modifier to 0 for static
510 resp. 1 for other kinds. If chunk argument is 0
511 and not static, set value to 1.
513 2011-05-19 Jakub Jelinek <jakub@redhat.com>
516 * testsuite/libgomp.c++/pr49043.C: New test.
519 * testsuite/libgomp.c++/pr48869.C: New test.
521 2011-05-06 Jakub Jelinek <jakub@redhat.com>
524 * fortran.c: Include limits.h.
526 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
528 (omp_set_num_threads_8_, omp_set_schedule_8_,
529 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
530 omp_get_team_size_8_): Use TO_INT macro.
531 * testsuite/libgomp.fortran/pr48894.f90: New test.
533 2011-04-13 Jakub Jelinek <jakub@redhat.com>
536 * testsuite/libgomp.c/pr48591.c: New test.
538 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
541 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
542 * configure: Regenerate.
544 2011-02-27 Jakub Jelinek <jakub@redhat.com>
547 * testsuite/libgomp.fortran/task3.f90: New test.
549 2011-02-24 Tobias Burnus <burnus@net-b.de>
551 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
553 2011-02-23 Jakub Jelinek <jakub@redhat.com>
556 * libgomp.texi (omp_get_wtime): Don't say time in the past
559 2011-02-18 Jakub Jelinek <jakub@redhat.com>
562 * testsuite/libgomp.fortran/fortran.exp: Check for both
563 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
564 but $blddir != "", still append ${blddir}/${lang_library_path}
567 2011-02-16 Tobias Burnus <burnus@net-b.de>
570 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
571 of libquadmath.a before adding its libpath to ldflags.
573 2011-02-14 Jakub Jelinek <jakub@redhat.com>
576 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
577 to FUTEX_WAIT futex syscall.
578 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
580 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
582 * configure: Regenerate.
584 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
587 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
589 2011-01-16 Gerald Pfeifer
591 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
593 2010-12-14 Jakub Jelinek <jakub@redhat.com>
596 * libgomp.fortran/allocatable6.f90: New test.
598 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
600 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
601 * configure: Regenerate.
603 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
607 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
608 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
609 * aclocal.m4: Regenerate.
610 * configure: Regenerate.
611 * Makefile.in: Regenerate.
612 * testsuite/Makefile.in: Regenerate.
614 2010-12-02 Jakub Jelinek <jakub@redhat.com>
617 * libgomp.fortran/pr46753.f90: New test.
620 * env.c (initialize_env): Default to spin count 300000
621 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
625 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
626 at the end if sync builtins aren't supported.
628 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
630 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
632 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
634 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
636 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
638 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
640 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
641 Tobias Burnus <burnus@net-b.de>
645 * configure: Regenerate.
647 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
649 * config/linux/futex.h: New.
650 * config/linux/arm/mutex.h: New.
651 * configure.tgt (arm*-*-linux*): Add config path.
653 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
655 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
657 2010-09-23 Tobias Burnus <burnus@net-b.de>
659 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
660 Change Fortran datatype to LOGICAL.
661 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
662 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
664 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
666 * configure: Regenerate.
668 2010-07-26 Jakub Jelinek <jakub@redhat.com>
670 * libgomp.texi: Add function keyword to a couple of Fortran
671 interfaces, use integer instead of int for Fortran.
673 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
675 * libgomp.texi: Fix spelling and pasto problems throughout.
676 Adjust prototypes to match code.
678 2010-07-24 Tobias Burnus <burnus@net-b.de>
680 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
681 silence -fwhole-file warning.
683 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
685 * configure.tgt (*-*-solaris2.[56]*): Removed.
687 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
689 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
690 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
691 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
692 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
693 targetting solaris2*.
694 * configure: Regenerate.
695 * config.h.in: Regenerate.
697 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
698 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
699 Add libgomp_version_dep.
700 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
702 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
703 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
704 * Makefile.in: Regenerate.
706 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
707 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
708 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
709 to common block, protected by
710 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
712 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
714 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
716 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
719 * configure: Regenerate.
721 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
724 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
725 * configure: Regenerate.
726 * Makefile.in: Regenerate.
727 * testsuite/Makefile.in: Regenerate.
729 2010-04-26 Jakub Jelinek <jakub@redhat.com>
732 * testsuite/libgomp.c/pr43893.c: New test.
733 * testsuite/libgomp.c++/pr43893.C: New test.
735 2010-04-21 Jakub Jelinek <jakub@redhat.com>
738 * testsuite/libgomp.fortran/vla8.f90: New test.
740 2010-04-20 Jakub Jelinek <jakub@redhat.com>
743 * config/linux/affinity.c (gomp_init_affinity): Decrease
744 gomp_available_cpus if affinity mask confines the process to fewer
746 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
747 non-NULL, just return gomp_available_cpus.
750 * sections.c (gomp_sections_init): Initialize ws->mode.
752 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
754 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
755 not unused bar variable.
756 * configure: Regenerate.
758 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
760 * Makefile.in: Regenerate.
761 * aclocal.m4: Regenerate.
762 * testsuite/Makefile.in: Regenerate.
764 2010-03-22 Jakub Jelinek <jakub@redhat.com>
767 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
768 (initialize_env): Adjust callers.
769 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
770 when the argument is 0.
772 * testsuite/libgomp.c/pr42942.c: New test.
774 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
778 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
779 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
781 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
783 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
784 * testsuite/libgomp.c++/task-6.C: Likewise.
786 2010-01-28 Steve Ellcey <sje@cup.hp.com>
788 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
790 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
792 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
793 * configure: Regenerate.
795 2010-01-26 Jakub Jelinek <jakub@redhat.com>
798 * testsuite/libgomp.fortran/allocatable5.f90: New test.
800 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
802 * configure.ac: Test for executability of GFORTRAN.
803 * configure: Regenerate.
805 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
807 * configure: Regenerate.
809 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
812 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
814 2010-01-03 Richard Guenther <rguenther@suse.de>
816 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
818 2009-12-23 Sebastian Pop <sebpop@gmail.com>
820 * testsuite/libgomp.graphite/pr4118.c: New.
822 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
824 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
825 for darwin, protect the test with require-effective-target tls_runtime.
826 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
828 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
831 * testsuite/lib/libgomp.exp: Provide -B options to allow for
832 link spec %s substitutions for static libraries.
834 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
837 * libgomp.graphite/force-parallel-2.c: Reduce array size.
839 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
841 * Makefile.in: Regenerate.
842 * configure: Regenerate.
843 * testsuite/Makefile.in: Regenerate.
845 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
847 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
848 settings for LC_ALL and LANG.
850 2009-11-25 Jakub Jelinek <jakub@redhat.com>
853 * testsuite/libgomp.fortran/pr42162.f90: New test.
855 2009-11-13 Jakub Jelinek <jakub@redhat.com>
858 * testsuite/libgomp.c/pr42029.c: New test.
860 2009-10-26 Jakub Jelinek <jakub@redhat.com>
862 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
863 *s. Accept ld version without text in ()s.
864 * configure: Regenerated.
866 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
868 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
870 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
873 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
874 or a hyphen (happens with fortran language disabled).
875 * configure: Regenerate.
877 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
879 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
880 use sed script portable to Solaris /bin/sed for extracting ld
882 * configure: Regenerate.
884 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
886 * testsuite/libgomp.graphite/bounds.c: New test.
888 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
890 * Makefile.am (libgomp_la_LINK): New.
891 * Makefile.in: Regenerate.
893 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
895 * configure.ac (AC_PREREQ): Bump to 2.64.
897 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
899 * Makefile.am (install-html, install-pdf): Remove.
900 * Makefile.in: Regenerate.
902 * Makefile.in: Regenerate.
903 * aclocal.m4: Regenerate.
904 * config.h.in: Regenerate.
905 * configure: Regenerate.
906 * testsuite/Makefile.in: Regenerate.
908 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
910 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
911 * Makefile.in: Regenerate.
913 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
915 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
916 * Makefile.in: Regenerate.
918 2009-08-19 Tobias Burnus <burnus@net-b.de>
921 omp_lib.h.in: Fix -std=f95 errors.
924 2009-08-14 David Edelsohn <edelsohn@gnu.org>
926 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
927 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
928 * testsuite/libgomp.graphite/graphite.exp: New.
930 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
932 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
935 2009-08-04 David Daney <ddaney@caviumnetworks.com>
937 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
938 needed memory barrier semantics.
939 * config/linux/mips/mutex.h: New file.
941 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
943 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
945 2009-07-16 Joseph Myers <joseph@codesourcery.com>
947 * configure: Regenerate.
949 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
954 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
955 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
956 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
958 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
960 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
961 options when choosing a multilib.
963 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
965 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
966 ld_library_path. Use add_path. Add just find_libgcc_s to
967 ld_library_path, not every libgcc multilib directory.
968 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
969 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
970 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
972 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
974 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
976 * Makefile.am (LTLDFLAGS): Define.
978 * Makefile.in: Regenerate.
980 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
983 * testsuite/libgomp.fortran/fortran.exp: Don't link with
984 libgfortranbegin, check existence of libgfortran.a instead of
987 2009-05-20 Jakub Jelinek <jakub@redhat.com>
990 * team.c (gomp_thread_start): Destroy thr->release semaphore.
991 (gomp_free_pool_helper): Likewise.
993 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
994 Jakub Jelinek <jakub@redhat.com>
997 * testsuite/libgomp.fortran/workshare2.f90: New test.
999 2009-04-09 Nick Clifton <nickc@redhat.com>
1001 * iter.c: Change copyright header to refer to version 3 of the
1002 GNU General Public License with version 3.1 of the GCC Runtime
1003 Library Exception and to point readers at the COPYING3 and
1004 COPYING3.RUNTIME files and the FSF's license web page.
1005 * alloc.c: Likewise.
1006 * barrier.c: Likewise.
1007 * config/bsd/proc.c: Likewise.
1008 * config/linux/affinity.c: Likewise.
1009 * config/linux/alpha/futex.h: Likewise.
1010 * config/linux/bar.c: Likewise.
1011 * config/linux/bar.h: Likewise.
1012 * config/linux/ia64/futex.h: Likewise.
1013 * config/linux/ia64/mutex.h: Likewise.
1014 * config/linux/lock.c: Likewise.
1015 * config/linux/mips/futex.h: Likewise.
1016 * config/linux/mutex.c: Likewise.
1017 * config/linux/mutex.h: Likewise.
1018 * config/linux/powerpc/futex.h: Likewise.
1019 * config/linux/proc.c: Likewise.
1020 * config/linux/ptrlock.c: Likewise.
1021 * config/linux/ptrlock.h: Likewise.
1022 * config/linux/s390/futex.h: Likewise.
1023 * config/linux/sem.c: Likewise.
1024 * config/linux/sem.h: Likewise.
1025 * config/linux/sparc/futex.h: Likewise.
1026 * config/linux/wait.h: Likewise.
1027 * config/linux/x86/futex.h: Likewise.
1028 * config/mingw32/proc.c: Likewise.
1029 * config/mingw32/time.c: Likewise.
1030 * config/posix/affinity.c: Likewise.
1031 * config/posix/bar.c: Likewise.
1032 * config/posix/bar.h: Likewise.
1033 * config/posix/lock.c: Likewise.
1034 * config/posix/mutex.h: Likewise.
1035 * config/posix/proc.c: Likewise.
1036 * config/posix/ptrlock.h: Likewise.
1037 * config/posix/sem.c: Likewise.
1038 * config/posix/sem.h: Likewise.
1039 * config/posix/time.c: Likewise.
1040 * config/posix95/lock.c: Likewise.
1041 * critical.c: Likewise.
1043 * error.c: Likewise.
1044 * fortran.c: Likewise.
1045 * iter_ull.c: Likewise.
1046 * libgomp.h: Likewise.
1047 * libgomp_f.h.in: Likewise.
1048 * libgomp_g.h: Likewise.
1050 * loop_ull.c: Likewise.
1051 * omp.h.in: Likewise.
1052 * omp_lib.f90.in: Likewise.
1053 * omp_lib.h.in: Likewise.
1054 * ordered.c: Likewise.
1055 * parallel.c: Likewise.
1056 * sections.c: Likewise.
1057 * single.c: Likewise.
1062 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1064 * testsuite/config/default.exp: Change copyright header to refer to
1065 version 3 of the GNU General Public License and to point readers
1066 at the COPYING3 file and the FSF's license web page.
1068 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1071 * libgomp.c++/pr39573.C: New test.
1073 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.c/pr39591-1.c: New test.
1077 * testsuite/libgomp.c/pr39591-2.c: New test.
1078 * testsuite/libgomp.c/pr39591-3.c: New test.
1080 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1082 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1083 * testsuite/libgomp.c/atomic-6.c: Ditto.
1085 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1088 * testsuite/libgomp.c/loop-12.c: New test.
1089 * testsuite/libgomp.c/loop-11.c: New test.
1090 * testsuite/libgomp.c++/loop-11.C: New test.
1091 * testsuite/libgomp.c++/loop-12.C: New test.
1092 * testsuite/libgomp.c++/for-8.C: New test.
1094 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1096 * configure: Regenerate.
1098 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1101 * testsuite/libgomp.c/pr39154.c: New test.
1103 2009-01-30 Ian Lance Taylor <iant@google.com>
1105 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1106 libgomp_ld_is_gold. Get gold version number.
1107 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1108 * configure: Rebuild.
1110 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1112 * testsuite/lib/libgomp.exp: Add -B option for targets that
1113 use libgfortran.a%s in their specs.
1115 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1118 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1119 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1120 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1121 * configure: Regenerated.
1122 * config.h.in: Likewise.
1124 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.c/pr38650.c: New test.
1128 * testsuite/libgomp.c++/pr38650.C: New test.
1130 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1132 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1134 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1136 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1138 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1140 * configure: Regenerate.
1142 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1145 * testsuite/libgomp.c/pr36802-1.c: New test.
1146 * testsuite/libgomp.c/pr36802-2.c: New test.
1147 * testsuite/libgomp.c/pr36802-3.c: New test.
1149 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1152 * config/linux/powerpc/mutex.h: New.
1154 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1157 * testsuite/libgomp.c++/for-7.C: New test.
1160 * testsuite/libgomp.c++/for-6.C: New test.
1162 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1165 * testsuite/lib/libgomp.exp: Include new timeout library files.
1166 (libgomp_target_compile): Set timeout value from new proc.
1168 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1171 * config/linux/ia64/mutex.h: New.
1173 2008-11-04 Tobias Burnus <burnus@net-b.de>
1176 * libgomp.texi (Runtime library routines, environment variables):
1177 Update for OpenMP version 3.0.
1179 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1180 Steve Ellcey <sje@cup.hp.com>
1182 * configure: Regenerate for new libtool.
1183 * Makefile.in: Ditto.
1184 * testsuite/Makefile.in: Ditto.
1186 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1187 Andreas Tobler <a.tobler@schweiz.org>
1189 * config/bsd/proc.c: New file.
1190 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1191 * configure.ac: Check for header <sys/sysctl.h>
1192 * configure: Regenerate.
1193 * config.h.in: Likewise.
1195 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1197 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1199 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1201 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1202 * Makefile.in: Regenerated.
1203 * testsuite/Makefile.in: Regenerated.
1205 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1207 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1208 depend on blddir if blddir exists.
1209 (libgomp_target_compile): Likewise.
1210 * testsuite/libgomp.c++/c++.exp: Likewise.
1211 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1213 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1215 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1216 Do not list GPL as Invariant Section.
1218 2008-07-28 Ilie Garbacea <ilie@mips.com>
1219 Chao-ying Fu <fu@mips.com>
1221 * configure.tgt: Enable futex for MIPS.
1222 * config/linux/mips/futex.h: New file.
1224 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1226 * team.c (gomp_team_end): Free team immediately if it has
1229 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1231 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1232 * testsuite/libgomp.fortran/fortran.exp: Same.
1233 * testsuite/libgomp.c/c.exp: Same.
1234 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1235 directory to library path first.
1237 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1239 * env.c (parse_stacksize): Add cast to avoid warning.
1240 (parse_spincount): Likewise.
1242 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1244 * testsuite/libgomp.c/loop-10.c: New test.
1245 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1246 * libgomp.c++/loop-6.C (main): Likewise.
1249 * testsuite/libgomp.c/debug-1.c: New test.
1251 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1253 * testsuite/libgomp.c/nqueens-1.c: New test.
1256 * testsuite/libgomp.c++/task-7.C: New function.
1258 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1260 * configure: Regenerate.
1262 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1264 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1265 mutex when HAVE_SYNC_BUILTINS isn't defined.
1267 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1269 * libgomp.texi (omp_test_lock): Fix typo.
1271 2008-06-12 Tobias Burnus <burnus@net-b.de>
1273 * omp_lib.f90.in: Add "implicit none".
1275 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1278 * testsuite/libgomp.c/reduction-5.c: New test.
1280 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1282 * libgomp.h (struct gomp_task): Add in_tied_task field.
1283 * task.c (gomp_init_task): Initialize it.
1284 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1285 unconditionally. Don't call gomp_team_barrier_wake if
1286 current task is implicit or if(0) from implicit and number of
1287 running tasks is equal to nthreads - 1.
1290 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1291 omp_get_team_size_8): Fix pastos.
1294 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1295 * configure: Regenerated.
1296 * config.h.in: Regenerated.
1297 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1300 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1303 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1304 (GOMP_loop_ull_dynamic_start): Likewise.
1305 (GOMP_loop_ull_guided_start): Likewise.
1306 (GOMP_loop_ull_ordered_static_start): Likewise.
1307 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1308 (GOMP_loop_ull_ordered_guided_start): Likewise.
1310 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1311 Richard Henderson <rth@redhat.com>
1312 Ulrich Drepper <drepper@redhat.com>
1313 Jakob Blomer <jakob.blomer@ira.uka.de>
1315 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1316 Substitute also OMP_*LOCK_25*.
1317 * configure: Regenerated.
1318 * config.h.in: Regenerated.
1319 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1320 ptrlock.c and task.c.
1321 * Makefile.in: Regenerated.
1322 * testsuite/Makefile.in: Regenerated.
1324 * loop_ull.c: New file.
1325 * iter_ull.c: New file.
1326 * libgomp.h: Include ptrlock.h.
1327 (enum gomp_task_kind): New type.
1328 (struct gomp_team): Add task_lock, task_queue, task_count,
1329 task_running_count, single_count fields. Add
1330 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1331 Remove work_share_lock, generation_mask,
1332 oldest_live_gen, num_live_gen and init_work_shares fields, add
1333 work work_share_list_alloc, work_share_list_free and work_share_chunk
1334 fields. Change work_shares from pointer to pointers into an array.
1335 Change ordered_release field into gomp_sem_t ** from flexible array
1336 member. Add implicit_task and initial_work_shares fields.
1337 Move close to the end of the struct.
1338 (struct gomp_team_state): Add single_count, last_work_share,
1339 active_level and level fields, remove work_share_generation.
1340 (gomp_barrier_handle_tasks): New prototype.
1341 (gomp_finish_task): New inline function.
1342 (struct gomp_work_share): Move chunk_size, end, incr into
1343 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1344 next_ll fields. Reshuffle fields. Add next_alloc,
1345 next_ws, next_free and inline_ordered_team_ids fields, change
1346 ordered_team_ids into pointer from flexible array member.
1347 Add mode field. Put lock and next into a different cache line
1348 from most of the write-once fields.
1349 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1350 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1351 gomp_iter_ull_guided_next): New prototypes.
1352 (gomp_new_icv): New prototype.
1353 (struct gomp_thread): Add thread_pool and task fields.
1354 (struct gomp_thread_pool): New type.
1355 (gomp_new_team): New prototype.
1356 (gomp_team_start): Change type of last argument.
1357 (gomp_new_work_share): Removed.
1358 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1359 (gomp_work_share_init_done): New static inline.
1360 (gomp_throttled_spin_count_var, gomp_available_cpus,
1361 gomp_managed_threads): New extern decls.
1362 (gomp_init_task): New prototype.
1363 (gomp_spin_count_var): New extern var decl.
1364 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1365 or no alias support, or if not PIC.
1366 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1367 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1368 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1369 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1370 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1371 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1372 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1373 gomp_test_nest_lock_25): New prototypes.
1374 (omp_lock_symver, strong_alias): Define.
1375 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1377 (gomp_end_task): New.
1378 (struct gomp_task_icv, gomp_global_icv): New.
1379 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1380 (struct gomp_task): New.
1381 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1382 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1384 (gomp_schedule_type): Reorder enum to match
1386 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1388 (gomp_thread_start): Add gomp_team_barrier_wait call.
1389 For non-nested case remove clearing of docked thread thr fields.
1390 Use pool fields instead of global gomp_* variables. Use
1391 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1392 Create tasks for each member thread.
1393 (free_team): Only destroy team barrier, task_lock here and free it.
1394 (gomp_free_thread): Free last_team if non-NULL.
1395 (gomp_team_end): Call gomp_team_barrier_wait instead of
1396 gomp_barrier_wait. For nested case call one extra
1397 gomp_barrier_wait. Move here some destruction from free_team.
1398 Call free_team on pool->last_team if any, rather than freeing
1399 current team. Destroy work_share_list_free_lock ifndef
1401 (gomp_new_icv): New function.
1402 (gomp_threads, gomp_threads_size, gomp_threads_used,
1403 gomp_threads_dock): Removed.
1404 (gomp_thread_destructor): New variable.
1405 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1407 (gomp_team_start): Create new pool if current thread doesn't have
1408 one. Use pool fields instead of global gomp_* variables.
1409 Initialize thread_pool field for new threads. Clear single_count.
1410 Change last argument from ws to team, don't create
1411 new team, set ts.work_share to &team->work_shares[0] and clear
1412 ts.last_work_share. Don't clear ts.work_share_generation.
1413 If number of threads changed, adjust atomically gomp_managed_threads.
1414 Use gomp_init_task instead of gomp_new_task,
1415 set thr->task to the corresponding implicit_task array entry.
1416 Create tasks for each member thread. Initialize ts.level.
1417 (initialize_team): Call pthread_key_create on
1418 gomp_thread_destructor.
1419 (team_destructor): New function.
1420 (new_team): Removed.
1421 (gomp_new_team): New function.
1422 (free_team): Free gomp_work_share blocks chained through next_alloc,
1423 instead of freeing work_shares and destroying work_share_lock.
1424 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1425 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1426 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1427 of gomp_barrier_wait.
1428 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1429 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1430 if gomp_work_share_start returned true. Don't unlock ws->lock.
1431 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1432 of gomp_barrier_wait.
1433 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1434 gomp_work_share_init_done if gomp_work_share_start returned true.
1435 Don't unlock ws->lock.
1436 * work.c: Include stddef.h.
1437 (free_work_share): Use work_share_list_free_lock instead
1438 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1439 Call gomp_fini_work_share and then either free ws if orphaned, or
1440 put it into work_share_list_free list of the current team.
1441 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1443 (gomp_work_share_start, gomp_work_share_end,
1444 gomp_work_share_end_nowait): Rewritten.
1445 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1446 (openmp_version): Set to 200805.
1447 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1448 omp_sched_guided, omp_sched_auto): New parameters.
1449 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1450 omp_set_max_active_levels, omp_get_max_active_levels,
1451 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1452 omp_get_active_level): New interfaces.
1453 * omp_lib.h.in (openmp_version): Set to 200805.
1454 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1455 omp_sched_guided, omp_sched_auto): New parameters.
1456 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1457 omp_set_max_active_levels, omp_get_max_active_levels,
1458 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1459 omp_get_active_level): New externals.
1460 * loop.c: Include limits.h.
1461 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1463 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1464 Likewise. Use gomp_icv.
1465 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1466 ts.static_trip here.
1467 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1468 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1469 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1470 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1471 don't unlock ws->lock, otherwise lock it.
1472 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1473 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1474 (gomp_parallel_loop_start): Call gomp_new_team instead of
1475 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1476 Adjust gomp_team_start caller. Pass 0 as second argument to
1477 gomp_resolve_num_threads.
1478 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1479 If adding ws->chunk_size nthreads + 1 times after end won't
1480 overflow, set ws->mode to 1.
1481 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1482 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1483 GOMP_loop_ull_ordered_static_start,
1484 GOMP_loop_ull_ordered_dynamic_start,
1485 GOMP_loop_ull_ordered_guided_start,
1486 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1487 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1488 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1489 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1490 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1492 * libgomp.map: Export lock routines also @@OMP_2.0.
1493 (GOMP_loop_ordered_dynamic_first,
1494 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1495 GOMP_loop_ordered_static_first): Remove.
1496 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1497 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1498 GOMP_loop_ull_ordered_dynamic_next,
1499 GOMP_loop_ull_ordered_dynamic_start,
1500 GOMP_loop_ull_ordered_guided_next,
1501 GOMP_loop_ull_ordered_guided_start,
1502 GOMP_loop_ull_ordered_runtime_next,
1503 GOMP_loop_ull_ordered_runtime_start,
1504 GOMP_loop_ull_ordered_static_next,
1505 GOMP_loop_ull_ordered_static_start,
1506 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1507 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1508 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1509 (omp_set_schedule, omp_get_schedule,
1510 omp_get_thread_limit, omp_set_max_active_levels,
1511 omp_get_max_active_levels, omp_get_level,
1512 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1513 omp_set_schedule_, omp_set_schedule_8_,
1514 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1515 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1516 omp_get_max_active_levels_, omp_get_level_,
1517 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1518 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1519 New exports @@OMP_3.0.
1520 * omp.h.in (omp_sched_t): New type.
1521 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1522 omp_set_max_active_levels, omp_get_max_active_levels,
1523 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1524 omp_get_active_level): New prototypes.
1525 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1526 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1527 gomp_thread_limit_var, gomp_remaining_threads_count,
1528 gomp_remaining_threads_lock): New variables.
1529 (parse_spincount): New function.
1530 (initialize_env): Call gomp_init_num_threads unconditionally.
1531 Initialize gomp_available_cpus. Call parse_spincount,
1532 initialize gomp_{,throttled_}spin_count_var
1533 depending on presence and value of OMP_WAIT_POLICY and
1534 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1535 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1536 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1537 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1538 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1539 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1540 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1541 (gomp_global_icv): New.
1542 (parse_schedule): Use it. Parse "auto".
1543 (omp_set_num_threads): Use gomp_icv.
1544 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1546 (omp_get_max_threads): Move from parallel.c.
1547 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1548 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1550 (parse_stacksize, parse_wait_policy): New functions.
1551 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1552 both wrappers for compatibility and new locks.
1553 (omp_set_schedule, omp_get_schedule,
1554 omp_get_thread_limit, omp_set_max_active_levels,
1555 omp_get_max_active_levels, omp_get_level,
1556 omp_get_ancestor_thread_num, omp_get_team_size,
1557 omp_get_active_level): New ialias_redirect.
1558 (omp_set_schedule_, omp_set_schedule_8_,
1559 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1560 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1561 omp_get_max_active_levels_, omp_get_level_,
1562 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1563 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1565 * parallel.c: Include limits.h.
1566 (gomp_resolve_num_threads): Add count argument. Rewritten.
1567 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1568 argument to gomp_team_start. Pass 0 as second argument to
1569 gomp_resolve_num_threads.
1570 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1571 if gomp_thread_limit_var != ULONG_MAX.
1572 (omp_in_parallel): Implement using ts.active_level.
1573 (omp_get_max_threads): Move to env.c.
1574 (omp_get_level, omp_get_ancestor_thread_num,
1575 omp_get_team_size, omp_get_active_level): New functions,
1577 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1578 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1579 gomp_iter_dynamic_next instead of the _locked variant and don't take
1580 lock around it, otherwise acquire it before calling
1581 gomp_iter_dynamic_next_locked.
1582 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1583 gomp_iter_dynamic_next instead of the _locked variant and don't take
1585 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1586 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1587 Adjust gomp_team_start caller. Pass count as second argument to
1588 gomp_resolve_num_threads, don't adjust num_threads after the call.
1590 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1591 ws->chunk_size by incr.
1592 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1594 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1596 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1597 (omp_check_defines): Check even the compat defines.
1598 * config/linux/ptrlock.c: New file.
1599 * config/linux/ptrlock.h: New file.
1600 * config/linux/wait.h: New file.
1601 * config/posix/ptrlock.c: New file.
1602 * config/posix/ptrlock.h: New file.
1603 * config/linux/bar.h (gomp_team_barrier_wait,
1604 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1605 (gomp_team_barrier_set_task_pending,
1606 gomp_team_barrier_clear_task_pending,
1607 gomp_team_barrier_set_waiting_for_tasks,
1608 gomp_team_barrier_waiting_for_tasks,
1609 gomp_team_barrier_done): New inlines.
1610 (gomp_barrier_t): Rewritten.
1611 (gomp_barrier_state_t): New typedef.
1612 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1613 gomp_barrier_wait_start): Rewritten.
1614 (gomp_barrier_wait_end): Change second argument to
1615 gomp_barrier_state_t.
1616 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1618 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1620 (gomp_barrier_wait_end): Rewritten.
1621 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1622 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1623 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1624 (gomp_barrier_state_t): New typedef.
1625 (gomp_team_barrier_wait,
1626 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1627 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1628 into the return value. Return gomp_barrier_state_t.
1629 (gomp_team_barrier_set_task_pending,
1630 gomp_team_barrier_clear_task_pending,
1631 gomp_team_barrier_set_waiting_for_tasks,
1632 gomp_team_barrier_waiting_for_tasks,
1633 gomp_team_barrier_done): New inlines.
1634 (gomp_barrier_wait_end): Change second argument to
1635 gomp_barrier_state_t.
1636 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1638 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1639 (gomp_barrier_wait_end): Change second argument to
1640 gomp_barrier_state_t.
1641 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1642 gomp_team_barrier_wake): New functions.
1643 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1645 (gomp_futex_wake, gomp_futex_wait): New variables.
1646 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1647 * config/linux/lock.c: Rewrite to make locks task owned,
1648 for backwards compatibility provide the old entrypoints
1649 if symbol versioning. Include wait.h instead of libgomp.h and
1651 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1652 * config/posix95/lock.c: Rewrite to make locks task owned,
1653 for backwards compatibility provide the old entrypoints
1654 if symbol versioning.
1655 * config/posix/lock.c: Rewrite to make locks task owned,
1656 for backwards compatibility provide the old entrypoints
1657 if symbol versioning.
1658 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1659 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1660 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1661 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1662 (sys_futex0): Return error code.
1663 (futex_wake, futex_wait): If ENOSYS was returned, clear
1664 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1665 (cpu_relax, atomic_write_barrier): New static inlines.
1666 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1667 (futex_wake, futex_wait): If ENOSYS was returned, clear
1668 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1669 (cpu_relax, atomic_write_barrier): New static inlines.
1670 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1671 (sys_futex0): Return error code.
1672 (futex_wake, futex_wait): If ENOSYS was returned, clear
1673 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1674 (cpu_relax, atomic_write_barrier): New static inlines.
1675 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1676 (sys_futex0): Return error code.
1677 (futex_wake, futex_wait): If ENOSYS was returned, clear
1678 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1679 (cpu_relax, atomic_write_barrier): New static inlines.
1680 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1681 (sys_futex0): Return error code.
1682 (futex_wake, futex_wait): If ENOSYS was returned, clear
1683 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1684 (cpu_relax, atomic_write_barrier): New static inlines.
1685 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1686 (sys_futex0): Return error code.
1687 (futex_wake, futex_wait): If ENOSYS was returned, clear
1688 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1689 (cpu_relax, atomic_write_barrier): New static inlines.
1690 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1692 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1693 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1694 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1696 (omp_nest_lock_t): Change owner into void *, add lock field.
1697 * config/posix95/omp-lock.h: Include semaphore.h.
1698 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1699 (omp_lock_t): Use sem_t instead of mutex if semaphores
1701 (omp_nest_lock_t): Likewise. Change owner to void *.
1702 * config/posix/omp-lock.h: Include semaphore.h.
1703 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1704 (omp_lock_t): Use sem_t instead of mutex if semaphores
1706 (omp_nest_lock_t): Likewise. Add owner field.
1708 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1710 * testsuite/libgomp.c/collapse-1.c: New test.
1711 * testsuite/libgomp.c/collapse-2.c: New test.
1712 * testsuite/libgomp.c/collapse-3.c: New test.
1713 * testsuite/libgomp.c/icv-1.c: New test.
1714 * testsuite/libgomp.c/icv-2.c: New test.
1715 * testsuite/libgomp.c/lib-2.c: New test.
1716 * testsuite/libgomp.c/lock-1.c: New test.
1717 * testsuite/libgomp.c/lock-2.c: New test.
1718 * testsuite/libgomp.c/lock-3.c: New test.
1719 * testsuite/libgomp.c/loop-4.c: New test.
1720 * testsuite/libgomp.c/loop-5.c: New test.
1721 * testsuite/libgomp.c/loop-6.c: New test.
1722 * testsuite/libgomp.c/loop-7.c: New test.
1723 * testsuite/libgomp.c/loop-8.c: New test.
1724 * testsuite/libgomp.c/loop-9.c: New test.
1725 * testsuite/libgomp.c/nested-3.c: New test.
1726 * testsuite/libgomp.c/nestedfn-6.c: New test.
1727 * testsuite/libgomp.c/sort-1.c: New test.
1728 * testsuite/libgomp.c/task-1.c: New test.
1729 * testsuite/libgomp.c/task-2.c: New test.
1730 * testsuite/libgomp.c/task-3.c: New test.
1731 * testsuite/libgomp.c/task-4.c: New test.
1732 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1733 to C++ testsuite default compiler options.
1734 * testsuite/libgomp.c++/collapse-1.C: New test.
1735 * testsuite/libgomp.c++/collapse-2.C: New test.
1736 * testsuite/libgomp.c++/ctor-10.C: New test.
1737 * testsuite/libgomp.c++/for-1.C: New test.
1738 * testsuite/libgomp.c++/for-2.C: New test.
1739 * testsuite/libgomp.c++/for-3.C: New test.
1740 * testsuite/libgomp.c++/for-4.C: New test.
1741 * testsuite/libgomp.c++/for-5.C: New test.
1742 * testsuite/libgomp.c++/loop-8.C: New test.
1743 * testsuite/libgomp.c++/loop-9.C: New test.
1744 * testsuite/libgomp.c++/loop-10.C: New test.
1745 * testsuite/libgomp.c++/task-1.C: New test.
1746 * testsuite/libgomp.c++/task-2.C: New test.
1747 * testsuite/libgomp.c++/task-3.C: New test.
1748 * testsuite/libgomp.c++/task-4.C: New test.
1749 * testsuite/libgomp.c++/task-5.C: New test.
1750 * testsuite/libgomp.c++/task-6.C: New test.
1751 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1752 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1753 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1754 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1755 * testsuite/libgomp.fortran/collapse1.f90: New test.
1756 * testsuite/libgomp.fortran/collapse2.f90: New test.
1757 * testsuite/libgomp.fortran/collapse3.f90: New test.
1758 * testsuite/libgomp.fortran/collapse4.f90: New test.
1759 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1760 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1761 * testsuite/libgomp.fortran/lib4.f90: New test.
1762 * testsuite/libgomp.fortran/lock-1.f90: New test.
1763 * testsuite/libgomp.fortran/lock-2.f90: New test.
1764 * testsuite/libgomp.fortran/nested1.f90: New test.
1765 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1766 * testsuite/libgomp.fortran/strassen.f90: New test.
1767 * testsuite/libgomp.fortran/tabs1.f90: New test.
1768 * testsuite/libgomp.fortran/tabs2.f: New test.
1769 * testsuite/libgomp.fortran/task1.f90: New test.
1770 * testsuite/libgomp.fortran/task2.f90: New test.
1771 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1772 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1773 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1774 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1775 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1777 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1780 * testsuite/libgomp.c++/ctor-11.C: New test.
1781 * testsuite/libgomp.c++/ctor-12.C: New test.
1783 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1785 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1787 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1790 * testsuite/libgomp.c/atomic-5.c: New test.
1791 * testsuite/libgomp.c/atomic-6.c: New test.
1792 * testsuite/libgomp.c/autopar-1.c: New test.
1794 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1796 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1797 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1798 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1799 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1800 * configure: Regenerate.
1801 * Makefile.in, testsuite/Makefile.in: Likewise.
1803 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1806 * aclocal.m4: Regenerate.
1807 * configure: Regenerate.
1809 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1812 * testsuite/libgomp.c/atomic-4.c: New test.
1815 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1816 (gomp_iter_guided_next): Likewise.
1817 * testsuite/libgomp.c/pr35625.c: New test.
1819 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1821 * aclocal.m4: Regenerate.
1822 * configure: Likewise.
1823 * Makefile.in: Likewise.
1824 * testsuite/Makefile.in: Likewise.
1826 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1829 * testsuite/libgomp.c++/pr35185.C: New test.
1831 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1834 * testsuite/libgomp.c/pr35549.c: New test.
1836 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1838 * testsuite/libgomp.c/atomic-3.c: New test.
1840 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1843 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1846 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1849 * configure.ac: Add ACX_HEADER_STRING.
1850 * env.c: Include strings.h.
1851 * aclocal.m4: Regenerate.
1852 * config.h.in: Regenerate.
1853 * configure: Regenerate.
1854 * Makefile.in: Regenerate.
1855 * testsuite/Makefile.in: Regenerate.
1857 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1860 * testsuite/libgomp.c/pr35196.c: New test.
1863 * testsuite/libgomp.fortran/pr35130.f90: New test.
1864 * testsuite/libgomp.c/pr35130.c: New test.
1866 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1869 * testsuite/libgomp.c/pr33880.c: New test.
1870 * testsuite/libgomp.fortran/pr33880.f90: New test.
1872 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1874 * configure: Regenerate.
1876 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1878 * configure.ac: Move futex checking into ../config/futex.m4.
1879 * configure: Rebuilt.
1880 * aclocal.m4: Rebuilt.
1881 * Makefile.in: Rebuilt.
1883 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1884 2007-10-15 ../config/tls.m4 change.
1886 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1889 * testsuite/libgomp.c/pr34513.c: New test.
1890 * testsuite/libgomp.c++/pr34513.C: New test.
1892 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1895 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1897 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1899 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1901 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1903 * testsuite/libgomp.c/private-1.c: New test.
1905 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1906 Paolo Bonzini <bonzini@gnu.org>
1908 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1909 instead of 'VPATH ='.
1910 * Makefile.in: Regenerate.
1912 2007-11-23 Matthias Klose <doko@ubuntu.com>
1914 * configure.ac: Adjust makeinfo version check.
1915 * configure: Regenerate.
1917 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1920 * testsuite/libgomp.fortran/pr34020.f90: New test.
1922 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1925 * testsuite/libgomp.c++/atomic-1.C: New test.
1927 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1930 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1931 Make x and y integers rather than (implicit) reals. Add private (j)
1932 clause to the last omp parallel.
1934 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1936 * configure: Regenerate following changes to ../config/tls.m4.
1938 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1940 * testsuite/libgomp.fortran/stack.f90: New test.
1942 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1944 * config/mingw32/proc.c: New file.
1946 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1948 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1949 (main): Use __get_cpuid to get i386 target fetaures.
1950 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1951 (main): Use __get_cpuid to get x86_64 target fetaures.
1953 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1956 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1957 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1959 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1962 * testsuite/libgomp.fortran/pr32550.f90: New test.
1963 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1965 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1967 * aclocal.m4: Regenerated.
1969 2007-07-05 Tobias Burnus <burnus@net-b.de>
1972 * testsuite/libgomp.fortran/pr32359.f90: New.
1974 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1977 * sections.c (GOMP_parallel_sections_start): Only decrease
1978 number of threads to COUNT if dyn_var is true.
1979 * testsuite/libgomp.c/pr32468.c: New test.
1981 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1984 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1986 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1989 * testsuite/libgomp.c/pr32362-1.c: New test.
1990 * testsuite/libgomp.c/pr32362-2.c: New test.
1991 * testsuite/libgomp.c/pr32362-3.c: New test.
1993 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1995 * team.c (gomp_team_start): Fix setting up thread_attr
1998 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2000 * configure: Regenerate.
2002 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2004 * Makefile.in: Regenerate.
2005 * configure: Regenerate.
2006 * aclocal.m4: Regenerate.
2007 * testsuite/Makefile.in: Regenerate.
2009 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2011 * config/linux/proc.c: New file.
2014 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2016 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2018 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2020 2007-04-16 Matthias Klose <doko@debian.org>
2022 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2023 flags if not building with -m64.
2024 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2025 flag for i?86-*-* targets, if current target matches -m64.
2027 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2029 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2030 * Makefile.in: Regenerate.
2032 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2035 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2037 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2039 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2041 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2043 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2044 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2045 (parse_affinity): New function.
2046 (initialize_env): Call it and gomp_init_affinity.
2047 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2048 create new pthread_attr_t and call gomp_init_thread_affinity
2049 on it for each thread before passing the attribute to pthread_create.
2050 * config/linux/affinity.c: New file.
2051 * config/posix/affinity.c: New file.
2052 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2053 * configure: Rebuilt.
2054 * config.h.in: Rebuilt.
2055 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2056 * Makefile.in: Rebuilt.
2058 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2060 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2062 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2063 and use it if found.
2065 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2067 * testsuite/config/default.exp: New file.
2068 * testsuite/lib/libgomp.exp: New file.
2069 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2070 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2071 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2072 (libgomp_load): Remove.
2073 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2074 always_ld_library_path, not ld_library_path. Set additional_flags
2075 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2076 (target_compile): Do not call libgomp_init. Append lang_library_path
2077 and lang_link_flags to options.
2078 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2079 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2081 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2082 always_ld_library_path. Set LD_LIBRARY_PATH here.
2083 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2084 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2085 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2087 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2088 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2089 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2090 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2091 * testsuite/libgomp.c/atomic-10.c: Ditto.
2093 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2095 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2096 dg-final cleanup-modules line.
2097 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2098 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2099 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2100 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2101 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2102 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2103 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2105 2007-03-18 Andreas Schwab <schwab@suse.de>
2107 * acinclude.m4: Adjust regular expression for ld version
2109 * configure: Regenerate.
2111 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2113 * Makefile.am: Add install-pdf target as copied from
2114 automake v1.10 rules.
2115 * Makefile.in: Regenerate
2117 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2120 * configure: Regenerate.
2123 * testsuite/libgomp.c++/pr30703.C: New test.
2125 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2128 2006-07-05 Eric Christopher <echristo@apple.com>
2129 * configure.ac: Depend addition of -pthread on host OS.
2130 * configure: Regenerate.
2132 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2134 * libgomp.texi: Fix spacing after abbreviations.
2136 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2139 * configure.ac: Add check for makeinfo
2140 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2141 if an appropiate version of makeinfo is found.
2142 * aclocal.m4: Regenerated.
2143 * configure: Regenerated.
2144 * Makefile.in: Regenerated.
2145 * testsuite/Makefile.in: Regenerated.
2147 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2150 * libgomp.texi: More about implementation-dependent settings.
2152 2007-01-26 Tobias Burnus <burnus@net-b.de>
2154 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2156 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2159 * testsuite/libgomp.c/pr30494.c: New test.
2161 2007-01-15 Tom Tromey <tromey@redhat.com>
2163 * configure: Rebuilt.
2164 * configure.ac: Fixed comment.
2166 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2168 * libgomp.texi: Document implementation specific default values of
2169 environment variables.
2171 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2174 * libgomp.texi: New file.
2175 * configure.ac: Add --enable-generated-files-in-srcdir option.
2176 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2178 * Makefile.in: Regenerated.
2179 * config.h.in: Regenerated.
2180 * testsuite/Makefile.in: Regenerated.
2183 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2186 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2188 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2190 * configure: Regenerate.
2192 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2195 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2196 start if there shouldn't be any loop iterations.
2197 (gomp_loop_ordered_static_start): Remove start == end test.
2198 * testsuite/libgomp.c/pr29947-1.c: New test.
2199 * testsuite/libgomp.c/pr29947-2.c: New test.
2201 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2203 * configure.tgt: Force initial-exec TLS model on Linux only.
2205 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2207 * configure: Regenerated.
2209 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2211 * env.c (parse_schedule): Reject out of range values.
2212 (parse_unsigned_long): Reject out of range, negative or zero values.
2214 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2217 * testsuite/libgomp.fortran/pr29629.f90: New test.
2219 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2222 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2223 * config/posix95: New directory.
2224 * config/posix95/omp-lock.h: New file.
2225 * config/posix95/lock.c: Likewise.
2227 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2229 * aclocal.m4: Regenerate.
2230 * configure: Regenerate.
2232 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2234 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2237 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2239 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2241 * configure: Regenerate.
2242 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2244 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2248 * testsuite/libgomp.c/nestedfn-4.c: New test.
2249 * testsuite/libgomp.c/nestedfn-5.c: New test.
2250 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2253 * testsuite/libgomp.fortran/condinc1.f: New test.
2254 * testsuite/libgomp.fortran/condinc2.f: New test.
2255 * testsuite/libgomp.fortran/condinc3.f90: New test.
2256 * testsuite/libgomp.fortran/condinc4.f90: New test.
2257 * testsuite/libgomp.fortran/condinc1.inc: New file.
2259 2006-09-18 Tom Tromey <tromey@redhat.com>
2261 * configure: Rebuilt.
2263 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2266 PR preprocessor/14634
2267 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2269 * configure: Regenerate.
2271 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2273 * testsuite/libgomp.fortran/reduction3.f90: Change
2274 -2147483648 to -huge(i)-1 to avoid overflow.
2275 * testsuite/libgomp.fortran/reduction4.f90: Change
2276 Z'ffffffff' to not(0) to avoid overflow.
2278 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2281 * Makefile.am (libsubincludedir): New.
2282 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2283 * Makefile.in: Regenerate.
2285 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2288 * env.c: Include ctype.h.
2289 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2290 leading and/or trailing whitespace and compare strings case
2293 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2296 * testsuite/libgomp.fortran/pr28390.f: New test.
2298 2006-07-05 Eric Christopher <echristo@apple.com>
2300 * configure.ac: Depend addition of -pthread on host OS.
2301 * configure: Regenerate.
2303 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2305 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2306 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2309 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2313 * configure.ac: If neither --enable-linux-futex nor
2314 --disable-linux-futex is passed, determine the default by checking
2315 for compiling and/or running against NPTL. With --enable-linux-futex,
2316 check if SYS_gettid and SYS_futex are defined.
2317 * configure: Rebuilt.
2319 2006-06-14 Richard Henderson <rth@redhat.com>
2322 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2323 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2325 2006-06-09 Richard Henderson <rth@redhat.com>
2327 * env.c (gomp_nthreads_var): Change to unsigned long.
2328 (gomp_run_sched_chunk): Likewise.
2329 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2330 (initialize_env): Initialize gomp_thread_attr.
2331 * libgomp.h (gomp_nthreads_var): Update decl.
2332 (gomp_run_sched_chunk): Likewise.
2333 (gomp_thread_attr): Declare.
2334 * team.c (gomp_thread_attr): Export.
2335 (initialize_team): Don't initialize it.
2337 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2340 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2341 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2343 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2345 * config/mingw32/time.c: New file.
2346 * configure.tgt: Use it.
2348 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2350 * Makefile.am: Add install-html target. Add install-html to .PHONY
2351 * Makefile.in: Regenerate.
2353 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2356 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2357 * testsuite/libgomp.c/critical-1.c: Likewise.
2358 * testsuite/libgomp.c/loop-1.c: Likewise.
2359 * testsuite/libgomp.c/loop-2.c: Likewise.
2360 * testsuite/libgomp.c/single-1.c: Likewise.
2361 * testsuite/libgomp.c/ordered-1.c: Likewise.
2362 * testsuite/libgomp.c/ordered-2.c: Likewise.
2364 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2367 * libgomp.fortran/pr27416-1.f90: New test.
2369 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2372 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2373 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2375 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2378 * testsuite/libgomp.c/pr26943-1.c: New test.
2379 * testsuite/libgomp.c/pr26943-2.c: New test.
2380 * testsuite/libgomp.c/pr26943-3.c: New test.
2381 * testsuite/libgomp.c/pr26943-4.c: New test.
2382 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2383 * testsuite/libgomp.c++/pr26943.C: New test.
2385 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2388 * testsuite/libgomp.c++/pr27337.C: New test.
2390 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2393 * testsuite/libgomp.c/pr26171.c: New test.
2395 2006-04-25 Richard Henderson <rth@redhat.com>
2398 * configure.ac: Use GCC_CHECK_TLS.
2399 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2400 * Makefile.in, aclocal.m4, configure: Regenerate.
2402 2006-04-10 Matthias Klose <doko@debian.org>
2404 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2405 directory names containing underscores.
2407 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2410 * testsuite/libgomp.c++/pr26691.C: New test.
2412 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2414 * testsuite/libgomp.fortran/retval2.f90: New test.
2416 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2418 * testsuite/libgomp.c++: New directory.
2420 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2422 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2423 * config/posix/sem.c: Implement the above.
2425 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2427 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2428 define HAVE_BROKEN_POSIX_SEMAPHORES.
2429 * configure: Rebuilt.
2430 * config.h.in: Rebuilt.
2432 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2435 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2436 for the other pthread check.
2437 * configure: Regenerate.
2438 * config.h.in: Regenerate.
2440 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2444 * Makefile.am (fincludedir): New variable.
2445 (nodist_include_HEADERS): Remove Fortran files.
2446 (nodist_finclude_HEADERS): New variable.
2447 * Makefile.in: Regenerated.
2449 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2451 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2452 Remove tests for returning assumed character length arrays.
2454 2006-02-12 Roger Sayle <roger@eyesopen.com>
2455 John David Anglin <dave@hiauly1.hia.nrc.ca>
2458 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2460 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2462 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2464 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2466 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2467 part of LD_LIBRARY_PATH manually.
2469 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2472 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2475 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2478 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2479 * configure.ac (PERL): Don't set.
2480 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2481 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2482 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2483 * omp.h.in: Wrap the new configure substitutions with @ characters.
2484 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2485 * aclocal.m4, configure, Makefile.in: Regenerate.
2486 * mkomp_h.pl: Delete.
2488 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2491 * configure.ac: Use GCC_HEADER_STDINT.
2492 * libgomp.h: Include gstdint.h.
2493 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2494 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2496 2006-01-24 Richard Henderson <rth@redhat.com>
2499 * configure.ac: Add AM_MAINTAINER_MODE.
2500 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2502 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2504 * Makefile.in: Regenerate.
2505 * testsuite/Makefile.in: Regenerate.
2506 * aclocal.m4: Regenerate.
2508 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2510 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2512 * configure.ac: Add check for loadavg.h.
2513 (link_gomp): Adjust comment.
2514 * configure: Regenerate.
2515 * config.h.in: Regenerate.
2517 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2520 * configure.ac: Remove check for alloca.h.
2521 * configure: Regenerate.
2522 * config.h.in: Regenerate.
2523 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2524 * team.c: Remove use of alloca.h.
2525 Call gomp_alloca instead of alloca.
2527 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2530 * team.c: Add include of alloca.h.
2531 * configure.ac: Add check for alloca.h.
2532 * configure: Regenerate.
2533 * config.h.in: Regenerate.
2535 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2538 * testsuite/libgomp.fortran/pr25219.f90: New test.
2540 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2542 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2543 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2544 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2545 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2546 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2547 testsuite/libgomp.fortran/threadprivate1.f90,
2548 testsuite/libgomp.fortran/threadprivate2.f90,
2549 testsuite/libgomp.fortran/threadprivate3.f90,
2550 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2551 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2552 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2553 effective-target to TLS runtime.
2555 * testsuite/libgomp.fortran/pr25162.f: Require
2556 effective-target TLS runtime.
2558 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2560 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2561 * testsuite/libgomp.c/nestedfn-3.c: New test.
2563 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2566 * testsuite/libgomp.fortran/pr25162.f: New test.
2568 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2570 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2571 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2573 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2575 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2576 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2577 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2578 single.c, team.c, work.c, config/linux/alpha/futex.h,
2579 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2580 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2581 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2582 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2583 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2584 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2585 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2588 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2590 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2591 to nodist_noinst_HEADERS.
2592 * Makefile.in: Rebuilt.
2594 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2595 add integer count field.
2596 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2597 omp_nest_lock_t type change.
2598 (omp_init_nest_lock): Likewise. Initialize count to 0.
2599 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2601 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2603 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2604 Increment count if successful and return the new nesting level.
2605 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2606 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2607 * testsuite/libgomp.c/lib-1.c: New test.
2608 * testsuite/libgomp.fortran/lib1.f90: New test.
2609 * testsuite/libgomp.fortran/lib2.f: New test.
2610 * testsuite/libgomp.fortran/lib3.f: New test.
2612 2005-11-17 Richard Henderson <rth@redhat.com>
2615 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2616 * configure.ac (link_gomp): New. Substitute it.
2617 (AC_CONFIG_FILES): Add libgomp.spec.
2618 * libgomp.spec.in: New file.
2619 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2620 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2622 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2624 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2625 reduction(-:var) behaving the same as reduction(+:var).
2626 * testsuite/libgomp.c/reduction-4.c: New test.
2628 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2630 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2631 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2632 testsuite/libgomp.c/copyin-3.c,
2633 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2634 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2635 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2636 testsuite/libgomp.c++/pr24455.C,
2637 testsuite/libgomp.fortran/threadprivate1.f90,
2638 testsuite/libgomp.fortran/threadprivate2.f90,
2639 testsuite/libgomp.fortran/threadprivate3.f90,
2640 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2641 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2642 testsuite/libgomp.fortran/omp_parse3.f90: Require
2643 effective-target TLS.
2645 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2649 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2652 * team.c (initialize_team): Pass NULL rather than free as
2653 pthread_key_create destructor. Initialize thread specific data
2654 pointer in initial thread to a static local variable rather than
2657 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2659 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2660 its location to ld_library_path.
2662 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2664 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2666 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2668 * testsuite/libgomp.c: Rename from libgomp.dg.
2670 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2672 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2673 threadprivate variable 'i'.
2675 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2677 * config/linux/s390/futex.h: New file.
2678 * configure.tgt: Use it.
2680 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2681 before the parallel.
2683 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2686 * testsuite/libgomp.c++/master-1.C: New test.
2688 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2690 * testsuite/libgomp.dg/copyin-3.c: New test.
2692 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2694 * testsuite/libgomp.fortran/retval1.f90: New test.
2695 * testsuite/libgomp.fortran/vla7.f90: New test.
2697 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2699 * testsuite/libgomp.fortran/vla2.f90: New test.
2700 * testsuite/libgomp.fortran/vla3.f90: New test.
2701 * testsuite/libgomp.fortran/vla4.f90: New test.
2702 * testsuite/libgomp.fortran/vla5.f90: New test.
2703 * testsuite/libgomp.fortran/vla6.f90: New test.
2705 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2707 * config/linux/sparc/futex.h: New file.
2708 * configure.tgt: Use it.
2709 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2711 * critical.c: Include stdlib.h.
2712 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2713 ignoring return value.
2714 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2715 LIBGOMP_CHECK_SYNC_BUILTINS check.
2716 * configure: Rebuilt.
2718 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2720 * testsuite/libgomp.fortran/vla1.f90: New test.
2722 2005-10-31 Richard Henderson <rth@redhat.com>
2724 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2725 setting 's' in different threads.
2727 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2729 * libgomp.h (attribute_hidden, ialias): Define.
2730 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2731 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2732 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2733 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2734 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2735 omp_test_lock, omp_test_nest_lock): Likewise.
2736 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2737 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2738 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2739 omp_test_lock, omp_test_nest_lock): Likewise.
2740 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2741 omp_get_dynamic, omp_get_nested): Likewise.
2742 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2743 omp_get_thread_num, omp_in_parallel): Likewise.
2744 * fortran.c (ialias_redirect): Define.
2745 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2746 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2747 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2748 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2749 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2750 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2751 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2752 omp_get_wtime): Add ialias_redirect.
2754 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2756 * fortran.c: Include stdlib.h.
2758 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2760 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2761 * Makefile.in: Regenerated.
2763 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2765 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2766 * libgomp_f.h.in (omp_check_defines): New function.
2767 * env.c: Include libgomp_f.h.
2768 (initialize_env): Call omp_check_defines.
2770 * testsuite/libgomp.dg/copyin-2.c: New test.
2771 * testsuite/libgomp.c++/copyin-2.C: New test.
2772 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2774 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2775 * testsuite/libgomp.fortran/sharing2.f90: New test.
2777 * testsuite/libgomp.dg/copyin-1.c: New test.
2778 * testsuite/libgomp.c++/copyin-1.C: New test.
2780 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2782 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2784 * testsuite/libgomp.fortran/workshare1.f90: New test.
2786 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2788 * libgomp.fortran/sharing1.f90: New test.
2790 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2793 * testsuite/libgomp.c++/loop-7.C: New test.
2795 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2797 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2798 * testsuite/libgomp.fortran/reduction6.f90: New test.
2799 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2801 2005-10-23 Richard Henderson <rth@redhat.com>
2803 * testsuite/libgomp.c++/ctor-1.C: New.
2804 * testsuite/libgomp.c++/ctor-2.C: New.
2805 * testsuite/libgomp.c++/ctor-3.C: New.
2806 * testsuite/libgomp.c++/ctor-4.C: New.
2807 * testsuite/libgomp.c++/ctor-5.C: New.
2808 * testsuite/libgomp.c++/ctor-6.C: New.
2809 * testsuite/libgomp.c++/ctor-7.C: New.
2810 * testsuite/libgomp.c++/ctor-8.C: New.
2811 * testsuite/libgomp.c++/ctor-9.C: New.
2813 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2816 * testsuite/libgomp.c++/pr24455-1.C: New test.
2817 * testsuite/libgomp.c++/pr24455.C: New test.
2818 * testsuite/libgomp.dg/pr24455-1.c: New test.
2819 * testsuite/libgomp.dg/pr24455.c: New test.
2821 2005-10-20 Richard Henderson <rth@redhat.com>
2823 * testsuite/libgomp.c++/loop-6.C: New.
2824 * testsuite/libgomp.dg/loop-3.c: New.
2826 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2828 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2830 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2833 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2835 * testsuite/libgomp.fortran/jacobi.f: New test.
2837 2005-10-19 Richard Henderson <rth@redhat.com>
2839 * configure.tgt (i?86-linux): Default to with_arch instead of
2840 CFLAGS. Add -mtune to match target_cpu.
2841 (x86_64-linux): Tune to i686.
2843 * fortran.c (omp_test_nest_lock_): Fix typo.
2845 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2847 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2848 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2849 * testsuite/libgomp.dg/ordered-3.c: New test.
2851 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2852 Remove volatile keyword.
2854 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2855 in COMMON block to avoid warnings on 64-bit targets.
2857 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2859 * testsuite/libgomp.dg/shared-3.c: New test.
2861 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2863 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2864 * testsuite/libgomp.fortran/reduction5.f90: New test.
2866 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2868 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2870 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2871 flush loop now that __sync_synchronize has proper memory barrier.
2872 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2873 Add -ffixed-form to dg-options.
2875 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2877 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2878 from subdirectories.
2879 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2880 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2881 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2882 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2883 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2884 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2885 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2886 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2887 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2888 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2889 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2890 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2891 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2892 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2893 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2894 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2895 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2896 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2897 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2898 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2899 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2900 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2901 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2902 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2903 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2905 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2907 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2908 lang_library_path exists. Use find instead of glob to gather tests.
2909 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2911 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2913 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2914 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2915 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2916 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2917 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2918 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2919 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2920 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2921 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2922 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2923 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2924 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2925 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2927 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2929 * testsuite/libgomp.dg/vla-1.c: New test.
2931 * testsuite/libgomp.fortran/reference2.f90: New test.
2933 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2934 declaration of omp_get_thread_num.
2935 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2938 * testsuite/libgomp.fortran/reduction1.f90: New test.
2939 * testsuite/libgomp.fortran/reduction2.f90: New test.
2940 * testsuite/libgomp.fortran/reduction3.f90: New test.
2941 * testsuite/libgomp.fortran/reduction4.f90: New test.
2943 2005-10-13 Richard Henderson <rth@redhat.com>
2945 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2946 * Makefile.in: Regenerate.
2947 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2948 * libgomp.h: Include bar.h.
2949 (struct gomp_barrier): Remove.
2950 (struct gomp_team): Add barrier. Replace master_barrier with
2951 master_release. Replace threads with ordered_release.
2952 (struct gomp_thread): Replace barrier with release.
2953 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2954 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2955 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2956 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2957 (GOMP_single_copy_end): Likewise.
2958 * team.c (gomp_threads_dock): New.
2959 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2960 (gomp_thread_start): Use gomp_barrier_wait.
2961 (new_team, free_team): Update for gomp_team changes.
2962 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2963 (gomp_team_end): Use gomp_barrier_wait.
2964 (initialize_team): Update for gomp_thread changes.
2965 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2966 (gomp_work_share_end_nowait): Use atomic ops when available.
2967 * config/linux/bar.c, config/linux/bar.h: New files.
2968 * config/posix/bar.c, config/posix/bar.h: New files.
2970 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2972 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2973 * testsuite/libgomp.dg/single-2.c: New test.
2975 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2976 lang_link_flags): Unset, so that they aren't inherited from previously
2979 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2981 2005-10-12 Richard Henderson <rth@redhat.com>
2983 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2984 (libgomp_init): Use lang_test_file, lang_library_path, and
2985 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2987 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2988 (lang_test_file, lang_link_flags): New.
2989 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2991 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2992 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2993 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2994 testsuite/libgomp.c++/parallel-1.C,
2995 testsuite/libgomp.c++/reduction-1.C,
2996 testsuite/libgomp.c++/reduction-2.C,
2997 testsuite/libgomp.c++/reduction-3.C,
2998 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2999 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3000 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3001 New files, largely cribbed from the C testsuite.
3003 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3005 * testsuite/libgomp.fortran/character1.f90: New test.
3006 * testsuite/libgomp.fortran/character2.f90: New test.
3008 * testsuite/libgomp.dg/nested-1.c: New test.
3009 * testsuite/libgomp.dg/nested-2.c: New test.
3010 * testsuite/libgomp.fortran/do1.f90: New test.
3011 * testsuite/libgomp.fortran/do2.f90: New test.
3013 * testsuite/libgomp.fortran/reference1.f90: New test.
3015 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3017 * testsuite/libgomp.dg/reduction-1.c: New test.
3018 * testsuite/libgomp.dg/reduction-2.c: New test.
3019 * testsuite/libgomp.dg/reduction-3.c: New test.
3021 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3023 * testsuite/libgomp.dg/atomic-1.c: New test.
3024 * testsuite/libgomp.dg/atomic-2.c: New test.
3026 2005-10-09 Richard Henderson <rth@redhat.com>
3028 * critical.c (atomic_lock): New.
3029 (initialize_critical): Initialize it.
3030 (GOMP_atomic_start, GOMP_atomic_end): New.
3031 * libgomp.map: Export them.
3032 * libgomp_g.h: Declare them.
3034 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3036 2005-10-02 Richard Henderson <rth@redhat.com>
3038 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3039 to XCFLAGS instead of CFLAGS.
3041 2005-09-30 Richard Henderson <rth@redhat.com>
3043 * configure.ac: Determine whether -pthread or -lpthread is needed.
3044 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3045 * Makefine.in, configure: Rebuild.
3047 2005-09-28 Richard Henderson <rth@redhat.com>
3049 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3050 * testsuite/libgomp.dg/omp-single-3.c: New test.
3052 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3054 * testsuite/libgomp.dg/omp-single-2.c: New test.
3055 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3057 2005-09-27 Richard Henderson <rth@redhat.com>
3059 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3060 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3062 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3064 * testsuite/libgomp.dg/omp-loop03.c: New test.
3066 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3068 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3070 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3072 * testsuite/libgomp.dg/omp-single-1.c: New test.
3073 * testsuite/libgomp.dg/shared-1.c: Return 0.
3074 Add prototype for abort.
3075 * testsuite/libgomp.dg/shared-2.c: Likewise.
3077 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3079 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3082 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3084 * testsuite/libgomp.dg/shared-1.c: New test.
3085 * testsuite/libgomp.dg/shared-2.c: New test.
3087 2005-09-24 Richard Henderson <rth@redhat.com>
3089 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3091 2005-09-24 Richard Henderson <rth@redhat.com>
3093 * iter.c (gomp_iter_static_next): Round up when computing number
3094 of iterations. Don't bother distributing a remainder equally.
3096 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3097 Don't call srand. Zero b before testing.
3100 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3102 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3103 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3105 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3107 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3108 without !$omp end do, followed immediately by subroutine end.
3110 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3112 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3114 2005-09-22 Richard Henderson <rth@redhat.com>
3116 * critical.c (GOMP_critical_name_start): Change argument to void**.
3117 Reuse the pointer space if the mutex fits.
3118 (GOMP_critical_name_end): Likewise.
3119 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3120 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3121 (GOMP_critical_name_end): Likewise.
3122 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3123 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3125 2005-09-20 Richard Henderson <rth@redhat.com>
3127 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3128 (create_lock_lock): New.
3129 (initialize_critical): Initialize it.
3130 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3131 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3133 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3135 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3137 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3139 * testsuite/libgomp.dg/omp-loop01.c: New test.
3140 * testsuite/libgomp.dg/omp-loop02.c: New test.
3142 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3144 * configure.ac (AC_PROG_FC): Add.
3145 (USE_FORTRAN): New automake conditional.
3146 * configure: Rebuilt.
3147 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3148 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3149 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3150 Add rules to build them.
3151 * Makefile.in: Rebuilt.
3152 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3154 * libgomp.map: Add Fortran wrappers.
3155 * libgomp_f.h.in: New file.
3156 * omp_lib.h.in: New file.
3157 * omp_lib.f90.in: New file.
3158 * fortran.c: New file.
3159 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3160 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3161 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3162 libgfortran has been built.
3163 * testsuite/libgomp.fortran/fortran.exp: New file.
3164 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3165 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3166 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3167 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3168 * testsuite/libgomp.fortran/omp_hello.f: New test.
3169 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3170 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3171 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3172 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3173 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3174 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3175 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3176 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3178 2005-08-30 Richard Henderson <rth@redhat.com>
3180 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3181 function for when aliases are not usable.
3182 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3183 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3184 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3185 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3186 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3187 GOMP_loop_ordered_guided_next): Likewise.
3188 * ordered.c (GOMP_ordered_start): Likewise.
3190 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3192 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3193 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3194 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3195 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3196 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3197 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3198 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3199 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3200 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3202 2005-07-07 Eric Christopher <echristo@redhat.com>
3203 Diego Novillo <dnovillo@redhat.com>
3205 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3206 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3208 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3209 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3210 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3211 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3212 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3213 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3214 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3216 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3218 * TOPLEVEL.patch: Remove.
3220 2005-05-16 Richard Henderson <rth@redhat.com>
3222 * configure.ac: Test for clock_gettime.
3223 * config.h.in, configure: Rebuild.
3224 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3225 (omp_get_wtime): Use clock_gettime if available.
3226 (omp_get_wtick): Use clock_getres if available.
3228 2005-05-11 Richard Henderson <rth@redhat.com>
3230 * config/linux/ia64/futex.h: New file.
3231 * configure.tgt: Use it.
3233 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3235 2005-05-07 Richard Henderson <rth@redhat.com>
3237 * config/linux/powerpc/futex.h: New file.
3238 * configure.tgt: Use it.
3240 * config/linux/i486/futex.h: Merge ...
3241 * config/linux/x86_64/futex.h: ... into ...
3242 * config/linux/x86/futex.h: ... here.
3243 * configure.tgt: Update to match.
3245 2005-05-06 Richard Henderson <rth@redhat.com>
3247 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3248 * config/linux/i486/futex.h: Likewise.
3249 * config/linux/x86_64/futex.h: Likewise.
3251 * config/linux/lock.c: New file.
3252 * config/linux/omp-lock.h: New file.
3254 * critical.c, env.h: Don't include omp.h
3255 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3256 * config/posix/time.c: Likewise.
3257 * config/posix/omp-lock.h: New file.
3258 * libgomp.h: Include omp-lock.h and omp.h.
3259 * Makefile.am (nodist_include_HEADERS): New.
3261 * configure.ac (PERL): New.
3262 * mkomp_h.pl: New file.
3263 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3265 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3267 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3268 build directory. Re-add -march=i486 hack.
3270 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3271 (libgomp_link_flags): Remove.
3272 (libgomp_initialized): Remove.
3273 (libgomp_init): Don't protect from reinitialization. Copy code
3274 from libstdc++ for getting the multilib set correctly.
3276 2005-05-05 Richard Henderson <rth@redhat.com>
3278 * config/linux/alpha/futex.h: New file.
3279 * configure.tgt (alpha*-*-linux*): Use it.
3281 * config/posix/mutex.c: New file.
3282 * config/posix/sem.c: Use libgomp.h.
3284 * configure.tgt (x86_64-linux): Also test CC for -m32.
3285 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3287 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3290 * Makefile.am (SUBDIRS): New.
3291 (libgomp_la_LDFLAGS): Add -lpthread.
3292 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3293 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3295 * libgomp_g.h: New file.
3296 * libgomp.h: Split out all public declarations to libgomp_g.h.
3297 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3298 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3299 * config/linux/sem.h: Likewise.
3300 * config/posix/sem.h: Likewise.
3302 * Makefile.am (AM_LDFLAGS): New.
3303 (libgomp_version_script): Split out from ...
3304 (libgomp_la_LDFLAGS): ... here.
3305 (libgomp_version_info): New.
3306 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3307 (LIBGOMP_ENABLE): New.
3308 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3309 (LIBGOMP_ENABLE_SYMVERS): New.
3310 * configure.ac (AC_INIT): Version 1.0.
3311 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3312 (enable-linux-futex): Likewise. Rename from enable-futex.
3313 (libtool_VERSION): New.
3314 (LIBGOMP_ENABLE_SYMVERS): Use it.
3315 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3316 * Makefile.in, aclocal.m4, configure: Rebuild.
3318 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3319 (gomp_mutex_unlock_slow): Fix typo.
3320 * config/linux/sem.c: Similarly.
3321 (gomp_sem_post_slow): Fix typo.
3322 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3323 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3324 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3326 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3327 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3328 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3329 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3330 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3331 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3332 LDFLAGS. Pull enable_futex check to top-level.
3333 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3334 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3336 First attempt at real configury.
3337 * Makefile, config.h: Remove file.
3338 * Makefile.am, Makefile.in: New file.
3339 * acinclude.m4 aclocal.m4: New file.
3340 * configure.ac, configure.tgt, configure: New file.
3342 * config/posix/lock.c: Rename from sys-lock.c.
3343 * config/posix/mutex.h: Rename from sys-mutex.h.
3344 * config/posix/sem.c: Rename from sys-sem.c.
3345 * config/posix/sem.h: Rename from sys-sem.h.
3346 * config/posix/proc.c: Rename from sys-proc.c.
3347 * config/posix/time.c: Rename from sys-proc.c.
3349 * config/linux/mutex.c: New file.
3350 * config/linux/mutex.h: New file.
3351 * config/linux/sem.c: New file.
3352 * config/linux/sem.h: New file.
3353 * config/linux/i486/futex.h: New file.
3354 * config/linux/x86_64/futex.h: New file.
3356 2005-05-04 Richard Henderson <rth@redhat.com>
3358 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3359 * libgomp.h: Declare them.
3360 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3361 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3363 2005-05-04 Richard Henderson <rth@redhat.com>
3365 * libgomp-1 code drop
3367 2005-05-04 Richard Henderson <rth@redhat.com>
3369 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3370 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3371 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3372 (gomp_iter_static_next): Update.
3373 (gomp_ordered_static_next): Update.
3374 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3375 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3376 totally empty range.
3377 (gomp_loop_ordered_static_next): Refine test for calling
3378 gomp_ordered_static_next.
3379 * testsuite/ordered-1.c: Add case for more threads than iterations.
3381 * iter.c (gomp_iter_runtime_next_locked): Remove.
3382 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3383 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3384 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3385 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3386 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3387 gomp_loop_ordered_guided_next): Downcase name, make static, add
3388 an external alias with the old name.
3389 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3390 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3391 switch and call one of the above static functions.
3392 * libgomp.h: Update.
3394 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3395 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3396 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3397 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3398 GOMP_loop_ordered_guided_start): Update to match.
3399 * sections.c (GOMP_sections_start): Likewise.
3400 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3402 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3403 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3404 Use bounds check instead of modulus.
3405 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3406 (gomp_ordered_last): Don't sync with ordered_owner here.
3407 (gomp_ordered_next): Likewise.
3408 (gomp_ordered_static_loop_next): Likewise.
3409 * loop.c, libgomp.h: Update to match.
3411 * libgomp.h (GOMP_barrier): Declare.
3413 * testsuite/barrier-1.c: New file.
3414 * testsuite/critical-1.c: New file.
3415 * testsuite/ordered-2.c: New file.
3416 * testsuite/ordered-1.c: New file.
3417 * testsuite/sections-1.c: New file.
3418 * testsuite/single-1.c: New file.
3419 * testsuite/Makefile (TESTS): Add them.
3421 2005-05-04 Richard Henderson <rth@redhat.com>
3423 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3424 * loop.c (GOMP_loop_static_start): If not the startup thread,
3425 acquire the mutex to wait for initialization complete.
3426 (GOMP_loop_ordered_static_start): Likewise.
3427 (GOMP_loop_ordered_runtime_start): Likewise.
3428 (GOMP_loop_ordered_static_first): Remove.
3429 (GOMP_loop_ordered_dynamic_first): Remove.
3430 (GOMP_loop_ordered_guided_first): Remove.
3431 (GOMP_loop_ordered_runtime_first): Remove.
3432 * ordered.c (gomp_ordered_loop_first): Post to own release when
3433 we're the first thread.
3434 (gomp_ordered_loop_last): Wait on release if not owner.
3435 (gomp_ordered_loop_next): Likewise.
3436 (gomp_ordered_static_loop_init): New.
3437 (gomp_ordered_static_loop_next): Use ordered_owner.
3438 (GOMP_ordered_start): Likewise.
3439 * work.c (gomp_new_work_share): Initialize ordered_owner.
3441 2005-05-03 Richard Henderson <rth@redhat.com>
3443 * Makefile (OPT): New.
3446 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3447 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3448 * libgomp.h, libgomp.map, NOTES: Update to match.
3450 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3451 Add initialized and thr members.
3452 (gomp_thread_start): Pause when initially spawned to wait for
3453 the whole team to be created.
3454 (gomp_team_start): Release team members at the end.
3456 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3457 (f_foo_1): Use GOMP_loop_end.
3458 (f_foo_2): Use GOMP_loop_end_nowait.
3460 * testsuite/loop-2.c: New file.
3461 * testsuite/Makefile (TESTS): Add it.
3463 2005-05-03 Richard Henderson <rth@redhat.com>
3465 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3466 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3467 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3470 * testsuite/Makefile: New file.
3471 * testsuite/loop-1.c: New file.
3473 2005-05-03 Richard Henderson <rth@redhat.com>
3475 Initial implementation and checkin.