vectorizer cost model enhancement
[official-gcc.git] / libgomp / ChangeLog
blob7646e5c05e2e919649addbeb402753340789c3c7
1 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
3         PR testsuite/57605
4         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
5         ALWAYS_CFLAGS.
7 2013-09-20  Alan Modra  <amodra@gmail.com>
9         * configure: Regenerate.
11 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13         * testsuite/libgomp.c/sections-2.c: New test.
15 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17         * testsuite/libgomp.fortran/strassen.f90:
18         Add dg-skip-if aarch64_tiny.
20 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
21             Cesar Philippidis  <cesar@codesourcery.com>
23         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
24         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
25         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
26         * testsuite/libgomp.fortran/fortran.exp: Likewise.
27         * testsuite/libgomp.graphite/graphite.exp: Likewise.
28         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
29         Use dg-runtest rather than gfortran-dg-runtest.
31 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
33         * testsuite/libgomp.c/icv-2.c: Extend current handling of
34         Linux-based x86 systems to cover all GNU systems.
35         * testsuite/libgomp.c/lock-3.c: Likewise.
36         * testsuite/libgomp.c/pr48591.c: Likewise.
38 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
40         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
41         GNU/Hurd, as done for Linux-based systems.
43         * config/posix/ptrlock.h: Fix comment.
45 2013-05-27  Tobias Burnus  <burnus@net-b.de>
47         PR fortran/57423
48         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
49         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
50         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
51         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
52         omp_destroy_nest_lock): Correct arguments to match the one in
53         the OpenMP spec.
54         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
55         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
56         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
57         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
59 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
61         * testsuite/libgomp.c/loop-13.c: New test.
62         * testsuite/libgomp.c/loop-14.c: New test.
63         * testsuite/libgomp.c/loop-15.c: New test.
64         * testsuite/libgomp.c++/loop-13.C: New test.
65         * testsuite/libgomp.c++/loop-14.C: New test.
66         * testsuite/libgomp.c++/loop-15.C: New test.
68 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
70         PR middle-end/56217
71         * testsuite/libgomp.c++/pr56217.C: New test.
73 2013-02-01  Alan Modra  <amodra@gmail.com>
75         * task.c (GOMP_task, GOMP_taskwait): Comment.
77 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
78             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
80         PR libgomp/55561
81         * config/linux/wait.h (do_spin): Use atomic load for addr.
82         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
83         for intptr and ptrlock.
84         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
85         for ptrlock.
87 2013-01-22  Alan Modra  <amodra@gmail.com>
89         PR libgomp/51376
90         PR libgomp/56073
91         * task.c (GOMP_task): Revert 2011-12-09 change.
92         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
93         barrier to read task->children..
94         (gomp_barrier_handle_tasks): ..and matching atomic store with
95         release barrier here when setting parent->children to NULL.
97 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
98             Tobias Burnus  <burnus@net-b.de>
100         PR driver/55884
101         * testsuite/libgomp.fortran/fortran.exp: Use
102         -fintrinsic-modules-path= instead of
103         -fintrinsic-modules-path.
105 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
107         Update copyright years.
109 2012-12-19  Tobias Burnus  <burnus@net-b.de>
111         * testsuite/libgomp.fortran/fortran.exp: Set
112         -fintrinsic-modules-path.
114 2012-12-19  Tobias Burnus  <burnus@net-b.de>
116         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
117         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
119 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
121         PR libgomp/55411
122         * team.c (gomp_free_thread): Decrease gomp_managed_threads
123         if pool had any threads_used.
125 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
127         * testsuite/libgomp.c++/pr24455.C: Use
128         -Wl,-undefined,dynamic_lookup on darwin.
130 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
132         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
134 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
136         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
138 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
139             Jim MacArthur  <jim.macarthur@arm.com>
140             Marcus Shawcroft  <marcus.shawcroft@arm.com>
141             Nigel Stephens  <nigel.stephens@arm.com>
142             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
143             Richard Earnshaw  <rearnsha@arm.com>
144             Sofiane Naci  <sofiane.naci@arm.com>
145             Stephen Thomas  <stephen.thomas@arm.com>
146             Tejas Belagod  <tejas.belagod@arm.com>
147             Yufeng Zhang  <yufeng.zhang@arm.com>
149         * configure.tgt: Add AArch64.
151 2012-10-04  Jason Merrill  <jason@redhat.com>
153         * testsuite/libgomp.c++/tls-init1.C: New.
155 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
157         * configure: Regenerated.
159 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
161         * config/linux/mips/futex.h (sys_futex0): Change to static
162         function with noinline, nomips16 attributes under MIPS16. Adjust
163         asm statement to place 'li v0,SYS_futex' immediately before
164         syscall insn.
166 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
168         * libgomp.texi (Library Index): Renamed from "Index" to prevent
169         conflict with index.html on case-insensitive file systems.
171 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
173         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
174         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
176 2012-07-02  Richard Guenther  <rguenther@suse.de>
177             Michael Matz  <matz@suse.de>
178             Tobias Grosser <tobias@grosser.es>
179             Sebastian Pop <sebpop@gmail.com>
181         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
182         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
183         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
184         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
186 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
188         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
190 2012-06-22  Richard Guenther  <rguenther@suse.de>
192         Merge from graphite branch
193         2012-01-13  Tobias Grosser  <tobias@grosser.es>
195         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
196         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
198 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
200         PR middle-end/53580
201         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
202         use GOMP_barrier () call instead.
203         * testsuite/libgomp.c/pr26943-3.c: Likewise.
204         * testsuite/libgomp.c/pr26943-4.c: Likewise.
205         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
206         call GOMP_barrier instead.
207         * testsuite/libgomp.fortran/vla5.f90: Likewise.
209 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
211         PR libgomp/52993
212         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
213         argument to memset call.
215 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
217         * configure: Regenerated.
219 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
221         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
223 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
225         PR bootstrap/52812
226         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
228 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
230         PR middle-end/52547
231         * testsuite/libgomp.c/pr52547.c: New test.
233 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
235         * testsuite/lib/libgomp.exp: load fortran-modules.exp
237 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
239         * configure.tgt (mips-sgi-irix6*): Remove.
241 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
243         * configure.tgt (alpha*-dec-osf*): Remove.
245         * config/osf/sem.h: Remove.
246         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
248 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
250         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
252 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
254         PR libstdc++/52188
255         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
256         Remove ENABLE_SYMVERS_SOL2.
257         * configure: Regenerate.
258         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
259         (PREPROCESS): New variable.
260         (libgomp.ver): New target.
261         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
262         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
263         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
264         Use libgomp.ver.
265         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
266         * Makefile.in: Regenerate.
268 2012-02-14  Walter Lee  <walt@tilera.com>
270         * configure.tgt: Handle tilegx and tilepro.
271         * config/linux/tile/futex.h: New file.
273 2012-02-08  Richard Guenther  <rguenther@suse.de>
275         PR tree-optimization/46886
276         * testsuite/libgomp.c/pr46886.c: New testcase.
278 2012-01-25  Matthias Klose  <doko@ubuntu.com>
280         * config/linux/arm: Remove empty directory.
281         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
283 2011-12-09  Alan Modra  <amodra@gmail.com>
285         PR libgomp/51376
286         * task.c (GOMP_taskwait): Don't access task->children outside of
287         task_lock mutex region.
288         (GOMP_task): Likewise.
290 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
292         PR libgomp/51132
293         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
294         to file scope.
295         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
296         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
297         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
298         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
299         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
301 2011-12-02  Alan Modra  <amodra@gmail.com>
303         * config/linux/affinity.c: Use atomic rather than sync builtin.
304         * config/linux/lock.c: Likewise.
305         * config/linux/ptrlock.h: Likewise.
306         * config/linux/ptrlock.c: Likewise.
307         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
308         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
309         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
310         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
311         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
312         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
313         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
314         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
315         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
316         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
318 2011-11-30  Alan Modra  <amodra@gmail.com>
320         PR libgomp/51298
321         * config/linux/bar.h: Use atomic rather than sync builtins.
322         * config/linux/bar.c: Likewise.  Add missing acquire
323         synchronisation on generation field.
324         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
325         double unlock.
327 2011-11-30  Alan Modra  <amodra@gmail.com>
329         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
330         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
331         * config/linux/mutex.h: Use atomic rather than sync builtins.
332         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
333         * config/linux/omp-lock.h: Comment fix.
334         * config/linux/arm/mutex.h: Delete.
335         * config/linux/powerpc/mutex.h: Delete.
336         * config/linux/ia64/mutex.h: Delete.
337         * config/linux/mips/mutex.h: Delete.
339 2011-11-30  Alan Modra  <amodra@gmail.com>
341         PR libgomp/51249
342         * config/linux/sem.h: Rewrite.
343         * config/linux/sem.c: Rewrite.
345 2011-11-28  Richard Henderson  <rth@redhat.com>
347         * libgomp.h (enum memmodel): New.
349 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
351         * configure: Regenerate.
353 2011-10-10  Matthias Klose  <doko@ubuntu.com>
355         * config/posix95: Remove empty directory.
357 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
359         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
361 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
363         PR fortran/49792
364         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
365         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
367 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
369         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
371 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
373         PR libgomp/49965
374         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
376 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
378         * config/linux/proc.h: New.
379         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
380         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
381         (gomp_init_num_threads): Update call to cpuset_popcount.
382         (get_num_procs): Ditto.
383         * config/linux/affinity.c (gomp_init_affinity): Call
384         gomp_cpuset_popcount.
386 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
388         PR fortran/42041
389         PR fortran/46752
390         * omp.h.in (omp_in_final): New prototype.
391         * omp_lib.f90.in (omp_in_final): New interface.
392         (omp_integer_kind, omp_logical_kind): Remove
393         and replace all its uses in the module with 4.
394         (openmp_version): Change to 201107.
395         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
396         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
397         kind for the parameters.
398         (omp_in_final): New external.
399         (openmp_version): Change to 201107.
400         * task.c (omp_in_final): New function.
401         (gomp_init_task): Initialize final_task.
402         (GOMP_task): Remove unused attribute from flags.  Handle final
403         tasks.
404         (GOMP_taskyield): New function.
405         (omp_in_final): Return true if if (false) or final (true) task
406         or descendant of final (true).
407         * fortran.c (omp_in_final_): New function.
408         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
409         (GOMP_3.0): Export GOMP_taskyield.
410         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
411         variables.
412         (parse_unsigned_long_list): New function.
413         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
414         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
415         even if parse_affinity returned false.
416         * config/linux/affinity.c (gomp_init_affinity): Handle
417         gomp_cpu_affinity_len == 0.
418         * libgomp_g.h (GOMP_taskyield): New prototype.
419         * libgomp.h (struct gomp_task): Add final_task field.
420         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
421         * team.c (gomp_team_start): Override new task's nthreads_var icv
422         if list form OMP_NUM_THREADS has been used and it has value for
423         the new nesting level.
425         * testsuite/libgomp.c/atomic-11.c: New test.
426         * testsuite/libgomp.c/atomic-12.c: New test.
427         * testsuite/libgomp.c/atomic-13.c: New test.
428         * testsuite/libgomp.c/atomic-14.c: New test.
429         * testsuite/libgomp.c/reduction-6.c: New test.
430         * testsuite/libgomp.c/task-5.c: New test.
431         * testsuite/libgomp.c++/atomic-2.C: New test.
432         * testsuite/libgomp.c++/atomic-3.C: New test.
433         * testsuite/libgomp.c++/atomic-4.C: New test.
434         * testsuite/libgomp.c++/atomic-5.C: New test.
435         * testsuite/libgomp.c++/atomic-6.C: New test.
436         * testsuite/libgomp.c++/atomic-7.C: New test.
437         * testsuite/libgomp.c++/atomic-8.C: New test.
438         * testsuite/libgomp.c++/atomic-9.C: New test.
439         * testsuite/libgomp.c++/task-8.C: New test.
440         * testsuite/libgomp.c++/reduction-4.C: New test.
441         * testsuite/libgomp.fortran/allocatable7.f90: New test.
442         * testsuite/libgomp.fortran/allocatable8.f90: New test.
443         * testsuite/libgomp.fortran/crayptr3.f90: New test.
444         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
445         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
446         * testsuite/libgomp.fortran/pointer1.f90: New test.
447         * testsuite/libgomp.fortran/pointer2.f90: New test.
448         * testsuite/libgomp.fortran/task4.f90: New test.
450 2011-08-02  Tobias Burnus  <burnus@net-b.de>
452         * libgomp.texi: Update OpenMP spec references to 3.1.
453         (omp_in_final,OMP_PROC_BIND): New sections.
454         (OMP_NUM_THREADS): Document that the value can be now a list.
455         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
457 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
459         * config/linux/x86/futex.h: Check __x86_64__ instead of
460         __LP64__.
462 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
464         PR middle-end/49897
465         PR middle-end/49898
466         * testsuite/libgomp.c/pr49897-1.c: New test.
467         * testsuite/libgomp.c/pr49897-2.c: New test.
468         * testsuite/libgomp.c/pr49898-1.c: New test.
469         * testsuite/libgomp.c/pr49898-2.c: New test.
471 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
473         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
474         for ia32 instead of ilp32.
476         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
477         * testsuite/libgomp.c/atomic-6.c: Likewise.
479 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
481         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
482         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
484 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
486         PR libgomp/45351
487         * config/osf/sem.h: New file.
488         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
490 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
492         PR target/49541
493         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
494         ldflags.
496 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
498         * config/linux/wait.h (do_spin): New inline, largely copied
499         from do_wait, just don't do futex_wait here, instead return true if
500         it should be done.
501         (do_wait): Implement using do_spin.
502         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
503         to prototype.
504         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
505         __sync_bool_compare_and_swap, pass the oldval to
506         gomp_mutex_lock_slow.
507         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
508         If all mutex contenders are just spinning and not sleeping, don't
509         change state to 2 unnecessarily.  Optimize the loop when state has
510         already become 2 to use just one atomic operation per loop instead
511         of two.
512         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
513         to prototype.
514         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
515         __sync_bool_compare_and_swap, pass the oldval to
516         gomp_mutex_lock_slow.
518 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
520         PR libgomp/49490
521         * iter.c (gomp_iter_static_next): For chunk size 0
522         only use n ceil/ nthreads size for the first
523         n % nthreads threads in the team instead of
524         all threads except for the last few ones which
525         get less work or none at all.
526         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
527         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
528         chunk argument, set run_sched_modifier to 0 for static
529         resp. 1 for other kinds.  If chunk argument is 0
530         and not static, set value to 1.
532 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
534         PR c++/49043
535         * testsuite/libgomp.c++/pr49043.C: New test.
537         PR c++/48869
538         * testsuite/libgomp.c++/pr48869.C: New test.
540 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
542         PR fortran/48894
543         * fortran.c: Include limits.h.
544         (TO_INT): Define.
545         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
546         *set.
547         (omp_set_num_threads_8_, omp_set_schedule_8_,
548         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
549         omp_get_team_size_8_): Use TO_INT macro.
550         * testsuite/libgomp.fortran/pr48894.f90: New test.
552 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
554         PR middle-end/48591
555         * testsuite/libgomp.c/pr48591.c: New test.
557 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
559         PR bootstrap/48135
560         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
561         * configure: Regenerate.
563 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
565         PR fortran/47886
566         * testsuite/libgomp.fortran/task3.f90: New test.
568 2011-02-24  Tobias Burnus  <burnus@net-b.de>
570         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
572 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
574         PR libgomp/47854
575         * libgomp.texi (omp_get_wtime): Don't say time in the past
576         must be Unix Epoch.
578 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
580         PR libgomp/47804
581         * testsuite/libgomp.fortran/fortran.exp: Check for both
582         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
583         but $blddir != "", still append ${blddir}/${lang_library_path}
584         to ld_library_path.
586 2011-02-16  Tobias Burnus  <burnus@net-b.de>
588         PR libgomp/47758
589         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
590         of libquadmath.a before adding its libpath to ldflags.
592 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
594         PR libgomp/47731
595         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
596         to FUTEX_WAIT futex syscall.
597         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
599 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
601         * configure: Regenerate.
603 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
605         PR libstdc++/36104
606         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
608 2011-01-16  Gerald Pfeifer
610         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
612 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
614         PR fortran/46874
615         * libgomp.fortran/allocatable6.f90: New test.
617 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
619         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
620         * configure: Regenerate.
622 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
624         PR target/40125
625         PR lto/46695
626         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
627         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
628         * aclocal.m4: Regenerate.
629         * configure: Regenerate.
630         * Makefile.in: Regenerate.
631         * testsuite/Makefile.in: Regenerate.
633 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
635         PR fortran/46753
636         * libgomp.fortran/pr46753.f90: New test.
638         PR libgomp/43706
639         * env.c (initialize_env): Default to spin count 300000
640         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
641         is specified.
643         PR libgomp/45240
644         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
645         at the end if sync builtins aren't supported.
647 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
649         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
651 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
653         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
655 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
657         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
659 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
660             Tobias Burnus  <burnus@net-b.de>
662         PR fortran/32049
663         * configure.ac:
664         * configure: Regenerate.
666 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
668         * config/linux/futex.h: New.
669         * config/linux/arm/mutex.h: New.
670         * configure.tgt (arm*-*-linux*): Add config path.
672 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
674         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
676 2010-09-23  Tobias Burnus  <burnus@net-b.de>
678         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
679         Change Fortran datatype to LOGICAL.
680         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
681         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
683 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
685         * configure: Regenerate.
687 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
689         * libgomp.texi: Add function keyword to a couple of Fortran
690         interfaces, use integer instead of int for Fortran.
692 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
694         * libgomp.texi: Fix spelling and pasto problems throughout.
695         Adjust prototypes to match code.
697 2010-07-24  Tobias Burnus  <burnus@net-b.de>
699         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
700         silence -fwhole-file warning.
702 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
704         * configure.tgt (*-*-solaris2.[56]*): Removed.
706 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
708         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
709         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
710         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
711         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
712         targetting solaris2*.
713         * configure: Regenerate.
714         * config.h.in: Regenerate.
716         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
717         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
718         Add libgomp_version_dep.
719         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
720         versioning.
721         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
722         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
723         * Makefile.in: Regenerate.
725         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
726         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
727         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
728         to common block, protected by
729         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
731 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
733         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
735 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
737         PR bootstrap/43170
738         * configure: Regenerate.
740 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
742         PR other/43620
743         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
744         * configure: Regenerate.
745         * Makefile.in: Regenerate.
746         * testsuite/Makefile.in: Regenerate.
748 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
750         PR c/43893
751         * testsuite/libgomp.c/pr43893.c: New test.
752         * testsuite/libgomp.c++/pr43893.C: New test.
754 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
756         PR middle-end/43570
757         * testsuite/libgomp.fortran/vla8.f90: New test.
759 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
761         PR libgomp/43706
762         * config/linux/affinity.c (gomp_init_affinity): Decrease
763         gomp_available_cpus if affinity mask confines the process to fewer
764         CPUs.
765         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
766         non-NULL, just return gomp_available_cpus.
768         PR libgomp/43569
769         * sections.c (gomp_sections_init): Initialize ws->mode.
771 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
773         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
774         not unused bar variable.
775         * configure: Regenerate.
777 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
779         * Makefile.in: Regenerate.
780         * aclocal.m4: Regenerate.
781         * testsuite/Makefile.in: Regenerate.
783 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
785         PR libgomp/42942
786         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
787         (initialize_env): Adjust callers.
788         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
789         when the argument is 0.
791         * testsuite/libgomp.c/pr42942.c: New test.
793 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
795         PR middle-end/42644
796         PR middle-end/42130
797         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
798         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
800 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
802         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
803         * testsuite/libgomp.c++/task-6.C: Likewise.
805 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
807         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
809 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
811         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
812         * configure: Regenerate.
814 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
816         PR fortran/42866
817         * testsuite/libgomp.fortran/allocatable5.f90: New test.
819 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
821         * configure.ac: Test for executability of GFORTRAN.
822         * configure: Regenerate.
824 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
826         * configure: Regenerate.
828 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
830         PR libgomp/42602
831         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
833 2010-01-03  Richard Guenther  <rguenther@suse.de>
835         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
837 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
839         * testsuite/libgomp.graphite/pr4118.c: New.
841 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
843         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
844         for darwin, protect the test with require-effective-target tls_runtime.
845         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
847 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
849         PR target/41605
850         * testsuite/lib/libgomp.exp: Provide -B options to allow for
851         link spec %s substitutions for static libraries.
853 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
855         PR testsuite/42135
856         * libgomp.graphite/force-parallel-2.c: Reduce array size.
858 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
860         * Makefile.in: Regenerate.
861         * configure: Regenerate.
862         * testsuite/Makefile.in: Regenerate.
864 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
866         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
867         settings for LC_ALL and LANG.
869 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
871         PR fortran/42162
872         * testsuite/libgomp.fortran/pr42162.f90: New test.
874 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
876         PR middle-end/42029
877         * testsuite/libgomp.c/pr42029.c: New test.
879 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
881         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
882         *s.  Accept ld version without text in ()s.
883         * configure: Regenerated.
885 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
887         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
889 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
891         PR libgomp/41418
892         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
893         or a hyphen (happens with fortran language disabled).
894         * configure: Regenerate.
896 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
898         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
899         use sed script portable to Solaris /bin/sed for extracting ld
900         version.
901         * configure: Regenerate.
903 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
905         * testsuite/libgomp.graphite/bounds.c: New test.
907 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
909         * Makefile.am (libgomp_la_LINK): New.
910         * Makefile.in: Regenerate.
912 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
914         * configure.ac (AC_PREREQ): Bump to 2.64.
916 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
918         * Makefile.am (install-html, install-pdf): Remove.
919         * Makefile.in: Regenerate.
921         * Makefile.in: Regenerate.
922         * aclocal.m4: Regenerate.
923         * config.h.in: Regenerate.
924         * configure: Regenerate.
925         * testsuite/Makefile.in: Regenerate.
927 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
929         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
930         * Makefile.in: Regenerate.
932 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
934         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
935         * Makefile.in: Regenerate.
937 2009-08-19  Tobias Burnus  <burnus@net-b.de>
939         PR fortran/41102
940         omp_lib.h.in: Fix -std=f95 errors.
943 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
945         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
946         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
947         * testsuite/libgomp.graphite/graphite.exp: New.
949 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
951         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
952         only build.
954 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
956         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
957         needed memory barrier semantics.
958         * config/linux/mips/mutex.h: New file.
960 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
962         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
964 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
966         * configure: Regenerate.
968 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
970         PR testsuite/40699
971         PR testsuite/40707
972         PR testsuite/40709
973         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
974         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
975         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
977 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
979         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
980         options when choosing a multilib.
982 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
984         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
985         ld_library_path.  Use add_path.  Add just find_libgcc_s to
986         ld_library_path, not every libgcc multilib directory.
987         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
988         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
989         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
990         Use add_path.
991         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
993 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
995         * Makefile.am (LTLDFLAGS): Define.
996         (LINK): Define.
997         * Makefile.in: Regenerate.
999 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1001         PR fortran/39718
1002         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1003         libgfortranbegin, check existence of libgfortran.a instead of
1004         libgfortranbegin.a.
1006 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1008         PR libgomp/40174
1009         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1010         (gomp_free_pool_helper): Likewise.
1012 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1013             Jakub Jelinek  <jakub@redhat.com>
1015         PR fortran/35423
1016         * testsuite/libgomp.fortran/workshare2.f90: New test.
1018 2009-04-09  Nick Clifton  <nickc@redhat.com>
1020         * iter.c: Change copyright header to refer to version 3 of the
1021         GNU General Public License with version 3.1 of the GCC Runtime
1022         Library Exception and to point readers at the COPYING3 and
1023         COPYING3.RUNTIME files and the FSF's license web page.
1024         * alloc.c: Likewise.
1025         * barrier.c: Likewise.
1026         * config/bsd/proc.c: Likewise.
1027         * config/linux/affinity.c: Likewise.
1028         * config/linux/alpha/futex.h: Likewise.
1029         * config/linux/bar.c: Likewise.
1030         * config/linux/bar.h: Likewise.
1031         * config/linux/ia64/futex.h: Likewise.
1032         * config/linux/ia64/mutex.h: Likewise.
1033         * config/linux/lock.c: Likewise.
1034         * config/linux/mips/futex.h: Likewise.
1035         * config/linux/mutex.c: Likewise.
1036         * config/linux/mutex.h: Likewise.
1037         * config/linux/powerpc/futex.h: Likewise.
1038         * config/linux/proc.c: Likewise.
1039         * config/linux/ptrlock.c: Likewise.
1040         * config/linux/ptrlock.h: Likewise.
1041         * config/linux/s390/futex.h: Likewise.
1042         * config/linux/sem.c: Likewise.
1043         * config/linux/sem.h: Likewise.
1044         * config/linux/sparc/futex.h: Likewise.
1045         * config/linux/wait.h: Likewise.
1046         * config/linux/x86/futex.h: Likewise.
1047         * config/mingw32/proc.c: Likewise.
1048         * config/mingw32/time.c: Likewise.
1049         * config/posix/affinity.c: Likewise.
1050         * config/posix/bar.c: Likewise.
1051         * config/posix/bar.h: Likewise.
1052         * config/posix/lock.c: Likewise.
1053         * config/posix/mutex.h: Likewise.
1054         * config/posix/proc.c: Likewise.
1055         * config/posix/ptrlock.h: Likewise.
1056         * config/posix/sem.c: Likewise.
1057         * config/posix/sem.h: Likewise.
1058         * config/posix/time.c: Likewise.
1059         * config/posix95/lock.c: Likewise.
1060         * critical.c: Likewise.
1061         * env.c: Likewise.
1062         * error.c: Likewise.
1063         * fortran.c: Likewise.
1064         * iter_ull.c: Likewise.
1065         * libgomp.h: Likewise.
1066         * libgomp_f.h.in: Likewise.
1067         * libgomp_g.h: Likewise.
1068         * loop.c: Likewise.
1069         * loop_ull.c: Likewise.
1070         * omp.h.in: Likewise.
1071         * omp_lib.f90.in: Likewise.
1072         * omp_lib.h.in: Likewise.
1073         * ordered.c: Likewise.
1074         * parallel.c: Likewise.
1075         * sections.c: Likewise.
1076         * single.c: Likewise.
1077         * task.c: Likewise.
1078         * team.c: Likewise.
1079         * work.c: Likewise.
1081 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1083         * testsuite/config/default.exp: Change copyright header to refer to
1084         version 3 of the GNU General Public License and to point readers
1085         at the COPYING3 file and the FSF's license web page.
1087 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1089         PR middle-end/39573
1090         * libgomp.c++/pr39573.C: New test.
1092 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1094         PR other/39591
1095         * testsuite/libgomp.c/pr39591-1.c: New test.
1096         * testsuite/libgomp.c/pr39591-2.c: New test.
1097         * testsuite/libgomp.c/pr39591-3.c: New test.
1099 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1101         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1102         * testsuite/libgomp.c/atomic-6.c: Ditto.
1104 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1106         PR c/39495
1107         * testsuite/libgomp.c/loop-12.c: New test.
1108         * testsuite/libgomp.c/loop-11.c: New test.
1109         * testsuite/libgomp.c++/loop-11.C: New test.
1110         * testsuite/libgomp.c++/loop-12.C: New test.
1111         * testsuite/libgomp.c++/for-8.C: New test.
1113 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1115         * configure: Regenerate.
1117 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1119         PR middle-end/39154
1120         * testsuite/libgomp.c/pr39154.c: New test.
1122 2009-01-30  Ian Lance Taylor  <iant@google.com>
1124         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1125         libgomp_ld_is_gold.  Get gold version number.
1126         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1127         * configure: Rebuild.
1129 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1131         * testsuite/lib/libgomp.exp: Add -B option for targets that
1132         use libgfortran.a%s in their specs.
1134 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1136         PR libgomp/38086
1137         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1138         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1139         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1140         * configure: Regenerated.
1141         * config.h.in: Likewise.
1143 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1145         PR c++/38650
1146         * testsuite/libgomp.c/pr38650.c: New test.
1147         * testsuite/libgomp.c++/pr38650.C: New test.
1149 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1151         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1153 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1155         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1157 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1159         * configure: Regenerate.
1161 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1163         PR middle-end/36802
1164         * testsuite/libgomp.c/pr36802-1.c: New test.
1165         * testsuite/libgomp.c/pr36802-2.c: New test.
1166         * testsuite/libgomp.c/pr36802-3.c: New test.
1168 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1170         PR libgomp/38270
1171         * config/linux/powerpc/mutex.h: New.
1173 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1175         PR c++/38257
1176         * testsuite/libgomp.c++/for-7.C: New test.
1178         PR c++/38348
1179         * testsuite/libgomp.c++/for-6.C: New test.
1181 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1183         PR testsuite/28870
1184         * testsuite/lib/libgomp.exp: Include new timeout library files.
1185         (libgomp_target_compile): Set timeout value from new proc.
1187 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1189         PR libgomp/37938
1190         * config/linux/ia64/mutex.h: New.
1192 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1194         PR libgomp/37935
1195         * libgomp.texi (Runtime library routines, environment variables):
1196         Update for OpenMP version 3.0.
1198 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1199             Steve Ellcey  <sje@cup.hp.com>
1201         * configure: Regenerate for new libtool.
1202         * Makefile.in: Ditto.
1203         * testsuite/Makefile.in: Ditto.
1205 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1206             Andreas Tobler  <a.tobler@schweiz.org>
1208         * config/bsd/proc.c: New file.
1209         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1210         * configure.ac: Check for header <sys/sysctl.h>
1211         * configure: Regenerate.
1212         * config.h.in: Likewise.
1214 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1216         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1218 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1220         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1221         * Makefile.in: Regenerated.
1222         * testsuite/Makefile.in: Regenerated.
1224 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1226         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1227         depend on blddir if blddir exists.
1228         (libgomp_target_compile): Likewise.
1229         * testsuite/libgomp.c++/c++.exp: Likewise.
1230         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1232 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1234         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1235         Do not list GPL as Invariant Section.
1237 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1238             Chao-ying Fu  <fu@mips.com>
1240         * configure.tgt: Enable futex for MIPS.
1241         * config/linux/mips/futex.h: New file.
1243 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1245         * team.c (gomp_team_end): Free team immediately if it has
1246         just one thread.
1248 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1250         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1251         * testsuite/libgomp.fortran/fortran.exp: Same.
1252         * testsuite/libgomp.c/c.exp: Same.
1253         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1254         directory to library path first.
1256 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1258         * env.c (parse_stacksize): Add cast to avoid warning.
1259         (parse_spincount): Likewise.
1261 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1263         * testsuite/libgomp.c/loop-10.c: New test.
1264         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1265         * libgomp.c++/loop-6.C (main): Likewise.
1267         PR debug/36617
1268         * testsuite/libgomp.c/debug-1.c: New test.
1270 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1272         * testsuite/libgomp.c/nqueens-1.c: New test.
1274         PR c++/36523
1275         * testsuite/libgomp.c++/task-7.C: New function.
1277 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1279         * configure: Regenerate.
1281 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1283         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1284         mutex when HAVE_SYNC_BUILTINS isn't defined.
1286 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1288         * libgomp.texi (omp_test_lock): Fix typo.
1290 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1292         * omp_lib.f90.in: Add "implicit none".
1294 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1296         PR middle-end/36506
1297         * testsuite/libgomp.c/reduction-5.c: New test.
1299 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1301         * libgomp.h (struct gomp_task): Add in_tied_task field.
1302         * task.c (gomp_init_task): Initialize it.
1303         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1304         unconditionally.  Don't call gomp_team_barrier_wake if
1305         current task is implicit or if(0) from implicit and number of
1306         running tasks is equal to nthreads - 1.
1308         PR libgomp/36471
1309         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1310         omp_get_team_size_8): Fix pastos.
1312         PR libgomp/36469
1313         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1314         * configure: Regenerated.
1315         * config.h.in: Regenerated.
1316         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1317         defined.
1319 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1321         PR bootstrap/36452
1322         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1323         (GOMP_loop_ull_dynamic_start): Likewise.
1324         (GOMP_loop_ull_guided_start): Likewise.
1325         (GOMP_loop_ull_ordered_static_start): Likewise.
1326         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1327         (GOMP_loop_ull_ordered_guided_start): Likewise.
1329 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1330             Richard Henderson  <rth@redhat.com>
1331             Ulrich Drepper  <drepper@redhat.com>
1332             Jakob Blomer  <jakob.blomer@ira.uka.de>
1334         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1335         Substitute also OMP_*LOCK_25*.
1336         * configure: Regenerated.
1337         * config.h.in: Regenerated.
1338         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1339         ptrlock.c and task.c.
1340         * Makefile.in: Regenerated.
1341         * testsuite/Makefile.in: Regenerated.
1342         * task.c: New file.
1343         * loop_ull.c: New file.
1344         * iter_ull.c: New file.
1345         * libgomp.h: Include ptrlock.h.
1346         (enum gomp_task_kind): New type.
1347         (struct gomp_team): Add task_lock, task_queue, task_count,
1348         task_running_count, single_count fields.  Add
1349         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1350         Remove work_share_lock, generation_mask,
1351         oldest_live_gen, num_live_gen and init_work_shares fields, add
1352         work work_share_list_alloc, work_share_list_free and work_share_chunk
1353         fields.  Change work_shares from pointer to pointers into an array.
1354         Change ordered_release field into gomp_sem_t ** from flexible array
1355         member.  Add implicit_task and initial_work_shares fields.
1356         Move close to the end of the struct.
1357         (struct gomp_team_state): Add single_count, last_work_share,
1358         active_level and level fields, remove work_share_generation.
1359         (gomp_barrier_handle_tasks): New prototype.
1360         (gomp_finish_task): New inline function.
1361         (struct gomp_work_share): Move chunk_size, end, incr into
1362         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1363         next_ll fields.  Reshuffle fields.  Add next_alloc,
1364         next_ws, next_free and inline_ordered_team_ids fields, change
1365         ordered_team_ids into pointer from flexible array member.
1366         Add mode field.  Put lock and next into a different cache line
1367         from most of the write-once fields.
1368         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1369         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1370         gomp_iter_ull_guided_next): New prototypes.
1371         (gomp_new_icv): New prototype.
1372         (struct gomp_thread): Add thread_pool and task fields.
1373         (struct gomp_thread_pool): New type.
1374         (gomp_new_team): New prototype.
1375         (gomp_team_start): Change type of last argument.
1376         (gomp_new_work_share): Removed.
1377         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1378         (gomp_work_share_init_done): New static inline.
1379         (gomp_throttled_spin_count_var, gomp_available_cpus,
1380         gomp_managed_threads): New extern decls.
1381         (gomp_init_task): New prototype.
1382         (gomp_spin_count_var): New extern var decl.
1383         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1384         or no alias support, or if not PIC.
1385         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1386         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1387         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1388         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1389         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1390         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1391         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1392         gomp_test_nest_lock_25): New prototypes.
1393         (omp_lock_symver, strong_alias): Define.
1394         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1395         decls.
1396         (gomp_end_task): New.
1397         (struct gomp_task_icv, gomp_global_icv): New.
1398         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1399         (struct gomp_task): New.
1400         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1401         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1402         (gomp_icv): New.
1403         (gomp_schedule_type): Reorder enum to match
1404         omp_sched_t.
1405         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1406         fields.
1407         (gomp_thread_start): Add gomp_team_barrier_wait call.
1408         For non-nested case remove clearing of docked thread thr fields.
1409         Use pool fields instead of global gomp_* variables.  Use
1410         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1411         Create tasks for each member thread.
1412         (free_team): Only destroy team barrier, task_lock here and free it.
1413         (gomp_free_thread): Free last_team if non-NULL.
1414         (gomp_team_end): Call gomp_team_barrier_wait instead of
1415         gomp_barrier_wait.  For nested case call one extra
1416         gomp_barrier_wait.  Move here some destruction from free_team.
1417         Call free_team on pool->last_team if any, rather than freeing
1418         current team.  Destroy work_share_list_free_lock ifndef
1419         HAVE_SYNC_BUILTINS.
1420         (gomp_new_icv): New function.
1421         (gomp_threads, gomp_threads_size, gomp_threads_used,
1422         gomp_threads_dock): Removed.
1423         (gomp_thread_destructor): New variable.
1424         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1425         functions.
1426         (gomp_team_start): Create new pool if current thread doesn't have
1427         one.  Use pool fields instead of global gomp_* variables.
1428         Initialize thread_pool field for new threads.  Clear single_count.
1429         Change last argument from ws to team, don't create
1430         new team, set ts.work_share to &team->work_shares[0] and clear
1431         ts.last_work_share.  Don't clear ts.work_share_generation.
1432         If number of threads changed, adjust atomically gomp_managed_threads.
1433         Use gomp_init_task instead of gomp_new_task,
1434         set thr->task to the corresponding implicit_task array entry.
1435         Create tasks for each member thread.  Initialize ts.level.
1436         (initialize_team): Call pthread_key_create on
1437         gomp_thread_destructor.
1438         (team_destructor): New function.
1439         (new_team): Removed.
1440         (gomp_new_team): New function.
1441         (free_team): Free gomp_work_share blocks chained through next_alloc,
1442         instead of freeing work_shares and destroying work_share_lock.
1443         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1444         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1445         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1446         of gomp_barrier_wait.
1447         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1448         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1449         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1450         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1451         of gomp_barrier_wait.
1452         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1453         gomp_work_share_init_done if gomp_work_share_start returned true.
1454         Don't unlock ws->lock.
1455         * work.c: Include stddef.h.
1456         (free_work_share): Use work_share_list_free_lock instead
1457         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1458         Call gomp_fini_work_share and then either free ws if orphaned, or
1459         put it into work_share_list_free list of the current team.
1460         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1461         functions.
1462         (gomp_work_share_start, gomp_work_share_end,
1463         gomp_work_share_end_nowait): Rewritten.
1464         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1465         (openmp_version): Set to 200805.
1466         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1467         omp_sched_guided, omp_sched_auto): New parameters.
1468         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1469         omp_set_max_active_levels, omp_get_max_active_levels,
1470         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1471         omp_get_active_level): New interfaces.
1472         * omp_lib.h.in (openmp_version): Set to 200805.
1473         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1474         omp_sched_guided, omp_sched_auto): New parameters.
1475         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1476         omp_set_max_active_levels, omp_get_max_active_levels,
1477         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1478         omp_get_active_level): New externals.
1479         * loop.c: Include limits.h.
1480         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1481         GFS_AUTO.
1482         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1483         Likewise.  Use gomp_icv.
1484         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1485         ts.static_trip here.
1486         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1487         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1488         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1489         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1490         don't unlock ws->lock, otherwise lock it.
1491         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1492         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1493         (gomp_parallel_loop_start): Call gomp_new_team instead of
1494         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1495         Adjust gomp_team_start caller.  Pass 0 as second argument to
1496         gomp_resolve_num_threads.
1497         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1498         If adding ws->chunk_size nthreads + 1 times after end won't
1499         overflow, set ws->mode to 1.
1500         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1501         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1502         GOMP_loop_ull_ordered_static_start,
1503         GOMP_loop_ull_ordered_dynamic_start,
1504         GOMP_loop_ull_ordered_guided_start,
1505         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1506         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1507         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1508         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1509         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1510         prototypes.
1511         * libgomp.map: Export lock routines also @@OMP_2.0.
1512         (GOMP_loop_ordered_dynamic_first,
1513         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1514         GOMP_loop_ordered_static_first): Remove.
1515         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1516         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1517         GOMP_loop_ull_ordered_dynamic_next,
1518         GOMP_loop_ull_ordered_dynamic_start,
1519         GOMP_loop_ull_ordered_guided_next,
1520         GOMP_loop_ull_ordered_guided_start,
1521         GOMP_loop_ull_ordered_runtime_next,
1522         GOMP_loop_ull_ordered_runtime_start,
1523         GOMP_loop_ull_ordered_static_next,
1524         GOMP_loop_ull_ordered_static_start,
1525         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1526         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1527         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1528         (omp_set_schedule, omp_get_schedule,
1529         omp_get_thread_limit, omp_set_max_active_levels,
1530         omp_get_max_active_levels, omp_get_level,
1531         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1532         omp_set_schedule_, omp_set_schedule_8_,
1533         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1534         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1535         omp_get_max_active_levels_, omp_get_level_,
1536         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1537         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1538         New exports @@OMP_3.0.
1539         * omp.h.in (omp_sched_t): New type.
1540         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1541         omp_set_max_active_levels, omp_get_max_active_levels,
1542         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1543         omp_get_active_level): New prototypes.
1544         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1545         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1546         gomp_thread_limit_var, gomp_remaining_threads_count,
1547         gomp_remaining_threads_lock): New variables.
1548         (parse_spincount): New function.
1549         (initialize_env): Call gomp_init_num_threads unconditionally.
1550         Initialize gomp_available_cpus.  Call parse_spincount,
1551         initialize gomp_{,throttled_}spin_count_var
1552         depending on presence and value of OMP_WAIT_POLICY and
1553         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1554         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1555         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1556         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1557         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1558         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1559         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1560         (gomp_global_icv): New.
1561         (parse_schedule): Use it.  Parse "auto".
1562         (omp_set_num_threads): Use gomp_icv.
1563         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1564         Likewise.
1565         (omp_get_max_threads): Move from parallel.c.
1566         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1567         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1568         add ialias.
1569         (parse_stacksize, parse_wait_policy): New functions.
1570         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1571         both wrappers for compatibility and new locks.
1572         (omp_set_schedule, omp_get_schedule,
1573         omp_get_thread_limit, omp_set_max_active_levels,
1574         omp_get_max_active_levels, omp_get_level,
1575         omp_get_ancestor_thread_num, omp_get_team_size,
1576         omp_get_active_level): New ialias_redirect.
1577         (omp_set_schedule_, omp_set_schedule_8_,
1578         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1579         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1580         omp_get_max_active_levels_, omp_get_level_,
1581         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1582         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1583         New functions.
1584         * parallel.c: Include limits.h.
1585         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1586         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1587         argument to gomp_team_start.  Pass 0 as second argument to
1588         gomp_resolve_num_threads.
1589         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1590         if gomp_thread_limit_var != ULONG_MAX.
1591         (omp_in_parallel): Implement using ts.active_level.
1592         (omp_get_max_threads): Move to env.c.
1593         (omp_get_level, omp_get_ancestor_thread_num,
1594         omp_get_team_size, omp_get_active_level): New functions,
1595         add ialias.
1596         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1597         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1598         gomp_iter_dynamic_next instead of the _locked variant and don't take
1599         lock around it, otherwise acquire it before calling
1600         gomp_iter_dynamic_next_locked.
1601         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1602         gomp_iter_dynamic_next instead of the _locked variant and don't take
1603         lock around it.
1604         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1605         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1606         Adjust gomp_team_start caller.  Pass count as second argument to
1607         gomp_resolve_num_threads, don't adjust num_threads after the call.
1608         Use gomp_icv.
1609         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1610         ws->chunk_size by incr.
1611         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1612         code.
1613         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1614         types.
1615         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1616         (omp_check_defines): Check even the compat defines.
1617         * config/linux/ptrlock.c: New file.
1618         * config/linux/ptrlock.h: New file.
1619         * config/linux/wait.h: New file.
1620         * config/posix/ptrlock.c: New file.
1621         * config/posix/ptrlock.h: New file.
1622         * config/linux/bar.h (gomp_team_barrier_wait,
1623         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1624         (gomp_team_barrier_set_task_pending,
1625         gomp_team_barrier_clear_task_pending,
1626         gomp_team_barrier_set_waiting_for_tasks,
1627         gomp_team_barrier_waiting_for_tasks,
1628         gomp_team_barrier_done): New inlines.
1629         (gomp_barrier_t): Rewritten.
1630         (gomp_barrier_state_t): New typedef.
1631         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1632         gomp_barrier_wait_start): Rewritten.
1633         (gomp_barrier_wait_end): Change second argument to
1634         gomp_barrier_state_t.
1635         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1636         inlines.
1637         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1638         futex.h.
1639         (gomp_barrier_wait_end): Rewritten.
1640         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1641         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1642         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1643         (gomp_barrier_state_t): New typedef.
1644         (gomp_team_barrier_wait,
1645         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1646         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1647         into the return value.  Return gomp_barrier_state_t.
1648         (gomp_team_barrier_set_task_pending,
1649         gomp_team_barrier_clear_task_pending,
1650         gomp_team_barrier_set_waiting_for_tasks,
1651         gomp_team_barrier_waiting_for_tasks,
1652         gomp_team_barrier_done): New inlines.
1653         (gomp_barrier_wait_end): Change second argument to
1654         gomp_barrier_state_t.
1655         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1656         inlines.
1657         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1658         (gomp_barrier_wait_end): Change second argument to
1659         gomp_barrier_state_t.
1660         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1661         gomp_team_barrier_wake): New functions.
1662         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1663         futex.h.
1664         (gomp_futex_wake, gomp_futex_wait): New variables.
1665         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1666         * config/linux/lock.c: Rewrite to make locks task owned,
1667         for backwards compatibility provide the old entrypoints
1668         if symbol versioning.  Include wait.h instead of libgomp.h and
1669         futex.h.
1670         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1671         * config/posix95/lock.c: Rewrite to make locks task owned,
1672         for backwards compatibility provide the old entrypoints
1673         if symbol versioning.
1674         * config/posix/lock.c: Rewrite to make locks task owned,
1675         for backwards compatibility provide the old entrypoints
1676         if symbol versioning.
1677         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1678         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1679         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1680         * config/linux/powerpc/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/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1686         (futex_wake, futex_wait): If ENOSYS was returned, clear
1687         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1688         (cpu_relax, atomic_write_barrier): New static inlines.
1689         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1690         (sys_futex0): Return error code.
1691         (futex_wake, futex_wait): If ENOSYS was returned, clear
1692         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1693         (cpu_relax, atomic_write_barrier): New static inlines.
1694         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1695         (sys_futex0): Return error code.
1696         (futex_wake, futex_wait): If ENOSYS was returned, clear
1697         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1698         (cpu_relax, atomic_write_barrier): New static inlines.
1699         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1700         (sys_futex0): Return error code.
1701         (futex_wake, futex_wait): If ENOSYS was returned, clear
1702         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1703         (cpu_relax, atomic_write_barrier): New static inlines.
1704         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1705         (sys_futex0): Return error code.
1706         (futex_wake, futex_wait): If ENOSYS was returned, clear
1707         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1708         (cpu_relax, atomic_write_barrier): New static inlines.
1709         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1710         futex.h.
1711         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1712         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1713         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1714         types.
1715         (omp_nest_lock_t): Change owner into void *, add lock field.
1716         * config/posix95/omp-lock.h: Include semaphore.h.
1717         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1718         (omp_lock_t): Use sem_t instead of mutex if semaphores
1719         aren't broken.
1720         (omp_nest_lock_t): Likewise.  Change owner to void *.
1721         * config/posix/omp-lock.h: Include semaphore.h.
1722         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1723         (omp_lock_t): Use sem_t instead of mutex if semaphores
1724         aren't broken.
1725         (omp_nest_lock_t): Likewise.  Add owner field.
1727 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1729         * testsuite/libgomp.c/collapse-1.c: New test.
1730         * testsuite/libgomp.c/collapse-2.c: New test.
1731         * testsuite/libgomp.c/collapse-3.c: New test.
1732         * testsuite/libgomp.c/icv-1.c: New test.
1733         * testsuite/libgomp.c/icv-2.c: New test.
1734         * testsuite/libgomp.c/lib-2.c: New test.
1735         * testsuite/libgomp.c/lock-1.c: New test.
1736         * testsuite/libgomp.c/lock-2.c: New test.
1737         * testsuite/libgomp.c/lock-3.c: New test.
1738         * testsuite/libgomp.c/loop-4.c: New test.
1739         * testsuite/libgomp.c/loop-5.c: New test.
1740         * testsuite/libgomp.c/loop-6.c: New test.
1741         * testsuite/libgomp.c/loop-7.c: New test.
1742         * testsuite/libgomp.c/loop-8.c: New test.
1743         * testsuite/libgomp.c/loop-9.c: New test.
1744         * testsuite/libgomp.c/nested-3.c: New test.
1745         * testsuite/libgomp.c/nestedfn-6.c: New test.
1746         * testsuite/libgomp.c/sort-1.c: New test.
1747         * testsuite/libgomp.c/task-1.c: New test.
1748         * testsuite/libgomp.c/task-2.c: New test.
1749         * testsuite/libgomp.c/task-3.c: New test.
1750         * testsuite/libgomp.c/task-4.c: New test.
1751         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1752         to C++ testsuite default compiler options.
1753         * testsuite/libgomp.c++/collapse-1.C: New test.
1754         * testsuite/libgomp.c++/collapse-2.C: New test.
1755         * testsuite/libgomp.c++/ctor-10.C: New test.
1756         * testsuite/libgomp.c++/for-1.C: New test.
1757         * testsuite/libgomp.c++/for-2.C: New test.
1758         * testsuite/libgomp.c++/for-3.C: New test.
1759         * testsuite/libgomp.c++/for-4.C: New test.
1760         * testsuite/libgomp.c++/for-5.C: New test.
1761         * testsuite/libgomp.c++/loop-8.C: New test.
1762         * testsuite/libgomp.c++/loop-9.C: New test.
1763         * testsuite/libgomp.c++/loop-10.C: New test.
1764         * testsuite/libgomp.c++/task-1.C: New test.
1765         * testsuite/libgomp.c++/task-2.C: New test.
1766         * testsuite/libgomp.c++/task-3.C: New test.
1767         * testsuite/libgomp.c++/task-4.C: New test.
1768         * testsuite/libgomp.c++/task-5.C: New test.
1769         * testsuite/libgomp.c++/task-6.C: New test.
1770         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1771         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1772         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1773         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1774         * testsuite/libgomp.fortran/collapse1.f90: New test.
1775         * testsuite/libgomp.fortran/collapse2.f90: New test.
1776         * testsuite/libgomp.fortran/collapse3.f90: New test.
1777         * testsuite/libgomp.fortran/collapse4.f90: New test.
1778         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1779         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1780         * testsuite/libgomp.fortran/lib4.f90: New test.
1781         * testsuite/libgomp.fortran/lock-1.f90: New test.
1782         * testsuite/libgomp.fortran/lock-2.f90: New test.
1783         * testsuite/libgomp.fortran/nested1.f90: New test.
1784         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1785         * testsuite/libgomp.fortran/strassen.f90: New test.
1786         * testsuite/libgomp.fortran/tabs1.f90: New test.
1787         * testsuite/libgomp.fortran/tabs2.f: New test.
1788         * testsuite/libgomp.fortran/task1.f90: New test.
1789         * testsuite/libgomp.fortran/task2.f90: New test.
1790         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1791         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1792         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1793         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1794         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1796 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1798         PR c++/36308
1799         * testsuite/libgomp.c++/ctor-11.C: New test.
1800         * testsuite/libgomp.c++/ctor-12.C: New test.
1802 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1804         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1806 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1808         PR middle-end/36106
1809         * testsuite/libgomp.c/atomic-5.c: New test.
1810         * testsuite/libgomp.c/atomic-6.c: New test.
1811         * testsuite/libgomp.c/autopar-1.c: New test.
1813 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1815         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1816         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1817         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1818         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1819         * configure: Regenerate.
1820         * Makefile.in, testsuite/Makefile.in: Likewise.
1822 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1824         PR bootstrap/35457
1825         * aclocal.m4: Regenerate.
1826         * configure: Regenerate.
1828 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1830         PR middle-end/35611
1831         * testsuite/libgomp.c/atomic-4.c: New test.
1833         PR libgomp/35625
1834         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1835         (gomp_iter_guided_next): Likewise.
1836         * testsuite/libgomp.c/pr35625.c: New test.
1838 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1840         * aclocal.m4: Regenerate.
1841         * configure: Likewise.
1842         * Makefile.in: Likewise.
1843         * testsuite/Makefile.in: Likewise.
1845 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1847         PR middle-end/35185
1848         * testsuite/libgomp.c++/pr35185.C: New test.
1850 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1852         PR middle-end/35549
1853         * testsuite/libgomp.c/pr35549.c: New test.
1855 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1857         * testsuite/libgomp.c/atomic-3.c: New test.
1859 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1861         PR fortran/33197
1862         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1863         .F08 file suffixes.
1865 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1867         PR libgomp/33131
1868         * configure.ac: Add ACX_HEADER_STRING.
1869         * env.c: Include strings.h.
1870         * aclocal.m4: Regenerate.
1871         * config.h.in: Regenerate.
1872         * configure: Regenerate.
1873         * Makefile.in: Regenerate.
1874         * testsuite/Makefile.in: Regenerate.
1876 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1878         PR middle-end/35196
1879         * testsuite/libgomp.c/pr35196.c: New test.
1881         PR middle-end/35130
1882         * testsuite/libgomp.fortran/pr35130.f90: New test.
1883         * testsuite/libgomp.c/pr35130.c: New test.
1885 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1887         PR middle-end/33880
1888         * testsuite/libgomp.c/pr33880.c: New test.
1889         * testsuite/libgomp.fortran/pr33880.f90: New test.
1891 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1893         * configure: Regenerate.
1895 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1897         * configure.ac: Move futex checking into ../config/futex.m4.
1898         * configure: Rebuilt.
1899         * aclocal.m4: Rebuilt.
1900         * Makefile.in: Rebuilt.
1902         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1903         2007-10-15 ../config/tls.m4 change.
1905 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1907         PR c++/34513
1908         * testsuite/libgomp.c/pr34513.c: New test.
1909         * testsuite/libgomp.c++/pr34513.C: New test.
1911 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1913         PR target/32765
1914         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1916 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1918         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1920 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1922         * testsuite/libgomp.c/private-1.c: New test.
1924 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1925             Paolo Bonzini  <bonzini@gnu.org>
1927         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1928         instead of 'VPATH ='.
1929         * Makefile.in: Regenerate.
1931 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1933         * configure.ac: Adjust makeinfo version check.
1934         * configure: Regenerate.
1936 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1938         PR fortran/34020
1939         * testsuite/libgomp.fortran/pr34020.f90: New test.
1941 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1943         PR c++/33894
1944         * testsuite/libgomp.c++/atomic-1.C: New test.
1946 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1948         PR libgomp/33275
1949         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1950         Make x and y integers rather than (implicit) reals.  Add private (j)
1951         clause to the last omp parallel.
1953 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1955         * configure: Regenerate following changes to ../config/tls.m4.
1957 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1959         * testsuite/libgomp.fortran/stack.f90: New test.
1961 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1963         * config/mingw32/proc.c: New file.
1965 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1967         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1968         (main): Use __get_cpuid to get i386 target fetaures.
1969         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1970         (main): Use __get_cpuid to get x86_64 target fetaures.
1972 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1974         PR target/32765
1975         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1976         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1978 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1980         PR fortran/32550
1981         * testsuite/libgomp.fortran/pr32550.f90: New test.
1982         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1984 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1986         * aclocal.m4: Regenerated.
1988 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1990         PR fortran/32359
1991         * testsuite/libgomp.fortran/pr32359.f90: New.
1993 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1995         PR libgomp/32468
1996         * sections.c (GOMP_parallel_sections_start): Only decrease
1997         number of threads to COUNT if dyn_var is true.
1998         * testsuite/libgomp.c/pr32468.c: New test.
2000 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2002         PR libgomp/26308
2003         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2005 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2007         PR middle-end/32362
2008         * testsuite/libgomp.c/pr32362-1.c: New test.
2009         * testsuite/libgomp.c/pr32362-2.c: New test.
2010         * testsuite/libgomp.c/pr32362-3.c: New test.
2012 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2014         * team.c (gomp_team_start): Fix setting up thread_attr
2015         stack size.
2017 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2019         * configure: Regenerate.
2021 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2023         * Makefile.in: Regenerate.
2024         * configure: Regenerate.
2025         * aclocal.m4: Regenerate.
2026         * testsuite/Makefile.in: Regenerate.
2028 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2030         * config/linux/proc.c: New file.
2032         PR libgomp/28482
2033         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2035 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2037         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2039 2007-04-16  Matthias Klose  <doko@debian.org>
2041         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2042         flags if not building with -m64.
2043         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2044         flag for i?86-*-* targets, if current target matches -m64.
2046 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2048         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2049         * Makefile.in: Regenerate.
2051 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2053         PR testsuite/31369
2054         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2055         ld_library_path.
2056         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2058 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2060         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2061         decls.
2062         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2063         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2064         (parse_affinity): New function.
2065         (initialize_env): Call it and gomp_init_affinity.
2066         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2067         create new pthread_attr_t and call gomp_init_thread_affinity
2068         on it for each thread before passing the attribute to pthread_create.
2069         * config/linux/affinity.c: New file.
2070         * config/posix/affinity.c: New file.
2071         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2072         * configure: Rebuilt.
2073         * config.h.in: Rebuilt.
2074         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2075         * Makefile.in: Rebuilt.
2077 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2079         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2080         *-*-darwin*.
2081         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2082         and use it if found.
2084 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2086         * testsuite/config/default.exp: New file.
2087         * testsuite/lib/libgomp.exp: New file.
2088         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2089         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2090         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2091         (libgomp_load): Remove.
2092         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2093         always_ld_library_path, not ld_library_path.  Set additional_flags
2094         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2095         (target_compile): Do not call libgomp_init.  Append lang_library_path
2096         and lang_link_flags to options.
2097         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2098         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2099         here.
2100         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2101         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2102         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2103         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2104         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2105         CX8 flag.
2106         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2107         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2108         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2109         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2110         * testsuite/libgomp.c/atomic-10.c: Ditto.
2112 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2114         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2115         dg-final cleanup-modules line.
2116         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2117         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2118         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2119         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2120         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2121         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2122         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2124 2007-03-18  Andreas Schwab  <schwab@suse.de>
2126         * acinclude.m4: Adjust regular expression for ld version
2127         extraction.
2128         * configure: Regenerate.
2130 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2132         * Makefile.am: Add install-pdf target as copied from
2133         automake v1.10 rules.
2134         * Makefile.in: Regenerate
2136 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2138         PR libgomp/28486
2139         * configure: Regenerate.
2141         PR c++/30703
2142         * testsuite/libgomp.c++/pr30703.C: New test.
2144 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2146         Revert:
2147         2006-07-05  Eric Christopher  <echristo@apple.com>
2148         * configure.ac: Depend addition of -pthread on host OS.
2149         * configure: Regenerate.
2151 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2153         * libgomp.texi: Fix spacing after abbreviations.
2155 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2157         PR libgomp/30546
2158         * configure.ac: Add check for makeinfo
2159         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2160         if an appropiate version of makeinfo is found.
2161         * aclocal.m4: Regenerated.
2162         * configure: Regenerated.
2163         * Makefile.in: Regenerated.
2164         * testsuite/Makefile.in: Regenerated.
2166 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2168         PR libgomp/30540
2169         * libgomp.texi: More about implementation-dependent settings.
2171 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2173         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2175 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2177         PR middle-end/30494
2178         * testsuite/libgomp.c/pr30494.c: New test.
2180 2007-01-15  Tom Tromey  <tromey@redhat.com>
2182         * configure: Rebuilt.
2183         * configure.ac: Fixed comment.
2185 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2187         * libgomp.texi: Document implementation specific default values of
2188         environment variables.
2190 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2192         PR libgomp/28209
2193         * libgomp.texi: New file.
2194         * configure.ac: Add --enable-generated-files-in-srcdir option.
2195         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2196         files to srcdir.
2197         * Makefile.in: Regenerated.
2198         * config.h.in: Regenerated.
2199         * testsuite/Makefile.in: Regenerated.
2200         * NOTES: Removed.
2202 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2204         PR libgomp/29949
2205         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2207 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2209         * configure: Regenerate.
2211 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2213         PR libgomp/29947
2214         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2215         start if there shouldn't be any loop iterations.
2216         (gomp_loop_ordered_static_start): Remove start == end test.
2217         * testsuite/libgomp.c/pr29947-1.c: New test.
2218         * testsuite/libgomp.c/pr29947-2.c: New test.
2220 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2222         * configure.tgt: Force initial-exec TLS model on Linux only.
2224 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2226         * configure: Regenerated.
2228 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2230         * env.c (parse_schedule): Reject out of range values.
2231         (parse_unsigned_long): Reject out of range, negative or zero values.
2233 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2235         PR fortran/29629
2236         * testsuite/libgomp.fortran/pr29629.f90: New test.
2238 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2240         PR libgomp/29494
2241         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2242         * config/posix95: New directory.
2243         * config/posix95/omp-lock.h: New file.
2244         * config/posix95/lock.c: Likewise.
2246 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2248         * aclocal.m4: Regenerate.
2249         * configure: Regenerate.
2251 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2253         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2254         '<' to '<='.
2256 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2258         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2259         test.
2260         * configure: Regenerate.
2261         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2263 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2265         PR middle-end/25261
2266         PR middle-end/28790
2267         * testsuite/libgomp.c/nestedfn-4.c: New test.
2268         * testsuite/libgomp.c/nestedfn-5.c: New test.
2269         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2271         PR fortran/29097
2272         * testsuite/libgomp.fortran/condinc1.f: New test.
2273         * testsuite/libgomp.fortran/condinc2.f: New test.
2274         * testsuite/libgomp.fortran/condinc3.f90: New test.
2275         * testsuite/libgomp.fortran/condinc4.f90: New test.
2276         * testsuite/libgomp.fortran/condinc1.inc: New file.
2278 2006-09-18  Tom Tromey  <tromey@redhat.com>
2280         * configure: Rebuilt.
2282 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2284         PR c/28768
2285         PR preprocessor/14634
2286         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2287         to AC_DEFINE.
2288         * configure: Regenerate.
2290 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2292         * testsuite/libgomp.fortran/reduction3.f90: Change
2293         -2147483648 to -huge(i)-1 to avoid overflow.
2294         * testsuite/libgomp.fortran/reduction4.f90: Change
2295         Z'ffffffff' to not(0) to avoid overflow.
2297 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2299         PR libgomp/25938
2300         * Makefile.am (libsubincludedir): New.
2301         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2302         * Makefile.in: Regenerate.
2304 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2306         PR libgomp/28725
2307         * env.c: Include ctype.h.
2308         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2309         leading and/or trailing whitespace and compare strings case
2310         insensitively.
2312 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2314         PR fortran/28390
2315         * testsuite/libgomp.fortran/pr28390.f: New test.
2317 2006-07-05  Eric Christopher  <echristo@apple.com>
2319         * configure.ac: Depend addition of -pthread on host OS.
2320         * configure: Regenerate.
2322 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2324         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2325         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2326         defined.
2328 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2330         PR libgomp/26175
2331         PR libgomp/26477
2332         * configure.ac: If neither --enable-linux-futex nor
2333         --disable-linux-futex is passed, determine the default by checking
2334         for compiling and/or running against NPTL.  With --enable-linux-futex,
2335         check if SYS_gettid and SYS_futex are defined.
2336         * configure: Rebuilt.
2338 2006-06-14  Richard Henderson  <rth@redhat.com>
2340         PR libgomp/28008
2341         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2342         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2344 2006-06-09  Richard Henderson  <rth@redhat.com>
2346         * env.c (gomp_nthreads_var): Change to unsigned long.
2347         (gomp_run_sched_chunk): Likewise.
2348         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2349         (initialize_env): Initialize gomp_thread_attr.
2350         * libgomp.h (gomp_nthreads_var): Update decl.
2351         (gomp_run_sched_chunk): Likewise.
2352         (gomp_thread_attr): Declare.
2353         * team.c (gomp_thread_attr): Export.
2354         (initialize_team): Don't initialize it.
2356 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2358         PR fortran/27916
2359         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2360         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2362 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2364         * config/mingw32/time.c: New file.
2365         * configure.tgt: Use it.
2367 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2369         * Makefile.am: Add install-html target. Add install-html to .PHONY
2370         * Makefile.in: Regenerate.
2372 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2374         PR libgomp/27612
2375         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2376         * testsuite/libgomp.c/critical-1.c: Likewise.
2377         * testsuite/libgomp.c/loop-1.c: Likewise.
2378         * testsuite/libgomp.c/loop-2.c: Likewise.
2379         * testsuite/libgomp.c/single-1.c: Likewise.
2380         * testsuite/libgomp.c/ordered-1.c: Likewise.
2381         * testsuite/libgomp.c/ordered-2.c: Likewise.
2383 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2385         PR middle-end/27416
2386         * libgomp.fortran/pr27416-1.f90: New test.
2388 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2390         PR fortran/27395
2391         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2392         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2394 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2396         PR c++/26943
2397         * testsuite/libgomp.c/pr26943-1.c: New test.
2398         * testsuite/libgomp.c/pr26943-2.c: New test.
2399         * testsuite/libgomp.c/pr26943-3.c: New test.
2400         * testsuite/libgomp.c/pr26943-4.c: New test.
2401         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2402         * testsuite/libgomp.c++/pr26943.C: New test.
2404 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2406         PR middle-end/27337
2407         * testsuite/libgomp.c++/pr27337.C: New test.
2409 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2411         PR c/26171
2412         * testsuite/libgomp.c/pr26171.c: New test.
2414 2006-04-25  Richard Henderson  <rth@redhat.com>
2416         PR libgomp/25865
2417         * configure.ac: Use GCC_CHECK_TLS.
2418         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2419         * Makefile.in, aclocal.m4, configure: Regenerate.
2421 2006-04-10  Matthias Klose  <doko@debian.org>
2423         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2424         directory names containing underscores.
2426 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2428         PR c++/26691
2429         * testsuite/libgomp.c++/pr26691.C: New test.
2431 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2433         * testsuite/libgomp.fortran/retval2.f90: New test.
2435 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2437         * testsuite/libgomp.c++: New directory.
2439 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2441         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2442         * config/posix/sem.c: Implement the above.
2444 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2446         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2447         define HAVE_BROKEN_POSIX_SEMAPHORES.
2448         * configure: Rebuilt.
2449         * config.h.in: Rebuilt.
2451 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2453         PR bootstrap/26161
2454         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2455         for the other pthread check.
2456         * configure: Regenerate.
2457         * config.h.in: Regenerate.
2459 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2461         PR libgomp/25938
2462         PR libgomp/25984
2463         * Makefile.am (fincludedir): New variable.
2464         (nodist_include_HEADERS): Remove Fortran files.
2465         (nodist_finclude_HEADERS): New variable.
2466         * Makefile.in: Regenerated.
2468 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2470         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2471         Remove tests for returning assumed character length arrays.
2473 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2474             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2476         PR libgomp/25936
2477         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2479 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2481         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2483 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2485         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2486         part of LD_LIBRARY_PATH manually.
2488 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2490         PR libgomp/25852
2491         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2492         libgomp_init.
2494 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2496         PR libgomp/25884
2497         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2498         * configure.ac (PERL): Don't set.
2499         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2500         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2501         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2502         * omp.h.in: Wrap the new configure substitutions with @ characters.
2503         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2504         * aclocal.m4, configure, Makefile.in: Regenerate.
2505         * mkomp_h.pl: Delete.
2507 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2509         PR libgomp/25259
2510         * configure.ac: Use GCC_HEADER_STDINT.
2511         * libgomp.h: Include gstdint.h.
2512         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2513         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2515 2006-01-24  Richard Henderson  <rth@redhat.com>
2517         PR libgomp/25942
2518         * configure.ac: Add AM_MAINTAINER_MODE.
2519         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2521 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2523         * Makefile.in: Regenerate.
2524         * testsuite/Makefile.in: Regenerate.
2525         * aclocal.m4: Regenerate.
2527 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2529         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2530         Solaris.
2531         * configure.ac: Add check for loadavg.h.
2532         (link_gomp): Adjust comment.
2533         * configure: Regenerate.
2534         * config.h.in: Regenerate.
2536 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2538         PR libgomp/25877
2539         * configure.ac: Remove check for alloca.h.
2540         * configure: Regenerate.
2541         * config.h.in: Regenerate.
2542         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2543         * team.c: Remove use of alloca.h.
2544         Call gomp_alloca instead of alloca.
2546 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2548         PR libgomp/25877
2549         * team.c: Add include of alloca.h.
2550         * configure.ac: Add check for alloca.h.
2551         * configure: Regenerate.
2552         * config.h.in: Regenerate.
2554 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2556         PR fortran/25219
2557         * testsuite/libgomp.fortran/pr25219.f90: New test.
2559 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2561         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2562         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2563         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2564         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2565         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2566         testsuite/libgomp.fortran/threadprivate1.f90,
2567         testsuite/libgomp.fortran/threadprivate2.f90,
2568         testsuite/libgomp.fortran/threadprivate3.f90,
2569         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2570         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2571         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2572         effective-target to TLS runtime.
2574         * testsuite/libgomp.fortran/pr25162.f: Require
2575         effective-target TLS runtime.
2577 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2579         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2580         * testsuite/libgomp.c/nestedfn-3.c: New test.
2582 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2584         PR fortran/25162
2585         * testsuite/libgomp.fortran/pr25162.f: New test.
2587 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2589         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2590         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2592 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2594         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2595         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2596         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2597         single.c, team.c, work.c, config/linux/alpha/futex.h,
2598         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2599         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2600         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2601         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2602         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2603         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2604         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2605         FSF address.
2607 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2609         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2610         to nodist_noinst_HEADERS.
2611         * Makefile.in: Rebuilt.
2613         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2614         add integer count field.
2615         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2616         omp_nest_lock_t type change.
2617         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2618         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2619         Increment count.
2620         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2621         Decrement count.
2622         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2623         Increment count if successful and return the new nesting level.
2624         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2625         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2626         * testsuite/libgomp.c/lib-1.c: New test.
2627         * testsuite/libgomp.fortran/lib1.f90: New test.
2628         * testsuite/libgomp.fortran/lib2.f: New test.
2629         * testsuite/libgomp.fortran/lib3.f: New test.
2631 2005-11-17  Richard Henderson  <rth@redhat.com>
2633         PR 24845
2634         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2635         * configure.ac (link_gomp): New.  Substitute it.
2636         (AC_CONFIG_FILES): Add libgomp.spec.
2637         * libgomp.spec.in: New file.
2638         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2639         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2641 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2643         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2644         reduction(-:var) behaving the same as reduction(+:var).
2645         * testsuite/libgomp.c/reduction-4.c: New test.
2647 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2649         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2650         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2651         testsuite/libgomp.c/copyin-3.c,
2652         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2653         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2654         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2655         testsuite/libgomp.c++/pr24455.C,
2656         testsuite/libgomp.fortran/threadprivate1.f90,
2657         testsuite/libgomp.fortran/threadprivate2.f90,
2658         testsuite/libgomp.fortran/threadprivate3.f90,
2659         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2660         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2661         testsuite/libgomp.fortran/omp_parse3.f90: Require
2662         effective-target TLS.
2664 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2666         * HEADER: Remove.
2668 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2670         PR libgomp/24797
2671         * team.c (initialize_team): Pass NULL rather than free as
2672         pthread_key_create destructor.  Initialize thread specific data
2673         pointer in initial thread to a static local variable rather than
2674         malloced memory.
2676 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2678         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2679         its location to ld_library_path.
2681 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2683         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2685 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2687         * testsuite/libgomp.c: Rename from libgomp.dg.
2689 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2691         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2692         threadprivate variable 'i'.
2694 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2696         * config/linux/s390/futex.h: New file.
2697         * configure.tgt: Use it.
2699         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2700         before the parallel.
2702 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2704         PR c++/24734
2705         * testsuite/libgomp.c++/master-1.C: New test.
2707 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2709         * testsuite/libgomp.dg/copyin-3.c: New test.
2711 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2713         * testsuite/libgomp.fortran/retval1.f90: New test.
2714         * testsuite/libgomp.fortran/vla7.f90: New test.
2716 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2718         * testsuite/libgomp.fortran/vla2.f90: New test.
2719         * testsuite/libgomp.fortran/vla3.f90: New test.
2720         * testsuite/libgomp.fortran/vla4.f90: New test.
2721         * testsuite/libgomp.fortran/vla5.f90: New test.
2722         * testsuite/libgomp.fortran/vla6.f90: New test.
2724 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2726         * config/linux/sparc/futex.h: New file.
2727         * configure.tgt: Use it.
2728         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2730         * critical.c: Include stdlib.h.
2731         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2732         ignoring return value.
2733         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2734         LIBGOMP_CHECK_SYNC_BUILTINS check.
2735         * configure: Rebuilt.
2737 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2739         * testsuite/libgomp.fortran/vla1.f90: New test.
2741 2005-10-31  Richard Henderson  <rth@redhat.com>
2743         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2744         setting 's' in different threads.
2746 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2748         * libgomp.h (attribute_hidden, ialias): Define.
2749         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2750         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2751         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2752         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2753         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2754         omp_test_lock, omp_test_nest_lock): Likewise.
2755         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2756         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2757         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2758         omp_test_lock, omp_test_nest_lock): Likewise.
2759         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2760         omp_get_dynamic, omp_get_nested): Likewise.
2761         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2762         omp_get_thread_num, omp_in_parallel): Likewise.
2763         * fortran.c (ialias_redirect): Define.
2764         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2765         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2766         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2767         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2768         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2769         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2770         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2771         omp_get_wtime): Add ialias_redirect.
2773 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2775         * fortran.c: Include stdlib.h.
2777 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2779         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2780         * Makefile.in: Regenerated.
2782 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2784         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2785         * libgomp_f.h.in (omp_check_defines): New function.
2786         * env.c: Include libgomp_f.h.
2787         (initialize_env): Call omp_check_defines.
2789         * testsuite/libgomp.dg/copyin-2.c: New test.
2790         * testsuite/libgomp.c++/copyin-2.C: New test.
2791         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2793         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2794         * testsuite/libgomp.fortran/sharing2.f90: New test.
2796         * testsuite/libgomp.dg/copyin-1.c: New test.
2797         * testsuite/libgomp.c++/copyin-1.C: New test.
2799 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2801         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2803         * testsuite/libgomp.fortran/workshare1.f90: New test.
2805         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2806         only test.
2807         * libgomp.fortran/sharing1.f90: New test.
2809 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2811         PR c++/24502
2812         * testsuite/libgomp.c++/loop-7.C: New test.
2814         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2816         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2817         * testsuite/libgomp.fortran/reduction6.f90: New test.
2818         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2820 2005-10-23  Richard Henderson  <rth@redhat.com>
2822         * testsuite/libgomp.c++/ctor-1.C: New.
2823         * testsuite/libgomp.c++/ctor-2.C: New.
2824         * testsuite/libgomp.c++/ctor-3.C: New.
2825         * testsuite/libgomp.c++/ctor-4.C: New.
2826         * testsuite/libgomp.c++/ctor-5.C: New.
2827         * testsuite/libgomp.c++/ctor-6.C: New.
2828         * testsuite/libgomp.c++/ctor-7.C: New.
2829         * testsuite/libgomp.c++/ctor-8.C: New.
2830         * testsuite/libgomp.c++/ctor-9.C: New.
2832 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2834         PR 24455
2835         * testsuite/libgomp.c++/pr24455-1.C: New test.
2836         * testsuite/libgomp.c++/pr24455.C: New test.
2837         * testsuite/libgomp.dg/pr24455-1.c: New test.
2838         * testsuite/libgomp.dg/pr24455.c: New test.
2840 2005-10-20  Richard Henderson  <rth@redhat.com>
2842         * testsuite/libgomp.c++/loop-6.C: New.
2843         * testsuite/libgomp.dg/loop-3.c: New.
2845 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2847         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2848         explicitly private.
2849         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2850         explicitly shared.
2852 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2854         * testsuite/libgomp.fortran/jacobi.f: New test.
2856 2005-10-19  Richard Henderson  <rth@redhat.com>
2858         * configure.tgt (i?86-linux): Default to with_arch instead of
2859         CFLAGS.  Add -mtune to match target_cpu.
2860         (x86_64-linux): Tune to i686.
2862         * fortran.c (omp_test_nest_lock_): Fix typo.
2864 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2866         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2867         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2868         * testsuite/libgomp.dg/ordered-3.c: New test.
2870         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2871         Remove volatile keyword.
2873         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2874         in COMMON block to avoid warnings on 64-bit targets.
2876 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2878         * testsuite/libgomp.dg/shared-3.c: New test.
2880 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2882         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2883         * testsuite/libgomp.fortran/reduction5.f90: New test.
2885 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2887         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2888         dg-options.
2889         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2890         flush loop now that __sync_synchronize has proper memory barrier.
2891         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2892         Add -ffixed-form to dg-options.
2894 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2896         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2897         from subdirectories.
2898         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2899         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2900         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2901         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2902         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2903         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2904         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2905         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2906         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2907         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2908         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2909         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2910         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2911         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2912         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2913         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2914         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2915         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2916         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2917         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2918         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2919         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2920         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2921         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2922         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2924 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2926         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2927         lang_library_path exists.  Use find instead of glob to gather tests.
2928         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2930 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2932         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2933         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2934         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2935         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2936         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2937         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2938         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2939         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2940         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2941         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2942         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2943         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2944         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2946 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2948         * testsuite/libgomp.dg/vla-1.c: New test.
2950         * testsuite/libgomp.fortran/reference2.f90: New test.
2952         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2953         declaration of omp_get_thread_num.
2954         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2955         use omp_lib.
2957         * testsuite/libgomp.fortran/reduction1.f90: New test.
2958         * testsuite/libgomp.fortran/reduction2.f90: New test.
2959         * testsuite/libgomp.fortran/reduction3.f90: New test.
2960         * testsuite/libgomp.fortran/reduction4.f90: New test.
2962 2005-10-13  Richard Henderson  <rth@redhat.com>
2964         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2965         * Makefile.in: Regenerate.
2966         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2967         * libgomp.h: Include bar.h.
2968         (struct gomp_barrier): Remove.
2969         (struct gomp_team): Add barrier.  Replace master_barrier with
2970         master_release.  Replace threads with ordered_release.
2971         (struct gomp_thread): Replace barrier with release.
2972         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2973         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2974         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2975         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2976         (GOMP_single_copy_end): Likewise.
2977         * team.c (gomp_threads_dock): New.
2978         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2979         (gomp_thread_start): Use gomp_barrier_wait.
2980         (new_team, free_team): Update for gomp_team changes.
2981         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2982         (gomp_team_end): Use gomp_barrier_wait.
2983         (initialize_team): Update for gomp_thread changes.
2984         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2985         (gomp_work_share_end_nowait): Use atomic ops when available.
2986         * config/linux/bar.c, config/linux/bar.h: New files.
2987         * config/posix/bar.c, config/posix/bar.h: New files.
2989 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2991         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2992         * testsuite/libgomp.dg/single-2.c: New test.
2994         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2995         lang_link_flags): Unset, so that they aren't inherited from previously
2996         sourced *.exp.
2998         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3000 2005-10-12  Richard Henderson  <rth@redhat.com>
3002         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3003         (libgomp_init): Use lang_test_file, lang_library_path, and
3004         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3006         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3007         (lang_test_file, lang_link_flags): New.
3008         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3010         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3011         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3012         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3013         testsuite/libgomp.c++/parallel-1.C,
3014         testsuite/libgomp.c++/reduction-1.C,
3015         testsuite/libgomp.c++/reduction-2.C,
3016         testsuite/libgomp.c++/reduction-3.C,
3017         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3018         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3019         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3020         New files, largely cribbed from the C testsuite.
3022 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3024         * testsuite/libgomp.fortran/character1.f90: New test.
3025         * testsuite/libgomp.fortran/character2.f90: New test.
3027         * testsuite/libgomp.dg/nested-1.c: New test.
3028         * testsuite/libgomp.dg/nested-2.c: New test.
3029         * testsuite/libgomp.fortran/do1.f90: New test.
3030         * testsuite/libgomp.fortran/do2.f90: New test.
3032         * testsuite/libgomp.fortran/reference1.f90: New test.
3034 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3036         * testsuite/libgomp.dg/reduction-1.c: New test.
3037         * testsuite/libgomp.dg/reduction-2.c: New test.
3038         * testsuite/libgomp.dg/reduction-3.c: New test.
3040 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3042         * testsuite/libgomp.dg/atomic-1.c: New test.
3043         * testsuite/libgomp.dg/atomic-2.c: New test.
3045 2005-10-09  Richard Henderson  <rth@redhat.com>
3047         * critical.c (atomic_lock): New.
3048         (initialize_critical): Initialize it.
3049         (GOMP_atomic_start, GOMP_atomic_end): New.
3050         * libgomp.map: Export them.
3051         * libgomp_g.h: Declare them.
3053         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3055 2005-10-02  Richard Henderson  <rth@redhat.com>
3057         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3058         to XCFLAGS instead of CFLAGS.
3060 2005-09-30  Richard Henderson  <rth@redhat.com>
3062         * configure.ac: Determine whether -pthread or -lpthread is needed.
3063         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3064         * Makefine.in, configure: Rebuild.
3066 2005-09-28  Richard Henderson  <rth@redhat.com>
3068         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3069         * testsuite/libgomp.dg/omp-single-3.c: New test.
3071 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3073         * testsuite/libgomp.dg/omp-single-2.c: New test.
3074         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3076 2005-09-27  Richard Henderson  <rth@redhat.com>
3078         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3079         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3081 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3083         * testsuite/libgomp.dg/omp-loop03.c: New test.
3085 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3087         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3089 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3091         * testsuite/libgomp.dg/omp-single-1.c: New test.
3092         * testsuite/libgomp.dg/shared-1.c: Return 0.
3093         Add prototype for abort.
3094         * testsuite/libgomp.dg/shared-2.c: Likewise.
3096 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3098         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3099         constructs.
3101 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3103         * testsuite/libgomp.dg/shared-1.c: New test.
3104         * testsuite/libgomp.dg/shared-2.c: New test.
3106 2005-09-24  Richard Henderson  <rth@redhat.com>
3108         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3110 2005-09-24  Richard Henderson  <rth@redhat.com>
3112         * iter.c (gomp_iter_static_next): Round up when computing number
3113         of iterations.  Don't bother distributing a remainder equally.
3115         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3116         Don't call srand.  Zero b before testing.
3117         (main): New.
3119 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3121         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3122         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3124 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3126         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3127         without !$omp end do, followed immediately by subroutine end.
3129 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3131         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3133 2005-09-22  Richard Henderson  <rth@redhat.com>
3135         * critical.c (GOMP_critical_name_start): Change argument to void**.
3136         Reuse the pointer space if the mutex fits.
3137         (GOMP_critical_name_end): Likewise.
3138         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3139         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3140         (GOMP_critical_name_end): Likewise.
3141         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3142         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3144 2005-09-20  Richard Henderson  <rth@redhat.com>
3146         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3147         (create_lock_lock): New.
3148         (initialize_critical): Initialize it.
3149         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3150         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3152 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3154         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3156 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3158         * testsuite/libgomp.dg/omp-loop01.c: New test.
3159         * testsuite/libgomp.dg/omp-loop02.c: New test.
3161 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3163         * configure.ac (AC_PROG_FC): Add.
3164         (USE_FORTRAN): New automake conditional.
3165         * configure: Rebuilt.
3166         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3167         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3168         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3169         Add rules to build them.
3170         * Makefile.in: Rebuilt.
3171         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3172         OMP_NEST_LOCK_KIND.
3173         * libgomp.map: Add Fortran wrappers.
3174         * libgomp_f.h.in: New file.
3175         * omp_lib.h.in: New file.
3176         * omp_lib.f90.in: New file.
3177         * fortran.c: New file.
3178         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3179         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3180         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3181         libgfortran has been built.
3182         * testsuite/libgomp.fortran/fortran.exp: New file.
3183         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3184         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3185         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3186         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3187         * testsuite/libgomp.fortran/omp_hello.f: New test.
3188         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3189         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3190         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3191         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3192         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3193         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3194         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3195         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3197 2005-08-30  Richard Henderson  <rth@redhat.com>
3199         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3200         function for when aliases are not usable.
3201         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3202         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3203         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3204         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3205         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3206         GOMP_loop_ordered_guided_next): Likewise.
3207         * ordered.c (GOMP_ordered_start): Likewise.
3209 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3211         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3212         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3213         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3214         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3215         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3216         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3217         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3218         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3219         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3221 2005-07-07  Eric Christopher  <echristo@redhat.com>
3222             Diego Novillo  <dnovillo@redhat.com>
3224         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3225         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3226         up code.
3227         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3228         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3229         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3230         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3231         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3232         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3233         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3235 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3237         * TOPLEVEL.patch: Remove.
3239 2005-05-16  Richard Henderson  <rth@redhat.com>
3241         * configure.ac: Test for clock_gettime.
3242         * config.h.in, configure: Rebuild.
3243         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3244         (omp_get_wtime): Use clock_gettime if available.
3245         (omp_get_wtick): Use clock_getres if available.
3247 2005-05-11  Richard Henderson  <rth@redhat.com>
3249         * config/linux/ia64/futex.h: New file.
3250         * configure.tgt: Use it.
3252         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3254 2005-05-07  Richard Henderson  <rth@redhat.com>
3256         * config/linux/powerpc/futex.h: New file.
3257         * configure.tgt: Use it.
3259         * config/linux/i486/futex.h: Merge ...
3260         * config/linux/x86_64/futex.h: ... into ...
3261         * config/linux/x86/futex.h: ... here.
3262         * configure.tgt: Update to match.
3264 2005-05-06  Richard Henderson  <rth@redhat.com>
3266         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3267         * config/linux/i486/futex.h: Likewise.
3268         * config/linux/x86_64/futex.h: Likewise.
3270         * config/linux/lock.c: New file.
3271         * config/linux/omp-lock.h: New file.
3273         * critical.c, env.h: Don't include omp.h
3274         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3275         * config/posix/time.c: Likewise.
3276         * config/posix/omp-lock.h: New file.
3277         * libgomp.h: Include omp-lock.h and omp.h.
3278         * Makefile.am (nodist_include_HEADERS): New.
3279         (omp.h): New rule.
3280         * configure.ac (PERL): New.
3281         * mkomp_h.pl: New file.
3282         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3283         with templates.
3284         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3286         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3287         build directory.  Re-add -march=i486 hack.
3289         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3290         (libgomp_link_flags): Remove.
3291         (libgomp_initialized): Remove.
3292         (libgomp_init): Don't protect from reinitialization.  Copy code
3293         from libstdc++ for getting the multilib set correctly.
3295 2005-05-05  Richard Henderson  <rth@redhat.com>
3297         * config/linux/alpha/futex.h: New file.
3298         * configure.tgt (alpha*-*-linux*): Use it.
3300         * config/posix/mutex.c: New file.
3301         * config/posix/sem.c: Use libgomp.h.
3303         * configure.tgt (x86_64-linux): Also test CC for -m32.
3304         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3306         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3307         after $gccpath.
3309         * Makefile.am (SUBDIRS): New.
3310         (libgomp_la_LDFLAGS): Add -lpthread.
3311         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3312         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3314         * libgomp_g.h: New file.
3315         * libgomp.h: Split out all public declarations to libgomp_g.h.
3316         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3317         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3318         * config/linux/sem.h: Likewise.
3319         * config/posix/sem.h: Likewise.
3321         * Makefile.am (AM_LDFLAGS): New.
3322         (libgomp_version_script): Split out from ...
3323         (libgomp_la_LDFLAGS): ... here.
3324         (libgomp_version_info): New.
3325         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3326         (LIBGOMP_ENABLE): New.
3327         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3328         (LIBGOMP_ENABLE_SYMVERS): New.
3329         * configure.ac (AC_INIT): Version 1.0.
3330         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3331         (enable-linux-futex): Likewise.  Rename from enable-futex.
3332         (libtool_VERSION): New.
3333         (LIBGOMP_ENABLE_SYMVERS): Use it.
3334         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3335         * Makefile.in, aclocal.m4, configure: Rebuild.
3337         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3338         (gomp_mutex_unlock_slow): Fix typo.
3339         * config/linux/sem.c: Similarly.
3340         (gomp_sem_post_slow): Fix typo.
3341         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3342         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3343         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3345         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3346         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3347         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3348         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3349         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3350         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3351         LDFLAGS.  Pull enable_futex check to top-level.
3352         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3353         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3355         First attempt at real configury.
3356         * Makefile, config.h: Remove file.
3357         * Makefile.am, Makefile.in: New file.
3358         * acinclude.m4 aclocal.m4: New file.
3359         * configure.ac, configure.tgt, configure: New file.
3361         * config/posix/lock.c: Rename from sys-lock.c.
3362         * config/posix/mutex.h: Rename from sys-mutex.h.
3363         * config/posix/sem.c: Rename from sys-sem.c.
3364         * config/posix/sem.h: Rename from sys-sem.h.
3365         * config/posix/proc.c: Rename from sys-proc.c.
3366         * config/posix/time.c: Rename from sys-proc.c.
3368         * config/linux/mutex.c: New file.
3369         * config/linux/mutex.h: New file.
3370         * config/linux/sem.c: New file.
3371         * config/linux/sem.h: New file.
3372         * config/linux/i486/futex.h: New file.
3373         * config/linux/x86_64/futex.h: New file.
3375 2005-05-04  Richard Henderson  <rth@redhat.com>
3377         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3378         * libgomp.h: Declare them.
3379         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3380         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3382 2005-05-04  Richard Henderson  <rth@redhat.com>
3384         * libgomp-1 code drop
3386 2005-05-04  Richard Henderson  <rth@redhat.com>
3388         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3389         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3390         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3391         (gomp_iter_static_next): Update.
3392         (gomp_ordered_static_next): Update.
3393         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3394         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3395         totally empty range.
3396         (gomp_loop_ordered_static_next): Refine test for calling
3397         gomp_ordered_static_next.
3398         * testsuite/ordered-1.c: Add case for more threads than iterations.
3400         * iter.c (gomp_iter_runtime_next_locked): Remove.
3401         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3402         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3403         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3404         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3405         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3406         gomp_loop_ordered_guided_next): Downcase name, make static, add
3407         an external alias with the old name.
3408         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3409         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3410         switch and call one of the above static functions.
3411         * libgomp.h: Update.
3413         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3414         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3415         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3416         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3417         GOMP_loop_ordered_guided_start): Update to match.
3418         * sections.c (GOMP_sections_start): Likewise.
3419         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3421         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3422         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3423         Use bounds check instead of modulus.
3424         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3425         (gomp_ordered_last): Don't sync with ordered_owner here.
3426         (gomp_ordered_next): Likewise.
3427         (gomp_ordered_static_loop_next): Likewise.
3428         * loop.c, libgomp.h: Update to match.
3430         * libgomp.h (GOMP_barrier): Declare.
3432         * testsuite/barrier-1.c: New file.
3433         * testsuite/critical-1.c: New file.
3434         * testsuite/ordered-2.c: New file.
3435         * testsuite/ordered-1.c: New file.
3436         * testsuite/sections-1.c: New file.
3437         * testsuite/single-1.c: New file.
3438         * testsuite/Makefile (TESTS): Add them.
3440 2005-05-04  Richard Henderson  <rth@redhat.com>
3442         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3443         * loop.c (GOMP_loop_static_start): If not the startup thread,
3444         acquire the mutex to wait for initialization complete.
3445         (GOMP_loop_ordered_static_start): Likewise.
3446         (GOMP_loop_ordered_runtime_start): Likewise.
3447         (GOMP_loop_ordered_static_first): Remove.
3448         (GOMP_loop_ordered_dynamic_first): Remove.
3449         (GOMP_loop_ordered_guided_first): Remove.
3450         (GOMP_loop_ordered_runtime_first): Remove.
3451         * ordered.c (gomp_ordered_loop_first): Post to own release when
3452         we're the first thread.
3453         (gomp_ordered_loop_last): Wait on release if not owner.
3454         (gomp_ordered_loop_next): Likewise.
3455         (gomp_ordered_static_loop_init): New.
3456         (gomp_ordered_static_loop_next): Use ordered_owner.
3457         (GOMP_ordered_start): Likewise.
3458         * work.c (gomp_new_work_share): Initialize ordered_owner.
3460 2005-05-03  Richard Henderson  <rth@redhat.com>
3462         * Makefile (OPT): New.
3463         (CFLAGS): Use it.
3465         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3466         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3467         * libgomp.h, libgomp.map, NOTES: Update to match.
3469         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3470         Add initialized and thr members.
3471         (gomp_thread_start): Pause when initially spawned to wait for
3472         the whole team to be created.
3473         (gomp_team_start): Release team members at the end.
3475         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3476         (f_foo_1): Use GOMP_loop_end.
3477         (f_foo_2): Use GOMP_loop_end_nowait.
3479         * testsuite/loop-2.c: New file.
3480         * testsuite/Makefile (TESTS): Add it.
3482 2005-05-03  Richard Henderson  <rth@redhat.com>
3484         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3485         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3486         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3487         initial work_share.
3489         * testsuite/Makefile: New file.
3490         * testsuite/loop-1.c: New file.
3492 2005-05-03  Richard Henderson  <rth@redhat.com>
3494         Initial implementation and checkin.