graph.c (init_graph_slim_pretty_print): Remove.
[official-gcc.git] / libgomp / ChangeLog
blob6687169f1cefc7cbc694e7347e7f57a824f3dafc
1 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3         * testsuite/libgomp.fortran/strassen.f90:
4         Add dg-skip-if aarch64_tiny.
6 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
7             Cesar Philippidis  <cesar@codesourcery.com>
9         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
10         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
11         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12         * testsuite/libgomp.fortran/fortran.exp: Likewise.
13         * testsuite/libgomp.graphite/graphite.exp: Likewise.
14         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
15         Use dg-runtest rather than gfortran-dg-runtest.
17 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
19         * testsuite/libgomp.c/icv-2.c: Extend current handling of
20         Linux-based x86 systems to cover all GNU systems.
21         * testsuite/libgomp.c/lock-3.c: Likewise.
22         * testsuite/libgomp.c/pr48591.c: Likewise.
24 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
26         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
27         GNU/Hurd, as done for Linux-based systems.
29         * config/posix/ptrlock.h: Fix comment.
31 2013-05-27  Tobias Burnus  <burnus@net-b.de>
33         PR fortran/57423
34         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
35         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
36         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
37         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
38         omp_destroy_nest_lock): Correct arguments to match the one in
39         the OpenMP spec.
40         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
41         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
42         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
43         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
45 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
47         * testsuite/libgomp.c/loop-13.c: New test.
48         * testsuite/libgomp.c/loop-14.c: New test.
49         * testsuite/libgomp.c/loop-15.c: New test.
50         * testsuite/libgomp.c++/loop-13.C: New test.
51         * testsuite/libgomp.c++/loop-14.C: New test.
52         * testsuite/libgomp.c++/loop-15.C: New test.
54 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
56         PR middle-end/56217
57         * testsuite/libgomp.c++/pr56217.C: New test.
59 2013-02-01  Alan Modra  <amodra@gmail.com>
61         * task.c (GOMP_task, GOMP_taskwait): Comment.
63 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
64             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
66         PR libgomp/55561
67         * config/linux/wait.h (do_spin): Use atomic load for addr.
68         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
69         for intptr and ptrlock.
70         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
71         for ptrlock.
73 2013-01-22  Alan Modra  <amodra@gmail.com>
75         PR libgomp/51376
76         PR libgomp/56073
77         * task.c (GOMP_task): Revert 2011-12-09 change.
78         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
79         barrier to read task->children..
80         (gomp_barrier_handle_tasks): ..and matching atomic store with
81         release barrier here when setting parent->children to NULL.
83 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
84             Tobias Burnus  <burnus@net-b.de>
86         PR driver/55884
87         * testsuite/libgomp.fortran/fortran.exp: Use
88         -fintrinsic-modules-path= instead of
89         -fintrinsic-modules-path.
91 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
93         Update copyright years.
95 2012-12-19  Tobias Burnus  <burnus@net-b.de>
97         * testsuite/libgomp.fortran/fortran.exp: Set
98         -fintrinsic-modules-path.
100 2012-12-19  Tobias Burnus  <burnus@net-b.de>
102         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
103         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
105 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
107         PR libgomp/55411
108         * team.c (gomp_free_thread): Decrease gomp_managed_threads
109         if pool had any threads_used.
111 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
113         * testsuite/libgomp.c++/pr24455.C: Use
114         -Wl,-undefined,dynamic_lookup on darwin.
116 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
118         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
120 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
122         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
124 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
125             Jim MacArthur  <jim.macarthur@arm.com>
126             Marcus Shawcroft  <marcus.shawcroft@arm.com>
127             Nigel Stephens  <nigel.stephens@arm.com>
128             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
129             Richard Earnshaw  <rearnsha@arm.com>
130             Sofiane Naci  <sofiane.naci@arm.com>
131             Stephen Thomas  <stephen.thomas@arm.com>
132             Tejas Belagod  <tejas.belagod@arm.com>
133             Yufeng Zhang  <yufeng.zhang@arm.com>
135         * configure.tgt: Add AArch64.
137 2012-10-04  Jason Merrill  <jason@redhat.com>
139         * testsuite/libgomp.c++/tls-init1.C: New.
141 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
143         * configure: Regenerated.
145 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
147         * config/linux/mips/futex.h (sys_futex0): Change to static
148         function with noinline, nomips16 attributes under MIPS16. Adjust
149         asm statement to place 'li v0,SYS_futex' immediately before
150         syscall insn.
152 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
154         * libgomp.texi (Library Index): Renamed from "Index" to prevent
155         conflict with index.html on case-insensitive file systems.
157 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
159         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
160         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
162 2012-07-02  Richard Guenther  <rguenther@suse.de>
163             Michael Matz  <matz@suse.de>
164             Tobias Grosser <tobias@grosser.es>
165             Sebastian Pop <sebpop@gmail.com>
167         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
168         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
169         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
170         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
172 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
174         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
176 2012-06-22  Richard Guenther  <rguenther@suse.de>
178         Merge from graphite branch
179         2012-01-13  Tobias Grosser  <tobias@grosser.es>
181         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
182         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
184 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
186         PR middle-end/53580
187         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
188         use GOMP_barrier () call instead.
189         * testsuite/libgomp.c/pr26943-3.c: Likewise.
190         * testsuite/libgomp.c/pr26943-4.c: Likewise.
191         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
192         call GOMP_barrier instead.
193         * testsuite/libgomp.fortran/vla5.f90: Likewise.
195 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
197         PR libgomp/52993
198         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
199         argument to memset call.
201 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
203         * configure: Regenerated.
205 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
207         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
209 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
211         PR bootstrap/52812
212         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
214 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
216         PR middle-end/52547
217         * testsuite/libgomp.c/pr52547.c: New test.
219 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
221         * testsuite/lib/libgomp.exp: load fortran-modules.exp
223 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
225         * configure.tgt (mips-sgi-irix6*): Remove.
227 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
229         * configure.tgt (alpha*-dec-osf*): Remove.
231         * config/osf/sem.h: Remove.
232         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
234 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
236         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
238 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
240         PR libstdc++/52188
241         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
242         Remove ENABLE_SYMVERS_SOL2.
243         * configure: Regenerate.
244         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
245         (PREPROCESS): New variable.
246         (libgomp.ver): New target.
247         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
248         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
249         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
250         Use libgomp.ver.
251         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
252         * Makefile.in: Regenerate.
254 2012-02-14  Walter Lee  <walt@tilera.com>
256         * configure.tgt: Handle tilegx and tilepro.
257         * config/linux/tile/futex.h: New file.
259 2012-02-08  Richard Guenther  <rguenther@suse.de>
261         PR tree-optimization/46886
262         * testsuite/libgomp.c/pr46886.c: New testcase.
264 2012-01-25  Matthias Klose  <doko@ubuntu.com>
266         * config/linux/arm: Remove empty directory.
267         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
269 2011-12-09  Alan Modra  <amodra@gmail.com>
271         PR libgomp/51376
272         * task.c (GOMP_taskwait): Don't access task->children outside of
273         task_lock mutex region.
274         (GOMP_task): Likewise.
276 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
278         PR libgomp/51132
279         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
280         to file scope.
281         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
282         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
283         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
284         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
285         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
287 2011-12-02  Alan Modra  <amodra@gmail.com>
289         * config/linux/affinity.c: Use atomic rather than sync builtin.
290         * config/linux/lock.c: Likewise.
291         * config/linux/ptrlock.h: Likewise.
292         * config/linux/ptrlock.c: Likewise.
293         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
294         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
295         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
296         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
297         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
298         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
299         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
300         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
301         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
302         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
304 2011-11-30  Alan Modra  <amodra@gmail.com>
306         PR libgomp/51298
307         * config/linux/bar.h: Use atomic rather than sync builtins.
308         * config/linux/bar.c: Likewise.  Add missing acquire
309         synchronisation on generation field.
310         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
311         double unlock.
313 2011-11-30  Alan Modra  <amodra@gmail.com>
315         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
316         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
317         * config/linux/mutex.h: Use atomic rather than sync builtins.
318         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
319         * config/linux/omp-lock.h: Comment fix.
320         * config/linux/arm/mutex.h: Delete.
321         * config/linux/powerpc/mutex.h: Delete.
322         * config/linux/ia64/mutex.h: Delete.
323         * config/linux/mips/mutex.h: Delete.
325 2011-11-30  Alan Modra  <amodra@gmail.com>
327         PR libgomp/51249
328         * config/linux/sem.h: Rewrite.
329         * config/linux/sem.c: Rewrite.
331 2011-11-28  Richard Henderson  <rth@redhat.com>
333         * libgomp.h (enum memmodel): New.
335 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
337         * configure: Regenerate.
339 2011-10-10  Matthias Klose  <doko@ubuntu.com>
341         * config/posix95: Remove empty directory.
343 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
345         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
347 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
349         PR fortran/49792
350         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
351         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
353 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
355         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
357 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
359         PR libgomp/49965
360         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
362 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
364         * config/linux/proc.h: New.
365         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
366         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
367         (gomp_init_num_threads): Update call to cpuset_popcount.
368         (get_num_procs): Ditto.
369         * config/linux/affinity.c (gomp_init_affinity): Call
370         gomp_cpuset_popcount.
372 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
374         PR fortran/42041
375         PR fortran/46752
376         * omp.h.in (omp_in_final): New prototype.
377         * omp_lib.f90.in (omp_in_final): New interface.
378         (omp_integer_kind, omp_logical_kind): Remove
379         and replace all its uses in the module with 4.
380         (openmp_version): Change to 201107.
381         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
382         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
383         kind for the parameters.
384         (omp_in_final): New external.
385         (openmp_version): Change to 201107.
386         * task.c (omp_in_final): New function.
387         (gomp_init_task): Initialize final_task.
388         (GOMP_task): Remove unused attribute from flags.  Handle final
389         tasks.
390         (GOMP_taskyield): New function.
391         (omp_in_final): Return true if if (false) or final (true) task
392         or descendant of final (true).
393         * fortran.c (omp_in_final_): New function.
394         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
395         (GOMP_3.0): Export GOMP_taskyield.
396         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
397         variables.
398         (parse_unsigned_long_list): New function.
399         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
400         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
401         even if parse_affinity returned false.
402         * config/linux/affinity.c (gomp_init_affinity): Handle
403         gomp_cpu_affinity_len == 0.
404         * libgomp_g.h (GOMP_taskyield): New prototype.
405         * libgomp.h (struct gomp_task): Add final_task field.
406         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
407         * team.c (gomp_team_start): Override new task's nthreads_var icv
408         if list form OMP_NUM_THREADS has been used and it has value for
409         the new nesting level.
411         * testsuite/libgomp.c/atomic-11.c: New test.
412         * testsuite/libgomp.c/atomic-12.c: New test.
413         * testsuite/libgomp.c/atomic-13.c: New test.
414         * testsuite/libgomp.c/atomic-14.c: New test.
415         * testsuite/libgomp.c/reduction-6.c: New test.
416         * testsuite/libgomp.c/task-5.c: New test.
417         * testsuite/libgomp.c++/atomic-2.C: New test.
418         * testsuite/libgomp.c++/atomic-3.C: New test.
419         * testsuite/libgomp.c++/atomic-4.C: New test.
420         * testsuite/libgomp.c++/atomic-5.C: New test.
421         * testsuite/libgomp.c++/atomic-6.C: New test.
422         * testsuite/libgomp.c++/atomic-7.C: New test.
423         * testsuite/libgomp.c++/atomic-8.C: New test.
424         * testsuite/libgomp.c++/atomic-9.C: New test.
425         * testsuite/libgomp.c++/task-8.C: New test.
426         * testsuite/libgomp.c++/reduction-4.C: New test.
427         * testsuite/libgomp.fortran/allocatable7.f90: New test.
428         * testsuite/libgomp.fortran/allocatable8.f90: New test.
429         * testsuite/libgomp.fortran/crayptr3.f90: New test.
430         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
431         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
432         * testsuite/libgomp.fortran/pointer1.f90: New test.
433         * testsuite/libgomp.fortran/pointer2.f90: New test.
434         * testsuite/libgomp.fortran/task4.f90: New test.
436 2011-08-02  Tobias Burnus  <burnus@net-b.de>
438         * libgomp.texi: Update OpenMP spec references to 3.1.
439         (omp_in_final,OMP_PROC_BIND): New sections.
440         (OMP_NUM_THREADS): Document that the value can be now a list.
441         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
443 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
445         * config/linux/x86/futex.h: Check __x86_64__ instead of
446         __LP64__.
448 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
450         PR middle-end/49897
451         PR middle-end/49898
452         * testsuite/libgomp.c/pr49897-1.c: New test.
453         * testsuite/libgomp.c/pr49897-2.c: New test.
454         * testsuite/libgomp.c/pr49898-1.c: New test.
455         * testsuite/libgomp.c/pr49898-2.c: New test.
457 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
459         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
460         for ia32 instead of ilp32.
462         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
463         * testsuite/libgomp.c/atomic-6.c: Likewise.
465 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
467         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
468         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
470 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
472         PR libgomp/45351
473         * config/osf/sem.h: New file.
474         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
476 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
478         PR target/49541
479         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
480         ldflags.
482 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
484         * config/linux/wait.h (do_spin): New inline, largely copied
485         from do_wait, just don't do futex_wait here, instead return true if
486         it should be done.
487         (do_wait): Implement using do_spin.
488         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
489         to prototype.
490         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
491         __sync_bool_compare_and_swap, pass the oldval to
492         gomp_mutex_lock_slow.
493         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
494         If all mutex contenders are just spinning and not sleeping, don't
495         change state to 2 unnecessarily.  Optimize the loop when state has
496         already become 2 to use just one atomic operation per loop instead
497         of two.
498         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
499         to prototype.
500         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
501         __sync_bool_compare_and_swap, pass the oldval to
502         gomp_mutex_lock_slow.
504 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
506         PR libgomp/49490
507         * iter.c (gomp_iter_static_next): For chunk size 0
508         only use n ceil/ nthreads size for the first
509         n % nthreads threads in the team instead of
510         all threads except for the last few ones which
511         get less work or none at all.
512         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
513         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
514         chunk argument, set run_sched_modifier to 0 for static
515         resp. 1 for other kinds.  If chunk argument is 0
516         and not static, set value to 1.
518 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
520         PR c++/49043
521         * testsuite/libgomp.c++/pr49043.C: New test.
523         PR c++/48869
524         * testsuite/libgomp.c++/pr48869.C: New test.
526 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
528         PR fortran/48894
529         * fortran.c: Include limits.h.
530         (TO_INT): Define.
531         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
532         *set.
533         (omp_set_num_threads_8_, omp_set_schedule_8_,
534         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
535         omp_get_team_size_8_): Use TO_INT macro.
536         * testsuite/libgomp.fortran/pr48894.f90: New test.
538 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
540         PR middle-end/48591
541         * testsuite/libgomp.c/pr48591.c: New test.
543 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
545         PR bootstrap/48135
546         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
547         * configure: Regenerate.
549 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
551         PR fortran/47886
552         * testsuite/libgomp.fortran/task3.f90: New test.
554 2011-02-24  Tobias Burnus  <burnus@net-b.de>
556         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
558 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
560         PR libgomp/47854
561         * libgomp.texi (omp_get_wtime): Don't say time in the past
562         must be Unix Epoch.
564 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
566         PR libgomp/47804
567         * testsuite/libgomp.fortran/fortran.exp: Check for both
568         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
569         but $blddir != "", still append ${blddir}/${lang_library_path}
570         to ld_library_path.
572 2011-02-16  Tobias Burnus  <burnus@net-b.de>
574         PR libgomp/47758
575         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
576         of libquadmath.a before adding its libpath to ldflags.
578 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
580         PR libgomp/47731
581         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
582         to FUTEX_WAIT futex syscall.
583         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
585 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
587         * configure: Regenerate.
589 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
591         PR libstdc++/36104
592         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
594 2011-01-16  Gerald Pfeifer
596         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
598 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
600         PR fortran/46874
601         * libgomp.fortran/allocatable6.f90: New test.
603 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
605         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
606         * configure: Regenerate.
608 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
610         PR target/40125
611         PR lto/46695
612         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
613         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
614         * aclocal.m4: Regenerate.
615         * configure: Regenerate.
616         * Makefile.in: Regenerate.
617         * testsuite/Makefile.in: Regenerate.
619 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
621         PR fortran/46753
622         * libgomp.fortran/pr46753.f90: New test.
624         PR libgomp/43706
625         * env.c (initialize_env): Default to spin count 300000
626         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
627         is specified.
629         PR libgomp/45240
630         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
631         at the end if sync builtins aren't supported.
633 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
635         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
637 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
639         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
641 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
643         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
645 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
646             Tobias Burnus  <burnus@net-b.de>
648         PR fortran/32049
649         * configure.ac:
650         * configure: Regenerate.
652 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
654         * config/linux/futex.h: New.
655         * config/linux/arm/mutex.h: New.
656         * configure.tgt (arm*-*-linux*): Add config path.
658 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
660         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
662 2010-09-23  Tobias Burnus  <burnus@net-b.de>
664         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
665         Change Fortran datatype to LOGICAL.
666         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
667         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
669 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
671         * configure: Regenerate.
673 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
675         * libgomp.texi: Add function keyword to a couple of Fortran
676         interfaces, use integer instead of int for Fortran.
678 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
680         * libgomp.texi: Fix spelling and pasto problems throughout.
681         Adjust prototypes to match code.
683 2010-07-24  Tobias Burnus  <burnus@net-b.de>
685         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
686         silence -fwhole-file warning.
688 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
690         * configure.tgt (*-*-solaris2.[56]*): Removed.
692 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
694         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
695         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
696         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
697         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
698         targetting solaris2*.
699         * configure: Regenerate.
700         * config.h.in: Regenerate.
702         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
703         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
704         Add libgomp_version_dep.
705         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
706         versioning.
707         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
708         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
709         * Makefile.in: Regenerate.
711         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
712         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
713         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
714         to common block, protected by
715         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
717 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
719         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
721 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
723         PR bootstrap/43170
724         * configure: Regenerate.
726 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
728         PR other/43620
729         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
730         * configure: Regenerate.
731         * Makefile.in: Regenerate.
732         * testsuite/Makefile.in: Regenerate.
734 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
736         PR c/43893
737         * testsuite/libgomp.c/pr43893.c: New test.
738         * testsuite/libgomp.c++/pr43893.C: New test.
740 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
742         PR middle-end/43570
743         * testsuite/libgomp.fortran/vla8.f90: New test.
745 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
747         PR libgomp/43706
748         * config/linux/affinity.c (gomp_init_affinity): Decrease
749         gomp_available_cpus if affinity mask confines the process to fewer
750         CPUs.
751         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
752         non-NULL, just return gomp_available_cpus.
754         PR libgomp/43569
755         * sections.c (gomp_sections_init): Initialize ws->mode.
757 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
759         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
760         not unused bar variable.
761         * configure: Regenerate.
763 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
765         * Makefile.in: Regenerate.
766         * aclocal.m4: Regenerate.
767         * testsuite/Makefile.in: Regenerate.
769 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
771         PR libgomp/42942
772         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
773         (initialize_env): Adjust callers.
774         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
775         when the argument is 0.
777         * testsuite/libgomp.c/pr42942.c: New test.
779 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
781         PR middle-end/42644
782         PR middle-end/42130
783         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
784         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
786 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
788         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
789         * testsuite/libgomp.c++/task-6.C: Likewise.
791 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
793         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
795 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
797         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
798         * configure: Regenerate.
800 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
802         PR fortran/42866
803         * testsuite/libgomp.fortran/allocatable5.f90: New test.
805 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
807         * configure.ac: Test for executability of GFORTRAN.
808         * configure: Regenerate.
810 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
812         * configure: Regenerate.
814 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
816         PR libgomp/42602
817         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
819 2010-01-03  Richard Guenther  <rguenther@suse.de>
821         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
823 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
825         * testsuite/libgomp.graphite/pr4118.c: New.
827 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
829         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
830         for darwin, protect the test with require-effective-target tls_runtime.
831         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
833 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
835         PR target/41605
836         * testsuite/lib/libgomp.exp: Provide -B options to allow for
837         link spec %s substitutions for static libraries.
839 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
841         PR testsuite/42135
842         * libgomp.graphite/force-parallel-2.c: Reduce array size.
844 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
846         * Makefile.in: Regenerate.
847         * configure: Regenerate.
848         * testsuite/Makefile.in: Regenerate.
850 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
852         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
853         settings for LC_ALL and LANG.
855 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
857         PR fortran/42162
858         * testsuite/libgomp.fortran/pr42162.f90: New test.
860 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
862         PR middle-end/42029
863         * testsuite/libgomp.c/pr42029.c: New test.
865 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
867         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
868         *s.  Accept ld version without text in ()s.
869         * configure: Regenerated.
871 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
873         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
875 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
877         PR libgomp/41418
878         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
879         or a hyphen (happens with fortran language disabled).
880         * configure: Regenerate.
882 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
884         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
885         use sed script portable to Solaris /bin/sed for extracting ld
886         version.
887         * configure: Regenerate.
889 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
891         * testsuite/libgomp.graphite/bounds.c: New test.
893 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
895         * Makefile.am (libgomp_la_LINK): New.
896         * Makefile.in: Regenerate.
898 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
900         * configure.ac (AC_PREREQ): Bump to 2.64.
902 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
904         * Makefile.am (install-html, install-pdf): Remove.
905         * Makefile.in: Regenerate.
907         * Makefile.in: Regenerate.
908         * aclocal.m4: Regenerate.
909         * config.h.in: Regenerate.
910         * configure: Regenerate.
911         * testsuite/Makefile.in: Regenerate.
913 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
915         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
916         * Makefile.in: Regenerate.
918 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
920         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
921         * Makefile.in: Regenerate.
923 2009-08-19  Tobias Burnus  <burnus@net-b.de>
925         PR fortran/41102
926         omp_lib.h.in: Fix -std=f95 errors.
929 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
931         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
932         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
933         * testsuite/libgomp.graphite/graphite.exp: New.
935 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
937         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
938         only build.
940 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
942         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
943         needed memory barrier semantics.
944         * config/linux/mips/mutex.h: New file.
946 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
948         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
950 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
952         * configure: Regenerate.
954 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
956         PR testsuite/40699
957         PR testsuite/40707
958         PR testsuite/40709
959         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
960         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
961         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
963 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
965         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
966         options when choosing a multilib.
968 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
970         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
971         ld_library_path.  Use add_path.  Add just find_libgcc_s to
972         ld_library_path, not every libgcc multilib directory.
973         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
974         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
975         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
976         Use add_path.
977         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
979 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
981         * Makefile.am (LTLDFLAGS): Define.
982         (LINK): Define.
983         * Makefile.in: Regenerate.
985 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
987         PR fortran/39718
988         * testsuite/libgomp.fortran/fortran.exp: Don't link with
989         libgfortranbegin, check existence of libgfortran.a instead of
990         libgfortranbegin.a.
992 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
994         PR libgomp/40174
995         * team.c (gomp_thread_start): Destroy thr->release semaphore.
996         (gomp_free_pool_helper): Likewise.
998 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
999             Jakub Jelinek  <jakub@redhat.com>
1001         PR fortran/35423
1002         * testsuite/libgomp.fortran/workshare2.f90: New test.
1004 2009-04-09  Nick Clifton  <nickc@redhat.com>
1006         * iter.c: Change copyright header to refer to version 3 of the
1007         GNU General Public License with version 3.1 of the GCC Runtime
1008         Library Exception and to point readers at the COPYING3 and
1009         COPYING3.RUNTIME files and the FSF's license web page.
1010         * alloc.c: Likewise.
1011         * barrier.c: Likewise.
1012         * config/bsd/proc.c: Likewise.
1013         * config/linux/affinity.c: Likewise.
1014         * config/linux/alpha/futex.h: Likewise.
1015         * config/linux/bar.c: Likewise.
1016         * config/linux/bar.h: Likewise.
1017         * config/linux/ia64/futex.h: Likewise.
1018         * config/linux/ia64/mutex.h: Likewise.
1019         * config/linux/lock.c: Likewise.
1020         * config/linux/mips/futex.h: Likewise.
1021         * config/linux/mutex.c: Likewise.
1022         * config/linux/mutex.h: Likewise.
1023         * config/linux/powerpc/futex.h: Likewise.
1024         * config/linux/proc.c: Likewise.
1025         * config/linux/ptrlock.c: Likewise.
1026         * config/linux/ptrlock.h: Likewise.
1027         * config/linux/s390/futex.h: Likewise.
1028         * config/linux/sem.c: Likewise.
1029         * config/linux/sem.h: Likewise.
1030         * config/linux/sparc/futex.h: Likewise.
1031         * config/linux/wait.h: Likewise.
1032         * config/linux/x86/futex.h: Likewise.
1033         * config/mingw32/proc.c: Likewise.
1034         * config/mingw32/time.c: Likewise.
1035         * config/posix/affinity.c: Likewise.
1036         * config/posix/bar.c: Likewise.
1037         * config/posix/bar.h: Likewise.
1038         * config/posix/lock.c: Likewise.
1039         * config/posix/mutex.h: Likewise.
1040         * config/posix/proc.c: Likewise.
1041         * config/posix/ptrlock.h: Likewise.
1042         * config/posix/sem.c: Likewise.
1043         * config/posix/sem.h: Likewise.
1044         * config/posix/time.c: Likewise.
1045         * config/posix95/lock.c: Likewise.
1046         * critical.c: Likewise.
1047         * env.c: Likewise.
1048         * error.c: Likewise.
1049         * fortran.c: Likewise.
1050         * iter_ull.c: Likewise.
1051         * libgomp.h: Likewise.
1052         * libgomp_f.h.in: Likewise.
1053         * libgomp_g.h: Likewise.
1054         * loop.c: Likewise.
1055         * loop_ull.c: Likewise.
1056         * omp.h.in: Likewise.
1057         * omp_lib.f90.in: Likewise.
1058         * omp_lib.h.in: Likewise.
1059         * ordered.c: Likewise.
1060         * parallel.c: Likewise.
1061         * sections.c: Likewise.
1062         * single.c: Likewise.
1063         * task.c: Likewise.
1064         * team.c: Likewise.
1065         * work.c: Likewise.
1067 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1069         * testsuite/config/default.exp: Change copyright header to refer to
1070         version 3 of the GNU General Public License and to point readers
1071         at the COPYING3 file and the FSF's license web page.
1073 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1075         PR middle-end/39573
1076         * libgomp.c++/pr39573.C: New test.
1078 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1080         PR other/39591
1081         * testsuite/libgomp.c/pr39591-1.c: New test.
1082         * testsuite/libgomp.c/pr39591-2.c: New test.
1083         * testsuite/libgomp.c/pr39591-3.c: New test.
1085 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1087         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1088         * testsuite/libgomp.c/atomic-6.c: Ditto.
1090 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1092         PR c/39495
1093         * testsuite/libgomp.c/loop-12.c: New test.
1094         * testsuite/libgomp.c/loop-11.c: New test.
1095         * testsuite/libgomp.c++/loop-11.C: New test.
1096         * testsuite/libgomp.c++/loop-12.C: New test.
1097         * testsuite/libgomp.c++/for-8.C: New test.
1099 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1101         * configure: Regenerate.
1103 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1105         PR middle-end/39154
1106         * testsuite/libgomp.c/pr39154.c: New test.
1108 2009-01-30  Ian Lance Taylor  <iant@google.com>
1110         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1111         libgomp_ld_is_gold.  Get gold version number.
1112         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1113         * configure: Rebuild.
1115 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1117         * testsuite/lib/libgomp.exp: Add -B option for targets that
1118         use libgfortran.a%s in their specs.
1120 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1122         PR libgomp/38086
1123         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1124         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1125         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1126         * configure: Regenerated.
1127         * config.h.in: Likewise.
1129 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1131         PR c++/38650
1132         * testsuite/libgomp.c/pr38650.c: New test.
1133         * testsuite/libgomp.c++/pr38650.C: New test.
1135 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1137         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1139 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1141         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1143 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1145         * configure: Regenerate.
1147 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1149         PR middle-end/36802
1150         * testsuite/libgomp.c/pr36802-1.c: New test.
1151         * testsuite/libgomp.c/pr36802-2.c: New test.
1152         * testsuite/libgomp.c/pr36802-3.c: New test.
1154 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1156         PR libgomp/38270
1157         * config/linux/powerpc/mutex.h: New.
1159 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1161         PR c++/38257
1162         * testsuite/libgomp.c++/for-7.C: New test.
1164         PR c++/38348
1165         * testsuite/libgomp.c++/for-6.C: New test.
1167 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1169         PR testsuite/28870
1170         * testsuite/lib/libgomp.exp: Include new timeout library files.
1171         (libgomp_target_compile): Set timeout value from new proc.
1173 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1175         PR libgomp/37938
1176         * config/linux/ia64/mutex.h: New.
1178 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1180         PR libgomp/37935
1181         * libgomp.texi (Runtime library routines, environment variables):
1182         Update for OpenMP version 3.0.
1184 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1185             Steve Ellcey  <sje@cup.hp.com>
1187         * configure: Regenerate for new libtool.
1188         * Makefile.in: Ditto.
1189         * testsuite/Makefile.in: Ditto.
1191 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1192             Andreas Tobler  <a.tobler@schweiz.org>
1194         * config/bsd/proc.c: New file.
1195         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1196         * configure.ac: Check for header <sys/sysctl.h>
1197         * configure: Regenerate.
1198         * config.h.in: Likewise.
1200 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1202         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1204 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1206         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1207         * Makefile.in: Regenerated.
1208         * testsuite/Makefile.in: Regenerated.
1210 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1212         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1213         depend on blddir if blddir exists.
1214         (libgomp_target_compile): Likewise.
1215         * testsuite/libgomp.c++/c++.exp: Likewise.
1216         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1218 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1220         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1221         Do not list GPL as Invariant Section.
1223 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1224             Chao-ying Fu  <fu@mips.com>
1226         * configure.tgt: Enable futex for MIPS.
1227         * config/linux/mips/futex.h: New file.
1229 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1231         * team.c (gomp_team_end): Free team immediately if it has
1232         just one thread.
1234 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1236         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1237         * testsuite/libgomp.fortran/fortran.exp: Same.
1238         * testsuite/libgomp.c/c.exp: Same.
1239         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1240         directory to library path first.
1242 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1244         * env.c (parse_stacksize): Add cast to avoid warning.
1245         (parse_spincount): Likewise.
1247 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1249         * testsuite/libgomp.c/loop-10.c: New test.
1250         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1251         * libgomp.c++/loop-6.C (main): Likewise.
1253         PR debug/36617
1254         * testsuite/libgomp.c/debug-1.c: New test.
1256 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1258         * testsuite/libgomp.c/nqueens-1.c: New test.
1260         PR c++/36523
1261         * testsuite/libgomp.c++/task-7.C: New function.
1263 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1265         * configure: Regenerate.
1267 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1269         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1270         mutex when HAVE_SYNC_BUILTINS isn't defined.
1272 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1274         * libgomp.texi (omp_test_lock): Fix typo.
1276 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1278         * omp_lib.f90.in: Add "implicit none".
1280 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1282         PR middle-end/36506
1283         * testsuite/libgomp.c/reduction-5.c: New test.
1285 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1287         * libgomp.h (struct gomp_task): Add in_tied_task field.
1288         * task.c (gomp_init_task): Initialize it.
1289         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1290         unconditionally.  Don't call gomp_team_barrier_wake if
1291         current task is implicit or if(0) from implicit and number of
1292         running tasks is equal to nthreads - 1.
1294         PR libgomp/36471
1295         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1296         omp_get_team_size_8): Fix pastos.
1298         PR libgomp/36469
1299         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1300         * configure: Regenerated.
1301         * config.h.in: Regenerated.
1302         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1303         defined.
1305 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1307         PR bootstrap/36452
1308         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1309         (GOMP_loop_ull_dynamic_start): Likewise.
1310         (GOMP_loop_ull_guided_start): Likewise.
1311         (GOMP_loop_ull_ordered_static_start): Likewise.
1312         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1313         (GOMP_loop_ull_ordered_guided_start): Likewise.
1315 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1316             Richard Henderson  <rth@redhat.com>
1317             Ulrich Drepper  <drepper@redhat.com>
1318             Jakob Blomer  <jakob.blomer@ira.uka.de>
1320         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1321         Substitute also OMP_*LOCK_25*.
1322         * configure: Regenerated.
1323         * config.h.in: Regenerated.
1324         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1325         ptrlock.c and task.c.
1326         * Makefile.in: Regenerated.
1327         * testsuite/Makefile.in: Regenerated.
1328         * task.c: New file.
1329         * loop_ull.c: New file.
1330         * iter_ull.c: New file.
1331         * libgomp.h: Include ptrlock.h.
1332         (enum gomp_task_kind): New type.
1333         (struct gomp_team): Add task_lock, task_queue, task_count,
1334         task_running_count, single_count fields.  Add
1335         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1336         Remove work_share_lock, generation_mask,
1337         oldest_live_gen, num_live_gen and init_work_shares fields, add
1338         work work_share_list_alloc, work_share_list_free and work_share_chunk
1339         fields.  Change work_shares from pointer to pointers into an array.
1340         Change ordered_release field into gomp_sem_t ** from flexible array
1341         member.  Add implicit_task and initial_work_shares fields.
1342         Move close to the end of the struct.
1343         (struct gomp_team_state): Add single_count, last_work_share,
1344         active_level and level fields, remove work_share_generation.
1345         (gomp_barrier_handle_tasks): New prototype.
1346         (gomp_finish_task): New inline function.
1347         (struct gomp_work_share): Move chunk_size, end, incr into
1348         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1349         next_ll fields.  Reshuffle fields.  Add next_alloc,
1350         next_ws, next_free and inline_ordered_team_ids fields, change
1351         ordered_team_ids into pointer from flexible array member.
1352         Add mode field.  Put lock and next into a different cache line
1353         from most of the write-once fields.
1354         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1355         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1356         gomp_iter_ull_guided_next): New prototypes.
1357         (gomp_new_icv): New prototype.
1358         (struct gomp_thread): Add thread_pool and task fields.
1359         (struct gomp_thread_pool): New type.
1360         (gomp_new_team): New prototype.
1361         (gomp_team_start): Change type of last argument.
1362         (gomp_new_work_share): Removed.
1363         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1364         (gomp_work_share_init_done): New static inline.
1365         (gomp_throttled_spin_count_var, gomp_available_cpus,
1366         gomp_managed_threads): New extern decls.
1367         (gomp_init_task): New prototype.
1368         (gomp_spin_count_var): New extern var decl.
1369         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1370         or no alias support, or if not PIC.
1371         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1372         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1373         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1374         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1375         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1376         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1377         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1378         gomp_test_nest_lock_25): New prototypes.
1379         (omp_lock_symver, strong_alias): Define.
1380         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1381         decls.
1382         (gomp_end_task): New.
1383         (struct gomp_task_icv, gomp_global_icv): New.
1384         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1385         (struct gomp_task): New.
1386         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1387         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1388         (gomp_icv): New.
1389         (gomp_schedule_type): Reorder enum to match
1390         omp_sched_t.
1391         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1392         fields.
1393         (gomp_thread_start): Add gomp_team_barrier_wait call.
1394         For non-nested case remove clearing of docked thread thr fields.
1395         Use pool fields instead of global gomp_* variables.  Use
1396         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1397         Create tasks for each member thread.
1398         (free_team): Only destroy team barrier, task_lock here and free it.
1399         (gomp_free_thread): Free last_team if non-NULL.
1400         (gomp_team_end): Call gomp_team_barrier_wait instead of
1401         gomp_barrier_wait.  For nested case call one extra
1402         gomp_barrier_wait.  Move here some destruction from free_team.
1403         Call free_team on pool->last_team if any, rather than freeing
1404         current team.  Destroy work_share_list_free_lock ifndef
1405         HAVE_SYNC_BUILTINS.
1406         (gomp_new_icv): New function.
1407         (gomp_threads, gomp_threads_size, gomp_threads_used,
1408         gomp_threads_dock): Removed.
1409         (gomp_thread_destructor): New variable.
1410         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1411         functions.
1412         (gomp_team_start): Create new pool if current thread doesn't have
1413         one.  Use pool fields instead of global gomp_* variables.
1414         Initialize thread_pool field for new threads.  Clear single_count.
1415         Change last argument from ws to team, don't create
1416         new team, set ts.work_share to &team->work_shares[0] and clear
1417         ts.last_work_share.  Don't clear ts.work_share_generation.
1418         If number of threads changed, adjust atomically gomp_managed_threads.
1419         Use gomp_init_task instead of gomp_new_task,
1420         set thr->task to the corresponding implicit_task array entry.
1421         Create tasks for each member thread.  Initialize ts.level.
1422         (initialize_team): Call pthread_key_create on
1423         gomp_thread_destructor.
1424         (team_destructor): New function.
1425         (new_team): Removed.
1426         (gomp_new_team): New function.
1427         (free_team): Free gomp_work_share blocks chained through next_alloc,
1428         instead of freeing work_shares and destroying work_share_lock.
1429         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1430         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1431         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1432         of gomp_barrier_wait.
1433         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1434         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1435         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1436         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1437         of gomp_barrier_wait.
1438         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1439         gomp_work_share_init_done if gomp_work_share_start returned true.
1440         Don't unlock ws->lock.
1441         * work.c: Include stddef.h.
1442         (free_work_share): Use work_share_list_free_lock instead
1443         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1444         Call gomp_fini_work_share and then either free ws if orphaned, or
1445         put it into work_share_list_free list of the current team.
1446         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1447         functions.
1448         (gomp_work_share_start, gomp_work_share_end,
1449         gomp_work_share_end_nowait): Rewritten.
1450         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1451         (openmp_version): Set to 200805.
1452         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1453         omp_sched_guided, omp_sched_auto): New parameters.
1454         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1455         omp_set_max_active_levels, omp_get_max_active_levels,
1456         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1457         omp_get_active_level): New interfaces.
1458         * omp_lib.h.in (openmp_version): Set to 200805.
1459         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1460         omp_sched_guided, omp_sched_auto): New parameters.
1461         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1462         omp_set_max_active_levels, omp_get_max_active_levels,
1463         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1464         omp_get_active_level): New externals.
1465         * loop.c: Include limits.h.
1466         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1467         GFS_AUTO.
1468         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1469         Likewise.  Use gomp_icv.
1470         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1471         ts.static_trip here.
1472         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1473         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1474         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1475         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1476         don't unlock ws->lock, otherwise lock it.
1477         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1478         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1479         (gomp_parallel_loop_start): Call gomp_new_team instead of
1480         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1481         Adjust gomp_team_start caller.  Pass 0 as second argument to
1482         gomp_resolve_num_threads.
1483         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1484         If adding ws->chunk_size nthreads + 1 times after end won't
1485         overflow, set ws->mode to 1.
1486         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1487         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1488         GOMP_loop_ull_ordered_static_start,
1489         GOMP_loop_ull_ordered_dynamic_start,
1490         GOMP_loop_ull_ordered_guided_start,
1491         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1492         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1493         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1494         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1495         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1496         prototypes.
1497         * libgomp.map: Export lock routines also @@OMP_2.0.
1498         (GOMP_loop_ordered_dynamic_first,
1499         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1500         GOMP_loop_ordered_static_first): Remove.
1501         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1502         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1503         GOMP_loop_ull_ordered_dynamic_next,
1504         GOMP_loop_ull_ordered_dynamic_start,
1505         GOMP_loop_ull_ordered_guided_next,
1506         GOMP_loop_ull_ordered_guided_start,
1507         GOMP_loop_ull_ordered_runtime_next,
1508         GOMP_loop_ull_ordered_runtime_start,
1509         GOMP_loop_ull_ordered_static_next,
1510         GOMP_loop_ull_ordered_static_start,
1511         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1512         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1513         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1514         (omp_set_schedule, omp_get_schedule,
1515         omp_get_thread_limit, omp_set_max_active_levels,
1516         omp_get_max_active_levels, omp_get_level,
1517         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1518         omp_set_schedule_, omp_set_schedule_8_,
1519         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1520         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1521         omp_get_max_active_levels_, omp_get_level_,
1522         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1523         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1524         New exports @@OMP_3.0.
1525         * omp.h.in (omp_sched_t): New type.
1526         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1527         omp_set_max_active_levels, omp_get_max_active_levels,
1528         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1529         omp_get_active_level): New prototypes.
1530         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1531         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1532         gomp_thread_limit_var, gomp_remaining_threads_count,
1533         gomp_remaining_threads_lock): New variables.
1534         (parse_spincount): New function.
1535         (initialize_env): Call gomp_init_num_threads unconditionally.
1536         Initialize gomp_available_cpus.  Call parse_spincount,
1537         initialize gomp_{,throttled_}spin_count_var
1538         depending on presence and value of OMP_WAIT_POLICY and
1539         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1540         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1541         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1542         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1543         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1544         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1545         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1546         (gomp_global_icv): New.
1547         (parse_schedule): Use it.  Parse "auto".
1548         (omp_set_num_threads): Use gomp_icv.
1549         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1550         Likewise.
1551         (omp_get_max_threads): Move from parallel.c.
1552         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1553         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1554         add ialias.
1555         (parse_stacksize, parse_wait_policy): New functions.
1556         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1557         both wrappers for compatibility and new locks.
1558         (omp_set_schedule, omp_get_schedule,
1559         omp_get_thread_limit, omp_set_max_active_levels,
1560         omp_get_max_active_levels, omp_get_level,
1561         omp_get_ancestor_thread_num, omp_get_team_size,
1562         omp_get_active_level): New ialias_redirect.
1563         (omp_set_schedule_, omp_set_schedule_8_,
1564         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1565         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1566         omp_get_max_active_levels_, omp_get_level_,
1567         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1568         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1569         New functions.
1570         * parallel.c: Include limits.h.
1571         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1572         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1573         argument to gomp_team_start.  Pass 0 as second argument to
1574         gomp_resolve_num_threads.
1575         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1576         if gomp_thread_limit_var != ULONG_MAX.
1577         (omp_in_parallel): Implement using ts.active_level.
1578         (omp_get_max_threads): Move to env.c.
1579         (omp_get_level, omp_get_ancestor_thread_num,
1580         omp_get_team_size, omp_get_active_level): New functions,
1581         add ialias.
1582         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1583         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1584         gomp_iter_dynamic_next instead of the _locked variant and don't take
1585         lock around it, otherwise acquire it before calling
1586         gomp_iter_dynamic_next_locked.
1587         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1588         gomp_iter_dynamic_next instead of the _locked variant and don't take
1589         lock around it.
1590         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1591         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1592         Adjust gomp_team_start caller.  Pass count as second argument to
1593         gomp_resolve_num_threads, don't adjust num_threads after the call.
1594         Use gomp_icv.
1595         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1596         ws->chunk_size by incr.
1597         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1598         code.
1599         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1600         types.
1601         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1602         (omp_check_defines): Check even the compat defines.
1603         * config/linux/ptrlock.c: New file.
1604         * config/linux/ptrlock.h: New file.
1605         * config/linux/wait.h: New file.
1606         * config/posix/ptrlock.c: New file.
1607         * config/posix/ptrlock.h: New file.
1608         * config/linux/bar.h (gomp_team_barrier_wait,
1609         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1610         (gomp_team_barrier_set_task_pending,
1611         gomp_team_barrier_clear_task_pending,
1612         gomp_team_barrier_set_waiting_for_tasks,
1613         gomp_team_barrier_waiting_for_tasks,
1614         gomp_team_barrier_done): New inlines.
1615         (gomp_barrier_t): Rewritten.
1616         (gomp_barrier_state_t): New typedef.
1617         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1618         gomp_barrier_wait_start): Rewritten.
1619         (gomp_barrier_wait_end): Change second argument to
1620         gomp_barrier_state_t.
1621         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1622         inlines.
1623         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1624         futex.h.
1625         (gomp_barrier_wait_end): Rewritten.
1626         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1627         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1628         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1629         (gomp_barrier_state_t): New typedef.
1630         (gomp_team_barrier_wait,
1631         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1632         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1633         into the return value.  Return gomp_barrier_state_t.
1634         (gomp_team_barrier_set_task_pending,
1635         gomp_team_barrier_clear_task_pending,
1636         gomp_team_barrier_set_waiting_for_tasks,
1637         gomp_team_barrier_waiting_for_tasks,
1638         gomp_team_barrier_done): New inlines.
1639         (gomp_barrier_wait_end): Change second argument to
1640         gomp_barrier_state_t.
1641         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1642         inlines.
1643         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1644         (gomp_barrier_wait_end): Change second argument to
1645         gomp_barrier_state_t.
1646         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1647         gomp_team_barrier_wake): New functions.
1648         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1649         futex.h.
1650         (gomp_futex_wake, gomp_futex_wait): New variables.
1651         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1652         * config/linux/lock.c: Rewrite to make locks task owned,
1653         for backwards compatibility provide the old entrypoints
1654         if symbol versioning.  Include wait.h instead of libgomp.h and
1655         futex.h.
1656         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1657         * config/posix95/lock.c: Rewrite to make locks task owned,
1658         for backwards compatibility provide the old entrypoints
1659         if symbol versioning.
1660         * config/posix/lock.c: Rewrite to make locks task owned,
1661         for backwards compatibility provide the old entrypoints
1662         if symbol versioning.
1663         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1664         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1665         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1666         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1667         (sys_futex0): Return error code.
1668         (futex_wake, futex_wait): If ENOSYS was returned, clear
1669         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1670         (cpu_relax, atomic_write_barrier): New static inlines.
1671         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/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/s390/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/ia64/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/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1691         (sys_futex0): Return error code.
1692         (futex_wake, futex_wait): If ENOSYS was returned, clear
1693         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1694         (cpu_relax, atomic_write_barrier): New static inlines.
1695         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1696         futex.h.
1697         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1698         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1699         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1700         types.
1701         (omp_nest_lock_t): Change owner into void *, add lock field.
1702         * config/posix95/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
1705         aren't broken.
1706         (omp_nest_lock_t): Likewise.  Change owner to void *.
1707         * config/posix/omp-lock.h: Include semaphore.h.
1708         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1709         (omp_lock_t): Use sem_t instead of mutex if semaphores
1710         aren't broken.
1711         (omp_nest_lock_t): Likewise.  Add owner field.
1713 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1715         * testsuite/libgomp.c/collapse-1.c: New test.
1716         * testsuite/libgomp.c/collapse-2.c: New test.
1717         * testsuite/libgomp.c/collapse-3.c: New test.
1718         * testsuite/libgomp.c/icv-1.c: New test.
1719         * testsuite/libgomp.c/icv-2.c: New test.
1720         * testsuite/libgomp.c/lib-2.c: New test.
1721         * testsuite/libgomp.c/lock-1.c: New test.
1722         * testsuite/libgomp.c/lock-2.c: New test.
1723         * testsuite/libgomp.c/lock-3.c: New test.
1724         * testsuite/libgomp.c/loop-4.c: New test.
1725         * testsuite/libgomp.c/loop-5.c: New test.
1726         * testsuite/libgomp.c/loop-6.c: New test.
1727         * testsuite/libgomp.c/loop-7.c: New test.
1728         * testsuite/libgomp.c/loop-8.c: New test.
1729         * testsuite/libgomp.c/loop-9.c: New test.
1730         * testsuite/libgomp.c/nested-3.c: New test.
1731         * testsuite/libgomp.c/nestedfn-6.c: New test.
1732         * testsuite/libgomp.c/sort-1.c: New test.
1733         * testsuite/libgomp.c/task-1.c: New test.
1734         * testsuite/libgomp.c/task-2.c: New test.
1735         * testsuite/libgomp.c/task-3.c: New test.
1736         * testsuite/libgomp.c/task-4.c: New test.
1737         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1738         to C++ testsuite default compiler options.
1739         * testsuite/libgomp.c++/collapse-1.C: New test.
1740         * testsuite/libgomp.c++/collapse-2.C: New test.
1741         * testsuite/libgomp.c++/ctor-10.C: New test.
1742         * testsuite/libgomp.c++/for-1.C: New test.
1743         * testsuite/libgomp.c++/for-2.C: New test.
1744         * testsuite/libgomp.c++/for-3.C: New test.
1745         * testsuite/libgomp.c++/for-4.C: New test.
1746         * testsuite/libgomp.c++/for-5.C: New test.
1747         * testsuite/libgomp.c++/loop-8.C: New test.
1748         * testsuite/libgomp.c++/loop-9.C: New test.
1749         * testsuite/libgomp.c++/loop-10.C: New test.
1750         * testsuite/libgomp.c++/task-1.C: New test.
1751         * testsuite/libgomp.c++/task-2.C: New test.
1752         * testsuite/libgomp.c++/task-3.C: New test.
1753         * testsuite/libgomp.c++/task-4.C: New test.
1754         * testsuite/libgomp.c++/task-5.C: New test.
1755         * testsuite/libgomp.c++/task-6.C: New test.
1756         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1757         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1758         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1759         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1760         * testsuite/libgomp.fortran/collapse1.f90: New test.
1761         * testsuite/libgomp.fortran/collapse2.f90: New test.
1762         * testsuite/libgomp.fortran/collapse3.f90: New test.
1763         * testsuite/libgomp.fortran/collapse4.f90: New test.
1764         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1765         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1766         * testsuite/libgomp.fortran/lib4.f90: New test.
1767         * testsuite/libgomp.fortran/lock-1.f90: New test.
1768         * testsuite/libgomp.fortran/lock-2.f90: New test.
1769         * testsuite/libgomp.fortran/nested1.f90: New test.
1770         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1771         * testsuite/libgomp.fortran/strassen.f90: New test.
1772         * testsuite/libgomp.fortran/tabs1.f90: New test.
1773         * testsuite/libgomp.fortran/tabs2.f: New test.
1774         * testsuite/libgomp.fortran/task1.f90: New test.
1775         * testsuite/libgomp.fortran/task2.f90: New test.
1776         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1777         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1778         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1779         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1780         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1782 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1784         PR c++/36308
1785         * testsuite/libgomp.c++/ctor-11.C: New test.
1786         * testsuite/libgomp.c++/ctor-12.C: New test.
1788 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1790         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1792 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1794         PR middle-end/36106
1795         * testsuite/libgomp.c/atomic-5.c: New test.
1796         * testsuite/libgomp.c/atomic-6.c: New test.
1797         * testsuite/libgomp.c/autopar-1.c: New test.
1799 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1801         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1802         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1803         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1804         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1805         * configure: Regenerate.
1806         * Makefile.in, testsuite/Makefile.in: Likewise.
1808 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1810         PR bootstrap/35457
1811         * aclocal.m4: Regenerate.
1812         * configure: Regenerate.
1814 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1816         PR middle-end/35611
1817         * testsuite/libgomp.c/atomic-4.c: New test.
1819         PR libgomp/35625
1820         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1821         (gomp_iter_guided_next): Likewise.
1822         * testsuite/libgomp.c/pr35625.c: New test.
1824 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1826         * aclocal.m4: Regenerate.
1827         * configure: Likewise.
1828         * Makefile.in: Likewise.
1829         * testsuite/Makefile.in: Likewise.
1831 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1833         PR middle-end/35185
1834         * testsuite/libgomp.c++/pr35185.C: New test.
1836 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1838         PR middle-end/35549
1839         * testsuite/libgomp.c/pr35549.c: New test.
1841 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1843         * testsuite/libgomp.c/atomic-3.c: New test.
1845 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1847         PR fortran/33197
1848         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1849         .F08 file suffixes.
1851 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1853         PR libgomp/33131
1854         * configure.ac: Add ACX_HEADER_STRING.
1855         * env.c: Include strings.h.
1856         * aclocal.m4: Regenerate.
1857         * config.h.in: Regenerate.
1858         * configure: Regenerate.
1859         * Makefile.in: Regenerate.
1860         * testsuite/Makefile.in: Regenerate.
1862 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1864         PR middle-end/35196
1865         * testsuite/libgomp.c/pr35196.c: New test.
1867         PR middle-end/35130
1868         * testsuite/libgomp.fortran/pr35130.f90: New test.
1869         * testsuite/libgomp.c/pr35130.c: New test.
1871 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1873         PR middle-end/33880
1874         * testsuite/libgomp.c/pr33880.c: New test.
1875         * testsuite/libgomp.fortran/pr33880.f90: New test.
1877 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1879         * configure: Regenerate.
1881 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1883         * configure.ac: Move futex checking into ../config/futex.m4.
1884         * configure: Rebuilt.
1885         * aclocal.m4: Rebuilt.
1886         * Makefile.in: Rebuilt.
1888         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1889         2007-10-15 ../config/tls.m4 change.
1891 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1893         PR c++/34513
1894         * testsuite/libgomp.c/pr34513.c: New test.
1895         * testsuite/libgomp.c++/pr34513.C: New test.
1897 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1899         PR target/32765
1900         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1902 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1904         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1906 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1908         * testsuite/libgomp.c/private-1.c: New test.
1910 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1911             Paolo Bonzini  <bonzini@gnu.org>
1913         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1914         instead of 'VPATH ='.
1915         * Makefile.in: Regenerate.
1917 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1919         * configure.ac: Adjust makeinfo version check.
1920         * configure: Regenerate.
1922 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1924         PR fortran/34020
1925         * testsuite/libgomp.fortran/pr34020.f90: New test.
1927 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1929         PR c++/33894
1930         * testsuite/libgomp.c++/atomic-1.C: New test.
1932 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1934         PR libgomp/33275
1935         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1936         Make x and y integers rather than (implicit) reals.  Add private (j)
1937         clause to the last omp parallel.
1939 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1941         * configure: Regenerate following changes to ../config/tls.m4.
1943 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1945         * testsuite/libgomp.fortran/stack.f90: New test.
1947 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1949         * config/mingw32/proc.c: New file.
1951 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1953         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1954         (main): Use __get_cpuid to get i386 target fetaures.
1955         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1956         (main): Use __get_cpuid to get x86_64 target fetaures.
1958 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1960         PR target/32765
1961         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1962         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1964 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1966         PR fortran/32550
1967         * testsuite/libgomp.fortran/pr32550.f90: New test.
1968         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1970 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1972         * aclocal.m4: Regenerated.
1974 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1976         PR fortran/32359
1977         * testsuite/libgomp.fortran/pr32359.f90: New.
1979 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1981         PR libgomp/32468
1982         * sections.c (GOMP_parallel_sections_start): Only decrease
1983         number of threads to COUNT if dyn_var is true.
1984         * testsuite/libgomp.c/pr32468.c: New test.
1986 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1988         PR libgomp/26308
1989         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1991 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1993         PR middle-end/32362
1994         * testsuite/libgomp.c/pr32362-1.c: New test.
1995         * testsuite/libgomp.c/pr32362-2.c: New test.
1996         * testsuite/libgomp.c/pr32362-3.c: New test.
1998 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2000         * team.c (gomp_team_start): Fix setting up thread_attr
2001         stack size.
2003 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2005         * configure: Regenerate.
2007 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2009         * Makefile.in: Regenerate.
2010         * configure: Regenerate.
2011         * aclocal.m4: Regenerate.
2012         * testsuite/Makefile.in: Regenerate.
2014 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2016         * config/linux/proc.c: New file.
2018         PR libgomp/28482
2019         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2021 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2023         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2025 2007-04-16  Matthias Klose  <doko@debian.org>
2027         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2028         flags if not building with -m64.
2029         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2030         flag for i?86-*-* targets, if current target matches -m64.
2032 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2034         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2035         * Makefile.in: Regenerate.
2037 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2039         PR testsuite/31369
2040         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2041         ld_library_path.
2042         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2044 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2046         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2047         decls.
2048         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2049         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2050         (parse_affinity): New function.
2051         (initialize_env): Call it and gomp_init_affinity.
2052         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2053         create new pthread_attr_t and call gomp_init_thread_affinity
2054         on it for each thread before passing the attribute to pthread_create.
2055         * config/linux/affinity.c: New file.
2056         * config/posix/affinity.c: New file.
2057         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2058         * configure: Rebuilt.
2059         * config.h.in: Rebuilt.
2060         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2061         * Makefile.in: Rebuilt.
2063 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2065         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2066         *-*-darwin*.
2067         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2068         and use it if found.
2070 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2072         * testsuite/config/default.exp: New file.
2073         * testsuite/lib/libgomp.exp: New file.
2074         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2075         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2076         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2077         (libgomp_load): Remove.
2078         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2079         always_ld_library_path, not ld_library_path.  Set additional_flags
2080         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2081         (target_compile): Do not call libgomp_init.  Append lang_library_path
2082         and lang_link_flags to options.
2083         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2084         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2085         here.
2086         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2087         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2088         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2089         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2090         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2091         CX8 flag.
2092         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2093         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2094         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2095         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2096         * testsuite/libgomp.c/atomic-10.c: Ditto.
2098 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2100         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2101         dg-final cleanup-modules line.
2102         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2103         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2104         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2105         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2106         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2107         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2108         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2110 2007-03-18  Andreas Schwab  <schwab@suse.de>
2112         * acinclude.m4: Adjust regular expression for ld version
2113         extraction.
2114         * configure: Regenerate.
2116 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2118         * Makefile.am: Add install-pdf target as copied from
2119         automake v1.10 rules.
2120         * Makefile.in: Regenerate
2122 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2124         PR libgomp/28486
2125         * configure: Regenerate.
2127         PR c++/30703
2128         * testsuite/libgomp.c++/pr30703.C: New test.
2130 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2132         Revert:
2133         2006-07-05  Eric Christopher  <echristo@apple.com>
2134         * configure.ac: Depend addition of -pthread on host OS.
2135         * configure: Regenerate.
2137 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2139         * libgomp.texi: Fix spacing after abbreviations.
2141 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2143         PR libgomp/30546
2144         * configure.ac: Add check for makeinfo
2145         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2146         if an appropiate version of makeinfo is found.
2147         * aclocal.m4: Regenerated.
2148         * configure: Regenerated.
2149         * Makefile.in: Regenerated.
2150         * testsuite/Makefile.in: Regenerated.
2152 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2154         PR libgomp/30540
2155         * libgomp.texi: More about implementation-dependent settings.
2157 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2159         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2161 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2163         PR middle-end/30494
2164         * testsuite/libgomp.c/pr30494.c: New test.
2166 2007-01-15  Tom Tromey  <tromey@redhat.com>
2168         * configure: Rebuilt.
2169         * configure.ac: Fixed comment.
2171 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2173         * libgomp.texi: Document implementation specific default values of
2174         environment variables.
2176 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2178         PR libgomp/28209
2179         * libgomp.texi: New file.
2180         * configure.ac: Add --enable-generated-files-in-srcdir option.
2181         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2182         files to srcdir.
2183         * Makefile.in: Regenerated.
2184         * config.h.in: Regenerated.
2185         * testsuite/Makefile.in: Regenerated.
2186         * NOTES: Removed.
2188 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2190         PR libgomp/29949
2191         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2193 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2195         * configure: Regenerate.
2197 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2199         PR libgomp/29947
2200         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2201         start if there shouldn't be any loop iterations.
2202         (gomp_loop_ordered_static_start): Remove start == end test.
2203         * testsuite/libgomp.c/pr29947-1.c: New test.
2204         * testsuite/libgomp.c/pr29947-2.c: New test.
2206 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2208         * configure.tgt: Force initial-exec TLS model on Linux only.
2210 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2212         * configure: Regenerated.
2214 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2216         * env.c (parse_schedule): Reject out of range values.
2217         (parse_unsigned_long): Reject out of range, negative or zero values.
2219 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2221         PR fortran/29629
2222         * testsuite/libgomp.fortran/pr29629.f90: New test.
2224 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2226         PR libgomp/29494
2227         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2228         * config/posix95: New directory.
2229         * config/posix95/omp-lock.h: New file.
2230         * config/posix95/lock.c: Likewise.
2232 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2234         * aclocal.m4: Regenerate.
2235         * configure: Regenerate.
2237 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2239         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2240         '<' to '<='.
2242 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2244         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2245         test.
2246         * configure: Regenerate.
2247         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2249 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2251         PR middle-end/25261
2252         PR middle-end/28790
2253         * testsuite/libgomp.c/nestedfn-4.c: New test.
2254         * testsuite/libgomp.c/nestedfn-5.c: New test.
2255         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2257         PR fortran/29097
2258         * testsuite/libgomp.fortran/condinc1.f: New test.
2259         * testsuite/libgomp.fortran/condinc2.f: New test.
2260         * testsuite/libgomp.fortran/condinc3.f90: New test.
2261         * testsuite/libgomp.fortran/condinc4.f90: New test.
2262         * testsuite/libgomp.fortran/condinc1.inc: New file.
2264 2006-09-18  Tom Tromey  <tromey@redhat.com>
2266         * configure: Rebuilt.
2268 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2270         PR c/28768
2271         PR preprocessor/14634
2272         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2273         to AC_DEFINE.
2274         * configure: Regenerate.
2276 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2278         * testsuite/libgomp.fortran/reduction3.f90: Change
2279         -2147483648 to -huge(i)-1 to avoid overflow.
2280         * testsuite/libgomp.fortran/reduction4.f90: Change
2281         Z'ffffffff' to not(0) to avoid overflow.
2283 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2285         PR libgomp/25938
2286         * Makefile.am (libsubincludedir): New.
2287         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2288         * Makefile.in: Regenerate.
2290 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2292         PR libgomp/28725
2293         * env.c: Include ctype.h.
2294         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2295         leading and/or trailing whitespace and compare strings case
2296         insensitively.
2298 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2300         PR fortran/28390
2301         * testsuite/libgomp.fortran/pr28390.f: New test.
2303 2006-07-05  Eric Christopher  <echristo@apple.com>
2305         * configure.ac: Depend addition of -pthread on host OS.
2306         * configure: Regenerate.
2308 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2310         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2311         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2312         defined.
2314 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2316         PR libgomp/26175
2317         PR libgomp/26477
2318         * configure.ac: If neither --enable-linux-futex nor
2319         --disable-linux-futex is passed, determine the default by checking
2320         for compiling and/or running against NPTL.  With --enable-linux-futex,
2321         check if SYS_gettid and SYS_futex are defined.
2322         * configure: Rebuilt.
2324 2006-06-14  Richard Henderson  <rth@redhat.com>
2326         PR libgomp/28008
2327         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2328         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2330 2006-06-09  Richard Henderson  <rth@redhat.com>
2332         * env.c (gomp_nthreads_var): Change to unsigned long.
2333         (gomp_run_sched_chunk): Likewise.
2334         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2335         (initialize_env): Initialize gomp_thread_attr.
2336         * libgomp.h (gomp_nthreads_var): Update decl.
2337         (gomp_run_sched_chunk): Likewise.
2338         (gomp_thread_attr): Declare.
2339         * team.c (gomp_thread_attr): Export.
2340         (initialize_team): Don't initialize it.
2342 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2344         PR fortran/27916
2345         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2346         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2348 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2350         * config/mingw32/time.c: New file.
2351         * configure.tgt: Use it.
2353 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2355         * Makefile.am: Add install-html target. Add install-html to .PHONY
2356         * Makefile.in: Regenerate.
2358 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2360         PR libgomp/27612
2361         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2362         * testsuite/libgomp.c/critical-1.c: Likewise.
2363         * testsuite/libgomp.c/loop-1.c: Likewise.
2364         * testsuite/libgomp.c/loop-2.c: Likewise.
2365         * testsuite/libgomp.c/single-1.c: Likewise.
2366         * testsuite/libgomp.c/ordered-1.c: Likewise.
2367         * testsuite/libgomp.c/ordered-2.c: Likewise.
2369 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2371         PR middle-end/27416
2372         * libgomp.fortran/pr27416-1.f90: New test.
2374 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2376         PR fortran/27395
2377         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2378         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2380 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2382         PR c++/26943
2383         * testsuite/libgomp.c/pr26943-1.c: New test.
2384         * testsuite/libgomp.c/pr26943-2.c: New test.
2385         * testsuite/libgomp.c/pr26943-3.c: New test.
2386         * testsuite/libgomp.c/pr26943-4.c: New test.
2387         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2388         * testsuite/libgomp.c++/pr26943.C: New test.
2390 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2392         PR middle-end/27337
2393         * testsuite/libgomp.c++/pr27337.C: New test.
2395 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2397         PR c/26171
2398         * testsuite/libgomp.c/pr26171.c: New test.
2400 2006-04-25  Richard Henderson  <rth@redhat.com>
2402         PR libgomp/25865
2403         * configure.ac: Use GCC_CHECK_TLS.
2404         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2405         * Makefile.in, aclocal.m4, configure: Regenerate.
2407 2006-04-10  Matthias Klose  <doko@debian.org>
2409         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2410         directory names containing underscores.
2412 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2414         PR c++/26691
2415         * testsuite/libgomp.c++/pr26691.C: New test.
2417 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2419         * testsuite/libgomp.fortran/retval2.f90: New test.
2421 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2423         * testsuite/libgomp.c++: New directory.
2425 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2427         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2428         * config/posix/sem.c: Implement the above.
2430 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2432         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2433         define HAVE_BROKEN_POSIX_SEMAPHORES.
2434         * configure: Rebuilt.
2435         * config.h.in: Rebuilt.
2437 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2439         PR bootstrap/26161
2440         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2441         for the other pthread check.
2442         * configure: Regenerate.
2443         * config.h.in: Regenerate.
2445 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2447         PR libgomp/25938
2448         PR libgomp/25984
2449         * Makefile.am (fincludedir): New variable.
2450         (nodist_include_HEADERS): Remove Fortran files.
2451         (nodist_finclude_HEADERS): New variable.
2452         * Makefile.in: Regenerated.
2454 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2456         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2457         Remove tests for returning assumed character length arrays.
2459 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2460             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2462         PR libgomp/25936
2463         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2465 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2467         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2469 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2471         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2472         part of LD_LIBRARY_PATH manually.
2474 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2476         PR libgomp/25852
2477         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2478         libgomp_init.
2480 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2482         PR libgomp/25884
2483         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2484         * configure.ac (PERL): Don't set.
2485         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2486         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2487         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2488         * omp.h.in: Wrap the new configure substitutions with @ characters.
2489         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2490         * aclocal.m4, configure, Makefile.in: Regenerate.
2491         * mkomp_h.pl: Delete.
2493 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2495         PR libgomp/25259
2496         * configure.ac: Use GCC_HEADER_STDINT.
2497         * libgomp.h: Include gstdint.h.
2498         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2499         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2501 2006-01-24  Richard Henderson  <rth@redhat.com>
2503         PR libgomp/25942
2504         * configure.ac: Add AM_MAINTAINER_MODE.
2505         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2507 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2509         * Makefile.in: Regenerate.
2510         * testsuite/Makefile.in: Regenerate.
2511         * aclocal.m4: Regenerate.
2513 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2515         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2516         Solaris.
2517         * configure.ac: Add check for loadavg.h.
2518         (link_gomp): Adjust comment.
2519         * configure: Regenerate.
2520         * config.h.in: Regenerate.
2522 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2524         PR libgomp/25877
2525         * configure.ac: Remove check for alloca.h.
2526         * configure: Regenerate.
2527         * config.h.in: Regenerate.
2528         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2529         * team.c: Remove use of alloca.h.
2530         Call gomp_alloca instead of alloca.
2532 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2534         PR libgomp/25877
2535         * team.c: Add include of alloca.h.
2536         * configure.ac: Add check for alloca.h.
2537         * configure: Regenerate.
2538         * config.h.in: Regenerate.
2540 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2542         PR fortran/25219
2543         * testsuite/libgomp.fortran/pr25219.f90: New test.
2545 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2547         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2548         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2549         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2550         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2551         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2552         testsuite/libgomp.fortran/threadprivate1.f90,
2553         testsuite/libgomp.fortran/threadprivate2.f90,
2554         testsuite/libgomp.fortran/threadprivate3.f90,
2555         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2556         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2557         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2558         effective-target to TLS runtime.
2560         * testsuite/libgomp.fortran/pr25162.f: Require
2561         effective-target TLS runtime.
2563 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2565         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2566         * testsuite/libgomp.c/nestedfn-3.c: New test.
2568 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2570         PR fortran/25162
2571         * testsuite/libgomp.fortran/pr25162.f: New test.
2573 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2575         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2576         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2578 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2580         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2581         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2582         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2583         single.c, team.c, work.c, config/linux/alpha/futex.h,
2584         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2585         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2586         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2587         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2588         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2589         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2590         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2591         FSF address.
2593 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2595         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2596         to nodist_noinst_HEADERS.
2597         * Makefile.in: Rebuilt.
2599         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2600         add integer count field.
2601         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2602         omp_nest_lock_t type change.
2603         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2604         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2605         Increment count.
2606         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2607         Decrement count.
2608         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2609         Increment count if successful and return the new nesting level.
2610         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2611         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2612         * testsuite/libgomp.c/lib-1.c: New test.
2613         * testsuite/libgomp.fortran/lib1.f90: New test.
2614         * testsuite/libgomp.fortran/lib2.f: New test.
2615         * testsuite/libgomp.fortran/lib3.f: New test.
2617 2005-11-17  Richard Henderson  <rth@redhat.com>
2619         PR 24845
2620         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2621         * configure.ac (link_gomp): New.  Substitute it.
2622         (AC_CONFIG_FILES): Add libgomp.spec.
2623         * libgomp.spec.in: New file.
2624         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2625         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2627 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2629         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2630         reduction(-:var) behaving the same as reduction(+:var).
2631         * testsuite/libgomp.c/reduction-4.c: New test.
2633 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2635         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2636         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2637         testsuite/libgomp.c/copyin-3.c,
2638         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2639         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2640         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2641         testsuite/libgomp.c++/pr24455.C,
2642         testsuite/libgomp.fortran/threadprivate1.f90,
2643         testsuite/libgomp.fortran/threadprivate2.f90,
2644         testsuite/libgomp.fortran/threadprivate3.f90,
2645         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2646         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2647         testsuite/libgomp.fortran/omp_parse3.f90: Require
2648         effective-target TLS.
2650 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2652         * HEADER: Remove.
2654 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2656         PR libgomp/24797
2657         * team.c (initialize_team): Pass NULL rather than free as
2658         pthread_key_create destructor.  Initialize thread specific data
2659         pointer in initial thread to a static local variable rather than
2660         malloced memory.
2662 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2664         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2665         its location to ld_library_path.
2667 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2669         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2671 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2673         * testsuite/libgomp.c: Rename from libgomp.dg.
2675 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2677         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2678         threadprivate variable 'i'.
2680 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2682         * config/linux/s390/futex.h: New file.
2683         * configure.tgt: Use it.
2685         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2686         before the parallel.
2688 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2690         PR c++/24734
2691         * testsuite/libgomp.c++/master-1.C: New test.
2693 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2695         * testsuite/libgomp.dg/copyin-3.c: New test.
2697 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2699         * testsuite/libgomp.fortran/retval1.f90: New test.
2700         * testsuite/libgomp.fortran/vla7.f90: New test.
2702 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2704         * testsuite/libgomp.fortran/vla2.f90: New test.
2705         * testsuite/libgomp.fortran/vla3.f90: New test.
2706         * testsuite/libgomp.fortran/vla4.f90: New test.
2707         * testsuite/libgomp.fortran/vla5.f90: New test.
2708         * testsuite/libgomp.fortran/vla6.f90: New test.
2710 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2712         * config/linux/sparc/futex.h: New file.
2713         * configure.tgt: Use it.
2714         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2716         * critical.c: Include stdlib.h.
2717         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2718         ignoring return value.
2719         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2720         LIBGOMP_CHECK_SYNC_BUILTINS check.
2721         * configure: Rebuilt.
2723 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2725         * testsuite/libgomp.fortran/vla1.f90: New test.
2727 2005-10-31  Richard Henderson  <rth@redhat.com>
2729         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2730         setting 's' in different threads.
2732 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2734         * libgomp.h (attribute_hidden, ialias): Define.
2735         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2736         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2737         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2738         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2739         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2740         omp_test_lock, omp_test_nest_lock): Likewise.
2741         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2742         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2743         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2744         omp_test_lock, omp_test_nest_lock): Likewise.
2745         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2746         omp_get_dynamic, omp_get_nested): Likewise.
2747         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2748         omp_get_thread_num, omp_in_parallel): Likewise.
2749         * fortran.c (ialias_redirect): Define.
2750         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2751         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2752         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2753         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2754         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2755         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2756         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2757         omp_get_wtime): Add ialias_redirect.
2759 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2761         * fortran.c: Include stdlib.h.
2763 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2765         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2766         * Makefile.in: Regenerated.
2768 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2770         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2771         * libgomp_f.h.in (omp_check_defines): New function.
2772         * env.c: Include libgomp_f.h.
2773         (initialize_env): Call omp_check_defines.
2775         * testsuite/libgomp.dg/copyin-2.c: New test.
2776         * testsuite/libgomp.c++/copyin-2.C: New test.
2777         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2779         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2780         * testsuite/libgomp.fortran/sharing2.f90: New test.
2782         * testsuite/libgomp.dg/copyin-1.c: New test.
2783         * testsuite/libgomp.c++/copyin-1.C: New test.
2785 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2787         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2789         * testsuite/libgomp.fortran/workshare1.f90: New test.
2791         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2792         only test.
2793         * libgomp.fortran/sharing1.f90: New test.
2795 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2797         PR c++/24502
2798         * testsuite/libgomp.c++/loop-7.C: New test.
2800         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2802         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2803         * testsuite/libgomp.fortran/reduction6.f90: New test.
2804         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2806 2005-10-23  Richard Henderson  <rth@redhat.com>
2808         * testsuite/libgomp.c++/ctor-1.C: New.
2809         * testsuite/libgomp.c++/ctor-2.C: New.
2810         * testsuite/libgomp.c++/ctor-3.C: New.
2811         * testsuite/libgomp.c++/ctor-4.C: New.
2812         * testsuite/libgomp.c++/ctor-5.C: New.
2813         * testsuite/libgomp.c++/ctor-6.C: New.
2814         * testsuite/libgomp.c++/ctor-7.C: New.
2815         * testsuite/libgomp.c++/ctor-8.C: New.
2816         * testsuite/libgomp.c++/ctor-9.C: New.
2818 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2820         PR 24455
2821         * testsuite/libgomp.c++/pr24455-1.C: New test.
2822         * testsuite/libgomp.c++/pr24455.C: New test.
2823         * testsuite/libgomp.dg/pr24455-1.c: New test.
2824         * testsuite/libgomp.dg/pr24455.c: New test.
2826 2005-10-20  Richard Henderson  <rth@redhat.com>
2828         * testsuite/libgomp.c++/loop-6.C: New.
2829         * testsuite/libgomp.dg/loop-3.c: New.
2831 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2833         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2834         explicitly private.
2835         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2836         explicitly shared.
2838 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2840         * testsuite/libgomp.fortran/jacobi.f: New test.
2842 2005-10-19  Richard Henderson  <rth@redhat.com>
2844         * configure.tgt (i?86-linux): Default to with_arch instead of
2845         CFLAGS.  Add -mtune to match target_cpu.
2846         (x86_64-linux): Tune to i686.
2848         * fortran.c (omp_test_nest_lock_): Fix typo.
2850 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2852         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2853         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2854         * testsuite/libgomp.dg/ordered-3.c: New test.
2856         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2857         Remove volatile keyword.
2859         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2860         in COMMON block to avoid warnings on 64-bit targets.
2862 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2864         * testsuite/libgomp.dg/shared-3.c: New test.
2866 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2868         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2869         * testsuite/libgomp.fortran/reduction5.f90: New test.
2871 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2873         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2874         dg-options.
2875         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2876         flush loop now that __sync_synchronize has proper memory barrier.
2877         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2878         Add -ffixed-form to dg-options.
2880 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2882         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2883         from subdirectories.
2884         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2885         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2886         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2887         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2888         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2889         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2890         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2891         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2892         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2893         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2894         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2895         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2896         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2897         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2898         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2899         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2900         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2901         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2902         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2903         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2904         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2905         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2906         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2907         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2908         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2910 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2912         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2913         lang_library_path exists.  Use find instead of glob to gather tests.
2914         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2916 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2918         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2919         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2920         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2921         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2922         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2923         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2924         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2925         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2926         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2927         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2928         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2929         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2930         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2932 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2934         * testsuite/libgomp.dg/vla-1.c: New test.
2936         * testsuite/libgomp.fortran/reference2.f90: New test.
2938         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2939         declaration of omp_get_thread_num.
2940         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2941         use omp_lib.
2943         * testsuite/libgomp.fortran/reduction1.f90: New test.
2944         * testsuite/libgomp.fortran/reduction2.f90: New test.
2945         * testsuite/libgomp.fortran/reduction3.f90: New test.
2946         * testsuite/libgomp.fortran/reduction4.f90: New test.
2948 2005-10-13  Richard Henderson  <rth@redhat.com>
2950         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2951         * Makefile.in: Regenerate.
2952         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2953         * libgomp.h: Include bar.h.
2954         (struct gomp_barrier): Remove.
2955         (struct gomp_team): Add barrier.  Replace master_barrier with
2956         master_release.  Replace threads with ordered_release.
2957         (struct gomp_thread): Replace barrier with release.
2958         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2959         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2960         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2961         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2962         (GOMP_single_copy_end): Likewise.
2963         * team.c (gomp_threads_dock): New.
2964         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2965         (gomp_thread_start): Use gomp_barrier_wait.
2966         (new_team, free_team): Update for gomp_team changes.
2967         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2968         (gomp_team_end): Use gomp_barrier_wait.
2969         (initialize_team): Update for gomp_thread changes.
2970         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2971         (gomp_work_share_end_nowait): Use atomic ops when available.
2972         * config/linux/bar.c, config/linux/bar.h: New files.
2973         * config/posix/bar.c, config/posix/bar.h: New files.
2975 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2977         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2978         * testsuite/libgomp.dg/single-2.c: New test.
2980         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2981         lang_link_flags): Unset, so that they aren't inherited from previously
2982         sourced *.exp.
2984         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2986 2005-10-12  Richard Henderson  <rth@redhat.com>
2988         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2989         (libgomp_init): Use lang_test_file, lang_library_path, and
2990         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2992         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2993         (lang_test_file, lang_link_flags): New.
2994         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2996         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2997         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2998         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2999         testsuite/libgomp.c++/parallel-1.C,
3000         testsuite/libgomp.c++/reduction-1.C,
3001         testsuite/libgomp.c++/reduction-2.C,
3002         testsuite/libgomp.c++/reduction-3.C,
3003         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3004         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3005         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3006         New files, largely cribbed from the C testsuite.
3008 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3010         * testsuite/libgomp.fortran/character1.f90: New test.
3011         * testsuite/libgomp.fortran/character2.f90: New test.
3013         * testsuite/libgomp.dg/nested-1.c: New test.
3014         * testsuite/libgomp.dg/nested-2.c: New test.
3015         * testsuite/libgomp.fortran/do1.f90: New test.
3016         * testsuite/libgomp.fortran/do2.f90: New test.
3018         * testsuite/libgomp.fortran/reference1.f90: New test.
3020 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3022         * testsuite/libgomp.dg/reduction-1.c: New test.
3023         * testsuite/libgomp.dg/reduction-2.c: New test.
3024         * testsuite/libgomp.dg/reduction-3.c: New test.
3026 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3028         * testsuite/libgomp.dg/atomic-1.c: New test.
3029         * testsuite/libgomp.dg/atomic-2.c: New test.
3031 2005-10-09  Richard Henderson  <rth@redhat.com>
3033         * critical.c (atomic_lock): New.
3034         (initialize_critical): Initialize it.
3035         (GOMP_atomic_start, GOMP_atomic_end): New.
3036         * libgomp.map: Export them.
3037         * libgomp_g.h: Declare them.
3039         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3041 2005-10-02  Richard Henderson  <rth@redhat.com>
3043         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3044         to XCFLAGS instead of CFLAGS.
3046 2005-09-30  Richard Henderson  <rth@redhat.com>
3048         * configure.ac: Determine whether -pthread or -lpthread is needed.
3049         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3050         * Makefine.in, configure: Rebuild.
3052 2005-09-28  Richard Henderson  <rth@redhat.com>
3054         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3055         * testsuite/libgomp.dg/omp-single-3.c: New test.
3057 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3059         * testsuite/libgomp.dg/omp-single-2.c: New test.
3060         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3062 2005-09-27  Richard Henderson  <rth@redhat.com>
3064         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3065         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3067 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3069         * testsuite/libgomp.dg/omp-loop03.c: New test.
3071 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3073         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3075 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3077         * testsuite/libgomp.dg/omp-single-1.c: New test.
3078         * testsuite/libgomp.dg/shared-1.c: Return 0.
3079         Add prototype for abort.
3080         * testsuite/libgomp.dg/shared-2.c: Likewise.
3082 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3084         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3085         constructs.
3087 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3089         * testsuite/libgomp.dg/shared-1.c: New test.
3090         * testsuite/libgomp.dg/shared-2.c: New test.
3092 2005-09-24  Richard Henderson  <rth@redhat.com>
3094         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3096 2005-09-24  Richard Henderson  <rth@redhat.com>
3098         * iter.c (gomp_iter_static_next): Round up when computing number
3099         of iterations.  Don't bother distributing a remainder equally.
3101         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3102         Don't call srand.  Zero b before testing.
3103         (main): New.
3105 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3107         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3108         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3110 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3112         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3113         without !$omp end do, followed immediately by subroutine end.
3115 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3117         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3119 2005-09-22  Richard Henderson  <rth@redhat.com>
3121         * critical.c (GOMP_critical_name_start): Change argument to void**.
3122         Reuse the pointer space if the mutex fits.
3123         (GOMP_critical_name_end): Likewise.
3124         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3125         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3126         (GOMP_critical_name_end): Likewise.
3127         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3128         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3130 2005-09-20  Richard Henderson  <rth@redhat.com>
3132         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3133         (create_lock_lock): New.
3134         (initialize_critical): Initialize it.
3135         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3136         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3138 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3140         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3142 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3144         * testsuite/libgomp.dg/omp-loop01.c: New test.
3145         * testsuite/libgomp.dg/omp-loop02.c: New test.
3147 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3149         * configure.ac (AC_PROG_FC): Add.
3150         (USE_FORTRAN): New automake conditional.
3151         * configure: Rebuilt.
3152         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3153         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3154         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3155         Add rules to build them.
3156         * Makefile.in: Rebuilt.
3157         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3158         OMP_NEST_LOCK_KIND.
3159         * libgomp.map: Add Fortran wrappers.
3160         * libgomp_f.h.in: New file.
3161         * omp_lib.h.in: New file.
3162         * omp_lib.f90.in: New file.
3163         * fortran.c: New file.
3164         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3165         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3166         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3167         libgfortran has been built.
3168         * testsuite/libgomp.fortran/fortran.exp: New file.
3169         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3170         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3171         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3172         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3173         * testsuite/libgomp.fortran/omp_hello.f: New test.
3174         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3175         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3176         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3177         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3178         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3179         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3180         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3181         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3183 2005-08-30  Richard Henderson  <rth@redhat.com>
3185         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3186         function for when aliases are not usable.
3187         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3188         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3189         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3190         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3191         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3192         GOMP_loop_ordered_guided_next): Likewise.
3193         * ordered.c (GOMP_ordered_start): Likewise.
3195 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3197         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3198         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3199         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3200         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3201         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3202         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3203         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3204         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3205         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3207 2005-07-07  Eric Christopher  <echristo@redhat.com>
3208             Diego Novillo  <dnovillo@redhat.com>
3210         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3211         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3212         up code.
3213         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3214         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3215         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3216         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3217         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3218         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3219         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3221 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3223         * TOPLEVEL.patch: Remove.
3225 2005-05-16  Richard Henderson  <rth@redhat.com>
3227         * configure.ac: Test for clock_gettime.
3228         * config.h.in, configure: Rebuild.
3229         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3230         (omp_get_wtime): Use clock_gettime if available.
3231         (omp_get_wtick): Use clock_getres if available.
3233 2005-05-11  Richard Henderson  <rth@redhat.com>
3235         * config/linux/ia64/futex.h: New file.
3236         * configure.tgt: Use it.
3238         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3240 2005-05-07  Richard Henderson  <rth@redhat.com>
3242         * config/linux/powerpc/futex.h: New file.
3243         * configure.tgt: Use it.
3245         * config/linux/i486/futex.h: Merge ...
3246         * config/linux/x86_64/futex.h: ... into ...
3247         * config/linux/x86/futex.h: ... here.
3248         * configure.tgt: Update to match.
3250 2005-05-06  Richard Henderson  <rth@redhat.com>
3252         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3253         * config/linux/i486/futex.h: Likewise.
3254         * config/linux/x86_64/futex.h: Likewise.
3256         * config/linux/lock.c: New file.
3257         * config/linux/omp-lock.h: New file.
3259         * critical.c, env.h: Don't include omp.h
3260         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3261         * config/posix/time.c: Likewise.
3262         * config/posix/omp-lock.h: New file.
3263         * libgomp.h: Include omp-lock.h and omp.h.
3264         * Makefile.am (nodist_include_HEADERS): New.
3265         (omp.h): New rule.
3266         * configure.ac (PERL): New.
3267         * mkomp_h.pl: New file.
3268         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3269         with templates.
3270         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3272         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3273         build directory.  Re-add -march=i486 hack.
3275         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3276         (libgomp_link_flags): Remove.
3277         (libgomp_initialized): Remove.
3278         (libgomp_init): Don't protect from reinitialization.  Copy code
3279         from libstdc++ for getting the multilib set correctly.
3281 2005-05-05  Richard Henderson  <rth@redhat.com>
3283         * config/linux/alpha/futex.h: New file.
3284         * configure.tgt (alpha*-*-linux*): Use it.
3286         * config/posix/mutex.c: New file.
3287         * config/posix/sem.c: Use libgomp.h.
3289         * configure.tgt (x86_64-linux): Also test CC for -m32.
3290         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3292         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3293         after $gccpath.
3295         * Makefile.am (SUBDIRS): New.
3296         (libgomp_la_LDFLAGS): Add -lpthread.
3297         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3298         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3300         * libgomp_g.h: New file.
3301         * libgomp.h: Split out all public declarations to libgomp_g.h.
3302         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3303         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3304         * config/linux/sem.h: Likewise.
3305         * config/posix/sem.h: Likewise.
3307         * Makefile.am (AM_LDFLAGS): New.
3308         (libgomp_version_script): Split out from ...
3309         (libgomp_la_LDFLAGS): ... here.
3310         (libgomp_version_info): New.
3311         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3312         (LIBGOMP_ENABLE): New.
3313         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3314         (LIBGOMP_ENABLE_SYMVERS): New.
3315         * configure.ac (AC_INIT): Version 1.0.
3316         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3317         (enable-linux-futex): Likewise.  Rename from enable-futex.
3318         (libtool_VERSION): New.
3319         (LIBGOMP_ENABLE_SYMVERS): Use it.
3320         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3321         * Makefile.in, aclocal.m4, configure: Rebuild.
3323         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3324         (gomp_mutex_unlock_slow): Fix typo.
3325         * config/linux/sem.c: Similarly.
3326         (gomp_sem_post_slow): Fix typo.
3327         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3328         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3329         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3331         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3332         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3333         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3334         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3335         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3336         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3337         LDFLAGS.  Pull enable_futex check to top-level.
3338         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3339         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3341         First attempt at real configury.
3342         * Makefile, config.h: Remove file.
3343         * Makefile.am, Makefile.in: New file.
3344         * acinclude.m4 aclocal.m4: New file.
3345         * configure.ac, configure.tgt, configure: New file.
3347         * config/posix/lock.c: Rename from sys-lock.c.
3348         * config/posix/mutex.h: Rename from sys-mutex.h.
3349         * config/posix/sem.c: Rename from sys-sem.c.
3350         * config/posix/sem.h: Rename from sys-sem.h.
3351         * config/posix/proc.c: Rename from sys-proc.c.
3352         * config/posix/time.c: Rename from sys-proc.c.
3354         * config/linux/mutex.c: New file.
3355         * config/linux/mutex.h: New file.
3356         * config/linux/sem.c: New file.
3357         * config/linux/sem.h: New file.
3358         * config/linux/i486/futex.h: New file.
3359         * config/linux/x86_64/futex.h: New file.
3361 2005-05-04  Richard Henderson  <rth@redhat.com>
3363         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3364         * libgomp.h: Declare them.
3365         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3366         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3368 2005-05-04  Richard Henderson  <rth@redhat.com>
3370         * libgomp-1 code drop
3372 2005-05-04  Richard Henderson  <rth@redhat.com>
3374         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3375         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3376         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3377         (gomp_iter_static_next): Update.
3378         (gomp_ordered_static_next): Update.
3379         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3380         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3381         totally empty range.
3382         (gomp_loop_ordered_static_next): Refine test for calling
3383         gomp_ordered_static_next.
3384         * testsuite/ordered-1.c: Add case for more threads than iterations.
3386         * iter.c (gomp_iter_runtime_next_locked): Remove.
3387         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3388         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3389         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3390         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3391         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3392         gomp_loop_ordered_guided_next): Downcase name, make static, add
3393         an external alias with the old name.
3394         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3395         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3396         switch and call one of the above static functions.
3397         * libgomp.h: Update.
3399         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3400         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3401         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3402         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3403         GOMP_loop_ordered_guided_start): Update to match.
3404         * sections.c (GOMP_sections_start): Likewise.
3405         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3407         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3408         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3409         Use bounds check instead of modulus.
3410         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3411         (gomp_ordered_last): Don't sync with ordered_owner here.
3412         (gomp_ordered_next): Likewise.
3413         (gomp_ordered_static_loop_next): Likewise.
3414         * loop.c, libgomp.h: Update to match.
3416         * libgomp.h (GOMP_barrier): Declare.
3418         * testsuite/barrier-1.c: New file.
3419         * testsuite/critical-1.c: New file.
3420         * testsuite/ordered-2.c: New file.
3421         * testsuite/ordered-1.c: New file.
3422         * testsuite/sections-1.c: New file.
3423         * testsuite/single-1.c: New file.
3424         * testsuite/Makefile (TESTS): Add them.
3426 2005-05-04  Richard Henderson  <rth@redhat.com>
3428         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3429         * loop.c (GOMP_loop_static_start): If not the startup thread,
3430         acquire the mutex to wait for initialization complete.
3431         (GOMP_loop_ordered_static_start): Likewise.
3432         (GOMP_loop_ordered_runtime_start): Likewise.
3433         (GOMP_loop_ordered_static_first): Remove.
3434         (GOMP_loop_ordered_dynamic_first): Remove.
3435         (GOMP_loop_ordered_guided_first): Remove.
3436         (GOMP_loop_ordered_runtime_first): Remove.
3437         * ordered.c (gomp_ordered_loop_first): Post to own release when
3438         we're the first thread.
3439         (gomp_ordered_loop_last): Wait on release if not owner.
3440         (gomp_ordered_loop_next): Likewise.
3441         (gomp_ordered_static_loop_init): New.
3442         (gomp_ordered_static_loop_next): Use ordered_owner.
3443         (GOMP_ordered_start): Likewise.
3444         * work.c (gomp_new_work_share): Initialize ordered_owner.
3446 2005-05-03  Richard Henderson  <rth@redhat.com>
3448         * Makefile (OPT): New.
3449         (CFLAGS): Use it.
3451         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3452         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3453         * libgomp.h, libgomp.map, NOTES: Update to match.
3455         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3456         Add initialized and thr members.
3457         (gomp_thread_start): Pause when initially spawned to wait for
3458         the whole team to be created.
3459         (gomp_team_start): Release team members at the end.
3461         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3462         (f_foo_1): Use GOMP_loop_end.
3463         (f_foo_2): Use GOMP_loop_end_nowait.
3465         * testsuite/loop-2.c: New file.
3466         * testsuite/Makefile (TESTS): Add it.
3468 2005-05-03  Richard Henderson  <rth@redhat.com>
3470         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3471         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3472         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3473         initial work_share.
3475         * testsuite/Makefile: New file.
3476         * testsuite/loop-1.c: New file.
3478 2005-05-03  Richard Henderson  <rth@redhat.com>
3480         Initial implementation and checkin.