libgomp/
[official-gcc.git] / libgomp / ChangeLog
blobf4d6cd60074df226626eb9ab6f3fdfad85308df6
1 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
3         * config/posix/ptrlock.h: Fix comment.
5 2013-05-27  Tobias Burnus  <burnus@net-b.de>
7         PR fortran/57423
8         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
10         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
11         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12         omp_destroy_nest_lock): Correct arguments to match the one in
13         the OpenMP spec.
14         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
15         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
19 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
21         * testsuite/libgomp.c/loop-13.c: New test.
22         * testsuite/libgomp.c/loop-14.c: New test.
23         * testsuite/libgomp.c/loop-15.c: New test.
24         * testsuite/libgomp.c++/loop-13.C: New test.
25         * testsuite/libgomp.c++/loop-14.C: New test.
26         * testsuite/libgomp.c++/loop-15.C: New test.
28 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
30         PR middle-end/56217
31         * testsuite/libgomp.c++/pr56217.C: New test.
33 2013-02-01  Alan Modra  <amodra@gmail.com>
35         * task.c (GOMP_task, GOMP_taskwait): Comment.
37 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
38             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
40         PR libgomp/55561
41         * config/linux/wait.h (do_spin): Use atomic load for addr.
42         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
43         for intptr and ptrlock.
44         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
45         for ptrlock.
47 2013-01-22  Alan Modra  <amodra@gmail.com>
49         PR libgomp/51376
50         PR libgomp/56073
51         * task.c (GOMP_task): Revert 2011-12-09 change.
52         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
53         barrier to read task->children..
54         (gomp_barrier_handle_tasks): ..and matching atomic store with
55         release barrier here when setting parent->children to NULL.
57 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
58             Tobias Burnus  <burnus@net-b.de>
60         PR driver/55884
61         * testsuite/libgomp.fortran/fortran.exp: Use
62         -fintrinsic-modules-path= instead of
63         -fintrinsic-modules-path.
65 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
67         Update copyright years.
69 2012-12-19  Tobias Burnus  <burnus@net-b.de>
71         * testsuite/libgomp.fortran/fortran.exp: Set
72         -fintrinsic-modules-path.
74 2012-12-19  Tobias Burnus  <burnus@net-b.de>
76         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
77         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
79 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
81         PR libgomp/55411
82         * team.c (gomp_free_thread): Decrease gomp_managed_threads
83         if pool had any threads_used.
85 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
87         * testsuite/libgomp.c++/pr24455.C: Use
88         -Wl,-undefined,dynamic_lookup on darwin.
90 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
92         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
94 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
96         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
98 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
99             Jim MacArthur  <jim.macarthur@arm.com>
100             Marcus Shawcroft  <marcus.shawcroft@arm.com>
101             Nigel Stephens  <nigel.stephens@arm.com>
102             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
103             Richard Earnshaw  <rearnsha@arm.com>
104             Sofiane Naci  <sofiane.naci@arm.com>
105             Stephen Thomas  <stephen.thomas@arm.com>
106             Tejas Belagod  <tejas.belagod@arm.com>
107             Yufeng Zhang  <yufeng.zhang@arm.com>
109         * configure.tgt: Add AArch64.
111 2012-10-04  Jason Merrill  <jason@redhat.com>
113         * testsuite/libgomp.c++/tls-init1.C: New.
115 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
117         * configure: Regenerated.
119 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
121         * config/linux/mips/futex.h (sys_futex0): Change to static
122         function with noinline, nomips16 attributes under MIPS16. Adjust
123         asm statement to place 'li v0,SYS_futex' immediately before
124         syscall insn.
126 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
128         * libgomp.texi (Library Index): Renamed from "Index" to prevent
129         conflict with index.html on case-insensitive file systems.
131 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
133         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
134         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
136 2012-07-02  Richard Guenther  <rguenther@suse.de>
137             Michael Matz  <matz@suse.de>
138             Tobias Grosser <tobias@grosser.es>
139             Sebastian Pop <sebpop@gmail.com>
141         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
142         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
143         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
144         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
146 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
148         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
150 2012-06-22  Richard Guenther  <rguenther@suse.de>
152         Merge from graphite branch
153         2012-01-13  Tobias Grosser  <tobias@grosser.es>
155         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
156         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
158 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
160         PR middle-end/53580
161         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
162         use GOMP_barrier () call instead.
163         * testsuite/libgomp.c/pr26943-3.c: Likewise.
164         * testsuite/libgomp.c/pr26943-4.c: Likewise.
165         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
166         call GOMP_barrier instead.
167         * testsuite/libgomp.fortran/vla5.f90: Likewise.
169 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
171         PR libgomp/52993
172         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
173         argument to memset call.
175 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
177         * configure: Regenerated.
179 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
181         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
183 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
185         PR bootstrap/52812
186         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
188 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
190         PR middle-end/52547
191         * testsuite/libgomp.c/pr52547.c: New test.
193 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
195         * testsuite/lib/libgomp.exp: load fortran-modules.exp
197 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
199         * configure.tgt (mips-sgi-irix6*): Remove.
201 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
203         * configure.tgt (alpha*-dec-osf*): Remove.
205         * config/osf/sem.h: Remove.
206         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
208 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
210         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
212 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
214         PR libstdc++/52188
215         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
216         Remove ENABLE_SYMVERS_SOL2.
217         * configure: Regenerate.
218         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
219         (PREPROCESS): New variable.
220         (libgomp.ver): New target.
221         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
222         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
223         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
224         Use libgomp.ver.
225         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
226         * Makefile.in: Regenerate.
228 2012-02-14  Walter Lee  <walt@tilera.com>
230         * configure.tgt: Handle tilegx and tilepro.
231         * config/linux/tile/futex.h: New file.
233 2012-02-08  Richard Guenther  <rguenther@suse.de>
235         PR tree-optimization/46886
236         * testsuite/libgomp.c/pr46886.c: New testcase.
238 2012-01-25  Matthias Klose  <doko@ubuntu.com>
240         * config/linux/arm: Remove empty directory.
241         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
243 2011-12-09  Alan Modra  <amodra@gmail.com>
245         PR libgomp/51376
246         * task.c (GOMP_taskwait): Don't access task->children outside of
247         task_lock mutex region.
248         (GOMP_task): Likewise.
250 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
252         PR libgomp/51132
253         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
254         to file scope.
255         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
256         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
257         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
258         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
259         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
261 2011-12-02  Alan Modra  <amodra@gmail.com>
263         * config/linux/affinity.c: Use atomic rather than sync builtin.
264         * config/linux/lock.c: Likewise.
265         * config/linux/ptrlock.h: Likewise.
266         * config/linux/ptrlock.c: Likewise.
267         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
268         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
269         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
270         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
271         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
272         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
273         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
274         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
275         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
276         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
278 2011-11-30  Alan Modra  <amodra@gmail.com>
280         PR libgomp/51298
281         * config/linux/bar.h: Use atomic rather than sync builtins.
282         * config/linux/bar.c: Likewise.  Add missing acquire
283         synchronisation on generation field.
284         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
285         double unlock.
287 2011-11-30  Alan Modra  <amodra@gmail.com>
289         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
290         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
291         * config/linux/mutex.h: Use atomic rather than sync builtins.
292         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
293         * config/linux/omp-lock.h: Comment fix.
294         * config/linux/arm/mutex.h: Delete.
295         * config/linux/powerpc/mutex.h: Delete.
296         * config/linux/ia64/mutex.h: Delete.
297         * config/linux/mips/mutex.h: Delete.
299 2011-11-30  Alan Modra  <amodra@gmail.com>
301         PR libgomp/51249
302         * config/linux/sem.h: Rewrite.
303         * config/linux/sem.c: Rewrite.
305 2011-11-28  Richard Henderson  <rth@redhat.com>
307         * libgomp.h (enum memmodel): New.
309 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
311         * configure: Regenerate.
313 2011-10-10  Matthias Klose  <doko@ubuntu.com>
315         * config/posix95: Remove empty directory.
317 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
319         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
321 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
323         PR fortran/49792
324         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
325         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
327 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
329         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
331 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
333         PR libgomp/49965
334         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
336 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
338         * config/linux/proc.h: New.
339         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
340         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
341         (gomp_init_num_threads): Update call to cpuset_popcount.
342         (get_num_procs): Ditto.
343         * config/linux/affinity.c (gomp_init_affinity): Call
344         gomp_cpuset_popcount.
346 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
348         PR fortran/42041
349         PR fortran/46752
350         * omp.h.in (omp_in_final): New prototype.
351         * omp_lib.f90.in (omp_in_final): New interface.
352         (omp_integer_kind, omp_logical_kind): Remove
353         and replace all its uses in the module with 4.
354         (openmp_version): Change to 201107.
355         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
356         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
357         kind for the parameters.
358         (omp_in_final): New external.
359         (openmp_version): Change to 201107.
360         * task.c (omp_in_final): New function.
361         (gomp_init_task): Initialize final_task.
362         (GOMP_task): Remove unused attribute from flags.  Handle final
363         tasks.
364         (GOMP_taskyield): New function.
365         (omp_in_final): Return true if if (false) or final (true) task
366         or descendant of final (true).
367         * fortran.c (omp_in_final_): New function.
368         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
369         (GOMP_3.0): Export GOMP_taskyield.
370         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
371         variables.
372         (parse_unsigned_long_list): New function.
373         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
374         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
375         even if parse_affinity returned false.
376         * config/linux/affinity.c (gomp_init_affinity): Handle
377         gomp_cpu_affinity_len == 0.
378         * libgomp_g.h (GOMP_taskyield): New prototype.
379         * libgomp.h (struct gomp_task): Add final_task field.
380         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
381         * team.c (gomp_team_start): Override new task's nthreads_var icv
382         if list form OMP_NUM_THREADS has been used and it has value for
383         the new nesting level.
385         * testsuite/libgomp.c/atomic-11.c: New test.
386         * testsuite/libgomp.c/atomic-12.c: New test.
387         * testsuite/libgomp.c/atomic-13.c: New test.
388         * testsuite/libgomp.c/atomic-14.c: New test.
389         * testsuite/libgomp.c/reduction-6.c: New test.
390         * testsuite/libgomp.c/task-5.c: New test.
391         * testsuite/libgomp.c++/atomic-2.C: New test.
392         * testsuite/libgomp.c++/atomic-3.C: New test.
393         * testsuite/libgomp.c++/atomic-4.C: New test.
394         * testsuite/libgomp.c++/atomic-5.C: New test.
395         * testsuite/libgomp.c++/atomic-6.C: New test.
396         * testsuite/libgomp.c++/atomic-7.C: New test.
397         * testsuite/libgomp.c++/atomic-8.C: New test.
398         * testsuite/libgomp.c++/atomic-9.C: New test.
399         * testsuite/libgomp.c++/task-8.C: New test.
400         * testsuite/libgomp.c++/reduction-4.C: New test.
401         * testsuite/libgomp.fortran/allocatable7.f90: New test.
402         * testsuite/libgomp.fortran/allocatable8.f90: New test.
403         * testsuite/libgomp.fortran/crayptr3.f90: New test.
404         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
405         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
406         * testsuite/libgomp.fortran/pointer1.f90: New test.
407         * testsuite/libgomp.fortran/pointer2.f90: New test.
408         * testsuite/libgomp.fortran/task4.f90: New test.
410 2011-08-02  Tobias Burnus  <burnus@net-b.de>
412         * libgomp.texi: Update OpenMP spec references to 3.1.
413         (omp_in_final,OMP_PROC_BIND): New sections.
414         (OMP_NUM_THREADS): Document that the value can be now a list.
415         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
417 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
419         * config/linux/x86/futex.h: Check __x86_64__ instead of
420         __LP64__.
422 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
424         PR middle-end/49897
425         PR middle-end/49898
426         * testsuite/libgomp.c/pr49897-1.c: New test.
427         * testsuite/libgomp.c/pr49897-2.c: New test.
428         * testsuite/libgomp.c/pr49898-1.c: New test.
429         * testsuite/libgomp.c/pr49898-2.c: New test.
431 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
433         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
434         for ia32 instead of ilp32.
436         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
437         * testsuite/libgomp.c/atomic-6.c: Likewise.
439 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
441         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
442         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
444 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
446         PR libgomp/45351
447         * config/osf/sem.h: New file.
448         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
450 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
452         PR target/49541
453         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
454         ldflags.
456 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
458         * config/linux/wait.h (do_spin): New inline, largely copied
459         from do_wait, just don't do futex_wait here, instead return true if
460         it should be done.
461         (do_wait): Implement using do_spin.
462         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
463         to prototype.
464         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
465         __sync_bool_compare_and_swap, pass the oldval to
466         gomp_mutex_lock_slow.
467         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
468         If all mutex contenders are just spinning and not sleeping, don't
469         change state to 2 unnecessarily.  Optimize the loop when state has
470         already become 2 to use just one atomic operation per loop instead
471         of two.
472         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
473         to prototype.
474         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
475         __sync_bool_compare_and_swap, pass the oldval to
476         gomp_mutex_lock_slow.
478 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
480         PR libgomp/49490
481         * iter.c (gomp_iter_static_next): For chunk size 0
482         only use n ceil/ nthreads size for the first
483         n % nthreads threads in the team instead of
484         all threads except for the last few ones which
485         get less work or none at all.
486         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
487         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
488         chunk argument, set run_sched_modifier to 0 for static
489         resp. 1 for other kinds.  If chunk argument is 0
490         and not static, set value to 1.
492 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
494         PR c++/49043
495         * testsuite/libgomp.c++/pr49043.C: New test.
497         PR c++/48869
498         * testsuite/libgomp.c++/pr48869.C: New test.
500 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
502         PR fortran/48894
503         * fortran.c: Include limits.h.
504         (TO_INT): Define.
505         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
506         *set.
507         (omp_set_num_threads_8_, omp_set_schedule_8_,
508         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
509         omp_get_team_size_8_): Use TO_INT macro.
510         * testsuite/libgomp.fortran/pr48894.f90: New test.
512 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
514         PR middle-end/48591
515         * testsuite/libgomp.c/pr48591.c: New test.
517 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
519         PR bootstrap/48135
520         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
521         * configure: Regenerate.
523 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
525         PR fortran/47886
526         * testsuite/libgomp.fortran/task3.f90: New test.
528 2011-02-24  Tobias Burnus  <burnus@net-b.de>
530         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
532 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
534         PR libgomp/47854
535         * libgomp.texi (omp_get_wtime): Don't say time in the past
536         must be Unix Epoch.
538 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
540         PR libgomp/47804
541         * testsuite/libgomp.fortran/fortran.exp: Check for both
542         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
543         but $blddir != "", still append ${blddir}/${lang_library_path}
544         to ld_library_path.
546 2011-02-16  Tobias Burnus  <burnus@net-b.de>
548         PR libgomp/47758
549         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
550         of libquadmath.a before adding its libpath to ldflags.
552 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
554         PR libgomp/47731
555         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
556         to FUTEX_WAIT futex syscall.
557         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
559 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
561         * configure: Regenerate.
563 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
565         PR libstdc++/36104
566         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
568 2011-01-16  Gerald Pfeifer
570         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
572 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
574         PR fortran/46874
575         * libgomp.fortran/allocatable6.f90: New test.
577 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
579         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
580         * configure: Regenerate.
582 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
584         PR target/40125
585         PR lto/46695
586         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
587         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
588         * aclocal.m4: Regenerate.
589         * configure: Regenerate.
590         * Makefile.in: Regenerate.
591         * testsuite/Makefile.in: Regenerate.
593 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
595         PR fortran/46753
596         * libgomp.fortran/pr46753.f90: New test.
598         PR libgomp/43706
599         * env.c (initialize_env): Default to spin count 300000
600         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
601         is specified.
603         PR libgomp/45240
604         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
605         at the end if sync builtins aren't supported.
607 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
609         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
611 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
613         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
615 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
617         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
619 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
620             Tobias Burnus  <burnus@net-b.de>
622         PR fortran/32049
623         * configure.ac:
624         * configure: Regenerate.
626 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
628         * config/linux/futex.h: New.
629         * config/linux/arm/mutex.h: New.
630         * configure.tgt (arm*-*-linux*): Add config path.
632 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
634         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
636 2010-09-23  Tobias Burnus  <burnus@net-b.de>
638         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
639         Change Fortran datatype to LOGICAL.
640         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
641         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
643 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
645         * configure: Regenerate.
647 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
649         * libgomp.texi: Add function keyword to a couple of Fortran
650         interfaces, use integer instead of int for Fortran.
652 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
654         * libgomp.texi: Fix spelling and pasto problems throughout.
655         Adjust prototypes to match code.
657 2010-07-24  Tobias Burnus  <burnus@net-b.de>
659         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
660         silence -fwhole-file warning.
662 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
664         * configure.tgt (*-*-solaris2.[56]*): Removed.
666 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
668         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
669         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
670         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
671         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
672         targetting solaris2*.
673         * configure: Regenerate.
674         * config.h.in: Regenerate.
676         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
677         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
678         Add libgomp_version_dep.
679         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
680         versioning.
681         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
682         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
683         * Makefile.in: Regenerate.
685         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
686         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
687         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
688         to common block, protected by
689         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
691 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
693         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
695 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
697         PR bootstrap/43170
698         * configure: Regenerate.
700 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
702         PR other/43620
703         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
704         * configure: Regenerate.
705         * Makefile.in: Regenerate.
706         * testsuite/Makefile.in: Regenerate.
708 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
710         PR c/43893
711         * testsuite/libgomp.c/pr43893.c: New test.
712         * testsuite/libgomp.c++/pr43893.C: New test.
714 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
716         PR middle-end/43570
717         * testsuite/libgomp.fortran/vla8.f90: New test.
719 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
721         PR libgomp/43706
722         * config/linux/affinity.c (gomp_init_affinity): Decrease
723         gomp_available_cpus if affinity mask confines the process to fewer
724         CPUs.
725         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
726         non-NULL, just return gomp_available_cpus.
728         PR libgomp/43569
729         * sections.c (gomp_sections_init): Initialize ws->mode.
731 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
733         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
734         not unused bar variable.
735         * configure: Regenerate.
737 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
739         * Makefile.in: Regenerate.
740         * aclocal.m4: Regenerate.
741         * testsuite/Makefile.in: Regenerate.
743 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
745         PR libgomp/42942
746         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
747         (initialize_env): Adjust callers.
748         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
749         when the argument is 0.
751         * testsuite/libgomp.c/pr42942.c: New test.
753 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
755         PR middle-end/42644
756         PR middle-end/42130
757         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
758         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
760 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
762         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
763         * testsuite/libgomp.c++/task-6.C: Likewise.
765 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
767         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
769 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
771         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
772         * configure: Regenerate.
774 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
776         PR fortran/42866
777         * testsuite/libgomp.fortran/allocatable5.f90: New test.
779 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
781         * configure.ac: Test for executability of GFORTRAN.
782         * configure: Regenerate.
784 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
786         * configure: Regenerate.
788 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
790         PR libgomp/42602
791         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
793 2010-01-03  Richard Guenther  <rguenther@suse.de>
795         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
797 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
799         * testsuite/libgomp.graphite/pr4118.c: New.
801 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
803         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
804         for darwin, protect the test with require-effective-target tls_runtime.
805         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
807 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
809         PR target/41605
810         * testsuite/lib/libgomp.exp: Provide -B options to allow for
811         link spec %s substitutions for static libraries.
813 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
815         PR testsuite/42135
816         * libgomp.graphite/force-parallel-2.c: Reduce array size.
818 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
820         * Makefile.in: Regenerate.
821         * configure: Regenerate.
822         * testsuite/Makefile.in: Regenerate.
824 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
826         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
827         settings for LC_ALL and LANG.
829 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
831         PR fortran/42162
832         * testsuite/libgomp.fortran/pr42162.f90: New test.
834 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
836         PR middle-end/42029
837         * testsuite/libgomp.c/pr42029.c: New test.
839 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
841         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
842         *s.  Accept ld version without text in ()s.
843         * configure: Regenerated.
845 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
847         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
849 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
851         PR libgomp/41418
852         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
853         or a hyphen (happens with fortran language disabled).
854         * configure: Regenerate.
856 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
858         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
859         use sed script portable to Solaris /bin/sed for extracting ld
860         version.
861         * configure: Regenerate.
863 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
865         * testsuite/libgomp.graphite/bounds.c: New test.
867 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
869         * Makefile.am (libgomp_la_LINK): New.
870         * Makefile.in: Regenerate.
872 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
874         * configure.ac (AC_PREREQ): Bump to 2.64.
876 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
878         * Makefile.am (install-html, install-pdf): Remove.
879         * Makefile.in: Regenerate.
881         * Makefile.in: Regenerate.
882         * aclocal.m4: Regenerate.
883         * config.h.in: Regenerate.
884         * configure: Regenerate.
885         * testsuite/Makefile.in: Regenerate.
887 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
889         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
890         * Makefile.in: Regenerate.
892 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
894         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
895         * Makefile.in: Regenerate.
897 2009-08-19  Tobias Burnus  <burnus@net-b.de>
899         PR fortran/41102
900         omp_lib.h.in: Fix -std=f95 errors.
903 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
905         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
906         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
907         * testsuite/libgomp.graphite/graphite.exp: New.
909 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
911         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
912         only build.
914 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
916         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
917         needed memory barrier semantics.
918         * config/linux/mips/mutex.h: New file.
920 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
922         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
924 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
926         * configure: Regenerate.
928 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
930         PR testsuite/40699
931         PR testsuite/40707
932         PR testsuite/40709
933         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
934         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
935         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
937 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
939         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
940         options when choosing a multilib.
942 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
944         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
945         ld_library_path.  Use add_path.  Add just find_libgcc_s to
946         ld_library_path, not every libgcc multilib directory.
947         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
948         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
949         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
950         Use add_path.
951         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
953 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
955         * Makefile.am (LTLDFLAGS): Define.
956         (LINK): Define.
957         * Makefile.in: Regenerate.
959 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
961         PR fortran/39718
962         * testsuite/libgomp.fortran/fortran.exp: Don't link with
963         libgfortranbegin, check existence of libgfortran.a instead of
964         libgfortranbegin.a.
966 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
968         PR libgomp/40174
969         * team.c (gomp_thread_start): Destroy thr->release semaphore.
970         (gomp_free_pool_helper): Likewise.
972 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
973             Jakub Jelinek  <jakub@redhat.com>
975         PR fortran/35423
976         * testsuite/libgomp.fortran/workshare2.f90: New test.
978 2009-04-09  Nick Clifton  <nickc@redhat.com>
980         * iter.c: Change copyright header to refer to version 3 of the
981         GNU General Public License with version 3.1 of the GCC Runtime
982         Library Exception and to point readers at the COPYING3 and
983         COPYING3.RUNTIME files and the FSF's license web page.
984         * alloc.c: Likewise.
985         * barrier.c: Likewise.
986         * config/bsd/proc.c: Likewise.
987         * config/linux/affinity.c: Likewise.
988         * config/linux/alpha/futex.h: Likewise.
989         * config/linux/bar.c: Likewise.
990         * config/linux/bar.h: Likewise.
991         * config/linux/ia64/futex.h: Likewise.
992         * config/linux/ia64/mutex.h: Likewise.
993         * config/linux/lock.c: Likewise.
994         * config/linux/mips/futex.h: Likewise.
995         * config/linux/mutex.c: Likewise.
996         * config/linux/mutex.h: Likewise.
997         * config/linux/powerpc/futex.h: Likewise.
998         * config/linux/proc.c: Likewise.
999         * config/linux/ptrlock.c: Likewise.
1000         * config/linux/ptrlock.h: Likewise.
1001         * config/linux/s390/futex.h: Likewise.
1002         * config/linux/sem.c: Likewise.
1003         * config/linux/sem.h: Likewise.
1004         * config/linux/sparc/futex.h: Likewise.
1005         * config/linux/wait.h: Likewise.
1006         * config/linux/x86/futex.h: Likewise.
1007         * config/mingw32/proc.c: Likewise.
1008         * config/mingw32/time.c: Likewise.
1009         * config/posix/affinity.c: Likewise.
1010         * config/posix/bar.c: Likewise.
1011         * config/posix/bar.h: Likewise.
1012         * config/posix/lock.c: Likewise.
1013         * config/posix/mutex.h: Likewise.
1014         * config/posix/proc.c: Likewise.
1015         * config/posix/ptrlock.h: Likewise.
1016         * config/posix/sem.c: Likewise.
1017         * config/posix/sem.h: Likewise.
1018         * config/posix/time.c: Likewise.
1019         * config/posix95/lock.c: Likewise.
1020         * critical.c: Likewise.
1021         * env.c: Likewise.
1022         * error.c: Likewise.
1023         * fortran.c: Likewise.
1024         * iter_ull.c: Likewise.
1025         * libgomp.h: Likewise.
1026         * libgomp_f.h.in: Likewise.
1027         * libgomp_g.h: Likewise.
1028         * loop.c: Likewise.
1029         * loop_ull.c: Likewise.
1030         * omp.h.in: Likewise.
1031         * omp_lib.f90.in: Likewise.
1032         * omp_lib.h.in: Likewise.
1033         * ordered.c: Likewise.
1034         * parallel.c: Likewise.
1035         * sections.c: Likewise.
1036         * single.c: Likewise.
1037         * task.c: Likewise.
1038         * team.c: Likewise.
1039         * work.c: Likewise.
1041 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1043         * testsuite/config/default.exp: Change copyright header to refer to
1044         version 3 of the GNU General Public License and to point readers
1045         at the COPYING3 file and the FSF's license web page.
1047 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1049         PR middle-end/39573
1050         * libgomp.c++/pr39573.C: New test.
1052 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1054         PR other/39591
1055         * testsuite/libgomp.c/pr39591-1.c: New test.
1056         * testsuite/libgomp.c/pr39591-2.c: New test.
1057         * testsuite/libgomp.c/pr39591-3.c: New test.
1059 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1061         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1062         * testsuite/libgomp.c/atomic-6.c: Ditto.
1064 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1066         PR c/39495
1067         * testsuite/libgomp.c/loop-12.c: New test.
1068         * testsuite/libgomp.c/loop-11.c: New test.
1069         * testsuite/libgomp.c++/loop-11.C: New test.
1070         * testsuite/libgomp.c++/loop-12.C: New test.
1071         * testsuite/libgomp.c++/for-8.C: New test.
1073 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1075         * configure: Regenerate.
1077 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1079         PR middle-end/39154
1080         * testsuite/libgomp.c/pr39154.c: New test.
1082 2009-01-30  Ian Lance Taylor  <iant@google.com>
1084         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1085         libgomp_ld_is_gold.  Get gold version number.
1086         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1087         * configure: Rebuild.
1089 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1091         * testsuite/lib/libgomp.exp: Add -B option for targets that
1092         use libgfortran.a%s in their specs.
1094 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1096         PR libgomp/38086
1097         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1098         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1099         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1100         * configure: Regenerated.
1101         * config.h.in: Likewise.
1103 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1105         PR c++/38650
1106         * testsuite/libgomp.c/pr38650.c: New test.
1107         * testsuite/libgomp.c++/pr38650.C: New test.
1109 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1111         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1113 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1115         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1117 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1119         * configure: Regenerate.
1121 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1123         PR middle-end/36802
1124         * testsuite/libgomp.c/pr36802-1.c: New test.
1125         * testsuite/libgomp.c/pr36802-2.c: New test.
1126         * testsuite/libgomp.c/pr36802-3.c: New test.
1128 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1130         PR libgomp/38270
1131         * config/linux/powerpc/mutex.h: New.
1133 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1135         PR c++/38257
1136         * testsuite/libgomp.c++/for-7.C: New test.
1138         PR c++/38348
1139         * testsuite/libgomp.c++/for-6.C: New test.
1141 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1143         PR testsuite/28870
1144         * testsuite/lib/libgomp.exp: Include new timeout library files.
1145         (libgomp_target_compile): Set timeout value from new proc.
1147 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1149         PR libgomp/37938
1150         * config/linux/ia64/mutex.h: New.
1152 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1154         PR libgomp/37935
1155         * libgomp.texi (Runtime library routines, environment variables):
1156         Update for OpenMP version 3.0.
1158 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1159             Steve Ellcey  <sje@cup.hp.com>
1161         * configure: Regenerate for new libtool.
1162         * Makefile.in: Ditto.
1163         * testsuite/Makefile.in: Ditto.
1165 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1166             Andreas Tobler  <a.tobler@schweiz.org>
1168         * config/bsd/proc.c: New file.
1169         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1170         * configure.ac: Check for header <sys/sysctl.h>
1171         * configure: Regenerate.
1172         * config.h.in: Likewise.
1174 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1176         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1178 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1180         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1181         * Makefile.in: Regenerated.
1182         * testsuite/Makefile.in: Regenerated.
1184 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1186         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1187         depend on blddir if blddir exists.
1188         (libgomp_target_compile): Likewise.
1189         * testsuite/libgomp.c++/c++.exp: Likewise.
1190         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1192 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1194         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1195         Do not list GPL as Invariant Section.
1197 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1198             Chao-ying Fu  <fu@mips.com>
1200         * configure.tgt: Enable futex for MIPS.
1201         * config/linux/mips/futex.h: New file.
1203 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1205         * team.c (gomp_team_end): Free team immediately if it has
1206         just one thread.
1208 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1210         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1211         * testsuite/libgomp.fortran/fortran.exp: Same.
1212         * testsuite/libgomp.c/c.exp: Same.
1213         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1214         directory to library path first.
1216 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1218         * env.c (parse_stacksize): Add cast to avoid warning.
1219         (parse_spincount): Likewise.
1221 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1223         * testsuite/libgomp.c/loop-10.c: New test.
1224         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1225         * libgomp.c++/loop-6.C (main): Likewise.
1227         PR debug/36617
1228         * testsuite/libgomp.c/debug-1.c: New test.
1230 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1232         * testsuite/libgomp.c/nqueens-1.c: New test.
1234         PR c++/36523
1235         * testsuite/libgomp.c++/task-7.C: New function.
1237 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1239         * configure: Regenerate.
1241 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1243         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1244         mutex when HAVE_SYNC_BUILTINS isn't defined.
1246 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1248         * libgomp.texi (omp_test_lock): Fix typo.
1250 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1252         * omp_lib.f90.in: Add "implicit none".
1254 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1256         PR middle-end/36506
1257         * testsuite/libgomp.c/reduction-5.c: New test.
1259 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1261         * libgomp.h (struct gomp_task): Add in_tied_task field.
1262         * task.c (gomp_init_task): Initialize it.
1263         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1264         unconditionally.  Don't call gomp_team_barrier_wake if
1265         current task is implicit or if(0) from implicit and number of
1266         running tasks is equal to nthreads - 1.
1268         PR libgomp/36471
1269         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1270         omp_get_team_size_8): Fix pastos.
1272         PR libgomp/36469
1273         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1274         * configure: Regenerated.
1275         * config.h.in: Regenerated.
1276         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1277         defined.
1279 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1281         PR bootstrap/36452
1282         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1283         (GOMP_loop_ull_dynamic_start): Likewise.
1284         (GOMP_loop_ull_guided_start): Likewise.
1285         (GOMP_loop_ull_ordered_static_start): Likewise.
1286         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1287         (GOMP_loop_ull_ordered_guided_start): Likewise.
1289 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1290             Richard Henderson  <rth@redhat.com>
1291             Ulrich Drepper  <drepper@redhat.com>
1292             Jakob Blomer  <jakob.blomer@ira.uka.de>
1294         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1295         Substitute also OMP_*LOCK_25*.
1296         * configure: Regenerated.
1297         * config.h.in: Regenerated.
1298         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1299         ptrlock.c and task.c.
1300         * Makefile.in: Regenerated.
1301         * testsuite/Makefile.in: Regenerated.
1302         * task.c: New file.
1303         * loop_ull.c: New file.
1304         * iter_ull.c: New file.
1305         * libgomp.h: Include ptrlock.h.
1306         (enum gomp_task_kind): New type.
1307         (struct gomp_team): Add task_lock, task_queue, task_count,
1308         task_running_count, single_count fields.  Add
1309         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1310         Remove work_share_lock, generation_mask,
1311         oldest_live_gen, num_live_gen and init_work_shares fields, add
1312         work work_share_list_alloc, work_share_list_free and work_share_chunk
1313         fields.  Change work_shares from pointer to pointers into an array.
1314         Change ordered_release field into gomp_sem_t ** from flexible array
1315         member.  Add implicit_task and initial_work_shares fields.
1316         Move close to the end of the struct.
1317         (struct gomp_team_state): Add single_count, last_work_share,
1318         active_level and level fields, remove work_share_generation.
1319         (gomp_barrier_handle_tasks): New prototype.
1320         (gomp_finish_task): New inline function.
1321         (struct gomp_work_share): Move chunk_size, end, incr into
1322         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1323         next_ll fields.  Reshuffle fields.  Add next_alloc,
1324         next_ws, next_free and inline_ordered_team_ids fields, change
1325         ordered_team_ids into pointer from flexible array member.
1326         Add mode field.  Put lock and next into a different cache line
1327         from most of the write-once fields.
1328         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1329         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1330         gomp_iter_ull_guided_next): New prototypes.
1331         (gomp_new_icv): New prototype.
1332         (struct gomp_thread): Add thread_pool and task fields.
1333         (struct gomp_thread_pool): New type.
1334         (gomp_new_team): New prototype.
1335         (gomp_team_start): Change type of last argument.
1336         (gomp_new_work_share): Removed.
1337         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1338         (gomp_work_share_init_done): New static inline.
1339         (gomp_throttled_spin_count_var, gomp_available_cpus,
1340         gomp_managed_threads): New extern decls.
1341         (gomp_init_task): New prototype.
1342         (gomp_spin_count_var): New extern var decl.
1343         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1344         or no alias support, or if not PIC.
1345         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1346         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1347         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1348         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1349         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1350         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1351         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1352         gomp_test_nest_lock_25): New prototypes.
1353         (omp_lock_symver, strong_alias): Define.
1354         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1355         decls.
1356         (gomp_end_task): New.
1357         (struct gomp_task_icv, gomp_global_icv): New.
1358         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1359         (struct gomp_task): New.
1360         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1361         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1362         (gomp_icv): New.
1363         (gomp_schedule_type): Reorder enum to match
1364         omp_sched_t.
1365         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1366         fields.
1367         (gomp_thread_start): Add gomp_team_barrier_wait call.
1368         For non-nested case remove clearing of docked thread thr fields.
1369         Use pool fields instead of global gomp_* variables.  Use
1370         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1371         Create tasks for each member thread.
1372         (free_team): Only destroy team barrier, task_lock here and free it.
1373         (gomp_free_thread): Free last_team if non-NULL.
1374         (gomp_team_end): Call gomp_team_barrier_wait instead of
1375         gomp_barrier_wait.  For nested case call one extra
1376         gomp_barrier_wait.  Move here some destruction from free_team.
1377         Call free_team on pool->last_team if any, rather than freeing
1378         current team.  Destroy work_share_list_free_lock ifndef
1379         HAVE_SYNC_BUILTINS.
1380         (gomp_new_icv): New function.
1381         (gomp_threads, gomp_threads_size, gomp_threads_used,
1382         gomp_threads_dock): Removed.
1383         (gomp_thread_destructor): New variable.
1384         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1385         functions.
1386         (gomp_team_start): Create new pool if current thread doesn't have
1387         one.  Use pool fields instead of global gomp_* variables.
1388         Initialize thread_pool field for new threads.  Clear single_count.
1389         Change last argument from ws to team, don't create
1390         new team, set ts.work_share to &team->work_shares[0] and clear
1391         ts.last_work_share.  Don't clear ts.work_share_generation.
1392         If number of threads changed, adjust atomically gomp_managed_threads.
1393         Use gomp_init_task instead of gomp_new_task,
1394         set thr->task to the corresponding implicit_task array entry.
1395         Create tasks for each member thread.  Initialize ts.level.
1396         (initialize_team): Call pthread_key_create on
1397         gomp_thread_destructor.
1398         (team_destructor): New function.
1399         (new_team): Removed.
1400         (gomp_new_team): New function.
1401         (free_team): Free gomp_work_share blocks chained through next_alloc,
1402         instead of freeing work_shares and destroying work_share_lock.
1403         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1404         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1405         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1406         of gomp_barrier_wait.
1407         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1408         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1409         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1410         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1411         of gomp_barrier_wait.
1412         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1413         gomp_work_share_init_done if gomp_work_share_start returned true.
1414         Don't unlock ws->lock.
1415         * work.c: Include stddef.h.
1416         (free_work_share): Use work_share_list_free_lock instead
1417         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1418         Call gomp_fini_work_share and then either free ws if orphaned, or
1419         put it into work_share_list_free list of the current team.
1420         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1421         functions.
1422         (gomp_work_share_start, gomp_work_share_end,
1423         gomp_work_share_end_nowait): Rewritten.
1424         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1425         (openmp_version): Set to 200805.
1426         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1427         omp_sched_guided, omp_sched_auto): New parameters.
1428         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1429         omp_set_max_active_levels, omp_get_max_active_levels,
1430         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1431         omp_get_active_level): New interfaces.
1432         * omp_lib.h.in (openmp_version): Set to 200805.
1433         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1434         omp_sched_guided, omp_sched_auto): New parameters.
1435         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1436         omp_set_max_active_levels, omp_get_max_active_levels,
1437         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1438         omp_get_active_level): New externals.
1439         * loop.c: Include limits.h.
1440         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1441         GFS_AUTO.
1442         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1443         Likewise.  Use gomp_icv.
1444         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1445         ts.static_trip here.
1446         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1447         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1448         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1449         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1450         don't unlock ws->lock, otherwise lock it.
1451         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1452         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1453         (gomp_parallel_loop_start): Call gomp_new_team instead of
1454         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1455         Adjust gomp_team_start caller.  Pass 0 as second argument to
1456         gomp_resolve_num_threads.
1457         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1458         If adding ws->chunk_size nthreads + 1 times after end won't
1459         overflow, set ws->mode to 1.
1460         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1461         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1462         GOMP_loop_ull_ordered_static_start,
1463         GOMP_loop_ull_ordered_dynamic_start,
1464         GOMP_loop_ull_ordered_guided_start,
1465         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1466         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1467         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1468         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1469         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1470         prototypes.
1471         * libgomp.map: Export lock routines also @@OMP_2.0.
1472         (GOMP_loop_ordered_dynamic_first,
1473         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1474         GOMP_loop_ordered_static_first): Remove.
1475         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1476         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1477         GOMP_loop_ull_ordered_dynamic_next,
1478         GOMP_loop_ull_ordered_dynamic_start,
1479         GOMP_loop_ull_ordered_guided_next,
1480         GOMP_loop_ull_ordered_guided_start,
1481         GOMP_loop_ull_ordered_runtime_next,
1482         GOMP_loop_ull_ordered_runtime_start,
1483         GOMP_loop_ull_ordered_static_next,
1484         GOMP_loop_ull_ordered_static_start,
1485         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1486         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1487         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1488         (omp_set_schedule, omp_get_schedule,
1489         omp_get_thread_limit, omp_set_max_active_levels,
1490         omp_get_max_active_levels, omp_get_level,
1491         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1492         omp_set_schedule_, omp_set_schedule_8_,
1493         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1494         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1495         omp_get_max_active_levels_, omp_get_level_,
1496         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1497         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1498         New exports @@OMP_3.0.
1499         * omp.h.in (omp_sched_t): New type.
1500         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1501         omp_set_max_active_levels, omp_get_max_active_levels,
1502         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1503         omp_get_active_level): New prototypes.
1504         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1505         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1506         gomp_thread_limit_var, gomp_remaining_threads_count,
1507         gomp_remaining_threads_lock): New variables.
1508         (parse_spincount): New function.
1509         (initialize_env): Call gomp_init_num_threads unconditionally.
1510         Initialize gomp_available_cpus.  Call parse_spincount,
1511         initialize gomp_{,throttled_}spin_count_var
1512         depending on presence and value of OMP_WAIT_POLICY and
1513         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1514         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1515         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1516         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1517         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1518         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1519         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1520         (gomp_global_icv): New.
1521         (parse_schedule): Use it.  Parse "auto".
1522         (omp_set_num_threads): Use gomp_icv.
1523         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1524         Likewise.
1525         (omp_get_max_threads): Move from parallel.c.
1526         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1527         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1528         add ialias.
1529         (parse_stacksize, parse_wait_policy): New functions.
1530         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1531         both wrappers for compatibility and new locks.
1532         (omp_set_schedule, omp_get_schedule,
1533         omp_get_thread_limit, omp_set_max_active_levels,
1534         omp_get_max_active_levels, omp_get_level,
1535         omp_get_ancestor_thread_num, omp_get_team_size,
1536         omp_get_active_level): New ialias_redirect.
1537         (omp_set_schedule_, omp_set_schedule_8_,
1538         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1539         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1540         omp_get_max_active_levels_, omp_get_level_,
1541         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1542         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1543         New functions.
1544         * parallel.c: Include limits.h.
1545         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1546         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1547         argument to gomp_team_start.  Pass 0 as second argument to
1548         gomp_resolve_num_threads.
1549         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1550         if gomp_thread_limit_var != ULONG_MAX.
1551         (omp_in_parallel): Implement using ts.active_level.
1552         (omp_get_max_threads): Move to env.c.
1553         (omp_get_level, omp_get_ancestor_thread_num,
1554         omp_get_team_size, omp_get_active_level): New functions,
1555         add ialias.
1556         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1557         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1558         gomp_iter_dynamic_next instead of the _locked variant and don't take
1559         lock around it, otherwise acquire it before calling
1560         gomp_iter_dynamic_next_locked.
1561         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1562         gomp_iter_dynamic_next instead of the _locked variant and don't take
1563         lock around it.
1564         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1565         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1566         Adjust gomp_team_start caller.  Pass count as second argument to
1567         gomp_resolve_num_threads, don't adjust num_threads after the call.
1568         Use gomp_icv.
1569         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1570         ws->chunk_size by incr.
1571         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1572         code.
1573         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1574         types.
1575         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1576         (omp_check_defines): Check even the compat defines.
1577         * config/linux/ptrlock.c: New file.
1578         * config/linux/ptrlock.h: New file.
1579         * config/linux/wait.h: New file.
1580         * config/posix/ptrlock.c: New file.
1581         * config/posix/ptrlock.h: New file.
1582         * config/linux/bar.h (gomp_team_barrier_wait,
1583         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1584         (gomp_team_barrier_set_task_pending,
1585         gomp_team_barrier_clear_task_pending,
1586         gomp_team_barrier_set_waiting_for_tasks,
1587         gomp_team_barrier_waiting_for_tasks,
1588         gomp_team_barrier_done): New inlines.
1589         (gomp_barrier_t): Rewritten.
1590         (gomp_barrier_state_t): New typedef.
1591         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1592         gomp_barrier_wait_start): Rewritten.
1593         (gomp_barrier_wait_end): Change second argument to
1594         gomp_barrier_state_t.
1595         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1596         inlines.
1597         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1598         futex.h.
1599         (gomp_barrier_wait_end): Rewritten.
1600         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1601         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1602         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1603         (gomp_barrier_state_t): New typedef.
1604         (gomp_team_barrier_wait,
1605         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1606         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1607         into the return value.  Return gomp_barrier_state_t.
1608         (gomp_team_barrier_set_task_pending,
1609         gomp_team_barrier_clear_task_pending,
1610         gomp_team_barrier_set_waiting_for_tasks,
1611         gomp_team_barrier_waiting_for_tasks,
1612         gomp_team_barrier_done): New inlines.
1613         (gomp_barrier_wait_end): Change second argument to
1614         gomp_barrier_state_t.
1615         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1616         inlines.
1617         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1618         (gomp_barrier_wait_end): Change second argument to
1619         gomp_barrier_state_t.
1620         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1621         gomp_team_barrier_wake): New functions.
1622         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1623         futex.h.
1624         (gomp_futex_wake, gomp_futex_wait): New variables.
1625         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1626         * config/linux/lock.c: Rewrite to make locks task owned,
1627         for backwards compatibility provide the old entrypoints
1628         if symbol versioning.  Include wait.h instead of libgomp.h and
1629         futex.h.
1630         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1631         * config/posix95/lock.c: Rewrite to make locks task owned,
1632         for backwards compatibility provide the old entrypoints
1633         if symbol versioning.
1634         * config/posix/lock.c: Rewrite to make locks task owned,
1635         for backwards compatibility provide the old entrypoints
1636         if symbol versioning.
1637         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1638         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1639         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1640         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1641         (sys_futex0): Return error code.
1642         (futex_wake, futex_wait): If ENOSYS was returned, clear
1643         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1644         (cpu_relax, atomic_write_barrier): New static inlines.
1645         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1646         (futex_wake, futex_wait): If ENOSYS was returned, clear
1647         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1648         (cpu_relax, atomic_write_barrier): New static inlines.
1649         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1650         (sys_futex0): Return error code.
1651         (futex_wake, futex_wait): If ENOSYS was returned, clear
1652         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1653         (cpu_relax, atomic_write_barrier): New static inlines.
1654         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1655         (sys_futex0): Return error code.
1656         (futex_wake, futex_wait): If ENOSYS was returned, clear
1657         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1658         (cpu_relax, atomic_write_barrier): New static inlines.
1659         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1660         (sys_futex0): Return error code.
1661         (futex_wake, futex_wait): If ENOSYS was returned, clear
1662         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1663         (cpu_relax, atomic_write_barrier): New static inlines.
1664         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1665         (sys_futex0): Return error code.
1666         (futex_wake, futex_wait): If ENOSYS was returned, clear
1667         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1668         (cpu_relax, atomic_write_barrier): New static inlines.
1669         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1670         futex.h.
1671         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1672         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1673         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1674         types.
1675         (omp_nest_lock_t): Change owner into void *, add lock field.
1676         * config/posix95/omp-lock.h: Include semaphore.h.
1677         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1678         (omp_lock_t): Use sem_t instead of mutex if semaphores
1679         aren't broken.
1680         (omp_nest_lock_t): Likewise.  Change owner to void *.
1681         * config/posix/omp-lock.h: Include semaphore.h.
1682         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1683         (omp_lock_t): Use sem_t instead of mutex if semaphores
1684         aren't broken.
1685         (omp_nest_lock_t): Likewise.  Add owner field.
1687 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1689         * testsuite/libgomp.c/collapse-1.c: New test.
1690         * testsuite/libgomp.c/collapse-2.c: New test.
1691         * testsuite/libgomp.c/collapse-3.c: New test.
1692         * testsuite/libgomp.c/icv-1.c: New test.
1693         * testsuite/libgomp.c/icv-2.c: New test.
1694         * testsuite/libgomp.c/lib-2.c: New test.
1695         * testsuite/libgomp.c/lock-1.c: New test.
1696         * testsuite/libgomp.c/lock-2.c: New test.
1697         * testsuite/libgomp.c/lock-3.c: New test.
1698         * testsuite/libgomp.c/loop-4.c: New test.
1699         * testsuite/libgomp.c/loop-5.c: New test.
1700         * testsuite/libgomp.c/loop-6.c: New test.
1701         * testsuite/libgomp.c/loop-7.c: New test.
1702         * testsuite/libgomp.c/loop-8.c: New test.
1703         * testsuite/libgomp.c/loop-9.c: New test.
1704         * testsuite/libgomp.c/nested-3.c: New test.
1705         * testsuite/libgomp.c/nestedfn-6.c: New test.
1706         * testsuite/libgomp.c/sort-1.c: New test.
1707         * testsuite/libgomp.c/task-1.c: New test.
1708         * testsuite/libgomp.c/task-2.c: New test.
1709         * testsuite/libgomp.c/task-3.c: New test.
1710         * testsuite/libgomp.c/task-4.c: New test.
1711         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1712         to C++ testsuite default compiler options.
1713         * testsuite/libgomp.c++/collapse-1.C: New test.
1714         * testsuite/libgomp.c++/collapse-2.C: New test.
1715         * testsuite/libgomp.c++/ctor-10.C: New test.
1716         * testsuite/libgomp.c++/for-1.C: New test.
1717         * testsuite/libgomp.c++/for-2.C: New test.
1718         * testsuite/libgomp.c++/for-3.C: New test.
1719         * testsuite/libgomp.c++/for-4.C: New test.
1720         * testsuite/libgomp.c++/for-5.C: New test.
1721         * testsuite/libgomp.c++/loop-8.C: New test.
1722         * testsuite/libgomp.c++/loop-9.C: New test.
1723         * testsuite/libgomp.c++/loop-10.C: New test.
1724         * testsuite/libgomp.c++/task-1.C: New test.
1725         * testsuite/libgomp.c++/task-2.C: New test.
1726         * testsuite/libgomp.c++/task-3.C: New test.
1727         * testsuite/libgomp.c++/task-4.C: New test.
1728         * testsuite/libgomp.c++/task-5.C: New test.
1729         * testsuite/libgomp.c++/task-6.C: New test.
1730         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1731         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1732         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1733         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1734         * testsuite/libgomp.fortran/collapse1.f90: New test.
1735         * testsuite/libgomp.fortran/collapse2.f90: New test.
1736         * testsuite/libgomp.fortran/collapse3.f90: New test.
1737         * testsuite/libgomp.fortran/collapse4.f90: New test.
1738         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1739         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1740         * testsuite/libgomp.fortran/lib4.f90: New test.
1741         * testsuite/libgomp.fortran/lock-1.f90: New test.
1742         * testsuite/libgomp.fortran/lock-2.f90: New test.
1743         * testsuite/libgomp.fortran/nested1.f90: New test.
1744         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1745         * testsuite/libgomp.fortran/strassen.f90: New test.
1746         * testsuite/libgomp.fortran/tabs1.f90: New test.
1747         * testsuite/libgomp.fortran/tabs2.f: New test.
1748         * testsuite/libgomp.fortran/task1.f90: New test.
1749         * testsuite/libgomp.fortran/task2.f90: New test.
1750         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1751         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1752         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1753         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1754         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1756 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1758         PR c++/36308
1759         * testsuite/libgomp.c++/ctor-11.C: New test.
1760         * testsuite/libgomp.c++/ctor-12.C: New test.
1762 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1764         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1766 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1768         PR middle-end/36106
1769         * testsuite/libgomp.c/atomic-5.c: New test.
1770         * testsuite/libgomp.c/atomic-6.c: New test.
1771         * testsuite/libgomp.c/autopar-1.c: New test.
1773 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1775         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1776         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1777         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1778         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1779         * configure: Regenerate.
1780         * Makefile.in, testsuite/Makefile.in: Likewise.
1782 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1784         PR bootstrap/35457
1785         * aclocal.m4: Regenerate.
1786         * configure: Regenerate.
1788 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1790         PR middle-end/35611
1791         * testsuite/libgomp.c/atomic-4.c: New test.
1793         PR libgomp/35625
1794         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1795         (gomp_iter_guided_next): Likewise.
1796         * testsuite/libgomp.c/pr35625.c: New test.
1798 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1800         * aclocal.m4: Regenerate.
1801         * configure: Likewise.
1802         * Makefile.in: Likewise.
1803         * testsuite/Makefile.in: Likewise.
1805 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1807         PR middle-end/35185
1808         * testsuite/libgomp.c++/pr35185.C: New test.
1810 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1812         PR middle-end/35549
1813         * testsuite/libgomp.c/pr35549.c: New test.
1815 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1817         * testsuite/libgomp.c/atomic-3.c: New test.
1819 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1821         PR fortran/33197
1822         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1823         .F08 file suffixes.
1825 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1827         PR libgomp/33131
1828         * configure.ac: Add ACX_HEADER_STRING.
1829         * env.c: Include strings.h.
1830         * aclocal.m4: Regenerate.
1831         * config.h.in: Regenerate.
1832         * configure: Regenerate.
1833         * Makefile.in: Regenerate.
1834         * testsuite/Makefile.in: Regenerate.
1836 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1838         PR middle-end/35196
1839         * testsuite/libgomp.c/pr35196.c: New test.
1841         PR middle-end/35130
1842         * testsuite/libgomp.fortran/pr35130.f90: New test.
1843         * testsuite/libgomp.c/pr35130.c: New test.
1845 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1847         PR middle-end/33880
1848         * testsuite/libgomp.c/pr33880.c: New test.
1849         * testsuite/libgomp.fortran/pr33880.f90: New test.
1851 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1853         * configure: Regenerate.
1855 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1857         * configure.ac: Move futex checking into ../config/futex.m4.
1858         * configure: Rebuilt.
1859         * aclocal.m4: Rebuilt.
1860         * Makefile.in: Rebuilt.
1862         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1863         2007-10-15 ../config/tls.m4 change.
1865 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1867         PR c++/34513
1868         * testsuite/libgomp.c/pr34513.c: New test.
1869         * testsuite/libgomp.c++/pr34513.C: New test.
1871 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1873         PR target/32765
1874         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1876 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1878         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1880 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1882         * testsuite/libgomp.c/private-1.c: New test.
1884 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1885             Paolo Bonzini  <bonzini@gnu.org>
1887         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1888         instead of 'VPATH ='.
1889         * Makefile.in: Regenerate.
1891 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1893         * configure.ac: Adjust makeinfo version check.
1894         * configure: Regenerate.
1896 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1898         PR fortran/34020
1899         * testsuite/libgomp.fortran/pr34020.f90: New test.
1901 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1903         PR c++/33894
1904         * testsuite/libgomp.c++/atomic-1.C: New test.
1906 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1908         PR libgomp/33275
1909         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1910         Make x and y integers rather than (implicit) reals.  Add private (j)
1911         clause to the last omp parallel.
1913 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1915         * configure: Regenerate following changes to ../config/tls.m4.
1917 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1919         * testsuite/libgomp.fortran/stack.f90: New test.
1921 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1923         * config/mingw32/proc.c: New file.
1925 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1927         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1928         (main): Use __get_cpuid to get i386 target fetaures.
1929         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1930         (main): Use __get_cpuid to get x86_64 target fetaures.
1932 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1934         PR target/32765
1935         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1936         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1938 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1940         PR fortran/32550
1941         * testsuite/libgomp.fortran/pr32550.f90: New test.
1942         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1944 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1946         * aclocal.m4: Regenerated.
1948 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1950         PR fortran/32359
1951         * testsuite/libgomp.fortran/pr32359.f90: New.
1953 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1955         PR libgomp/32468
1956         * sections.c (GOMP_parallel_sections_start): Only decrease
1957         number of threads to COUNT if dyn_var is true.
1958         * testsuite/libgomp.c/pr32468.c: New test.
1960 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1962         PR libgomp/26308
1963         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1965 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1967         PR middle-end/32362
1968         * testsuite/libgomp.c/pr32362-1.c: New test.
1969         * testsuite/libgomp.c/pr32362-2.c: New test.
1970         * testsuite/libgomp.c/pr32362-3.c: New test.
1972 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1974         * team.c (gomp_team_start): Fix setting up thread_attr
1975         stack size.
1977 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1979         * configure: Regenerate.
1981 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1983         * Makefile.in: Regenerate.
1984         * configure: Regenerate.
1985         * aclocal.m4: Regenerate.
1986         * testsuite/Makefile.in: Regenerate.
1988 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1990         * config/linux/proc.c: New file.
1992         PR libgomp/28482
1993         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1995 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1997         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1999 2007-04-16  Matthias Klose  <doko@debian.org>
2001         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2002         flags if not building with -m64.
2003         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2004         flag for i?86-*-* targets, if current target matches -m64.
2006 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2008         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2009         * Makefile.in: Regenerate.
2011 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2013         PR testsuite/31369
2014         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2015         ld_library_path.
2016         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2018 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2020         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2021         decls.
2022         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2023         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2024         (parse_affinity): New function.
2025         (initialize_env): Call it and gomp_init_affinity.
2026         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2027         create new pthread_attr_t and call gomp_init_thread_affinity
2028         on it for each thread before passing the attribute to pthread_create.
2029         * config/linux/affinity.c: New file.
2030         * config/posix/affinity.c: New file.
2031         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2032         * configure: Rebuilt.
2033         * config.h.in: Rebuilt.
2034         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2035         * Makefile.in: Rebuilt.
2037 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2039         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2040         *-*-darwin*.
2041         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2042         and use it if found.
2044 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2046         * testsuite/config/default.exp: New file.
2047         * testsuite/lib/libgomp.exp: New file.
2048         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2049         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2050         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2051         (libgomp_load): Remove.
2052         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2053         always_ld_library_path, not ld_library_path.  Set additional_flags
2054         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2055         (target_compile): Do not call libgomp_init.  Append lang_library_path
2056         and lang_link_flags to options.
2057         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2058         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2059         here.
2060         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2061         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2062         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2063         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2064         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2065         CX8 flag.
2066         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2067         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2068         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2069         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2070         * testsuite/libgomp.c/atomic-10.c: Ditto.
2072 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2074         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2075         dg-final cleanup-modules line.
2076         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2077         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2078         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2079         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2080         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2081         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2082         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2084 2007-03-18  Andreas Schwab  <schwab@suse.de>
2086         * acinclude.m4: Adjust regular expression for ld version
2087         extraction.
2088         * configure: Regenerate.
2090 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2092         * Makefile.am: Add install-pdf target as copied from
2093         automake v1.10 rules.
2094         * Makefile.in: Regenerate
2096 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2098         PR libgomp/28486
2099         * configure: Regenerate.
2101         PR c++/30703
2102         * testsuite/libgomp.c++/pr30703.C: New test.
2104 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2106         Revert:
2107         2006-07-05  Eric Christopher  <echristo@apple.com>
2108         * configure.ac: Depend addition of -pthread on host OS.
2109         * configure: Regenerate.
2111 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2113         * libgomp.texi: Fix spacing after abbreviations.
2115 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2117         PR libgomp/30546
2118         * configure.ac: Add check for makeinfo
2119         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2120         if an appropiate version of makeinfo is found.
2121         * aclocal.m4: Regenerated.
2122         * configure: Regenerated.
2123         * Makefile.in: Regenerated.
2124         * testsuite/Makefile.in: Regenerated.
2126 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2128         PR libgomp/30540
2129         * libgomp.texi: More about implementation-dependent settings.
2131 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2133         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2135 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2137         PR middle-end/30494
2138         * testsuite/libgomp.c/pr30494.c: New test.
2140 2007-01-15  Tom Tromey  <tromey@redhat.com>
2142         * configure: Rebuilt.
2143         * configure.ac: Fixed comment.
2145 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2147         * libgomp.texi: Document implementation specific default values of
2148         environment variables.
2150 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2152         PR libgomp/28209
2153         * libgomp.texi: New file.
2154         * configure.ac: Add --enable-generated-files-in-srcdir option.
2155         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2156         files to srcdir.
2157         * Makefile.in: Regenerated.
2158         * config.h.in: Regenerated.
2159         * testsuite/Makefile.in: Regenerated.
2160         * NOTES: Removed.
2162 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2164         PR libgomp/29949
2165         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2167 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2169         * configure: Regenerate.
2171 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2173         PR libgomp/29947
2174         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2175         start if there shouldn't be any loop iterations.
2176         (gomp_loop_ordered_static_start): Remove start == end test.
2177         * testsuite/libgomp.c/pr29947-1.c: New test.
2178         * testsuite/libgomp.c/pr29947-2.c: New test.
2180 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2182         * configure.tgt: Force initial-exec TLS model on Linux only.
2184 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2186         * configure: Regenerated.
2188 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2190         * env.c (parse_schedule): Reject out of range values.
2191         (parse_unsigned_long): Reject out of range, negative or zero values.
2193 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2195         PR fortran/29629
2196         * testsuite/libgomp.fortran/pr29629.f90: New test.
2198 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2200         PR libgomp/29494
2201         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2202         * config/posix95: New directory.
2203         * config/posix95/omp-lock.h: New file.
2204         * config/posix95/lock.c: Likewise.
2206 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2208         * aclocal.m4: Regenerate.
2209         * configure: Regenerate.
2211 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2213         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2214         '<' to '<='.
2216 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2218         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2219         test.
2220         * configure: Regenerate.
2221         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2223 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2225         PR middle-end/25261
2226         PR middle-end/28790
2227         * testsuite/libgomp.c/nestedfn-4.c: New test.
2228         * testsuite/libgomp.c/nestedfn-5.c: New test.
2229         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2231         PR fortran/29097
2232         * testsuite/libgomp.fortran/condinc1.f: New test.
2233         * testsuite/libgomp.fortran/condinc2.f: New test.
2234         * testsuite/libgomp.fortran/condinc3.f90: New test.
2235         * testsuite/libgomp.fortran/condinc4.f90: New test.
2236         * testsuite/libgomp.fortran/condinc1.inc: New file.
2238 2006-09-18  Tom Tromey  <tromey@redhat.com>
2240         * configure: Rebuilt.
2242 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2244         PR c/28768
2245         PR preprocessor/14634
2246         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2247         to AC_DEFINE.
2248         * configure: Regenerate.
2250 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2252         * testsuite/libgomp.fortran/reduction3.f90: Change
2253         -2147483648 to -huge(i)-1 to avoid overflow.
2254         * testsuite/libgomp.fortran/reduction4.f90: Change
2255         Z'ffffffff' to not(0) to avoid overflow.
2257 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2259         PR libgomp/25938
2260         * Makefile.am (libsubincludedir): New.
2261         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2262         * Makefile.in: Regenerate.
2264 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2266         PR libgomp/28725
2267         * env.c: Include ctype.h.
2268         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2269         leading and/or trailing whitespace and compare strings case
2270         insensitively.
2272 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2274         PR fortran/28390
2275         * testsuite/libgomp.fortran/pr28390.f: New test.
2277 2006-07-05  Eric Christopher  <echristo@apple.com>
2279         * configure.ac: Depend addition of -pthread on host OS.
2280         * configure: Regenerate.
2282 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2284         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2285         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2286         defined.
2288 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2290         PR libgomp/26175
2291         PR libgomp/26477
2292         * configure.ac: If neither --enable-linux-futex nor
2293         --disable-linux-futex is passed, determine the default by checking
2294         for compiling and/or running against NPTL.  With --enable-linux-futex,
2295         check if SYS_gettid and SYS_futex are defined.
2296         * configure: Rebuilt.
2298 2006-06-14  Richard Henderson  <rth@redhat.com>
2300         PR libgomp/28008
2301         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2302         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2304 2006-06-09  Richard Henderson  <rth@redhat.com>
2306         * env.c (gomp_nthreads_var): Change to unsigned long.
2307         (gomp_run_sched_chunk): Likewise.
2308         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2309         (initialize_env): Initialize gomp_thread_attr.
2310         * libgomp.h (gomp_nthreads_var): Update decl.
2311         (gomp_run_sched_chunk): Likewise.
2312         (gomp_thread_attr): Declare.
2313         * team.c (gomp_thread_attr): Export.
2314         (initialize_team): Don't initialize it.
2316 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2318         PR fortran/27916
2319         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2320         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2322 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2324         * config/mingw32/time.c: New file.
2325         * configure.tgt: Use it.
2327 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2329         * Makefile.am: Add install-html target. Add install-html to .PHONY
2330         * Makefile.in: Regenerate.
2332 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2334         PR libgomp/27612
2335         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2336         * testsuite/libgomp.c/critical-1.c: Likewise.
2337         * testsuite/libgomp.c/loop-1.c: Likewise.
2338         * testsuite/libgomp.c/loop-2.c: Likewise.
2339         * testsuite/libgomp.c/single-1.c: Likewise.
2340         * testsuite/libgomp.c/ordered-1.c: Likewise.
2341         * testsuite/libgomp.c/ordered-2.c: Likewise.
2343 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2345         PR middle-end/27416
2346         * libgomp.fortran/pr27416-1.f90: New test.
2348 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2350         PR fortran/27395
2351         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2352         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2354 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2356         PR c++/26943
2357         * testsuite/libgomp.c/pr26943-1.c: New test.
2358         * testsuite/libgomp.c/pr26943-2.c: New test.
2359         * testsuite/libgomp.c/pr26943-3.c: New test.
2360         * testsuite/libgomp.c/pr26943-4.c: New test.
2361         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2362         * testsuite/libgomp.c++/pr26943.C: New test.
2364 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2366         PR middle-end/27337
2367         * testsuite/libgomp.c++/pr27337.C: New test.
2369 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2371         PR c/26171
2372         * testsuite/libgomp.c/pr26171.c: New test.
2374 2006-04-25  Richard Henderson  <rth@redhat.com>
2376         PR libgomp/25865
2377         * configure.ac: Use GCC_CHECK_TLS.
2378         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2379         * Makefile.in, aclocal.m4, configure: Regenerate.
2381 2006-04-10  Matthias Klose  <doko@debian.org>
2383         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2384         directory names containing underscores.
2386 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2388         PR c++/26691
2389         * testsuite/libgomp.c++/pr26691.C: New test.
2391 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2393         * testsuite/libgomp.fortran/retval2.f90: New test.
2395 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2397         * testsuite/libgomp.c++: New directory.
2399 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2401         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2402         * config/posix/sem.c: Implement the above.
2404 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2406         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2407         define HAVE_BROKEN_POSIX_SEMAPHORES.
2408         * configure: Rebuilt.
2409         * config.h.in: Rebuilt.
2411 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2413         PR bootstrap/26161
2414         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2415         for the other pthread check.
2416         * configure: Regenerate.
2417         * config.h.in: Regenerate.
2419 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2421         PR libgomp/25938
2422         PR libgomp/25984
2423         * Makefile.am (fincludedir): New variable.
2424         (nodist_include_HEADERS): Remove Fortran files.
2425         (nodist_finclude_HEADERS): New variable.
2426         * Makefile.in: Regenerated.
2428 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2430         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2431         Remove tests for returning assumed character length arrays.
2433 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2434             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2436         PR libgomp/25936
2437         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2439 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2441         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2443 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2445         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2446         part of LD_LIBRARY_PATH manually.
2448 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2450         PR libgomp/25852
2451         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2452         libgomp_init.
2454 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2456         PR libgomp/25884
2457         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2458         * configure.ac (PERL): Don't set.
2459         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2460         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2461         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2462         * omp.h.in: Wrap the new configure substitutions with @ characters.
2463         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2464         * aclocal.m4, configure, Makefile.in: Regenerate.
2465         * mkomp_h.pl: Delete.
2467 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2469         PR libgomp/25259
2470         * configure.ac: Use GCC_HEADER_STDINT.
2471         * libgomp.h: Include gstdint.h.
2472         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2473         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2475 2006-01-24  Richard Henderson  <rth@redhat.com>
2477         PR libgomp/25942
2478         * configure.ac: Add AM_MAINTAINER_MODE.
2479         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2481 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2483         * Makefile.in: Regenerate.
2484         * testsuite/Makefile.in: Regenerate.
2485         * aclocal.m4: Regenerate.
2487 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2489         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2490         Solaris.
2491         * configure.ac: Add check for loadavg.h.
2492         (link_gomp): Adjust comment.
2493         * configure: Regenerate.
2494         * config.h.in: Regenerate.
2496 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2498         PR libgomp/25877
2499         * configure.ac: Remove check for alloca.h.
2500         * configure: Regenerate.
2501         * config.h.in: Regenerate.
2502         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2503         * team.c: Remove use of alloca.h.
2504         Call gomp_alloca instead of alloca.
2506 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2508         PR libgomp/25877
2509         * team.c: Add include of alloca.h.
2510         * configure.ac: Add check for alloca.h.
2511         * configure: Regenerate.
2512         * config.h.in: Regenerate.
2514 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2516         PR fortran/25219
2517         * testsuite/libgomp.fortran/pr25219.f90: New test.
2519 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2521         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2522         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2523         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2524         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2525         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2526         testsuite/libgomp.fortran/threadprivate1.f90,
2527         testsuite/libgomp.fortran/threadprivate2.f90,
2528         testsuite/libgomp.fortran/threadprivate3.f90,
2529         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2530         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2531         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2532         effective-target to TLS runtime.
2534         * testsuite/libgomp.fortran/pr25162.f: Require
2535         effective-target TLS runtime.
2537 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2539         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2540         * testsuite/libgomp.c/nestedfn-3.c: New test.
2542 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2544         PR fortran/25162
2545         * testsuite/libgomp.fortran/pr25162.f: New test.
2547 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2549         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2550         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2552 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2554         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2555         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2556         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2557         single.c, team.c, work.c, config/linux/alpha/futex.h,
2558         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2559         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2560         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2561         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2562         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2563         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2564         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2565         FSF address.
2567 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2569         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2570         to nodist_noinst_HEADERS.
2571         * Makefile.in: Rebuilt.
2573         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2574         add integer count field.
2575         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2576         omp_nest_lock_t type change.
2577         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2578         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2579         Increment count.
2580         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2581         Decrement count.
2582         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2583         Increment count if successful and return the new nesting level.
2584         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2585         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2586         * testsuite/libgomp.c/lib-1.c: New test.
2587         * testsuite/libgomp.fortran/lib1.f90: New test.
2588         * testsuite/libgomp.fortran/lib2.f: New test.
2589         * testsuite/libgomp.fortran/lib3.f: New test.
2591 2005-11-17  Richard Henderson  <rth@redhat.com>
2593         PR 24845
2594         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2595         * configure.ac (link_gomp): New.  Substitute it.
2596         (AC_CONFIG_FILES): Add libgomp.spec.
2597         * libgomp.spec.in: New file.
2598         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2599         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2601 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2603         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2604         reduction(-:var) behaving the same as reduction(+:var).
2605         * testsuite/libgomp.c/reduction-4.c: New test.
2607 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2609         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2610         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2611         testsuite/libgomp.c/copyin-3.c,
2612         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2613         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2614         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2615         testsuite/libgomp.c++/pr24455.C,
2616         testsuite/libgomp.fortran/threadprivate1.f90,
2617         testsuite/libgomp.fortran/threadprivate2.f90,
2618         testsuite/libgomp.fortran/threadprivate3.f90,
2619         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2620         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2621         testsuite/libgomp.fortran/omp_parse3.f90: Require
2622         effective-target TLS.
2624 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2626         * HEADER: Remove.
2628 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2630         PR libgomp/24797
2631         * team.c (initialize_team): Pass NULL rather than free as
2632         pthread_key_create destructor.  Initialize thread specific data
2633         pointer in initial thread to a static local variable rather than
2634         malloced memory.
2636 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2638         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2639         its location to ld_library_path.
2641 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2643         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2645 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2647         * testsuite/libgomp.c: Rename from libgomp.dg.
2649 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2651         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2652         threadprivate variable 'i'.
2654 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2656         * config/linux/s390/futex.h: New file.
2657         * configure.tgt: Use it.
2659         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2660         before the parallel.
2662 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2664         PR c++/24734
2665         * testsuite/libgomp.c++/master-1.C: New test.
2667 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2669         * testsuite/libgomp.dg/copyin-3.c: New test.
2671 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2673         * testsuite/libgomp.fortran/retval1.f90: New test.
2674         * testsuite/libgomp.fortran/vla7.f90: New test.
2676 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2678         * testsuite/libgomp.fortran/vla2.f90: New test.
2679         * testsuite/libgomp.fortran/vla3.f90: New test.
2680         * testsuite/libgomp.fortran/vla4.f90: New test.
2681         * testsuite/libgomp.fortran/vla5.f90: New test.
2682         * testsuite/libgomp.fortran/vla6.f90: New test.
2684 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2686         * config/linux/sparc/futex.h: New file.
2687         * configure.tgt: Use it.
2688         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2690         * critical.c: Include stdlib.h.
2691         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2692         ignoring return value.
2693         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2694         LIBGOMP_CHECK_SYNC_BUILTINS check.
2695         * configure: Rebuilt.
2697 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2699         * testsuite/libgomp.fortran/vla1.f90: New test.
2701 2005-10-31  Richard Henderson  <rth@redhat.com>
2703         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2704         setting 's' in different threads.
2706 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2708         * libgomp.h (attribute_hidden, ialias): Define.
2709         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2710         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2711         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2712         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2713         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2714         omp_test_lock, omp_test_nest_lock): Likewise.
2715         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2716         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2717         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2718         omp_test_lock, omp_test_nest_lock): Likewise.
2719         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2720         omp_get_dynamic, omp_get_nested): Likewise.
2721         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2722         omp_get_thread_num, omp_in_parallel): Likewise.
2723         * fortran.c (ialias_redirect): Define.
2724         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2725         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2726         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2727         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2728         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2729         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2730         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2731         omp_get_wtime): Add ialias_redirect.
2733 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2735         * fortran.c: Include stdlib.h.
2737 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2739         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2740         * Makefile.in: Regenerated.
2742 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2744         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2745         * libgomp_f.h.in (omp_check_defines): New function.
2746         * env.c: Include libgomp_f.h.
2747         (initialize_env): Call omp_check_defines.
2749         * testsuite/libgomp.dg/copyin-2.c: New test.
2750         * testsuite/libgomp.c++/copyin-2.C: New test.
2751         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2753         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2754         * testsuite/libgomp.fortran/sharing2.f90: New test.
2756         * testsuite/libgomp.dg/copyin-1.c: New test.
2757         * testsuite/libgomp.c++/copyin-1.C: New test.
2759 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2761         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2763         * testsuite/libgomp.fortran/workshare1.f90: New test.
2765         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2766         only test.
2767         * libgomp.fortran/sharing1.f90: New test.
2769 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2771         PR c++/24502
2772         * testsuite/libgomp.c++/loop-7.C: New test.
2774         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2776         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2777         * testsuite/libgomp.fortran/reduction6.f90: New test.
2778         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2780 2005-10-23  Richard Henderson  <rth@redhat.com>
2782         * testsuite/libgomp.c++/ctor-1.C: New.
2783         * testsuite/libgomp.c++/ctor-2.C: New.
2784         * testsuite/libgomp.c++/ctor-3.C: New.
2785         * testsuite/libgomp.c++/ctor-4.C: New.
2786         * testsuite/libgomp.c++/ctor-5.C: New.
2787         * testsuite/libgomp.c++/ctor-6.C: New.
2788         * testsuite/libgomp.c++/ctor-7.C: New.
2789         * testsuite/libgomp.c++/ctor-8.C: New.
2790         * testsuite/libgomp.c++/ctor-9.C: New.
2792 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2794         PR 24455
2795         * testsuite/libgomp.c++/pr24455-1.C: New test.
2796         * testsuite/libgomp.c++/pr24455.C: New test.
2797         * testsuite/libgomp.dg/pr24455-1.c: New test.
2798         * testsuite/libgomp.dg/pr24455.c: New test.
2800 2005-10-20  Richard Henderson  <rth@redhat.com>
2802         * testsuite/libgomp.c++/loop-6.C: New.
2803         * testsuite/libgomp.dg/loop-3.c: New.
2805 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2807         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2808         explicitly private.
2809         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2810         explicitly shared.
2812 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2814         * testsuite/libgomp.fortran/jacobi.f: New test.
2816 2005-10-19  Richard Henderson  <rth@redhat.com>
2818         * configure.tgt (i?86-linux): Default to with_arch instead of
2819         CFLAGS.  Add -mtune to match target_cpu.
2820         (x86_64-linux): Tune to i686.
2822         * fortran.c (omp_test_nest_lock_): Fix typo.
2824 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2826         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2827         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2828         * testsuite/libgomp.dg/ordered-3.c: New test.
2830         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2831         Remove volatile keyword.
2833         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2834         in COMMON block to avoid warnings on 64-bit targets.
2836 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2838         * testsuite/libgomp.dg/shared-3.c: New test.
2840 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2842         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2843         * testsuite/libgomp.fortran/reduction5.f90: New test.
2845 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2847         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2848         dg-options.
2849         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2850         flush loop now that __sync_synchronize has proper memory barrier.
2851         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2852         Add -ffixed-form to dg-options.
2854 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2856         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2857         from subdirectories.
2858         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2859         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2860         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2861         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2862         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2863         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2864         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2865         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2866         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2867         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2868         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2869         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2870         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2871         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2872         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2873         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2874         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2875         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2876         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2877         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2878         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2879         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2880         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2881         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2882         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2884 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2886         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2887         lang_library_path exists.  Use find instead of glob to gather tests.
2888         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2890 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2892         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2893         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2894         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2895         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2896         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2897         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2898         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2899         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2900         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2901         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2902         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2903         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2904         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2906 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2908         * testsuite/libgomp.dg/vla-1.c: New test.
2910         * testsuite/libgomp.fortran/reference2.f90: New test.
2912         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2913         declaration of omp_get_thread_num.
2914         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2915         use omp_lib.
2917         * testsuite/libgomp.fortran/reduction1.f90: New test.
2918         * testsuite/libgomp.fortran/reduction2.f90: New test.
2919         * testsuite/libgomp.fortran/reduction3.f90: New test.
2920         * testsuite/libgomp.fortran/reduction4.f90: New test.
2922 2005-10-13  Richard Henderson  <rth@redhat.com>
2924         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2925         * Makefile.in: Regenerate.
2926         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2927         * libgomp.h: Include bar.h.
2928         (struct gomp_barrier): Remove.
2929         (struct gomp_team): Add barrier.  Replace master_barrier with
2930         master_release.  Replace threads with ordered_release.
2931         (struct gomp_thread): Replace barrier with release.
2932         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2933         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2934         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2935         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2936         (GOMP_single_copy_end): Likewise.
2937         * team.c (gomp_threads_dock): New.
2938         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2939         (gomp_thread_start): Use gomp_barrier_wait.
2940         (new_team, free_team): Update for gomp_team changes.
2941         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2942         (gomp_team_end): Use gomp_barrier_wait.
2943         (initialize_team): Update for gomp_thread changes.
2944         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2945         (gomp_work_share_end_nowait): Use atomic ops when available.
2946         * config/linux/bar.c, config/linux/bar.h: New files.
2947         * config/posix/bar.c, config/posix/bar.h: New files.
2949 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2951         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2952         * testsuite/libgomp.dg/single-2.c: New test.
2954         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2955         lang_link_flags): Unset, so that they aren't inherited from previously
2956         sourced *.exp.
2958         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2960 2005-10-12  Richard Henderson  <rth@redhat.com>
2962         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2963         (libgomp_init): Use lang_test_file, lang_library_path, and
2964         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2966         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2967         (lang_test_file, lang_link_flags): New.
2968         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2970         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2971         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2972         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2973         testsuite/libgomp.c++/parallel-1.C,
2974         testsuite/libgomp.c++/reduction-1.C,
2975         testsuite/libgomp.c++/reduction-2.C,
2976         testsuite/libgomp.c++/reduction-3.C,
2977         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2978         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2979         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2980         New files, largely cribbed from the C testsuite.
2982 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2984         * testsuite/libgomp.fortran/character1.f90: New test.
2985         * testsuite/libgomp.fortran/character2.f90: New test.
2987         * testsuite/libgomp.dg/nested-1.c: New test.
2988         * testsuite/libgomp.dg/nested-2.c: New test.
2989         * testsuite/libgomp.fortran/do1.f90: New test.
2990         * testsuite/libgomp.fortran/do2.f90: New test.
2992         * testsuite/libgomp.fortran/reference1.f90: New test.
2994 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2996         * testsuite/libgomp.dg/reduction-1.c: New test.
2997         * testsuite/libgomp.dg/reduction-2.c: New test.
2998         * testsuite/libgomp.dg/reduction-3.c: New test.
3000 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3002         * testsuite/libgomp.dg/atomic-1.c: New test.
3003         * testsuite/libgomp.dg/atomic-2.c: New test.
3005 2005-10-09  Richard Henderson  <rth@redhat.com>
3007         * critical.c (atomic_lock): New.
3008         (initialize_critical): Initialize it.
3009         (GOMP_atomic_start, GOMP_atomic_end): New.
3010         * libgomp.map: Export them.
3011         * libgomp_g.h: Declare them.
3013         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3015 2005-10-02  Richard Henderson  <rth@redhat.com>
3017         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3018         to XCFLAGS instead of CFLAGS.
3020 2005-09-30  Richard Henderson  <rth@redhat.com>
3022         * configure.ac: Determine whether -pthread or -lpthread is needed.
3023         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3024         * Makefine.in, configure: Rebuild.
3026 2005-09-28  Richard Henderson  <rth@redhat.com>
3028         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3029         * testsuite/libgomp.dg/omp-single-3.c: New test.
3031 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3033         * testsuite/libgomp.dg/omp-single-2.c: New test.
3034         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3036 2005-09-27  Richard Henderson  <rth@redhat.com>
3038         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3039         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3041 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3043         * testsuite/libgomp.dg/omp-loop03.c: New test.
3045 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3047         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3049 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3051         * testsuite/libgomp.dg/omp-single-1.c: New test.
3052         * testsuite/libgomp.dg/shared-1.c: Return 0.
3053         Add prototype for abort.
3054         * testsuite/libgomp.dg/shared-2.c: Likewise.
3056 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3058         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3059         constructs.
3061 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3063         * testsuite/libgomp.dg/shared-1.c: New test.
3064         * testsuite/libgomp.dg/shared-2.c: New test.
3066 2005-09-24  Richard Henderson  <rth@redhat.com>
3068         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3070 2005-09-24  Richard Henderson  <rth@redhat.com>
3072         * iter.c (gomp_iter_static_next): Round up when computing number
3073         of iterations.  Don't bother distributing a remainder equally.
3075         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3076         Don't call srand.  Zero b before testing.
3077         (main): New.
3079 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3081         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3082         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3084 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3086         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3087         without !$omp end do, followed immediately by subroutine end.
3089 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3091         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3093 2005-09-22  Richard Henderson  <rth@redhat.com>
3095         * critical.c (GOMP_critical_name_start): Change argument to void**.
3096         Reuse the pointer space if the mutex fits.
3097         (GOMP_critical_name_end): Likewise.
3098         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3099         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3100         (GOMP_critical_name_end): Likewise.
3101         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3102         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3104 2005-09-20  Richard Henderson  <rth@redhat.com>
3106         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3107         (create_lock_lock): New.
3108         (initialize_critical): Initialize it.
3109         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3110         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3112 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3114         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3116 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3118         * testsuite/libgomp.dg/omp-loop01.c: New test.
3119         * testsuite/libgomp.dg/omp-loop02.c: New test.
3121 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3123         * configure.ac (AC_PROG_FC): Add.
3124         (USE_FORTRAN): New automake conditional.
3125         * configure: Rebuilt.
3126         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3127         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3128         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3129         Add rules to build them.
3130         * Makefile.in: Rebuilt.
3131         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3132         OMP_NEST_LOCK_KIND.
3133         * libgomp.map: Add Fortran wrappers.
3134         * libgomp_f.h.in: New file.
3135         * omp_lib.h.in: New file.
3136         * omp_lib.f90.in: New file.
3137         * fortran.c: New file.
3138         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3139         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3140         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3141         libgfortran has been built.
3142         * testsuite/libgomp.fortran/fortran.exp: New file.
3143         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3144         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3145         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3146         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3147         * testsuite/libgomp.fortran/omp_hello.f: New test.
3148         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3149         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3150         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3151         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3152         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3153         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3154         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3155         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3157 2005-08-30  Richard Henderson  <rth@redhat.com>
3159         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3160         function for when aliases are not usable.
3161         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3162         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3163         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3164         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3165         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3166         GOMP_loop_ordered_guided_next): Likewise.
3167         * ordered.c (GOMP_ordered_start): Likewise.
3169 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3171         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3172         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3173         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3174         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3175         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3176         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3177         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3178         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3179         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3181 2005-07-07  Eric Christopher  <echristo@redhat.com>
3182             Diego Novillo  <dnovillo@redhat.com>
3184         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3185         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3186         up code.
3187         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3188         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3189         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3190         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3191         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3192         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3193         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3195 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3197         * TOPLEVEL.patch: Remove.
3199 2005-05-16  Richard Henderson  <rth@redhat.com>
3201         * configure.ac: Test for clock_gettime.
3202         * config.h.in, configure: Rebuild.
3203         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3204         (omp_get_wtime): Use clock_gettime if available.
3205         (omp_get_wtick): Use clock_getres if available.
3207 2005-05-11  Richard Henderson  <rth@redhat.com>
3209         * config/linux/ia64/futex.h: New file.
3210         * configure.tgt: Use it.
3212         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3214 2005-05-07  Richard Henderson  <rth@redhat.com>
3216         * config/linux/powerpc/futex.h: New file.
3217         * configure.tgt: Use it.
3219         * config/linux/i486/futex.h: Merge ...
3220         * config/linux/x86_64/futex.h: ... into ...
3221         * config/linux/x86/futex.h: ... here.
3222         * configure.tgt: Update to match.
3224 2005-05-06  Richard Henderson  <rth@redhat.com>
3226         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3227         * config/linux/i486/futex.h: Likewise.
3228         * config/linux/x86_64/futex.h: Likewise.
3230         * config/linux/lock.c: New file.
3231         * config/linux/omp-lock.h: New file.
3233         * critical.c, env.h: Don't include omp.h
3234         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3235         * config/posix/time.c: Likewise.
3236         * config/posix/omp-lock.h: New file.
3237         * libgomp.h: Include omp-lock.h and omp.h.
3238         * Makefile.am (nodist_include_HEADERS): New.
3239         (omp.h): New rule.
3240         * configure.ac (PERL): New.
3241         * mkomp_h.pl: New file.
3242         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3243         with templates.
3244         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3246         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3247         build directory.  Re-add -march=i486 hack.
3249         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3250         (libgomp_link_flags): Remove.
3251         (libgomp_initialized): Remove.
3252         (libgomp_init): Don't protect from reinitialization.  Copy code
3253         from libstdc++ for getting the multilib set correctly.
3255 2005-05-05  Richard Henderson  <rth@redhat.com>
3257         * config/linux/alpha/futex.h: New file.
3258         * configure.tgt (alpha*-*-linux*): Use it.
3260         * config/posix/mutex.c: New file.
3261         * config/posix/sem.c: Use libgomp.h.
3263         * configure.tgt (x86_64-linux): Also test CC for -m32.
3264         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3266         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3267         after $gccpath.
3269         * Makefile.am (SUBDIRS): New.
3270         (libgomp_la_LDFLAGS): Add -lpthread.
3271         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3272         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3274         * libgomp_g.h: New file.
3275         * libgomp.h: Split out all public declarations to libgomp_g.h.
3276         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3277         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3278         * config/linux/sem.h: Likewise.
3279         * config/posix/sem.h: Likewise.
3281         * Makefile.am (AM_LDFLAGS): New.
3282         (libgomp_version_script): Split out from ...
3283         (libgomp_la_LDFLAGS): ... here.
3284         (libgomp_version_info): New.
3285         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3286         (LIBGOMP_ENABLE): New.
3287         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3288         (LIBGOMP_ENABLE_SYMVERS): New.
3289         * configure.ac (AC_INIT): Version 1.0.
3290         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3291         (enable-linux-futex): Likewise.  Rename from enable-futex.
3292         (libtool_VERSION): New.
3293         (LIBGOMP_ENABLE_SYMVERS): Use it.
3294         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3295         * Makefile.in, aclocal.m4, configure: Rebuild.
3297         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3298         (gomp_mutex_unlock_slow): Fix typo.
3299         * config/linux/sem.c: Similarly.
3300         (gomp_sem_post_slow): Fix typo.
3301         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3302         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3303         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3305         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3306         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3307         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3308         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3309         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3310         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3311         LDFLAGS.  Pull enable_futex check to top-level.
3312         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3313         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3315         First attempt at real configury.
3316         * Makefile, config.h: Remove file.
3317         * Makefile.am, Makefile.in: New file.
3318         * acinclude.m4 aclocal.m4: New file.
3319         * configure.ac, configure.tgt, configure: New file.
3321         * config/posix/lock.c: Rename from sys-lock.c.
3322         * config/posix/mutex.h: Rename from sys-mutex.h.
3323         * config/posix/sem.c: Rename from sys-sem.c.
3324         * config/posix/sem.h: Rename from sys-sem.h.
3325         * config/posix/proc.c: Rename from sys-proc.c.
3326         * config/posix/time.c: Rename from sys-proc.c.
3328         * config/linux/mutex.c: New file.
3329         * config/linux/mutex.h: New file.
3330         * config/linux/sem.c: New file.
3331         * config/linux/sem.h: New file.
3332         * config/linux/i486/futex.h: New file.
3333         * config/linux/x86_64/futex.h: New file.
3335 2005-05-04  Richard Henderson  <rth@redhat.com>
3337         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3338         * libgomp.h: Declare them.
3339         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3340         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3342 2005-05-04  Richard Henderson  <rth@redhat.com>
3344         * libgomp-1 code drop
3346 2005-05-04  Richard Henderson  <rth@redhat.com>
3348         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3349         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3350         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3351         (gomp_iter_static_next): Update.
3352         (gomp_ordered_static_next): Update.
3353         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3354         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3355         totally empty range.
3356         (gomp_loop_ordered_static_next): Refine test for calling
3357         gomp_ordered_static_next.
3358         * testsuite/ordered-1.c: Add case for more threads than iterations.
3360         * iter.c (gomp_iter_runtime_next_locked): Remove.
3361         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3362         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3363         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3364         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3365         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3366         gomp_loop_ordered_guided_next): Downcase name, make static, add
3367         an external alias with the old name.
3368         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3369         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3370         switch and call one of the above static functions.
3371         * libgomp.h: Update.
3373         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3374         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3375         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3376         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3377         GOMP_loop_ordered_guided_start): Update to match.
3378         * sections.c (GOMP_sections_start): Likewise.
3379         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3381         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3382         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3383         Use bounds check instead of modulus.
3384         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3385         (gomp_ordered_last): Don't sync with ordered_owner here.
3386         (gomp_ordered_next): Likewise.
3387         (gomp_ordered_static_loop_next): Likewise.
3388         * loop.c, libgomp.h: Update to match.
3390         * libgomp.h (GOMP_barrier): Declare.
3392         * testsuite/barrier-1.c: New file.
3393         * testsuite/critical-1.c: New file.
3394         * testsuite/ordered-2.c: New file.
3395         * testsuite/ordered-1.c: New file.
3396         * testsuite/sections-1.c: New file.
3397         * testsuite/single-1.c: New file.
3398         * testsuite/Makefile (TESTS): Add them.
3400 2005-05-04  Richard Henderson  <rth@redhat.com>
3402         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3403         * loop.c (GOMP_loop_static_start): If not the startup thread,
3404         acquire the mutex to wait for initialization complete.
3405         (GOMP_loop_ordered_static_start): Likewise.
3406         (GOMP_loop_ordered_runtime_start): Likewise.
3407         (GOMP_loop_ordered_static_first): Remove.
3408         (GOMP_loop_ordered_dynamic_first): Remove.
3409         (GOMP_loop_ordered_guided_first): Remove.
3410         (GOMP_loop_ordered_runtime_first): Remove.
3411         * ordered.c (gomp_ordered_loop_first): Post to own release when
3412         we're the first thread.
3413         (gomp_ordered_loop_last): Wait on release if not owner.
3414         (gomp_ordered_loop_next): Likewise.
3415         (gomp_ordered_static_loop_init): New.
3416         (gomp_ordered_static_loop_next): Use ordered_owner.
3417         (GOMP_ordered_start): Likewise.
3418         * work.c (gomp_new_work_share): Initialize ordered_owner.
3420 2005-05-03  Richard Henderson  <rth@redhat.com>
3422         * Makefile (OPT): New.
3423         (CFLAGS): Use it.
3425         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3426         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3427         * libgomp.h, libgomp.map, NOTES: Update to match.
3429         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3430         Add initialized and thr members.
3431         (gomp_thread_start): Pause when initially spawned to wait for
3432         the whole team to be created.
3433         (gomp_team_start): Release team members at the end.
3435         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3436         (f_foo_1): Use GOMP_loop_end.
3437         (f_foo_2): Use GOMP_loop_end_nowait.
3439         * testsuite/loop-2.c: New file.
3440         * testsuite/Makefile (TESTS): Add it.
3442 2005-05-03  Richard Henderson  <rth@redhat.com>
3444         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3445         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3446         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3447         initial work_share.
3449         * testsuite/Makefile: New file.
3450         * testsuite/loop-1.c: New file.
3452 2005-05-03  Richard Henderson  <rth@redhat.com>
3454         Initial implementation and checkin.