gcc/ChangeLog
[official-gcc.git] / libgomp / ChangeLog
blob8b81b27f934f4aa393b5004297d63fd7a0a1ee64
1 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3         * testsuite/libgomp.c/loop-13.c: New test.
4         * testsuite/libgomp.c/loop-14.c: New test.
5         * testsuite/libgomp.c/loop-15.c: New test.
6         * testsuite/libgomp.c++/loop-13.C: New test.
7         * testsuite/libgomp.c++/loop-14.C: New test.
8         * testsuite/libgomp.c++/loop-15.C: New test.
10 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12         PR middle-end/56217
13         * testsuite/libgomp.c++/pr56217.C: New test.
15 2013-02-01  Alan Modra  <amodra@gmail.com>
17         * task.c (GOMP_task, GOMP_taskwait): Comment.
19 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
20             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
22         PR libgomp/55561
23         * config/linux/wait.h (do_spin): Use atomic load for addr.
24         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
25         for intptr and ptrlock.
26         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
27         for ptrlock.
29 2013-01-22  Alan Modra  <amodra@gmail.com>
31         PR libgomp/51376
32         PR libgomp/56073
33         * task.c (GOMP_task): Revert 2011-12-09 change.
34         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
35         barrier to read task->children..
36         (gomp_barrier_handle_tasks): ..and matching atomic store with
37         release barrier here when setting parent->children to NULL.
39 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
40             Tobias Burnus  <burnus@net-b.de>
42         PR driver/55884
43         * testsuite/libgomp.fortran/fortran.exp: Use
44         -fintrinsic-modules-path= instead of
45         -fintrinsic-modules-path.
47 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
49         Update copyright years.
51 2012-12-19  Tobias Burnus  <burnus@net-b.de>
53         * testsuite/libgomp.fortran/fortran.exp: Set
54         -fintrinsic-modules-path.
56 2012-12-19  Tobias Burnus  <burnus@net-b.de>
58         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
59         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
61 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
63         PR libgomp/55411
64         * team.c (gomp_free_thread): Decrease gomp_managed_threads
65         if pool had any threads_used.
67 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
69         * testsuite/libgomp.c++/pr24455.C: Use
70         -Wl,-undefined,dynamic_lookup on darwin.
72 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
74         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
76 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
78         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
80 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
81             Jim MacArthur  <jim.macarthur@arm.com>
82             Marcus Shawcroft  <marcus.shawcroft@arm.com>
83             Nigel Stephens  <nigel.stephens@arm.com>
84             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
85             Richard Earnshaw  <rearnsha@arm.com>
86             Sofiane Naci  <sofiane.naci@arm.com>
87             Stephen Thomas  <stephen.thomas@arm.com>
88             Tejas Belagod  <tejas.belagod@arm.com>
89             Yufeng Zhang  <yufeng.zhang@arm.com>
91         * configure.tgt: Add AArch64.
93 2012-10-04  Jason Merrill  <jason@redhat.com>
95         * testsuite/libgomp.c++/tls-init1.C: New.
97 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
99         * configure: Regenerated.
101 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
103         * config/linux/mips/futex.h (sys_futex0): Change to static
104         function with noinline, nomips16 attributes under MIPS16. Adjust
105         asm statement to place 'li v0,SYS_futex' immediately before
106         syscall insn.
108 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
110         * libgomp.texi (Library Index): Renamed from "Index" to prevent
111         conflict with index.html on case-insensitive file systems.
113 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
115         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
116         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
118 2012-07-02  Richard Guenther  <rguenther@suse.de>
119             Michael Matz  <matz@suse.de>
120             Tobias Grosser <tobias@grosser.es>
121             Sebastian Pop <sebpop@gmail.com>
123         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
124         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
125         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
126         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
128 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
130         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
132 2012-06-22  Richard Guenther  <rguenther@suse.de>
134         Merge from graphite branch
135         2012-01-13  Tobias Grosser  <tobias@grosser.es>
137         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
138         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
140 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
142         PR middle-end/53580
143         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
144         use GOMP_barrier () call instead.
145         * testsuite/libgomp.c/pr26943-3.c: Likewise.
146         * testsuite/libgomp.c/pr26943-4.c: Likewise.
147         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
148         call GOMP_barrier instead.
149         * testsuite/libgomp.fortran/vla5.f90: Likewise.
151 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
153         PR libgomp/52993
154         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
155         argument to memset call.
157 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
159         * configure: Regenerated.
161 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
163         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
165 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
167         PR bootstrap/52812
168         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
170 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
172         PR middle-end/52547
173         * testsuite/libgomp.c/pr52547.c: New test.
175 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
177         * testsuite/lib/libgomp.exp: load fortran-modules.exp
179 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
181         * configure.tgt (mips-sgi-irix6*): Remove.
183 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
185         * configure.tgt (alpha*-dec-osf*): Remove.
187         * config/osf/sem.h: Remove.
188         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
190 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
192         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
194 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
196         PR libstdc++/52188
197         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
198         Remove ENABLE_SYMVERS_SOL2.
199         * configure: Regenerate.
200         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
201         (PREPROCESS): New variable.
202         (libgomp.ver): New target.
203         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
204         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
205         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
206         Use libgomp.ver.
207         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
208         * Makefile.in: Regenerate.
210 2012-02-14  Walter Lee  <walt@tilera.com>
212         * configure.tgt: Handle tilegx and tilepro.
213         * config/linux/tile/futex.h: New file.
215 2012-02-08  Richard Guenther  <rguenther@suse.de>
217         PR tree-optimization/46886
218         * testsuite/libgomp.c/pr46886.c: New testcase.
220 2012-01-25  Matthias Klose  <doko@ubuntu.com>
222         * config/linux/arm: Remove empty directory.
223         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
225 2011-12-09  Alan Modra  <amodra@gmail.com>
227         PR libgomp/51376
228         * task.c (GOMP_taskwait): Don't access task->children outside of
229         task_lock mutex region.
230         (GOMP_task): Likewise.
232 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
234         PR libgomp/51132
235         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
236         to file scope.
237         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
238         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
239         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
240         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
241         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
243 2011-12-02  Alan Modra  <amodra@gmail.com>
245         * config/linux/affinity.c: Use atomic rather than sync builtin.
246         * config/linux/lock.c: Likewise.
247         * config/linux/ptrlock.h: Likewise.
248         * config/linux/ptrlock.c: Likewise.
249         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
250         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
251         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
252         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
253         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
254         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
255         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
256         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
257         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
258         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
260 2011-11-30  Alan Modra  <amodra@gmail.com>
262         PR libgomp/51298
263         * config/linux/bar.h: Use atomic rather than sync builtins.
264         * config/linux/bar.c: Likewise.  Add missing acquire
265         synchronisation on generation field.
266         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
267         double unlock.
269 2011-11-30  Alan Modra  <amodra@gmail.com>
271         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
272         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
273         * config/linux/mutex.h: Use atomic rather than sync builtins.
274         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
275         * config/linux/omp-lock.h: Comment fix.
276         * config/linux/arm/mutex.h: Delete.
277         * config/linux/powerpc/mutex.h: Delete.
278         * config/linux/ia64/mutex.h: Delete.
279         * config/linux/mips/mutex.h: Delete.
281 2011-11-30  Alan Modra  <amodra@gmail.com>
283         PR libgomp/51249
284         * config/linux/sem.h: Rewrite.
285         * config/linux/sem.c: Rewrite.
287 2011-11-28  Richard Henderson  <rth@redhat.com>
289         * libgomp.h (enum memmodel): New.
291 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
293         * configure: Regenerate.
295 2011-10-10  Matthias Klose  <doko@ubuntu.com>
297         * config/posix95: Remove empty directory.
299 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
301         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
303 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
305         PR fortran/49792
306         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
307         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
309 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
311         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
313 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
315         PR libgomp/49965
316         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
318 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
320         * config/linux/proc.h: New.
321         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
322         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
323         (gomp_init_num_threads): Update call to cpuset_popcount.
324         (get_num_procs): Ditto.
325         * config/linux/affinity.c (gomp_init_affinity): Call
326         gomp_cpuset_popcount.
328 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
330         PR fortran/42041
331         PR fortran/46752
332         * omp.h.in (omp_in_final): New prototype.
333         * omp_lib.f90.in (omp_in_final): New interface.
334         (omp_integer_kind, omp_logical_kind): Remove
335         and replace all its uses in the module with 4.
336         (openmp_version): Change to 201107.
337         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
338         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
339         kind for the parameters.
340         (omp_in_final): New external.
341         (openmp_version): Change to 201107.
342         * task.c (omp_in_final): New function.
343         (gomp_init_task): Initialize final_task.
344         (GOMP_task): Remove unused attribute from flags.  Handle final
345         tasks.
346         (GOMP_taskyield): New function.
347         (omp_in_final): Return true if if (false) or final (true) task
348         or descendant of final (true).
349         * fortran.c (omp_in_final_): New function.
350         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
351         (GOMP_3.0): Export GOMP_taskyield.
352         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
353         variables.
354         (parse_unsigned_long_list): New function.
355         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
356         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
357         even if parse_affinity returned false.
358         * config/linux/affinity.c (gomp_init_affinity): Handle
359         gomp_cpu_affinity_len == 0.
360         * libgomp_g.h (GOMP_taskyield): New prototype.
361         * libgomp.h (struct gomp_task): Add final_task field.
362         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
363         * team.c (gomp_team_start): Override new task's nthreads_var icv
364         if list form OMP_NUM_THREADS has been used and it has value for
365         the new nesting level.
367         * testsuite/libgomp.c/atomic-11.c: New test.
368         * testsuite/libgomp.c/atomic-12.c: New test.
369         * testsuite/libgomp.c/atomic-13.c: New test.
370         * testsuite/libgomp.c/atomic-14.c: New test.
371         * testsuite/libgomp.c/reduction-6.c: New test.
372         * testsuite/libgomp.c/task-5.c: New test.
373         * testsuite/libgomp.c++/atomic-2.C: New test.
374         * testsuite/libgomp.c++/atomic-3.C: New test.
375         * testsuite/libgomp.c++/atomic-4.C: New test.
376         * testsuite/libgomp.c++/atomic-5.C: New test.
377         * testsuite/libgomp.c++/atomic-6.C: New test.
378         * testsuite/libgomp.c++/atomic-7.C: New test.
379         * testsuite/libgomp.c++/atomic-8.C: New test.
380         * testsuite/libgomp.c++/atomic-9.C: New test.
381         * testsuite/libgomp.c++/task-8.C: New test.
382         * testsuite/libgomp.c++/reduction-4.C: New test.
383         * testsuite/libgomp.fortran/allocatable7.f90: New test.
384         * testsuite/libgomp.fortran/allocatable8.f90: New test.
385         * testsuite/libgomp.fortran/crayptr3.f90: New test.
386         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
387         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
388         * testsuite/libgomp.fortran/pointer1.f90: New test.
389         * testsuite/libgomp.fortran/pointer2.f90: New test.
390         * testsuite/libgomp.fortran/task4.f90: New test.
392 2011-08-02  Tobias Burnus  <burnus@net-b.de>
394         * libgomp.texi: Update OpenMP spec references to 3.1.
395         (omp_in_final,OMP_PROC_BIND): New sections.
396         (OMP_NUM_THREADS): Document that the value can be now a list.
397         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
399 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
401         * config/linux/x86/futex.h: Check __x86_64__ instead of
402         __LP64__.
404 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
406         PR middle-end/49897
407         PR middle-end/49898
408         * testsuite/libgomp.c/pr49897-1.c: New test.
409         * testsuite/libgomp.c/pr49897-2.c: New test.
410         * testsuite/libgomp.c/pr49898-1.c: New test.
411         * testsuite/libgomp.c/pr49898-2.c: New test.
413 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
415         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
416         for ia32 instead of ilp32.
418         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
419         * testsuite/libgomp.c/atomic-6.c: Likewise.
421 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
423         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
424         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
426 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
428         PR libgomp/45351
429         * config/osf/sem.h: New file.
430         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
432 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
434         PR target/49541
435         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
436         ldflags.
438 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
440         * config/linux/wait.h (do_spin): New inline, largely copied
441         from do_wait, just don't do futex_wait here, instead return true if
442         it should be done.
443         (do_wait): Implement using do_spin.
444         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
445         to prototype.
446         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
447         __sync_bool_compare_and_swap, pass the oldval to
448         gomp_mutex_lock_slow.
449         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
450         If all mutex contenders are just spinning and not sleeping, don't
451         change state to 2 unnecessarily.  Optimize the loop when state has
452         already become 2 to use just one atomic operation per loop instead
453         of two.
454         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
455         to prototype.
456         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
457         __sync_bool_compare_and_swap, pass the oldval to
458         gomp_mutex_lock_slow.
460 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
462         PR libgomp/49490
463         * iter.c (gomp_iter_static_next): For chunk size 0
464         only use n ceil/ nthreads size for the first
465         n % nthreads threads in the team instead of
466         all threads except for the last few ones which
467         get less work or none at all.
468         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
469         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
470         chunk argument, set run_sched_modifier to 0 for static
471         resp. 1 for other kinds.  If chunk argument is 0
472         and not static, set value to 1.
474 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
476         PR c++/49043
477         * testsuite/libgomp.c++/pr49043.C: New test.
479         PR c++/48869
480         * testsuite/libgomp.c++/pr48869.C: New test.
482 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
484         PR fortran/48894
485         * fortran.c: Include limits.h.
486         (TO_INT): Define.
487         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
488         *set.
489         (omp_set_num_threads_8_, omp_set_schedule_8_,
490         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
491         omp_get_team_size_8_): Use TO_INT macro.
492         * testsuite/libgomp.fortran/pr48894.f90: New test.
494 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
496         PR middle-end/48591
497         * testsuite/libgomp.c/pr48591.c: New test.
499 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
501         PR bootstrap/48135
502         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
503         * configure: Regenerate.
505 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
507         PR fortran/47886
508         * testsuite/libgomp.fortran/task3.f90: New test.
510 2011-02-24  Tobias Burnus  <burnus@net-b.de>
512         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
514 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
516         PR libgomp/47854
517         * libgomp.texi (omp_get_wtime): Don't say time in the past
518         must be Unix Epoch.
520 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
522         PR libgomp/47804
523         * testsuite/libgomp.fortran/fortran.exp: Check for both
524         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
525         but $blddir != "", still append ${blddir}/${lang_library_path}
526         to ld_library_path.
528 2011-02-16  Tobias Burnus  <burnus@net-b.de>
530         PR libgomp/47758
531         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
532         of libquadmath.a before adding its libpath to ldflags.
534 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
536         PR libgomp/47731
537         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
538         to FUTEX_WAIT futex syscall.
539         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
541 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
543         * configure: Regenerate.
545 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
547         PR libstdc++/36104
548         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
550 2011-01-16  Gerald Pfeifer
552         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
554 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
556         PR fortran/46874
557         * libgomp.fortran/allocatable6.f90: New test.
559 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
561         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
562         * configure: Regenerate.
564 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
566         PR target/40125
567         PR lto/46695
568         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
569         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
570         * aclocal.m4: Regenerate.
571         * configure: Regenerate.
572         * Makefile.in: Regenerate.
573         * testsuite/Makefile.in: Regenerate.
575 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
577         PR fortran/46753
578         * libgomp.fortran/pr46753.f90: New test.
580         PR libgomp/43706
581         * env.c (initialize_env): Default to spin count 300000
582         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
583         is specified.
585         PR libgomp/45240
586         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
587         at the end if sync builtins aren't supported.
589 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
591         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
593 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
595         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
597 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
599         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
601 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
602             Tobias Burnus  <burnus@net-b.de>
604         PR fortran/32049
605         * configure.ac:
606         * configure: Regenerate.
608 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
610         * config/linux/futex.h: New.
611         * config/linux/arm/mutex.h: New.
612         * configure.tgt (arm*-*-linux*): Add config path.
614 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
616         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
618 2010-09-23  Tobias Burnus  <burnus@net-b.de>
620         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
621         Change Fortran datatype to LOGICAL.
622         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
623         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
625 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
627         * configure: Regenerate.
629 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
631         * libgomp.texi: Add function keyword to a couple of Fortran
632         interfaces, use integer instead of int for Fortran.
634 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
636         * libgomp.texi: Fix spelling and pasto problems throughout.
637         Adjust prototypes to match code.
639 2010-07-24  Tobias Burnus  <burnus@net-b.de>
641         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
642         silence -fwhole-file warning.
644 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
646         * configure.tgt (*-*-solaris2.[56]*): Removed.
648 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
650         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
651         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
652         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
653         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
654         targetting solaris2*.
655         * configure: Regenerate.
656         * config.h.in: Regenerate.
658         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
659         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
660         Add libgomp_version_dep.
661         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
662         versioning.
663         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
664         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
665         * Makefile.in: Regenerate.
667         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
668         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
669         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
670         to common block, protected by
671         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
673 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
675         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
677 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
679         PR bootstrap/43170
680         * configure: Regenerate.
682 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
684         PR other/43620
685         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
686         * configure: Regenerate.
687         * Makefile.in: Regenerate.
688         * testsuite/Makefile.in: Regenerate.
690 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
692         PR c/43893
693         * testsuite/libgomp.c/pr43893.c: New test.
694         * testsuite/libgomp.c++/pr43893.C: New test.
696 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
698         PR middle-end/43570
699         * testsuite/libgomp.fortran/vla8.f90: New test.
701 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
703         PR libgomp/43706
704         * config/linux/affinity.c (gomp_init_affinity): Decrease
705         gomp_available_cpus if affinity mask confines the process to fewer
706         CPUs.
707         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
708         non-NULL, just return gomp_available_cpus.
710         PR libgomp/43569
711         * sections.c (gomp_sections_init): Initialize ws->mode.
713 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
715         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
716         not unused bar variable.
717         * configure: Regenerate.
719 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
721         * Makefile.in: Regenerate.
722         * aclocal.m4: Regenerate.
723         * testsuite/Makefile.in: Regenerate.
725 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
727         PR libgomp/42942
728         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
729         (initialize_env): Adjust callers.
730         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
731         when the argument is 0.
733         * testsuite/libgomp.c/pr42942.c: New test.
735 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
737         PR middle-end/42644
738         PR middle-end/42130
739         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
740         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
742 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
744         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
745         * testsuite/libgomp.c++/task-6.C: Likewise.
747 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
749         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
751 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
753         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
754         * configure: Regenerate.
756 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
758         PR fortran/42866
759         * testsuite/libgomp.fortran/allocatable5.f90: New test.
761 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
763         * configure.ac: Test for executability of GFORTRAN.
764         * configure: Regenerate.
766 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
768         * configure: Regenerate.
770 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
772         PR libgomp/42602
773         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
775 2010-01-03  Richard Guenther  <rguenther@suse.de>
777         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
779 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
781         * testsuite/libgomp.graphite/pr4118.c: New.
783 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
785         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
786         for darwin, protect the test with require-effective-target tls_runtime.
787         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
789 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
791         PR target/41605
792         * testsuite/lib/libgomp.exp: Provide -B options to allow for
793         link spec %s substitutions for static libraries.
795 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
797         PR testsuite/42135
798         * libgomp.graphite/force-parallel-2.c: Reduce array size.
800 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
802         * Makefile.in: Regenerate.
803         * configure: Regenerate.
804         * testsuite/Makefile.in: Regenerate.
806 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
808         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
809         settings for LC_ALL and LANG.
811 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
813         PR fortran/42162
814         * testsuite/libgomp.fortran/pr42162.f90: New test.
816 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
818         PR middle-end/42029
819         * testsuite/libgomp.c/pr42029.c: New test.
821 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
823         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
824         *s.  Accept ld version without text in ()s.
825         * configure: Regenerated.
827 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
829         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
831 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
833         PR libgomp/41418
834         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
835         or a hyphen (happens with fortran language disabled).
836         * configure: Regenerate.
838 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
840         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
841         use sed script portable to Solaris /bin/sed for extracting ld
842         version.
843         * configure: Regenerate.
845 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
847         * testsuite/libgomp.graphite/bounds.c: New test.
849 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
851         * Makefile.am (libgomp_la_LINK): New.
852         * Makefile.in: Regenerate.
854 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
856         * configure.ac (AC_PREREQ): Bump to 2.64.
858 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
860         * Makefile.am (install-html, install-pdf): Remove.
861         * Makefile.in: Regenerate.
863         * Makefile.in: Regenerate.
864         * aclocal.m4: Regenerate.
865         * config.h.in: Regenerate.
866         * configure: Regenerate.
867         * testsuite/Makefile.in: Regenerate.
869 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
871         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
872         * Makefile.in: Regenerate.
874 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
876         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
877         * Makefile.in: Regenerate.
879 2009-08-19  Tobias Burnus  <burnus@net-b.de>
881         PR fortran/41102
882         omp_lib.h.in: Fix -std=f95 errors.
885 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
887         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
888         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
889         * testsuite/libgomp.graphite/graphite.exp: New.
891 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
893         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
894         only build.
896 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
898         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
899         needed memory barrier semantics.
900         * config/linux/mips/mutex.h: New file.
902 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
904         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
906 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
908         * configure: Regenerate.
910 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
912         PR testsuite/40699
913         PR testsuite/40707
914         PR testsuite/40709
915         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
916         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
917         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
919 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
921         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
922         options when choosing a multilib.
924 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
926         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
927         ld_library_path.  Use add_path.  Add just find_libgcc_s to
928         ld_library_path, not every libgcc multilib directory.
929         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
930         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
931         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
932         Use add_path.
933         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
935 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
937         * Makefile.am (LTLDFLAGS): Define.
938         (LINK): Define.
939         * Makefile.in: Regenerate.
941 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
943         PR fortran/39718
944         * testsuite/libgomp.fortran/fortran.exp: Don't link with
945         libgfortranbegin, check existence of libgfortran.a instead of
946         libgfortranbegin.a.
948 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
950         PR libgomp/40174
951         * team.c (gomp_thread_start): Destroy thr->release semaphore.
952         (gomp_free_pool_helper): Likewise.
954 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
955             Jakub Jelinek  <jakub@redhat.com>
957         PR fortran/35423
958         * testsuite/libgomp.fortran/workshare2.f90: New test.
960 2009-04-09  Nick Clifton  <nickc@redhat.com>
962         * iter.c: Change copyright header to refer to version 3 of the
963         GNU General Public License with version 3.1 of the GCC Runtime
964         Library Exception and to point readers at the COPYING3 and
965         COPYING3.RUNTIME files and the FSF's license web page.
966         * alloc.c: Likewise.
967         * barrier.c: Likewise.
968         * config/bsd/proc.c: Likewise.
969         * config/linux/affinity.c: Likewise.
970         * config/linux/alpha/futex.h: Likewise.
971         * config/linux/bar.c: Likewise.
972         * config/linux/bar.h: Likewise.
973         * config/linux/ia64/futex.h: Likewise.
974         * config/linux/ia64/mutex.h: Likewise.
975         * config/linux/lock.c: Likewise.
976         * config/linux/mips/futex.h: Likewise.
977         * config/linux/mutex.c: Likewise.
978         * config/linux/mutex.h: Likewise.
979         * config/linux/powerpc/futex.h: Likewise.
980         * config/linux/proc.c: Likewise.
981         * config/linux/ptrlock.c: Likewise.
982         * config/linux/ptrlock.h: Likewise.
983         * config/linux/s390/futex.h: Likewise.
984         * config/linux/sem.c: Likewise.
985         * config/linux/sem.h: Likewise.
986         * config/linux/sparc/futex.h: Likewise.
987         * config/linux/wait.h: Likewise.
988         * config/linux/x86/futex.h: Likewise.
989         * config/mingw32/proc.c: Likewise.
990         * config/mingw32/time.c: Likewise.
991         * config/posix/affinity.c: Likewise.
992         * config/posix/bar.c: Likewise.
993         * config/posix/bar.h: Likewise.
994         * config/posix/lock.c: Likewise.
995         * config/posix/mutex.h: Likewise.
996         * config/posix/proc.c: Likewise.
997         * config/posix/ptrlock.h: Likewise.
998         * config/posix/sem.c: Likewise.
999         * config/posix/sem.h: Likewise.
1000         * config/posix/time.c: Likewise.
1001         * config/posix95/lock.c: Likewise.
1002         * critical.c: Likewise.
1003         * env.c: Likewise.
1004         * error.c: Likewise.
1005         * fortran.c: Likewise.
1006         * iter_ull.c: Likewise.
1007         * libgomp.h: Likewise.
1008         * libgomp_f.h.in: Likewise.
1009         * libgomp_g.h: Likewise.
1010         * loop.c: Likewise.
1011         * loop_ull.c: Likewise.
1012         * omp.h.in: Likewise.
1013         * omp_lib.f90.in: Likewise.
1014         * omp_lib.h.in: Likewise.
1015         * ordered.c: Likewise.
1016         * parallel.c: Likewise.
1017         * sections.c: Likewise.
1018         * single.c: Likewise.
1019         * task.c: Likewise.
1020         * team.c: Likewise.
1021         * work.c: Likewise.
1023 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1025         * testsuite/config/default.exp: Change copyright header to refer to
1026         version 3 of the GNU General Public License and to point readers
1027         at the COPYING3 file and the FSF's license web page.
1029 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1031         PR middle-end/39573
1032         * libgomp.c++/pr39573.C: New test.
1034 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1036         PR other/39591
1037         * testsuite/libgomp.c/pr39591-1.c: New test.
1038         * testsuite/libgomp.c/pr39591-2.c: New test.
1039         * testsuite/libgomp.c/pr39591-3.c: New test.
1041 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1043         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1044         * testsuite/libgomp.c/atomic-6.c: Ditto.
1046 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1048         PR c/39495
1049         * testsuite/libgomp.c/loop-12.c: New test.
1050         * testsuite/libgomp.c/loop-11.c: New test.
1051         * testsuite/libgomp.c++/loop-11.C: New test.
1052         * testsuite/libgomp.c++/loop-12.C: New test.
1053         * testsuite/libgomp.c++/for-8.C: New test.
1055 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1057         * configure: Regenerate.
1059 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1061         PR middle-end/39154
1062         * testsuite/libgomp.c/pr39154.c: New test.
1064 2009-01-30  Ian Lance Taylor  <iant@google.com>
1066         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1067         libgomp_ld_is_gold.  Get gold version number.
1068         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1069         * configure: Rebuild.
1071 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1073         * testsuite/lib/libgomp.exp: Add -B option for targets that
1074         use libgfortran.a%s in their specs.
1076 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1078         PR libgomp/38086
1079         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1080         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1081         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1082         * configure: Regenerated.
1083         * config.h.in: Likewise.
1085 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1087         PR c++/38650
1088         * testsuite/libgomp.c/pr38650.c: New test.
1089         * testsuite/libgomp.c++/pr38650.C: New test.
1091 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1093         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1095 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1097         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1099 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1101         * configure: Regenerate.
1103 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1105         PR middle-end/36802
1106         * testsuite/libgomp.c/pr36802-1.c: New test.
1107         * testsuite/libgomp.c/pr36802-2.c: New test.
1108         * testsuite/libgomp.c/pr36802-3.c: New test.
1110 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1112         PR libgomp/38270
1113         * config/linux/powerpc/mutex.h: New.
1115 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1117         PR c++/38257
1118         * testsuite/libgomp.c++/for-7.C: New test.
1120         PR c++/38348
1121         * testsuite/libgomp.c++/for-6.C: New test.
1123 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1125         PR testsuite/28870
1126         * testsuite/lib/libgomp.exp: Include new timeout library files.
1127         (libgomp_target_compile): Set timeout value from new proc.
1129 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1131         PR libgomp/37938
1132         * config/linux/ia64/mutex.h: New.
1134 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1136         PR libgomp/37935
1137         * libgomp.texi (Runtime library routines, environment variables):
1138         Update for OpenMP version 3.0.
1140 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1141             Steve Ellcey  <sje@cup.hp.com>
1143         * configure: Regenerate for new libtool.
1144         * Makefile.in: Ditto.
1145         * testsuite/Makefile.in: Ditto.
1147 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1148             Andreas Tobler  <a.tobler@schweiz.org>
1150         * config/bsd/proc.c: New file.
1151         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1152         * configure.ac: Check for header <sys/sysctl.h>
1153         * configure: Regenerate.
1154         * config.h.in: Likewise.
1156 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1158         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1160 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1162         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1163         * Makefile.in: Regenerated.
1164         * testsuite/Makefile.in: Regenerated.
1166 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1168         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1169         depend on blddir if blddir exists.
1170         (libgomp_target_compile): Likewise.
1171         * testsuite/libgomp.c++/c++.exp: Likewise.
1172         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1174 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1176         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1177         Do not list GPL as Invariant Section.
1179 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1180             Chao-ying Fu  <fu@mips.com>
1182         * configure.tgt: Enable futex for MIPS.
1183         * config/linux/mips/futex.h: New file.
1185 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1187         * team.c (gomp_team_end): Free team immediately if it has
1188         just one thread.
1190 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1192         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1193         * testsuite/libgomp.fortran/fortran.exp: Same.
1194         * testsuite/libgomp.c/c.exp: Same.
1195         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1196         directory to library path first.
1198 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1200         * env.c (parse_stacksize): Add cast to avoid warning.
1201         (parse_spincount): Likewise.
1203 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1205         * testsuite/libgomp.c/loop-10.c: New test.
1206         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1207         * libgomp.c++/loop-6.C (main): Likewise.
1209         PR debug/36617
1210         * testsuite/libgomp.c/debug-1.c: New test.
1212 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1214         * testsuite/libgomp.c/nqueens-1.c: New test.
1216         PR c++/36523
1217         * testsuite/libgomp.c++/task-7.C: New function.
1219 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1221         * configure: Regenerate.
1223 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1225         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1226         mutex when HAVE_SYNC_BUILTINS isn't defined.
1228 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1230         * libgomp.texi (omp_test_lock): Fix typo.
1232 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1234         * omp_lib.f90.in: Add "implicit none".
1236 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1238         PR middle-end/36506
1239         * testsuite/libgomp.c/reduction-5.c: New test.
1241 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1243         * libgomp.h (struct gomp_task): Add in_tied_task field.
1244         * task.c (gomp_init_task): Initialize it.
1245         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1246         unconditionally.  Don't call gomp_team_barrier_wake if
1247         current task is implicit or if(0) from implicit and number of
1248         running tasks is equal to nthreads - 1.
1250         PR libgomp/36471
1251         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1252         omp_get_team_size_8): Fix pastos.
1254         PR libgomp/36469
1255         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1256         * configure: Regenerated.
1257         * config.h.in: Regenerated.
1258         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1259         defined.
1261 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1263         PR bootstrap/36452
1264         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1265         (GOMP_loop_ull_dynamic_start): Likewise.
1266         (GOMP_loop_ull_guided_start): Likewise.
1267         (GOMP_loop_ull_ordered_static_start): Likewise.
1268         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1269         (GOMP_loop_ull_ordered_guided_start): Likewise.
1271 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1272             Richard Henderson  <rth@redhat.com>
1273             Ulrich Drepper  <drepper@redhat.com>
1274             Jakob Blomer  <jakob.blomer@ira.uka.de>
1276         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1277         Substitute also OMP_*LOCK_25*.
1278         * configure: Regenerated.
1279         * config.h.in: Regenerated.
1280         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1281         ptrlock.c and task.c.
1282         * Makefile.in: Regenerated.
1283         * testsuite/Makefile.in: Regenerated.
1284         * task.c: New file.
1285         * loop_ull.c: New file.
1286         * iter_ull.c: New file.
1287         * libgomp.h: Include ptrlock.h.
1288         (enum gomp_task_kind): New type.
1289         (struct gomp_team): Add task_lock, task_queue, task_count,
1290         task_running_count, single_count fields.  Add
1291         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1292         Remove work_share_lock, generation_mask,
1293         oldest_live_gen, num_live_gen and init_work_shares fields, add
1294         work work_share_list_alloc, work_share_list_free and work_share_chunk
1295         fields.  Change work_shares from pointer to pointers into an array.
1296         Change ordered_release field into gomp_sem_t ** from flexible array
1297         member.  Add implicit_task and initial_work_shares fields.
1298         Move close to the end of the struct.
1299         (struct gomp_team_state): Add single_count, last_work_share,
1300         active_level and level fields, remove work_share_generation.
1301         (gomp_barrier_handle_tasks): New prototype.
1302         (gomp_finish_task): New inline function.
1303         (struct gomp_work_share): Move chunk_size, end, incr into
1304         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1305         next_ll fields.  Reshuffle fields.  Add next_alloc,
1306         next_ws, next_free and inline_ordered_team_ids fields, change
1307         ordered_team_ids into pointer from flexible array member.
1308         Add mode field.  Put lock and next into a different cache line
1309         from most of the write-once fields.
1310         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1311         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1312         gomp_iter_ull_guided_next): New prototypes.
1313         (gomp_new_icv): New prototype.
1314         (struct gomp_thread): Add thread_pool and task fields.
1315         (struct gomp_thread_pool): New type.
1316         (gomp_new_team): New prototype.
1317         (gomp_team_start): Change type of last argument.
1318         (gomp_new_work_share): Removed.
1319         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1320         (gomp_work_share_init_done): New static inline.
1321         (gomp_throttled_spin_count_var, gomp_available_cpus,
1322         gomp_managed_threads): New extern decls.
1323         (gomp_init_task): New prototype.
1324         (gomp_spin_count_var): New extern var decl.
1325         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1326         or no alias support, or if not PIC.
1327         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1328         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1329         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1330         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1331         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1332         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1333         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1334         gomp_test_nest_lock_25): New prototypes.
1335         (omp_lock_symver, strong_alias): Define.
1336         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1337         decls.
1338         (gomp_end_task): New.
1339         (struct gomp_task_icv, gomp_global_icv): New.
1340         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1341         (struct gomp_task): New.
1342         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1343         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1344         (gomp_icv): New.
1345         (gomp_schedule_type): Reorder enum to match
1346         omp_sched_t.
1347         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1348         fields.
1349         (gomp_thread_start): Add gomp_team_barrier_wait call.
1350         For non-nested case remove clearing of docked thread thr fields.
1351         Use pool fields instead of global gomp_* variables.  Use
1352         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1353         Create tasks for each member thread.
1354         (free_team): Only destroy team barrier, task_lock here and free it.
1355         (gomp_free_thread): Free last_team if non-NULL.
1356         (gomp_team_end): Call gomp_team_barrier_wait instead of
1357         gomp_barrier_wait.  For nested case call one extra
1358         gomp_barrier_wait.  Move here some destruction from free_team.
1359         Call free_team on pool->last_team if any, rather than freeing
1360         current team.  Destroy work_share_list_free_lock ifndef
1361         HAVE_SYNC_BUILTINS.
1362         (gomp_new_icv): New function.
1363         (gomp_threads, gomp_threads_size, gomp_threads_used,
1364         gomp_threads_dock): Removed.
1365         (gomp_thread_destructor): New variable.
1366         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1367         functions.
1368         (gomp_team_start): Create new pool if current thread doesn't have
1369         one.  Use pool fields instead of global gomp_* variables.
1370         Initialize thread_pool field for new threads.  Clear single_count.
1371         Change last argument from ws to team, don't create
1372         new team, set ts.work_share to &team->work_shares[0] and clear
1373         ts.last_work_share.  Don't clear ts.work_share_generation.
1374         If number of threads changed, adjust atomically gomp_managed_threads.
1375         Use gomp_init_task instead of gomp_new_task,
1376         set thr->task to the corresponding implicit_task array entry.
1377         Create tasks for each member thread.  Initialize ts.level.
1378         (initialize_team): Call pthread_key_create on
1379         gomp_thread_destructor.
1380         (team_destructor): New function.
1381         (new_team): Removed.
1382         (gomp_new_team): New function.
1383         (free_team): Free gomp_work_share blocks chained through next_alloc,
1384         instead of freeing work_shares and destroying work_share_lock.
1385         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1386         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1387         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1388         of gomp_barrier_wait.
1389         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1390         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1391         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1392         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1393         of gomp_barrier_wait.
1394         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1395         gomp_work_share_init_done if gomp_work_share_start returned true.
1396         Don't unlock ws->lock.
1397         * work.c: Include stddef.h.
1398         (free_work_share): Use work_share_list_free_lock instead
1399         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1400         Call gomp_fini_work_share and then either free ws if orphaned, or
1401         put it into work_share_list_free list of the current team.
1402         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1403         functions.
1404         (gomp_work_share_start, gomp_work_share_end,
1405         gomp_work_share_end_nowait): Rewritten.
1406         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1407         (openmp_version): Set to 200805.
1408         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1409         omp_sched_guided, omp_sched_auto): New parameters.
1410         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1411         omp_set_max_active_levels, omp_get_max_active_levels,
1412         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1413         omp_get_active_level): New interfaces.
1414         * omp_lib.h.in (openmp_version): Set to 200805.
1415         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1416         omp_sched_guided, omp_sched_auto): New parameters.
1417         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1418         omp_set_max_active_levels, omp_get_max_active_levels,
1419         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1420         omp_get_active_level): New externals.
1421         * loop.c: Include limits.h.
1422         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1423         GFS_AUTO.
1424         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1425         Likewise.  Use gomp_icv.
1426         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1427         ts.static_trip here.
1428         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1429         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1430         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1431         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1432         don't unlock ws->lock, otherwise lock it.
1433         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1434         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1435         (gomp_parallel_loop_start): Call gomp_new_team instead of
1436         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1437         Adjust gomp_team_start caller.  Pass 0 as second argument to
1438         gomp_resolve_num_threads.
1439         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1440         If adding ws->chunk_size nthreads + 1 times after end won't
1441         overflow, set ws->mode to 1.
1442         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1443         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1444         GOMP_loop_ull_ordered_static_start,
1445         GOMP_loop_ull_ordered_dynamic_start,
1446         GOMP_loop_ull_ordered_guided_start,
1447         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1448         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1449         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1450         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1451         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1452         prototypes.
1453         * libgomp.map: Export lock routines also @@OMP_2.0.
1454         (GOMP_loop_ordered_dynamic_first,
1455         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1456         GOMP_loop_ordered_static_first): Remove.
1457         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1458         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1459         GOMP_loop_ull_ordered_dynamic_next,
1460         GOMP_loop_ull_ordered_dynamic_start,
1461         GOMP_loop_ull_ordered_guided_next,
1462         GOMP_loop_ull_ordered_guided_start,
1463         GOMP_loop_ull_ordered_runtime_next,
1464         GOMP_loop_ull_ordered_runtime_start,
1465         GOMP_loop_ull_ordered_static_next,
1466         GOMP_loop_ull_ordered_static_start,
1467         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1468         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1469         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1470         (omp_set_schedule, omp_get_schedule,
1471         omp_get_thread_limit, omp_set_max_active_levels,
1472         omp_get_max_active_levels, omp_get_level,
1473         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1474         omp_set_schedule_, omp_set_schedule_8_,
1475         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1476         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1477         omp_get_max_active_levels_, omp_get_level_,
1478         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1479         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1480         New exports @@OMP_3.0.
1481         * omp.h.in (omp_sched_t): New type.
1482         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1483         omp_set_max_active_levels, omp_get_max_active_levels,
1484         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1485         omp_get_active_level): New prototypes.
1486         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1487         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1488         gomp_thread_limit_var, gomp_remaining_threads_count,
1489         gomp_remaining_threads_lock): New variables.
1490         (parse_spincount): New function.
1491         (initialize_env): Call gomp_init_num_threads unconditionally.
1492         Initialize gomp_available_cpus.  Call parse_spincount,
1493         initialize gomp_{,throttled_}spin_count_var
1494         depending on presence and value of OMP_WAIT_POLICY and
1495         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1496         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1497         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1498         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1499         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1500         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1501         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1502         (gomp_global_icv): New.
1503         (parse_schedule): Use it.  Parse "auto".
1504         (omp_set_num_threads): Use gomp_icv.
1505         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1506         Likewise.
1507         (omp_get_max_threads): Move from parallel.c.
1508         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1509         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1510         add ialias.
1511         (parse_stacksize, parse_wait_policy): New functions.
1512         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1513         both wrappers for compatibility and new locks.
1514         (omp_set_schedule, omp_get_schedule,
1515         omp_get_thread_limit, omp_set_max_active_levels,
1516         omp_get_max_active_levels, omp_get_level,
1517         omp_get_ancestor_thread_num, omp_get_team_size,
1518         omp_get_active_level): New ialias_redirect.
1519         (omp_set_schedule_, omp_set_schedule_8_,
1520         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1521         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1522         omp_get_max_active_levels_, omp_get_level_,
1523         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1524         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1525         New functions.
1526         * parallel.c: Include limits.h.
1527         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1528         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1529         argument to gomp_team_start.  Pass 0 as second argument to
1530         gomp_resolve_num_threads.
1531         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1532         if gomp_thread_limit_var != ULONG_MAX.
1533         (omp_in_parallel): Implement using ts.active_level.
1534         (omp_get_max_threads): Move to env.c.
1535         (omp_get_level, omp_get_ancestor_thread_num,
1536         omp_get_team_size, omp_get_active_level): New functions,
1537         add ialias.
1538         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1539         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1540         gomp_iter_dynamic_next instead of the _locked variant and don't take
1541         lock around it, otherwise acquire it before calling
1542         gomp_iter_dynamic_next_locked.
1543         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1544         gomp_iter_dynamic_next instead of the _locked variant and don't take
1545         lock around it.
1546         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1547         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1548         Adjust gomp_team_start caller.  Pass count as second argument to
1549         gomp_resolve_num_threads, don't adjust num_threads after the call.
1550         Use gomp_icv.
1551         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1552         ws->chunk_size by incr.
1553         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1554         code.
1555         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1556         types.
1557         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1558         (omp_check_defines): Check even the compat defines.
1559         * config/linux/ptrlock.c: New file.
1560         * config/linux/ptrlock.h: New file.
1561         * config/linux/wait.h: New file.
1562         * config/posix/ptrlock.c: New file.
1563         * config/posix/ptrlock.h: New file.
1564         * config/linux/bar.h (gomp_team_barrier_wait,
1565         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1566         (gomp_team_barrier_set_task_pending,
1567         gomp_team_barrier_clear_task_pending,
1568         gomp_team_barrier_set_waiting_for_tasks,
1569         gomp_team_barrier_waiting_for_tasks,
1570         gomp_team_barrier_done): New inlines.
1571         (gomp_barrier_t): Rewritten.
1572         (gomp_barrier_state_t): New typedef.
1573         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1574         gomp_barrier_wait_start): Rewritten.
1575         (gomp_barrier_wait_end): Change second argument to
1576         gomp_barrier_state_t.
1577         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1578         inlines.
1579         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1580         futex.h.
1581         (gomp_barrier_wait_end): Rewritten.
1582         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1583         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1584         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1585         (gomp_barrier_state_t): New typedef.
1586         (gomp_team_barrier_wait,
1587         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1588         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1589         into the return value.  Return gomp_barrier_state_t.
1590         (gomp_team_barrier_set_task_pending,
1591         gomp_team_barrier_clear_task_pending,
1592         gomp_team_barrier_set_waiting_for_tasks,
1593         gomp_team_barrier_waiting_for_tasks,
1594         gomp_team_barrier_done): New inlines.
1595         (gomp_barrier_wait_end): Change second argument to
1596         gomp_barrier_state_t.
1597         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1598         inlines.
1599         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1600         (gomp_barrier_wait_end): Change second argument to
1601         gomp_barrier_state_t.
1602         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1603         gomp_team_barrier_wake): New functions.
1604         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1605         futex.h.
1606         (gomp_futex_wake, gomp_futex_wait): New variables.
1607         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1608         * config/linux/lock.c: Rewrite to make locks task owned,
1609         for backwards compatibility provide the old entrypoints
1610         if symbol versioning.  Include wait.h instead of libgomp.h and
1611         futex.h.
1612         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1613         * config/posix95/lock.c: Rewrite to make locks task owned,
1614         for backwards compatibility provide the old entrypoints
1615         if symbol versioning.
1616         * config/posix/lock.c: Rewrite to make locks task owned,
1617         for backwards compatibility provide the old entrypoints
1618         if symbol versioning.
1619         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1620         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1621         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1622         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1623         (sys_futex0): Return error code.
1624         (futex_wake, futex_wait): If ENOSYS was returned, clear
1625         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1626         (cpu_relax, atomic_write_barrier): New static inlines.
1627         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1628         (futex_wake, futex_wait): If ENOSYS was returned, clear
1629         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1630         (cpu_relax, atomic_write_barrier): New static inlines.
1631         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1632         (sys_futex0): Return error code.
1633         (futex_wake, futex_wait): If ENOSYS was returned, clear
1634         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1635         (cpu_relax, atomic_write_barrier): New static inlines.
1636         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1637         (sys_futex0): Return error code.
1638         (futex_wake, futex_wait): If ENOSYS was returned, clear
1639         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1640         (cpu_relax, atomic_write_barrier): New static inlines.
1641         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1642         (sys_futex0): Return error code.
1643         (futex_wake, futex_wait): If ENOSYS was returned, clear
1644         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1645         (cpu_relax, atomic_write_barrier): New static inlines.
1646         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1647         (sys_futex0): Return error code.
1648         (futex_wake, futex_wait): If ENOSYS was returned, clear
1649         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1650         (cpu_relax, atomic_write_barrier): New static inlines.
1651         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1652         futex.h.
1653         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1654         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1655         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1656         types.
1657         (omp_nest_lock_t): Change owner into void *, add lock field.
1658         * config/posix95/omp-lock.h: Include semaphore.h.
1659         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1660         (omp_lock_t): Use sem_t instead of mutex if semaphores
1661         aren't broken.
1662         (omp_nest_lock_t): Likewise.  Change owner to void *.
1663         * config/posix/omp-lock.h: Include semaphore.h.
1664         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1665         (omp_lock_t): Use sem_t instead of mutex if semaphores
1666         aren't broken.
1667         (omp_nest_lock_t): Likewise.  Add owner field.
1669 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1671         * testsuite/libgomp.c/collapse-1.c: New test.
1672         * testsuite/libgomp.c/collapse-2.c: New test.
1673         * testsuite/libgomp.c/collapse-3.c: New test.
1674         * testsuite/libgomp.c/icv-1.c: New test.
1675         * testsuite/libgomp.c/icv-2.c: New test.
1676         * testsuite/libgomp.c/lib-2.c: New test.
1677         * testsuite/libgomp.c/lock-1.c: New test.
1678         * testsuite/libgomp.c/lock-2.c: New test.
1679         * testsuite/libgomp.c/lock-3.c: New test.
1680         * testsuite/libgomp.c/loop-4.c: New test.
1681         * testsuite/libgomp.c/loop-5.c: New test.
1682         * testsuite/libgomp.c/loop-6.c: New test.
1683         * testsuite/libgomp.c/loop-7.c: New test.
1684         * testsuite/libgomp.c/loop-8.c: New test.
1685         * testsuite/libgomp.c/loop-9.c: New test.
1686         * testsuite/libgomp.c/nested-3.c: New test.
1687         * testsuite/libgomp.c/nestedfn-6.c: New test.
1688         * testsuite/libgomp.c/sort-1.c: New test.
1689         * testsuite/libgomp.c/task-1.c: New test.
1690         * testsuite/libgomp.c/task-2.c: New test.
1691         * testsuite/libgomp.c/task-3.c: New test.
1692         * testsuite/libgomp.c/task-4.c: New test.
1693         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1694         to C++ testsuite default compiler options.
1695         * testsuite/libgomp.c++/collapse-1.C: New test.
1696         * testsuite/libgomp.c++/collapse-2.C: New test.
1697         * testsuite/libgomp.c++/ctor-10.C: New test.
1698         * testsuite/libgomp.c++/for-1.C: New test.
1699         * testsuite/libgomp.c++/for-2.C: New test.
1700         * testsuite/libgomp.c++/for-3.C: New test.
1701         * testsuite/libgomp.c++/for-4.C: New test.
1702         * testsuite/libgomp.c++/for-5.C: New test.
1703         * testsuite/libgomp.c++/loop-8.C: New test.
1704         * testsuite/libgomp.c++/loop-9.C: New test.
1705         * testsuite/libgomp.c++/loop-10.C: New test.
1706         * testsuite/libgomp.c++/task-1.C: New test.
1707         * testsuite/libgomp.c++/task-2.C: New test.
1708         * testsuite/libgomp.c++/task-3.C: New test.
1709         * testsuite/libgomp.c++/task-4.C: New test.
1710         * testsuite/libgomp.c++/task-5.C: New test.
1711         * testsuite/libgomp.c++/task-6.C: New test.
1712         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1713         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1714         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1715         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1716         * testsuite/libgomp.fortran/collapse1.f90: New test.
1717         * testsuite/libgomp.fortran/collapse2.f90: New test.
1718         * testsuite/libgomp.fortran/collapse3.f90: New test.
1719         * testsuite/libgomp.fortran/collapse4.f90: New test.
1720         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1721         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1722         * testsuite/libgomp.fortran/lib4.f90: New test.
1723         * testsuite/libgomp.fortran/lock-1.f90: New test.
1724         * testsuite/libgomp.fortran/lock-2.f90: New test.
1725         * testsuite/libgomp.fortran/nested1.f90: New test.
1726         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1727         * testsuite/libgomp.fortran/strassen.f90: New test.
1728         * testsuite/libgomp.fortran/tabs1.f90: New test.
1729         * testsuite/libgomp.fortran/tabs2.f: New test.
1730         * testsuite/libgomp.fortran/task1.f90: New test.
1731         * testsuite/libgomp.fortran/task2.f90: New test.
1732         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1733         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1734         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1735         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1736         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1738 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1740         PR c++/36308
1741         * testsuite/libgomp.c++/ctor-11.C: New test.
1742         * testsuite/libgomp.c++/ctor-12.C: New test.
1744 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1746         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1748 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1750         PR middle-end/36106
1751         * testsuite/libgomp.c/atomic-5.c: New test.
1752         * testsuite/libgomp.c/atomic-6.c: New test.
1753         * testsuite/libgomp.c/autopar-1.c: New test.
1755 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1757         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1758         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1759         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1760         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1761         * configure: Regenerate.
1762         * Makefile.in, testsuite/Makefile.in: Likewise.
1764 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1766         PR bootstrap/35457
1767         * aclocal.m4: Regenerate.
1768         * configure: Regenerate.
1770 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1772         PR middle-end/35611
1773         * testsuite/libgomp.c/atomic-4.c: New test.
1775         PR libgomp/35625
1776         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1777         (gomp_iter_guided_next): Likewise.
1778         * testsuite/libgomp.c/pr35625.c: New test.
1780 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1782         * aclocal.m4: Regenerate.
1783         * configure: Likewise.
1784         * Makefile.in: Likewise.
1785         * testsuite/Makefile.in: Likewise.
1787 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1789         PR middle-end/35185
1790         * testsuite/libgomp.c++/pr35185.C: New test.
1792 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1794         PR middle-end/35549
1795         * testsuite/libgomp.c/pr35549.c: New test.
1797 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1799         * testsuite/libgomp.c/atomic-3.c: New test.
1801 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1803         PR fortran/33197
1804         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1805         .F08 file suffixes.
1807 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1809         PR libgomp/33131
1810         * configure.ac: Add ACX_HEADER_STRING.
1811         * env.c: Include strings.h.
1812         * aclocal.m4: Regenerate.
1813         * config.h.in: Regenerate.
1814         * configure: Regenerate.
1815         * Makefile.in: Regenerate.
1816         * testsuite/Makefile.in: Regenerate.
1818 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1820         PR middle-end/35196
1821         * testsuite/libgomp.c/pr35196.c: New test.
1823         PR middle-end/35130
1824         * testsuite/libgomp.fortran/pr35130.f90: New test.
1825         * testsuite/libgomp.c/pr35130.c: New test.
1827 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1829         PR middle-end/33880
1830         * testsuite/libgomp.c/pr33880.c: New test.
1831         * testsuite/libgomp.fortran/pr33880.f90: New test.
1833 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1835         * configure: Regenerate.
1837 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1839         * configure.ac: Move futex checking into ../config/futex.m4.
1840         * configure: Rebuilt.
1841         * aclocal.m4: Rebuilt.
1842         * Makefile.in: Rebuilt.
1844         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1845         2007-10-15 ../config/tls.m4 change.
1847 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1849         PR c++/34513
1850         * testsuite/libgomp.c/pr34513.c: New test.
1851         * testsuite/libgomp.c++/pr34513.C: New test.
1853 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1855         PR target/32765
1856         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1858 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1860         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1862 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1864         * testsuite/libgomp.c/private-1.c: New test.
1866 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1867             Paolo Bonzini  <bonzini@gnu.org>
1869         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1870         instead of 'VPATH ='.
1871         * Makefile.in: Regenerate.
1873 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1875         * configure.ac: Adjust makeinfo version check.
1876         * configure: Regenerate.
1878 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1880         PR fortran/34020
1881         * testsuite/libgomp.fortran/pr34020.f90: New test.
1883 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1885         PR c++/33894
1886         * testsuite/libgomp.c++/atomic-1.C: New test.
1888 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1890         PR libgomp/33275
1891         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1892         Make x and y integers rather than (implicit) reals.  Add private (j)
1893         clause to the last omp parallel.
1895 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1897         * configure: Regenerate following changes to ../config/tls.m4.
1899 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1901         * testsuite/libgomp.fortran/stack.f90: New test.
1903 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1905         * config/mingw32/proc.c: New file.
1907 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1909         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1910         (main): Use __get_cpuid to get i386 target fetaures.
1911         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1912         (main): Use __get_cpuid to get x86_64 target fetaures.
1914 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1916         PR target/32765
1917         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1918         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1920 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1922         PR fortran/32550
1923         * testsuite/libgomp.fortran/pr32550.f90: New test.
1924         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1926 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1928         * aclocal.m4: Regenerated.
1930 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1932         PR fortran/32359
1933         * testsuite/libgomp.fortran/pr32359.f90: New.
1935 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1937         PR libgomp/32468
1938         * sections.c (GOMP_parallel_sections_start): Only decrease
1939         number of threads to COUNT if dyn_var is true.
1940         * testsuite/libgomp.c/pr32468.c: New test.
1942 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1944         PR libgomp/26308
1945         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1947 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1949         PR middle-end/32362
1950         * testsuite/libgomp.c/pr32362-1.c: New test.
1951         * testsuite/libgomp.c/pr32362-2.c: New test.
1952         * testsuite/libgomp.c/pr32362-3.c: New test.
1954 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1956         * team.c (gomp_team_start): Fix setting up thread_attr
1957         stack size.
1959 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1961         * configure: Regenerate.
1963 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1965         * Makefile.in: Regenerate.
1966         * configure: Regenerate.
1967         * aclocal.m4: Regenerate.
1968         * testsuite/Makefile.in: Regenerate.
1970 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1972         * config/linux/proc.c: New file.
1974         PR libgomp/28482
1975         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1977 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1979         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1981 2007-04-16  Matthias Klose  <doko@debian.org>
1983         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1984         flags if not building with -m64.
1985         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1986         flag for i?86-*-* targets, if current target matches -m64.
1988 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1990         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1991         * Makefile.in: Regenerate.
1993 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1995         PR testsuite/31369
1996         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1997         ld_library_path.
1998         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2000 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2002         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2003         decls.
2004         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2005         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2006         (parse_affinity): New function.
2007         (initialize_env): Call it and gomp_init_affinity.
2008         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2009         create new pthread_attr_t and call gomp_init_thread_affinity
2010         on it for each thread before passing the attribute to pthread_create.
2011         * config/linux/affinity.c: New file.
2012         * config/posix/affinity.c: New file.
2013         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2014         * configure: Rebuilt.
2015         * config.h.in: Rebuilt.
2016         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2017         * Makefile.in: Rebuilt.
2019 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2021         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2022         *-*-darwin*.
2023         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2024         and use it if found.
2026 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2028         * testsuite/config/default.exp: New file.
2029         * testsuite/lib/libgomp.exp: New file.
2030         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2031         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2032         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2033         (libgomp_load): Remove.
2034         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2035         always_ld_library_path, not ld_library_path.  Set additional_flags
2036         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2037         (target_compile): Do not call libgomp_init.  Append lang_library_path
2038         and lang_link_flags to options.
2039         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2040         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2041         here.
2042         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2043         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2044         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2045         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2046         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2047         CX8 flag.
2048         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2049         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2050         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2051         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2052         * testsuite/libgomp.c/atomic-10.c: Ditto.
2054 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2056         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2057         dg-final cleanup-modules line.
2058         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2059         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2060         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2061         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2062         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2063         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2064         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2066 2007-03-18  Andreas Schwab  <schwab@suse.de>
2068         * acinclude.m4: Adjust regular expression for ld version
2069         extraction.
2070         * configure: Regenerate.
2072 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2074         * Makefile.am: Add install-pdf target as copied from
2075         automake v1.10 rules.
2076         * Makefile.in: Regenerate
2078 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2080         PR libgomp/28486
2081         * configure: Regenerate.
2083         PR c++/30703
2084         * testsuite/libgomp.c++/pr30703.C: New test.
2086 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2088         Revert:
2089         2006-07-05  Eric Christopher  <echristo@apple.com>
2090         * configure.ac: Depend addition of -pthread on host OS.
2091         * configure: Regenerate.
2093 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2095         * libgomp.texi: Fix spacing after abbreviations.
2097 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2099         PR libgomp/30546
2100         * configure.ac: Add check for makeinfo
2101         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2102         if an appropiate version of makeinfo is found.
2103         * aclocal.m4: Regenerated.
2104         * configure: Regenerated.
2105         * Makefile.in: Regenerated.
2106         * testsuite/Makefile.in: Regenerated.
2108 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2110         PR libgomp/30540
2111         * libgomp.texi: More about implementation-dependent settings.
2113 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2115         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2117 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2119         PR middle-end/30494
2120         * testsuite/libgomp.c/pr30494.c: New test.
2122 2007-01-15  Tom Tromey  <tromey@redhat.com>
2124         * configure: Rebuilt.
2125         * configure.ac: Fixed comment.
2127 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2129         * libgomp.texi: Document implementation specific default values of
2130         environment variables.
2132 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2134         PR libgomp/28209
2135         * libgomp.texi: New file.
2136         * configure.ac: Add --enable-generated-files-in-srcdir option.
2137         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2138         files to srcdir.
2139         * Makefile.in: Regenerated.
2140         * config.h.in: Regenerated.
2141         * testsuite/Makefile.in: Regenerated.
2142         * NOTES: Removed.
2144 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2146         PR libgomp/29949
2147         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2149 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2151         * configure: Regenerate.
2153 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2155         PR libgomp/29947
2156         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2157         start if there shouldn't be any loop iterations.
2158         (gomp_loop_ordered_static_start): Remove start == end test.
2159         * testsuite/libgomp.c/pr29947-1.c: New test.
2160         * testsuite/libgomp.c/pr29947-2.c: New test.
2162 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2164         * configure.tgt: Force initial-exec TLS model on Linux only.
2166 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2168         * configure: Regenerated.
2170 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2172         * env.c (parse_schedule): Reject out of range values.
2173         (parse_unsigned_long): Reject out of range, negative or zero values.
2175 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2177         PR fortran/29629
2178         * testsuite/libgomp.fortran/pr29629.f90: New test.
2180 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2182         PR libgomp/29494
2183         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2184         * config/posix95: New directory.
2185         * config/posix95/omp-lock.h: New file.
2186         * config/posix95/lock.c: Likewise.
2188 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2190         * aclocal.m4: Regenerate.
2191         * configure: Regenerate.
2193 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2195         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2196         '<' to '<='.
2198 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2200         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2201         test.
2202         * configure: Regenerate.
2203         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2205 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2207         PR middle-end/25261
2208         PR middle-end/28790
2209         * testsuite/libgomp.c/nestedfn-4.c: New test.
2210         * testsuite/libgomp.c/nestedfn-5.c: New test.
2211         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2213         PR fortran/29097
2214         * testsuite/libgomp.fortran/condinc1.f: New test.
2215         * testsuite/libgomp.fortran/condinc2.f: New test.
2216         * testsuite/libgomp.fortran/condinc3.f90: New test.
2217         * testsuite/libgomp.fortran/condinc4.f90: New test.
2218         * testsuite/libgomp.fortran/condinc1.inc: New file.
2220 2006-09-18  Tom Tromey  <tromey@redhat.com>
2222         * configure: Rebuilt.
2224 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2226         PR c/28768
2227         PR preprocessor/14634
2228         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2229         to AC_DEFINE.
2230         * configure: Regenerate.
2232 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2234         * testsuite/libgomp.fortran/reduction3.f90: Change
2235         -2147483648 to -huge(i)-1 to avoid overflow.
2236         * testsuite/libgomp.fortran/reduction4.f90: Change
2237         Z'ffffffff' to not(0) to avoid overflow.
2239 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2241         PR libgomp/25938
2242         * Makefile.am (libsubincludedir): New.
2243         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2244         * Makefile.in: Regenerate.
2246 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2248         PR libgomp/28725
2249         * env.c: Include ctype.h.
2250         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2251         leading and/or trailing whitespace and compare strings case
2252         insensitively.
2254 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2256         PR fortran/28390
2257         * testsuite/libgomp.fortran/pr28390.f: New test.
2259 2006-07-05  Eric Christopher  <echristo@apple.com>
2261         * configure.ac: Depend addition of -pthread on host OS.
2262         * configure: Regenerate.
2264 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2266         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2267         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2268         defined.
2270 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2272         PR libgomp/26175
2273         PR libgomp/26477
2274         * configure.ac: If neither --enable-linux-futex nor
2275         --disable-linux-futex is passed, determine the default by checking
2276         for compiling and/or running against NPTL.  With --enable-linux-futex,
2277         check if SYS_gettid and SYS_futex are defined.
2278         * configure: Rebuilt.
2280 2006-06-14  Richard Henderson  <rth@redhat.com>
2282         PR libgomp/28008
2283         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2284         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2286 2006-06-09  Richard Henderson  <rth@redhat.com>
2288         * env.c (gomp_nthreads_var): Change to unsigned long.
2289         (gomp_run_sched_chunk): Likewise.
2290         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2291         (initialize_env): Initialize gomp_thread_attr.
2292         * libgomp.h (gomp_nthreads_var): Update decl.
2293         (gomp_run_sched_chunk): Likewise.
2294         (gomp_thread_attr): Declare.
2295         * team.c (gomp_thread_attr): Export.
2296         (initialize_team): Don't initialize it.
2298 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2300         PR fortran/27916
2301         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2302         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2304 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2306         * config/mingw32/time.c: New file.
2307         * configure.tgt: Use it.
2309 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2311         * Makefile.am: Add install-html target. Add install-html to .PHONY
2312         * Makefile.in: Regenerate.
2314 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2316         PR libgomp/27612
2317         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2318         * testsuite/libgomp.c/critical-1.c: Likewise.
2319         * testsuite/libgomp.c/loop-1.c: Likewise.
2320         * testsuite/libgomp.c/loop-2.c: Likewise.
2321         * testsuite/libgomp.c/single-1.c: Likewise.
2322         * testsuite/libgomp.c/ordered-1.c: Likewise.
2323         * testsuite/libgomp.c/ordered-2.c: Likewise.
2325 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2327         PR middle-end/27416
2328         * libgomp.fortran/pr27416-1.f90: New test.
2330 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2332         PR fortran/27395
2333         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2334         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2336 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2338         PR c++/26943
2339         * testsuite/libgomp.c/pr26943-1.c: New test.
2340         * testsuite/libgomp.c/pr26943-2.c: New test.
2341         * testsuite/libgomp.c/pr26943-3.c: New test.
2342         * testsuite/libgomp.c/pr26943-4.c: New test.
2343         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2344         * testsuite/libgomp.c++/pr26943.C: New test.
2346 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2348         PR middle-end/27337
2349         * testsuite/libgomp.c++/pr27337.C: New test.
2351 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2353         PR c/26171
2354         * testsuite/libgomp.c/pr26171.c: New test.
2356 2006-04-25  Richard Henderson  <rth@redhat.com>
2358         PR libgomp/25865
2359         * configure.ac: Use GCC_CHECK_TLS.
2360         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2361         * Makefile.in, aclocal.m4, configure: Regenerate.
2363 2006-04-10  Matthias Klose  <doko@debian.org>
2365         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2366         directory names containing underscores.
2368 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2370         PR c++/26691
2371         * testsuite/libgomp.c++/pr26691.C: New test.
2373 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2375         * testsuite/libgomp.fortran/retval2.f90: New test.
2377 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2379         * testsuite/libgomp.c++: New directory.
2381 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2383         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2384         * config/posix/sem.c: Implement the above.
2386 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2388         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2389         define HAVE_BROKEN_POSIX_SEMAPHORES.
2390         * configure: Rebuilt.
2391         * config.h.in: Rebuilt.
2393 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2395         PR bootstrap/26161
2396         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2397         for the other pthread check.
2398         * configure: Regenerate.
2399         * config.h.in: Regenerate.
2401 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2403         PR libgomp/25938
2404         PR libgomp/25984
2405         * Makefile.am (fincludedir): New variable.
2406         (nodist_include_HEADERS): Remove Fortran files.
2407         (nodist_finclude_HEADERS): New variable.
2408         * Makefile.in: Regenerated.
2410 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2412         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2413         Remove tests for returning assumed character length arrays.
2415 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2416             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2418         PR libgomp/25936
2419         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2421 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2423         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2425 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2427         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2428         part of LD_LIBRARY_PATH manually.
2430 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2432         PR libgomp/25852
2433         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2434         libgomp_init.
2436 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2438         PR libgomp/25884
2439         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2440         * configure.ac (PERL): Don't set.
2441         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2442         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2443         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2444         * omp.h.in: Wrap the new configure substitutions with @ characters.
2445         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2446         * aclocal.m4, configure, Makefile.in: Regenerate.
2447         * mkomp_h.pl: Delete.
2449 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2451         PR libgomp/25259
2452         * configure.ac: Use GCC_HEADER_STDINT.
2453         * libgomp.h: Include gstdint.h.
2454         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2455         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2457 2006-01-24  Richard Henderson  <rth@redhat.com>
2459         PR libgomp/25942
2460         * configure.ac: Add AM_MAINTAINER_MODE.
2461         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2463 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2465         * Makefile.in: Regenerate.
2466         * testsuite/Makefile.in: Regenerate.
2467         * aclocal.m4: Regenerate.
2469 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2471         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2472         Solaris.
2473         * configure.ac: Add check for loadavg.h.
2474         (link_gomp): Adjust comment.
2475         * configure: Regenerate.
2476         * config.h.in: Regenerate.
2478 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2480         PR libgomp/25877
2481         * configure.ac: Remove check for alloca.h.
2482         * configure: Regenerate.
2483         * config.h.in: Regenerate.
2484         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2485         * team.c: Remove use of alloca.h.
2486         Call gomp_alloca instead of alloca.
2488 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2490         PR libgomp/25877
2491         * team.c: Add include of alloca.h.
2492         * configure.ac: Add check for alloca.h.
2493         * configure: Regenerate.
2494         * config.h.in: Regenerate.
2496 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2498         PR fortran/25219
2499         * testsuite/libgomp.fortran/pr25219.f90: New test.
2501 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2503         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2504         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2505         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2506         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2507         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2508         testsuite/libgomp.fortran/threadprivate1.f90,
2509         testsuite/libgomp.fortran/threadprivate2.f90,
2510         testsuite/libgomp.fortran/threadprivate3.f90,
2511         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2512         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2513         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2514         effective-target to TLS runtime.
2516         * testsuite/libgomp.fortran/pr25162.f: Require
2517         effective-target TLS runtime.
2519 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2521         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2522         * testsuite/libgomp.c/nestedfn-3.c: New test.
2524 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2526         PR fortran/25162
2527         * testsuite/libgomp.fortran/pr25162.f: New test.
2529 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2531         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2532         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2534 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2536         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2537         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2538         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2539         single.c, team.c, work.c, config/linux/alpha/futex.h,
2540         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2541         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2542         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2543         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2544         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2545         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2546         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2547         FSF address.
2549 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2551         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2552         to nodist_noinst_HEADERS.
2553         * Makefile.in: Rebuilt.
2555         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2556         add integer count field.
2557         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2558         omp_nest_lock_t type change.
2559         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2560         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2561         Increment count.
2562         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2563         Decrement count.
2564         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2565         Increment count if successful and return the new nesting level.
2566         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2567         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2568         * testsuite/libgomp.c/lib-1.c: New test.
2569         * testsuite/libgomp.fortran/lib1.f90: New test.
2570         * testsuite/libgomp.fortran/lib2.f: New test.
2571         * testsuite/libgomp.fortran/lib3.f: New test.
2573 2005-11-17  Richard Henderson  <rth@redhat.com>
2575         PR 24845
2576         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2577         * configure.ac (link_gomp): New.  Substitute it.
2578         (AC_CONFIG_FILES): Add libgomp.spec.
2579         * libgomp.spec.in: New file.
2580         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2581         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2583 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2585         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2586         reduction(-:var) behaving the same as reduction(+:var).
2587         * testsuite/libgomp.c/reduction-4.c: New test.
2589 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2591         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2592         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2593         testsuite/libgomp.c/copyin-3.c,
2594         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2595         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2596         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2597         testsuite/libgomp.c++/pr24455.C,
2598         testsuite/libgomp.fortran/threadprivate1.f90,
2599         testsuite/libgomp.fortran/threadprivate2.f90,
2600         testsuite/libgomp.fortran/threadprivate3.f90,
2601         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2602         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2603         testsuite/libgomp.fortran/omp_parse3.f90: Require
2604         effective-target TLS.
2606 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2608         * HEADER: Remove.
2610 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2612         PR libgomp/24797
2613         * team.c (initialize_team): Pass NULL rather than free as
2614         pthread_key_create destructor.  Initialize thread specific data
2615         pointer in initial thread to a static local variable rather than
2616         malloced memory.
2618 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2620         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2621         its location to ld_library_path.
2623 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2625         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2627 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2629         * testsuite/libgomp.c: Rename from libgomp.dg.
2631 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2633         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2634         threadprivate variable 'i'.
2636 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2638         * config/linux/s390/futex.h: New file.
2639         * configure.tgt: Use it.
2641         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2642         before the parallel.
2644 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2646         PR c++/24734
2647         * testsuite/libgomp.c++/master-1.C: New test.
2649 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2651         * testsuite/libgomp.dg/copyin-3.c: New test.
2653 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2655         * testsuite/libgomp.fortran/retval1.f90: New test.
2656         * testsuite/libgomp.fortran/vla7.f90: New test.
2658 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2660         * testsuite/libgomp.fortran/vla2.f90: New test.
2661         * testsuite/libgomp.fortran/vla3.f90: New test.
2662         * testsuite/libgomp.fortran/vla4.f90: New test.
2663         * testsuite/libgomp.fortran/vla5.f90: New test.
2664         * testsuite/libgomp.fortran/vla6.f90: New test.
2666 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2668         * config/linux/sparc/futex.h: New file.
2669         * configure.tgt: Use it.
2670         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2672         * critical.c: Include stdlib.h.
2673         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2674         ignoring return value.
2675         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2676         LIBGOMP_CHECK_SYNC_BUILTINS check.
2677         * configure: Rebuilt.
2679 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2681         * testsuite/libgomp.fortran/vla1.f90: New test.
2683 2005-10-31  Richard Henderson  <rth@redhat.com>
2685         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2686         setting 's' in different threads.
2688 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2690         * libgomp.h (attribute_hidden, ialias): Define.
2691         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2692         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2693         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2694         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2695         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2696         omp_test_lock, omp_test_nest_lock): Likewise.
2697         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2698         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2699         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2700         omp_test_lock, omp_test_nest_lock): Likewise.
2701         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2702         omp_get_dynamic, omp_get_nested): Likewise.
2703         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2704         omp_get_thread_num, omp_in_parallel): Likewise.
2705         * fortran.c (ialias_redirect): Define.
2706         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2707         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2708         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2709         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2710         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2711         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2712         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2713         omp_get_wtime): Add ialias_redirect.
2715 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2717         * fortran.c: Include stdlib.h.
2719 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2721         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2722         * Makefile.in: Regenerated.
2724 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2726         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2727         * libgomp_f.h.in (omp_check_defines): New function.
2728         * env.c: Include libgomp_f.h.
2729         (initialize_env): Call omp_check_defines.
2731         * testsuite/libgomp.dg/copyin-2.c: New test.
2732         * testsuite/libgomp.c++/copyin-2.C: New test.
2733         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2735         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2736         * testsuite/libgomp.fortran/sharing2.f90: New test.
2738         * testsuite/libgomp.dg/copyin-1.c: New test.
2739         * testsuite/libgomp.c++/copyin-1.C: New test.
2741 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2743         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2745         * testsuite/libgomp.fortran/workshare1.f90: New test.
2747         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2748         only test.
2749         * libgomp.fortran/sharing1.f90: New test.
2751 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2753         PR c++/24502
2754         * testsuite/libgomp.c++/loop-7.C: New test.
2756         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2758         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2759         * testsuite/libgomp.fortran/reduction6.f90: New test.
2760         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2762 2005-10-23  Richard Henderson  <rth@redhat.com>
2764         * testsuite/libgomp.c++/ctor-1.C: New.
2765         * testsuite/libgomp.c++/ctor-2.C: New.
2766         * testsuite/libgomp.c++/ctor-3.C: New.
2767         * testsuite/libgomp.c++/ctor-4.C: New.
2768         * testsuite/libgomp.c++/ctor-5.C: New.
2769         * testsuite/libgomp.c++/ctor-6.C: New.
2770         * testsuite/libgomp.c++/ctor-7.C: New.
2771         * testsuite/libgomp.c++/ctor-8.C: New.
2772         * testsuite/libgomp.c++/ctor-9.C: New.
2774 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2776         PR 24455
2777         * testsuite/libgomp.c++/pr24455-1.C: New test.
2778         * testsuite/libgomp.c++/pr24455.C: New test.
2779         * testsuite/libgomp.dg/pr24455-1.c: New test.
2780         * testsuite/libgomp.dg/pr24455.c: New test.
2782 2005-10-20  Richard Henderson  <rth@redhat.com>
2784         * testsuite/libgomp.c++/loop-6.C: New.
2785         * testsuite/libgomp.dg/loop-3.c: New.
2787 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2789         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2790         explicitly private.
2791         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2792         explicitly shared.
2794 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2796         * testsuite/libgomp.fortran/jacobi.f: New test.
2798 2005-10-19  Richard Henderson  <rth@redhat.com>
2800         * configure.tgt (i?86-linux): Default to with_arch instead of
2801         CFLAGS.  Add -mtune to match target_cpu.
2802         (x86_64-linux): Tune to i686.
2804         * fortran.c (omp_test_nest_lock_): Fix typo.
2806 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2808         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2809         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2810         * testsuite/libgomp.dg/ordered-3.c: New test.
2812         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2813         Remove volatile keyword.
2815         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2816         in COMMON block to avoid warnings on 64-bit targets.
2818 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2820         * testsuite/libgomp.dg/shared-3.c: New test.
2822 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2824         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2825         * testsuite/libgomp.fortran/reduction5.f90: New test.
2827 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2829         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2830         dg-options.
2831         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2832         flush loop now that __sync_synchronize has proper memory barrier.
2833         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2834         Add -ffixed-form to dg-options.
2836 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2838         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2839         from subdirectories.
2840         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2841         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2842         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2843         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2844         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2845         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2846         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2847         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2848         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2849         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2850         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2851         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2852         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2853         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2854         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2855         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2856         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2857         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2858         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2859         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2860         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2861         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2862         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2863         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2864         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2866 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2868         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2869         lang_library_path exists.  Use find instead of glob to gather tests.
2870         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2872 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2874         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2875         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2876         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2877         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2878         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2879         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2880         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2881         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2882         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2883         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2884         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2885         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2886         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2888 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2890         * testsuite/libgomp.dg/vla-1.c: New test.
2892         * testsuite/libgomp.fortran/reference2.f90: New test.
2894         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2895         declaration of omp_get_thread_num.
2896         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2897         use omp_lib.
2899         * testsuite/libgomp.fortran/reduction1.f90: New test.
2900         * testsuite/libgomp.fortran/reduction2.f90: New test.
2901         * testsuite/libgomp.fortran/reduction3.f90: New test.
2902         * testsuite/libgomp.fortran/reduction4.f90: New test.
2904 2005-10-13  Richard Henderson  <rth@redhat.com>
2906         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2907         * Makefile.in: Regenerate.
2908         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2909         * libgomp.h: Include bar.h.
2910         (struct gomp_barrier): Remove.
2911         (struct gomp_team): Add barrier.  Replace master_barrier with
2912         master_release.  Replace threads with ordered_release.
2913         (struct gomp_thread): Replace barrier with release.
2914         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2915         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2916         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2917         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2918         (GOMP_single_copy_end): Likewise.
2919         * team.c (gomp_threads_dock): New.
2920         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2921         (gomp_thread_start): Use gomp_barrier_wait.
2922         (new_team, free_team): Update for gomp_team changes.
2923         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2924         (gomp_team_end): Use gomp_barrier_wait.
2925         (initialize_team): Update for gomp_thread changes.
2926         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2927         (gomp_work_share_end_nowait): Use atomic ops when available.
2928         * config/linux/bar.c, config/linux/bar.h: New files.
2929         * config/posix/bar.c, config/posix/bar.h: New files.
2931 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2933         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2934         * testsuite/libgomp.dg/single-2.c: New test.
2936         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2937         lang_link_flags): Unset, so that they aren't inherited from previously
2938         sourced *.exp.
2940         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2942 2005-10-12  Richard Henderson  <rth@redhat.com>
2944         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2945         (libgomp_init): Use lang_test_file, lang_library_path, and
2946         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2948         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2949         (lang_test_file, lang_link_flags): New.
2950         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2952         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2953         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2954         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2955         testsuite/libgomp.c++/parallel-1.C,
2956         testsuite/libgomp.c++/reduction-1.C,
2957         testsuite/libgomp.c++/reduction-2.C,
2958         testsuite/libgomp.c++/reduction-3.C,
2959         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2960         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2961         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2962         New files, largely cribbed from the C testsuite.
2964 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2966         * testsuite/libgomp.fortran/character1.f90: New test.
2967         * testsuite/libgomp.fortran/character2.f90: New test.
2969         * testsuite/libgomp.dg/nested-1.c: New test.
2970         * testsuite/libgomp.dg/nested-2.c: New test.
2971         * testsuite/libgomp.fortran/do1.f90: New test.
2972         * testsuite/libgomp.fortran/do2.f90: New test.
2974         * testsuite/libgomp.fortran/reference1.f90: New test.
2976 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2978         * testsuite/libgomp.dg/reduction-1.c: New test.
2979         * testsuite/libgomp.dg/reduction-2.c: New test.
2980         * testsuite/libgomp.dg/reduction-3.c: New test.
2982 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2984         * testsuite/libgomp.dg/atomic-1.c: New test.
2985         * testsuite/libgomp.dg/atomic-2.c: New test.
2987 2005-10-09  Richard Henderson  <rth@redhat.com>
2989         * critical.c (atomic_lock): New.
2990         (initialize_critical): Initialize it.
2991         (GOMP_atomic_start, GOMP_atomic_end): New.
2992         * libgomp.map: Export them.
2993         * libgomp_g.h: Declare them.
2995         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2997 2005-10-02  Richard Henderson  <rth@redhat.com>
2999         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3000         to XCFLAGS instead of CFLAGS.
3002 2005-09-30  Richard Henderson  <rth@redhat.com>
3004         * configure.ac: Determine whether -pthread or -lpthread is needed.
3005         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3006         * Makefine.in, configure: Rebuild.
3008 2005-09-28  Richard Henderson  <rth@redhat.com>
3010         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3011         * testsuite/libgomp.dg/omp-single-3.c: New test.
3013 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3015         * testsuite/libgomp.dg/omp-single-2.c: New test.
3016         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3018 2005-09-27  Richard Henderson  <rth@redhat.com>
3020         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3021         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3023 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3025         * testsuite/libgomp.dg/omp-loop03.c: New test.
3027 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3029         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3031 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3033         * testsuite/libgomp.dg/omp-single-1.c: New test.
3034         * testsuite/libgomp.dg/shared-1.c: Return 0.
3035         Add prototype for abort.
3036         * testsuite/libgomp.dg/shared-2.c: Likewise.
3038 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3040         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3041         constructs.
3043 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3045         * testsuite/libgomp.dg/shared-1.c: New test.
3046         * testsuite/libgomp.dg/shared-2.c: New test.
3048 2005-09-24  Richard Henderson  <rth@redhat.com>
3050         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3052 2005-09-24  Richard Henderson  <rth@redhat.com>
3054         * iter.c (gomp_iter_static_next): Round up when computing number
3055         of iterations.  Don't bother distributing a remainder equally.
3057         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3058         Don't call srand.  Zero b before testing.
3059         (main): New.
3061 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3063         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3064         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3066 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3068         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3069         without !$omp end do, followed immediately by subroutine end.
3071 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3073         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3075 2005-09-22  Richard Henderson  <rth@redhat.com>
3077         * critical.c (GOMP_critical_name_start): Change argument to void**.
3078         Reuse the pointer space if the mutex fits.
3079         (GOMP_critical_name_end): Likewise.
3080         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3081         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3082         (GOMP_critical_name_end): Likewise.
3083         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3084         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3086 2005-09-20  Richard Henderson  <rth@redhat.com>
3088         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3089         (create_lock_lock): New.
3090         (initialize_critical): Initialize it.
3091         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3092         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3094 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3096         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3098 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3100         * testsuite/libgomp.dg/omp-loop01.c: New test.
3101         * testsuite/libgomp.dg/omp-loop02.c: New test.
3103 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3105         * configure.ac (AC_PROG_FC): Add.
3106         (USE_FORTRAN): New automake conditional.
3107         * configure: Rebuilt.
3108         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3109         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3110         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3111         Add rules to build them.
3112         * Makefile.in: Rebuilt.
3113         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3114         OMP_NEST_LOCK_KIND.
3115         * libgomp.map: Add Fortran wrappers.
3116         * libgomp_f.h.in: New file.
3117         * omp_lib.h.in: New file.
3118         * omp_lib.f90.in: New file.
3119         * fortran.c: New file.
3120         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3121         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3122         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3123         libgfortran has been built.
3124         * testsuite/libgomp.fortran/fortran.exp: New file.
3125         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3126         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3127         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3128         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3129         * testsuite/libgomp.fortran/omp_hello.f: New test.
3130         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3131         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3132         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3133         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3134         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3135         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3136         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3137         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3139 2005-08-30  Richard Henderson  <rth@redhat.com>
3141         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3142         function for when aliases are not usable.
3143         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3144         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3145         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3146         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3147         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3148         GOMP_loop_ordered_guided_next): Likewise.
3149         * ordered.c (GOMP_ordered_start): Likewise.
3151 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3153         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3154         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3155         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3156         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3157         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3158         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3159         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3160         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3161         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3163 2005-07-07  Eric Christopher  <echristo@redhat.com>
3164             Diego Novillo  <dnovillo@redhat.com>
3166         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3167         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3168         up code.
3169         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3170         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3171         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3172         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3173         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3174         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3175         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3177 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3179         * TOPLEVEL.patch: Remove.
3181 2005-05-16  Richard Henderson  <rth@redhat.com>
3183         * configure.ac: Test for clock_gettime.
3184         * config.h.in, configure: Rebuild.
3185         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3186         (omp_get_wtime): Use clock_gettime if available.
3187         (omp_get_wtick): Use clock_getres if available.
3189 2005-05-11  Richard Henderson  <rth@redhat.com>
3191         * config/linux/ia64/futex.h: New file.
3192         * configure.tgt: Use it.
3194         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3196 2005-05-07  Richard Henderson  <rth@redhat.com>
3198         * config/linux/powerpc/futex.h: New file.
3199         * configure.tgt: Use it.
3201         * config/linux/i486/futex.h: Merge ...
3202         * config/linux/x86_64/futex.h: ... into ...
3203         * config/linux/x86/futex.h: ... here.
3204         * configure.tgt: Update to match.
3206 2005-05-06  Richard Henderson  <rth@redhat.com>
3208         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3209         * config/linux/i486/futex.h: Likewise.
3210         * config/linux/x86_64/futex.h: Likewise.
3212         * config/linux/lock.c: New file.
3213         * config/linux/omp-lock.h: New file.
3215         * critical.c, env.h: Don't include omp.h
3216         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3217         * config/posix/time.c: Likewise.
3218         * config/posix/omp-lock.h: New file.
3219         * libgomp.h: Include omp-lock.h and omp.h.
3220         * Makefile.am (nodist_include_HEADERS): New.
3221         (omp.h): New rule.
3222         * configure.ac (PERL): New.
3223         * mkomp_h.pl: New file.
3224         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3225         with templates.
3226         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3228         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3229         build directory.  Re-add -march=i486 hack.
3231         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3232         (libgomp_link_flags): Remove.
3233         (libgomp_initialized): Remove.
3234         (libgomp_init): Don't protect from reinitialization.  Copy code
3235         from libstdc++ for getting the multilib set correctly.
3237 2005-05-05  Richard Henderson  <rth@redhat.com>
3239         * config/linux/alpha/futex.h: New file.
3240         * configure.tgt (alpha*-*-linux*): Use it.
3242         * config/posix/mutex.c: New file.
3243         * config/posix/sem.c: Use libgomp.h.
3245         * configure.tgt (x86_64-linux): Also test CC for -m32.
3246         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3248         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3249         after $gccpath.
3251         * Makefile.am (SUBDIRS): New.
3252         (libgomp_la_LDFLAGS): Add -lpthread.
3253         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3254         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3256         * libgomp_g.h: New file.
3257         * libgomp.h: Split out all public declarations to libgomp_g.h.
3258         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3259         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3260         * config/linux/sem.h: Likewise.
3261         * config/posix/sem.h: Likewise.
3263         * Makefile.am (AM_LDFLAGS): New.
3264         (libgomp_version_script): Split out from ...
3265         (libgomp_la_LDFLAGS): ... here.
3266         (libgomp_version_info): New.
3267         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3268         (LIBGOMP_ENABLE): New.
3269         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3270         (LIBGOMP_ENABLE_SYMVERS): New.
3271         * configure.ac (AC_INIT): Version 1.0.
3272         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3273         (enable-linux-futex): Likewise.  Rename from enable-futex.
3274         (libtool_VERSION): New.
3275         (LIBGOMP_ENABLE_SYMVERS): Use it.
3276         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3277         * Makefile.in, aclocal.m4, configure: Rebuild.
3279         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3280         (gomp_mutex_unlock_slow): Fix typo.
3281         * config/linux/sem.c: Similarly.
3282         (gomp_sem_post_slow): Fix typo.
3283         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3284         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3285         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3287         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3288         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3289         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3290         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3291         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3292         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3293         LDFLAGS.  Pull enable_futex check to top-level.
3294         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3295         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3297         First attempt at real configury.
3298         * Makefile, config.h: Remove file.
3299         * Makefile.am, Makefile.in: New file.
3300         * acinclude.m4 aclocal.m4: New file.
3301         * configure.ac, configure.tgt, configure: New file.
3303         * config/posix/lock.c: Rename from sys-lock.c.
3304         * config/posix/mutex.h: Rename from sys-mutex.h.
3305         * config/posix/sem.c: Rename from sys-sem.c.
3306         * config/posix/sem.h: Rename from sys-sem.h.
3307         * config/posix/proc.c: Rename from sys-proc.c.
3308         * config/posix/time.c: Rename from sys-proc.c.
3310         * config/linux/mutex.c: New file.
3311         * config/linux/mutex.h: New file.
3312         * config/linux/sem.c: New file.
3313         * config/linux/sem.h: New file.
3314         * config/linux/i486/futex.h: New file.
3315         * config/linux/x86_64/futex.h: New file.
3317 2005-05-04  Richard Henderson  <rth@redhat.com>
3319         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3320         * libgomp.h: Declare them.
3321         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3322         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3324 2005-05-04  Richard Henderson  <rth@redhat.com>
3326         * libgomp-1 code drop
3328 2005-05-04  Richard Henderson  <rth@redhat.com>
3330         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3331         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3332         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3333         (gomp_iter_static_next): Update.
3334         (gomp_ordered_static_next): Update.
3335         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3336         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3337         totally empty range.
3338         (gomp_loop_ordered_static_next): Refine test for calling
3339         gomp_ordered_static_next.
3340         * testsuite/ordered-1.c: Add case for more threads than iterations.
3342         * iter.c (gomp_iter_runtime_next_locked): Remove.
3343         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3344         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3345         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3346         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3347         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3348         gomp_loop_ordered_guided_next): Downcase name, make static, add
3349         an external alias with the old name.
3350         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3351         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3352         switch and call one of the above static functions.
3353         * libgomp.h: Update.
3355         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3356         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3357         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3358         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3359         GOMP_loop_ordered_guided_start): Update to match.
3360         * sections.c (GOMP_sections_start): Likewise.
3361         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3363         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3364         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3365         Use bounds check instead of modulus.
3366         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3367         (gomp_ordered_last): Don't sync with ordered_owner here.
3368         (gomp_ordered_next): Likewise.
3369         (gomp_ordered_static_loop_next): Likewise.
3370         * loop.c, libgomp.h: Update to match.
3372         * libgomp.h (GOMP_barrier): Declare.
3374         * testsuite/barrier-1.c: New file.
3375         * testsuite/critical-1.c: New file.
3376         * testsuite/ordered-2.c: New file.
3377         * testsuite/ordered-1.c: New file.
3378         * testsuite/sections-1.c: New file.
3379         * testsuite/single-1.c: New file.
3380         * testsuite/Makefile (TESTS): Add them.
3382 2005-05-04  Richard Henderson  <rth@redhat.com>
3384         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3385         * loop.c (GOMP_loop_static_start): If not the startup thread,
3386         acquire the mutex to wait for initialization complete.
3387         (GOMP_loop_ordered_static_start): Likewise.
3388         (GOMP_loop_ordered_runtime_start): Likewise.
3389         (GOMP_loop_ordered_static_first): Remove.
3390         (GOMP_loop_ordered_dynamic_first): Remove.
3391         (GOMP_loop_ordered_guided_first): Remove.
3392         (GOMP_loop_ordered_runtime_first): Remove.
3393         * ordered.c (gomp_ordered_loop_first): Post to own release when
3394         we're the first thread.
3395         (gomp_ordered_loop_last): Wait on release if not owner.
3396         (gomp_ordered_loop_next): Likewise.
3397         (gomp_ordered_static_loop_init): New.
3398         (gomp_ordered_static_loop_next): Use ordered_owner.
3399         (GOMP_ordered_start): Likewise.
3400         * work.c (gomp_new_work_share): Initialize ordered_owner.
3402 2005-05-03  Richard Henderson  <rth@redhat.com>
3404         * Makefile (OPT): New.
3405         (CFLAGS): Use it.
3407         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3408         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3409         * libgomp.h, libgomp.map, NOTES: Update to match.
3411         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3412         Add initialized and thr members.
3413         (gomp_thread_start): Pause when initially spawned to wait for
3414         the whole team to be created.
3415         (gomp_team_start): Release team members at the end.
3417         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3418         (f_foo_1): Use GOMP_loop_end.
3419         (f_foo_2): Use GOMP_loop_end_nowait.
3421         * testsuite/loop-2.c: New file.
3422         * testsuite/Makefile (TESTS): Add it.
3424 2005-05-03  Richard Henderson  <rth@redhat.com>
3426         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3427         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3428         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3429         initial work_share.
3431         * testsuite/Makefile: New file.
3432         * testsuite/loop-1.c: New file.
3434 2005-05-03  Richard Henderson  <rth@redhat.com>
3436         Initial implementation and checkin.