PR debug/54693
[official-gcc.git] / libgomp / ChangeLog
blobcfa8ce5975f5c7220ef31b0a2563b2977a7d2232
1 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
3         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
5 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
6             Jim MacArthur  <jim.macarthur@arm.com>
7             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8             Nigel Stephens  <nigel.stephens@arm.com>
9             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10             Richard Earnshaw  <rearnsha@arm.com>
11             Sofiane Naci  <sofiane.naci@arm.com>
12             Stephen Thomas  <stephen.thomas@arm.com>
13             Tejas Belagod  <tejas.belagod@arm.com>
14             Yufeng Zhang  <yufeng.zhang@arm.com>
16         * configure.tgt: Add AArch64.
18 2012-10-04  Jason Merrill  <jason@redhat.com>
20         * testsuite/libgomp.c++/tls-init1.C: New.
22 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
24         * configure: Regenerated.
26 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
28         * config/linux/mips/futex.h (sys_futex0): Change to static
29         function with noinline, nomips16 attributes under MIPS16. Adjust
30         asm statement to place 'li v0,SYS_futex' immediately before
31         syscall insn.
33 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
35         * libgomp.texi (Library Index): Renamed from "Index" to prevent
36         conflict with index.html on case-insensitive file systems.
38 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
40         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
41         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
43 2012-07-02  Richard Guenther  <rguenther@suse.de>
44             Michael Matz  <matz@suse.de>
45             Tobias Grosser <tobias@grosser.es>
46             Sebastian Pop <sebpop@gmail.com>
48         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
49         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
50         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
51         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
53 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
55         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
57 2012-06-22  Richard Guenther  <rguenther@suse.de>
59         Merge from graphite branch
60         2012-01-13  Tobias Grosser  <tobias@grosser.es>
62         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
63         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
65 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
67         PR middle-end/53580
68         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
69         use GOMP_barrier () call instead.
70         * testsuite/libgomp.c/pr26943-3.c: Likewise.
71         * testsuite/libgomp.c/pr26943-4.c: Likewise.
72         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
73         call GOMP_barrier instead.
74         * testsuite/libgomp.fortran/vla5.f90: Likewise.
76 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
78         PR libgomp/52993
79         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
80         argument to memset call.
82 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
84         * configure: Regenerated.
86 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
88         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
90 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
92         PR bootstrap/52812
93         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
95 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
97         PR middle-end/52547
98         * testsuite/libgomp.c/pr52547.c: New test.
100 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
102         * testsuite/lib/libgomp.exp: load fortran-modules.exp
104 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
106         * configure.tgt (mips-sgi-irix6*): Remove.
108 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
110         * configure.tgt (alpha*-dec-osf*): Remove.
112         * config/osf/sem.h: Remove.
113         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
115 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
117         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
119 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
121         PR libstdc++/52188
122         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
123         Remove ENABLE_SYMVERS_SOL2.
124         * configure: Regenerate.
125         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
126         (PREPROCESS): New variable.
127         (libgomp.ver): New target.
128         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
129         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
130         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
131         Use libgomp.ver.
132         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
133         * Makefile.in: Regenerate.
135 2012-02-14  Walter Lee  <walt@tilera.com>
137         * configure.tgt: Handle tilegx and tilepro.
138         * config/linux/tile/futex.h: New file.
140 2012-02-08  Richard Guenther  <rguenther@suse.de>
142         PR tree-optimization/46886
143         * testsuite/libgomp.c/pr46886.c: New testcase.
145 2012-01-25  Matthias Klose  <doko@ubuntu.com>
147         * config/linux/arm: Remove empty directory.
148         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
150 2011-12-09  Alan Modra  <amodra@gmail.com>
152         PR libgomp/51376
153         * task.c (GOMP_taskwait): Don't access task->children outside of
154         task_lock mutex region.
155         (GOMP_task): Likewise.
157 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
159         PR libgomp/51132
160         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
161         to file scope.
162         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
163         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
164         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
165         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
166         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
168 2011-12-02  Alan Modra  <amodra@gmail.com>
170         * config/linux/affinity.c: Use atomic rather than sync builtin.
171         * config/linux/lock.c: Likewise.
172         * config/linux/ptrlock.h: Likewise.
173         * config/linux/ptrlock.c: Likewise.
174         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
175         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
176         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
177         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
178         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
179         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
180         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
181         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
182         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
183         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
185 2011-11-30  Alan Modra  <amodra@gmail.com>
187         PR libgomp/51298
188         * config/linux/bar.h: Use atomic rather than sync builtins.
189         * config/linux/bar.c: Likewise.  Add missing acquire
190         synchronisation on generation field.
191         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
192         double unlock.
194 2011-11-30  Alan Modra  <amodra@gmail.com>
196         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
197         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
198         * config/linux/mutex.h: Use atomic rather than sync builtins.
199         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
200         * config/linux/omp-lock.h: Comment fix.
201         * config/linux/arm/mutex.h: Delete.
202         * config/linux/powerpc/mutex.h: Delete.
203         * config/linux/ia64/mutex.h: Delete.
204         * config/linux/mips/mutex.h: Delete.
206 2011-11-30  Alan Modra  <amodra@gmail.com>
208         PR libgomp/51249
209         * config/linux/sem.h: Rewrite.
210         * config/linux/sem.c: Rewrite.
212 2011-11-28  Richard Henderson  <rth@redhat.com>
214         * libgomp.h (enum memmodel): New.
216 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
218         * configure: Regenerate.
220 2011-10-10  Matthias Klose  <doko@ubuntu.com>
222         * config/posix95: Remove empty directory.
224 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
226         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
228 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
230         PR fortran/49792
231         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
232         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
234 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
236         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
238 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
240         PR libgomp/49965
241         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
243 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
245         * config/linux/proc.h: New.
246         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
247         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
248         (gomp_init_num_threads): Update call to cpuset_popcount.
249         (get_num_procs): Ditto.
250         * config/linux/affinity.c (gomp_init_affinity): Call
251         gomp_cpuset_popcount.
253 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
255         PR fortran/42041
256         PR fortran/46752
257         * omp.h.in (omp_in_final): New prototype.
258         * omp_lib.f90.in (omp_in_final): New interface.
259         (omp_integer_kind, omp_logical_kind): Remove
260         and replace all its uses in the module with 4.
261         (openmp_version): Change to 201107.
262         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
263         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
264         kind for the parameters.
265         (omp_in_final): New external.
266         (openmp_version): Change to 201107.
267         * task.c (omp_in_final): New function.
268         (gomp_init_task): Initialize final_task.
269         (GOMP_task): Remove unused attribute from flags.  Handle final
270         tasks.
271         (GOMP_taskyield): New function.
272         (omp_in_final): Return true if if (false) or final (true) task
273         or descendant of final (true).
274         * fortran.c (omp_in_final_): New function.
275         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
276         (GOMP_3.0): Export GOMP_taskyield.
277         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
278         variables.
279         (parse_unsigned_long_list): New function.
280         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
281         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
282         even if parse_affinity returned false.
283         * config/linux/affinity.c (gomp_init_affinity): Handle
284         gomp_cpu_affinity_len == 0.
285         * libgomp_g.h (GOMP_taskyield): New prototype.
286         * libgomp.h (struct gomp_task): Add final_task field.
287         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
288         * team.c (gomp_team_start): Override new task's nthreads_var icv
289         if list form OMP_NUM_THREADS has been used and it has value for
290         the new nesting level.
292         * testsuite/libgomp.c/atomic-11.c: New test.
293         * testsuite/libgomp.c/atomic-12.c: New test.
294         * testsuite/libgomp.c/atomic-13.c: New test.
295         * testsuite/libgomp.c/atomic-14.c: New test.
296         * testsuite/libgomp.c/reduction-6.c: New test.
297         * testsuite/libgomp.c/task-5.c: New test.
298         * testsuite/libgomp.c++/atomic-2.C: New test.
299         * testsuite/libgomp.c++/atomic-3.C: New test.
300         * testsuite/libgomp.c++/atomic-4.C: New test.
301         * testsuite/libgomp.c++/atomic-5.C: New test.
302         * testsuite/libgomp.c++/atomic-6.C: New test.
303         * testsuite/libgomp.c++/atomic-7.C: New test.
304         * testsuite/libgomp.c++/atomic-8.C: New test.
305         * testsuite/libgomp.c++/atomic-9.C: New test.
306         * testsuite/libgomp.c++/task-8.C: New test.
307         * testsuite/libgomp.c++/reduction-4.C: New test.
308         * testsuite/libgomp.fortran/allocatable7.f90: New test.
309         * testsuite/libgomp.fortran/allocatable8.f90: New test.
310         * testsuite/libgomp.fortran/crayptr3.f90: New test.
311         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
312         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
313         * testsuite/libgomp.fortran/pointer1.f90: New test.
314         * testsuite/libgomp.fortran/pointer2.f90: New test.
315         * testsuite/libgomp.fortran/task4.f90: New test.
317 2011-08-02  Tobias Burnus  <burnus@net-b.de>
319         * libgomp.texi: Update OpenMP spec references to 3.1.
320         (omp_in_final,OMP_PROC_BIND): New sections.
321         (OMP_NUM_THREADS): Document that the value can be now a list.
322         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
324 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
326         * config/linux/x86/futex.h: Check __x86_64__ instead of
327         __LP64__.
329 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
331         PR middle-end/49897
332         PR middle-end/49898
333         * testsuite/libgomp.c/pr49897-1.c: New test.
334         * testsuite/libgomp.c/pr49897-2.c: New test.
335         * testsuite/libgomp.c/pr49898-1.c: New test.
336         * testsuite/libgomp.c/pr49898-2.c: New test.
338 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
340         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
341         for ia32 instead of ilp32.
343         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
344         * testsuite/libgomp.c/atomic-6.c: Likewise.
346 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
348         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
349         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
351 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
353         PR libgomp/45351
354         * config/osf/sem.h: New file.
355         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
357 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
359         PR target/49541
360         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
361         ldflags.
363 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
365         * config/linux/wait.h (do_spin): New inline, largely copied
366         from do_wait, just don't do futex_wait here, instead return true if
367         it should be done.
368         (do_wait): Implement using do_spin.
369         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
370         to prototype.
371         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
372         __sync_bool_compare_and_swap, pass the oldval to
373         gomp_mutex_lock_slow.
374         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
375         If all mutex contenders are just spinning and not sleeping, don't
376         change state to 2 unnecessarily.  Optimize the loop when state has
377         already become 2 to use just one atomic operation per loop instead
378         of two.
379         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
380         to prototype.
381         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
382         __sync_bool_compare_and_swap, pass the oldval to
383         gomp_mutex_lock_slow.
385 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
387         PR libgomp/49490
388         * iter.c (gomp_iter_static_next): For chunk size 0
389         only use n ceil/ nthreads size for the first
390         n % nthreads threads in the team instead of
391         all threads except for the last few ones which
392         get less work or none at all.
393         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
394         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
395         chunk argument, set run_sched_modifier to 0 for static
396         resp. 1 for other kinds.  If chunk argument is 0
397         and not static, set value to 1.
399 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
401         PR c++/49043
402         * testsuite/libgomp.c++/pr49043.C: New test.
404         PR c++/48869
405         * testsuite/libgomp.c++/pr48869.C: New test.
407 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
409         PR fortran/48894
410         * fortran.c: Include limits.h.
411         (TO_INT): Define.
412         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
413         *set.
414         (omp_set_num_threads_8_, omp_set_schedule_8_,
415         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
416         omp_get_team_size_8_): Use TO_INT macro.
417         * testsuite/libgomp.fortran/pr48894.f90: New test.
419 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
421         PR middle-end/48591
422         * testsuite/libgomp.c/pr48591.c: New test.
424 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
426         PR bootstrap/48135
427         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
428         * configure: Regenerate.
430 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
432         PR fortran/47886
433         * testsuite/libgomp.fortran/task3.f90: New test.
435 2011-02-24  Tobias Burnus  <burnus@net-b.de>
437         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
439 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
441         PR libgomp/47854
442         * libgomp.texi (omp_get_wtime): Don't say time in the past
443         must be Unix Epoch.
445 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
447         PR libgomp/47804
448         * testsuite/libgomp.fortran/fortran.exp: Check for both
449         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
450         but $blddir != "", still append ${blddir}/${lang_library_path}
451         to ld_library_path.
453 2011-02-16  Tobias Burnus  <burnus@net-b.de>
455         PR libgomp/47758
456         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
457         of libquadmath.a before adding its libpath to ldflags.
459 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
461         PR libgomp/47731
462         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
463         to FUTEX_WAIT futex syscall.
464         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
466 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
468         * configure: Regenerate.
470 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
472         PR libstdc++/36104
473         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
475 2011-01-16  Gerald Pfeifer
477         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
479 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
481         PR fortran/46874
482         * libgomp.fortran/allocatable6.f90: New test.
484 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
486         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
487         * configure: Regenerate.
489 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
491         PR target/40125
492         PR lto/46695
493         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
494         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
495         * aclocal.m4: Regenerate.
496         * configure: Regenerate.
497         * Makefile.in: Regenerate.
498         * testsuite/Makefile.in: Regenerate.
500 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
502         PR fortran/46753
503         * libgomp.fortran/pr46753.f90: New test.
505         PR libgomp/43706
506         * env.c (initialize_env): Default to spin count 300000
507         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
508         is specified.
510         PR libgomp/45240
511         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
512         at the end if sync builtins aren't supported.
514 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
516         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
518 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
520         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
522 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
524         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
526 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
527             Tobias Burnus  <burnus@net-b.de>
529         PR fortran/32049
530         * configure.ac:
531         * configure: Regenerate.
533 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
535         * config/linux/futex.h: New.
536         * config/linux/arm/mutex.h: New.
537         * configure.tgt (arm*-*-linux*): Add config path.
539 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
541         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
543 2010-09-23  Tobias Burnus  <burnus@net-b.de>
545         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
546         Change Fortran datatype to LOGICAL.
547         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
548         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
550 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
552         * configure: Regenerate.
554 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
556         * libgomp.texi: Add function keyword to a couple of Fortran
557         interfaces, use integer instead of int for Fortran.
559 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
561         * libgomp.texi: Fix spelling and pasto problems throughout.
562         Adjust prototypes to match code.
564 2010-07-24  Tobias Burnus  <burnus@net-b.de>
566         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
567         silence -fwhole-file warning.
569 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
571         * configure.tgt (*-*-solaris2.[56]*): Removed.
573 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
575         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
576         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
577         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
578         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
579         targetting solaris2*.
580         * configure: Regenerate.
581         * config.h.in: Regenerate.
583         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
584         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
585         Add libgomp_version_dep.
586         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
587         versioning.
588         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
589         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
590         * Makefile.in: Regenerate.
592         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
593         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
594         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
595         to common block, protected by
596         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
598 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
600         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
602 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
604         PR bootstrap/43170
605         * configure: Regenerate.
607 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
609         PR other/43620
610         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
611         * configure: Regenerate.
612         * Makefile.in: Regenerate.
613         * testsuite/Makefile.in: Regenerate.
615 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
617         PR c/43893
618         * testsuite/libgomp.c/pr43893.c: New test.
619         * testsuite/libgomp.c++/pr43893.C: New test.
621 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
623         PR middle-end/43570
624         * testsuite/libgomp.fortran/vla8.f90: New test.
626 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
628         PR libgomp/43706
629         * config/linux/affinity.c (gomp_init_affinity): Decrease
630         gomp_available_cpus if affinity mask confines the process to fewer
631         CPUs.
632         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
633         non-NULL, just return gomp_available_cpus.
635         PR libgomp/43569
636         * sections.c (gomp_sections_init): Initialize ws->mode.
638 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
640         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
641         not unused bar variable.
642         * configure: Regenerate.
644 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
646         * Makefile.in: Regenerate.
647         * aclocal.m4: Regenerate.
648         * testsuite/Makefile.in: Regenerate.
650 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
652         PR libgomp/42942
653         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
654         (initialize_env): Adjust callers.
655         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
656         when the argument is 0.
658         * testsuite/libgomp.c/pr42942.c: New test.
660 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
662         PR middle-end/42644
663         PR middle-end/42130
664         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
665         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
667 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
669         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
670         * testsuite/libgomp.c++/task-6.C: Likewise.
672 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
674         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
676 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
678         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
679         * configure: Regenerate.
681 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
683         PR fortran/42866
684         * testsuite/libgomp.fortran/allocatable5.f90: New test.
686 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
688         * configure.ac: Test for executability of GFORTRAN.
689         * configure: Regenerate.
691 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
693         * configure: Regenerate.
695 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
697         PR libgomp/42602
698         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
700 2010-01-03  Richard Guenther  <rguenther@suse.de>
702         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
704 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
706         * testsuite/libgomp.graphite/pr4118.c: New.
708 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
710         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
711         for darwin, protect the test with require-effective-target tls_runtime.
712         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
714 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
716         PR target/41605
717         * testsuite/lib/libgomp.exp: Provide -B options to allow for
718         link spec %s substitutions for static libraries.
720 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
722         PR testsuite/42135
723         * libgomp.graphite/force-parallel-2.c: Reduce array size.
725 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
727         * Makefile.in: Regenerate.
728         * configure: Regenerate.
729         * testsuite/Makefile.in: Regenerate.
731 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
733         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
734         settings for LC_ALL and LANG.
736 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
738         PR fortran/42162
739         * testsuite/libgomp.fortran/pr42162.f90: New test.
741 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
743         PR middle-end/42029
744         * testsuite/libgomp.c/pr42029.c: New test.
746 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
748         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
749         *s.  Accept ld version without text in ()s.
750         * configure: Regenerated.
752 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
754         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
756 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
758         PR libgomp/41418
759         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
760         or a hyphen (happens with fortran language disabled).
761         * configure: Regenerate.
763 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
765         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
766         use sed script portable to Solaris /bin/sed for extracting ld
767         version.
768         * configure: Regenerate.
770 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
772         * testsuite/libgomp.graphite/bounds.c: New test.
774 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
776         * Makefile.am (libgomp_la_LINK): New.
777         * Makefile.in: Regenerate.
779 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
781         * configure.ac (AC_PREREQ): Bump to 2.64.
783 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
785         * Makefile.am (install-html, install-pdf): Remove.
786         * Makefile.in: Regenerate.
788         * Makefile.in: Regenerate.
789         * aclocal.m4: Regenerate.
790         * config.h.in: Regenerate.
791         * configure: Regenerate.
792         * testsuite/Makefile.in: Regenerate.
794 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
796         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
797         * Makefile.in: Regenerate.
799 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
801         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
802         * Makefile.in: Regenerate.
804 2009-08-19  Tobias Burnus  <burnus@net-b.de>
806         PR fortran/41102
807         omp_lib.h.in: Fix -std=f95 errors.
810 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
812         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
813         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
814         * testsuite/libgomp.graphite/graphite.exp: New.
816 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
818         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
819         only build.
821 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
823         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
824         needed memory barrier semantics.
825         * config/linux/mips/mutex.h: New file.
827 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
829         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
831 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
833         * configure: Regenerate.
835 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
837         PR testsuite/40699
838         PR testsuite/40707
839         PR testsuite/40709
840         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
841         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
842         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
844 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
846         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
847         options when choosing a multilib.
849 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
851         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
852         ld_library_path.  Use add_path.  Add just find_libgcc_s to
853         ld_library_path, not every libgcc multilib directory.
854         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
855         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
856         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
857         Use add_path.
858         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
860 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
862         * Makefile.am (LTLDFLAGS): Define.
863         (LINK): Define.
864         * Makefile.in: Regenerate.
866 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
868         PR fortran/39718
869         * testsuite/libgomp.fortran/fortran.exp: Don't link with
870         libgfortranbegin, check existence of libgfortran.a instead of
871         libgfortranbegin.a.
873 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
875         PR libgomp/40174
876         * team.c (gomp_thread_start): Destroy thr->release semaphore.
877         (gomp_free_pool_helper): Likewise.
879 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
880             Jakub Jelinek  <jakub@redhat.com>
882         PR fortran/35423
883         * testsuite/libgomp.fortran/workshare2.f90: New test.
885 2009-04-09  Nick Clifton  <nickc@redhat.com>
887         * iter.c: Change copyright header to refer to version 3 of the
888         GNU General Public License with version 3.1 of the GCC Runtime
889         Library Exception and to point readers at the COPYING3 and
890         COPYING3.RUNTIME files and the FSF's license web page.
891         * alloc.c: Likewise.
892         * barrier.c: Likewise.
893         * config/bsd/proc.c: Likewise.
894         * config/linux/affinity.c: Likewise.
895         * config/linux/alpha/futex.h: Likewise.
896         * config/linux/bar.c: Likewise.
897         * config/linux/bar.h: Likewise.
898         * config/linux/ia64/futex.h: Likewise.
899         * config/linux/ia64/mutex.h: Likewise.
900         * config/linux/lock.c: Likewise.
901         * config/linux/mips/futex.h: Likewise.
902         * config/linux/mutex.c: Likewise.
903         * config/linux/mutex.h: Likewise.
904         * config/linux/powerpc/futex.h: Likewise.
905         * config/linux/proc.c: Likewise.
906         * config/linux/ptrlock.c: Likewise.
907         * config/linux/ptrlock.h: Likewise.
908         * config/linux/s390/futex.h: Likewise.
909         * config/linux/sem.c: Likewise.
910         * config/linux/sem.h: Likewise.
911         * config/linux/sparc/futex.h: Likewise.
912         * config/linux/wait.h: Likewise.
913         * config/linux/x86/futex.h: Likewise.
914         * config/mingw32/proc.c: Likewise.
915         * config/mingw32/time.c: Likewise.
916         * config/posix/affinity.c: Likewise.
917         * config/posix/bar.c: Likewise.
918         * config/posix/bar.h: Likewise.
919         * config/posix/lock.c: Likewise.
920         * config/posix/mutex.h: Likewise.
921         * config/posix/proc.c: Likewise.
922         * config/posix/ptrlock.h: Likewise.
923         * config/posix/sem.c: Likewise.
924         * config/posix/sem.h: Likewise.
925         * config/posix/time.c: Likewise.
926         * config/posix95/lock.c: Likewise.
927         * critical.c: Likewise.
928         * env.c: Likewise.
929         * error.c: Likewise.
930         * fortran.c: Likewise.
931         * iter_ull.c: Likewise.
932         * libgomp.h: Likewise.
933         * libgomp_f.h.in: Likewise.
934         * libgomp_g.h: Likewise.
935         * loop.c: Likewise.
936         * loop_ull.c: Likewise.
937         * omp.h.in: Likewise.
938         * omp_lib.f90.in: Likewise.
939         * omp_lib.h.in: Likewise.
940         * ordered.c: Likewise.
941         * parallel.c: Likewise.
942         * sections.c: Likewise.
943         * single.c: Likewise.
944         * task.c: Likewise.
945         * team.c: Likewise.
946         * work.c: Likewise.
948 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
950         * testsuite/config/default.exp: Change copyright header to refer to
951         version 3 of the GNU General Public License and to point readers
952         at the COPYING3 file and the FSF's license web page.
954 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
956         PR middle-end/39573
957         * libgomp.c++/pr39573.C: New test.
959 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
961         PR other/39591
962         * testsuite/libgomp.c/pr39591-1.c: New test.
963         * testsuite/libgomp.c/pr39591-2.c: New test.
964         * testsuite/libgomp.c/pr39591-3.c: New test.
966 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
968         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
969         * testsuite/libgomp.c/atomic-6.c: Ditto.
971 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
973         PR c/39495
974         * testsuite/libgomp.c/loop-12.c: New test.
975         * testsuite/libgomp.c/loop-11.c: New test.
976         * testsuite/libgomp.c++/loop-11.C: New test.
977         * testsuite/libgomp.c++/loop-12.C: New test.
978         * testsuite/libgomp.c++/for-8.C: New test.
980 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
982         * configure: Regenerate.
984 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
986         PR middle-end/39154
987         * testsuite/libgomp.c/pr39154.c: New test.
989 2009-01-30  Ian Lance Taylor  <iant@google.com>
991         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
992         libgomp_ld_is_gold.  Get gold version number.
993         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
994         * configure: Rebuild.
996 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
998         * testsuite/lib/libgomp.exp: Add -B option for targets that
999         use libgfortran.a%s in their specs.
1001 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1003         PR libgomp/38086
1004         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1005         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1006         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1007         * configure: Regenerated.
1008         * config.h.in: Likewise.
1010 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1012         PR c++/38650
1013         * testsuite/libgomp.c/pr38650.c: New test.
1014         * testsuite/libgomp.c++/pr38650.C: New test.
1016 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1018         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1020 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1022         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1024 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1026         * configure: Regenerate.
1028 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1030         PR middle-end/36802
1031         * testsuite/libgomp.c/pr36802-1.c: New test.
1032         * testsuite/libgomp.c/pr36802-2.c: New test.
1033         * testsuite/libgomp.c/pr36802-3.c: New test.
1035 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1037         PR libgomp/38270
1038         * config/linux/powerpc/mutex.h: New.
1040 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1042         PR c++/38257
1043         * testsuite/libgomp.c++/for-7.C: New test.
1045         PR c++/38348
1046         * testsuite/libgomp.c++/for-6.C: New test.
1048 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1050         PR testsuite/28870
1051         * testsuite/lib/libgomp.exp: Include new timeout library files.
1052         (libgomp_target_compile): Set timeout value from new proc.
1054 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1056         PR libgomp/37938
1057         * config/linux/ia64/mutex.h: New.
1059 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1061         PR libgomp/37935
1062         * libgomp.texi (Runtime library routines, environment variables):
1063         Update for OpenMP version 3.0.
1065 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1066             Steve Ellcey  <sje@cup.hp.com>
1068         * configure: Regenerate for new libtool.
1069         * Makefile.in: Ditto.
1070         * testsuite/Makefile.in: Ditto.
1072 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1073             Andreas Tobler  <a.tobler@schweiz.org>
1075         * config/bsd/proc.c: New file.
1076         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1077         * configure.ac: Check for header <sys/sysctl.h>
1078         * configure: Regenerate.
1079         * config.h.in: Likewise.
1081 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1083         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1085 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1087         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1088         * Makefile.in: Regenerated.
1089         * testsuite/Makefile.in: Regenerated.
1091 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1093         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1094         depend on blddir if blddir exists.
1095         (libgomp_target_compile): Likewise.
1096         * testsuite/libgomp.c++/c++.exp: Likewise.
1097         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1099 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1101         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1102         Do not list GPL as Invariant Section.
1104 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1105             Chao-ying Fu  <fu@mips.com>
1107         * configure.tgt: Enable futex for MIPS.
1108         * config/linux/mips/futex.h: New file.
1110 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1112         * team.c (gomp_team_end): Free team immediately if it has
1113         just one thread.
1115 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1117         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1118         * testsuite/libgomp.fortran/fortran.exp: Same.
1119         * testsuite/libgomp.c/c.exp: Same.
1120         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1121         directory to library path first.
1123 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1125         * env.c (parse_stacksize): Add cast to avoid warning.
1126         (parse_spincount): Likewise.
1128 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1130         * testsuite/libgomp.c/loop-10.c: New test.
1131         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1132         * libgomp.c++/loop-6.C (main): Likewise.
1134         PR debug/36617
1135         * testsuite/libgomp.c/debug-1.c: New test.
1137 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1139         * testsuite/libgomp.c/nqueens-1.c: New test.
1141         PR c++/36523
1142         * testsuite/libgomp.c++/task-7.C: New function.
1144 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1146         * configure: Regenerate.
1148 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1150         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1151         mutex when HAVE_SYNC_BUILTINS isn't defined.
1153 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1155         * libgomp.texi (omp_test_lock): Fix typo.
1157 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1159         * omp_lib.f90.in: Add "implicit none".
1161 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1163         PR middle-end/36506
1164         * testsuite/libgomp.c/reduction-5.c: New test.
1166 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1168         * libgomp.h (struct gomp_task): Add in_tied_task field.
1169         * task.c (gomp_init_task): Initialize it.
1170         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1171         unconditionally.  Don't call gomp_team_barrier_wake if
1172         current task is implicit or if(0) from implicit and number of
1173         running tasks is equal to nthreads - 1.
1175         PR libgomp/36471
1176         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1177         omp_get_team_size_8): Fix pastos.
1179         PR libgomp/36469
1180         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1181         * configure: Regenerated.
1182         * config.h.in: Regenerated.
1183         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1184         defined.
1186 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1188         PR bootstrap/36452
1189         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1190         (GOMP_loop_ull_dynamic_start): Likewise.
1191         (GOMP_loop_ull_guided_start): Likewise.
1192         (GOMP_loop_ull_ordered_static_start): Likewise.
1193         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1194         (GOMP_loop_ull_ordered_guided_start): Likewise.
1196 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1197             Richard Henderson  <rth@redhat.com>
1198             Ulrich Drepper  <drepper@redhat.com>
1199             Jakob Blomer  <jakob.blomer@ira.uka.de>
1201         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1202         Substitute also OMP_*LOCK_25*.
1203         * configure: Regenerated.
1204         * config.h.in: Regenerated.
1205         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1206         ptrlock.c and task.c.
1207         * Makefile.in: Regenerated.
1208         * testsuite/Makefile.in: Regenerated.
1209         * task.c: New file.
1210         * loop_ull.c: New file.
1211         * iter_ull.c: New file.
1212         * libgomp.h: Include ptrlock.h.
1213         (enum gomp_task_kind): New type.
1214         (struct gomp_team): Add task_lock, task_queue, task_count,
1215         task_running_count, single_count fields.  Add
1216         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1217         Remove work_share_lock, generation_mask,
1218         oldest_live_gen, num_live_gen and init_work_shares fields, add
1219         work work_share_list_alloc, work_share_list_free and work_share_chunk
1220         fields.  Change work_shares from pointer to pointers into an array.
1221         Change ordered_release field into gomp_sem_t ** from flexible array
1222         member.  Add implicit_task and initial_work_shares fields.
1223         Move close to the end of the struct.
1224         (struct gomp_team_state): Add single_count, last_work_share,
1225         active_level and level fields, remove work_share_generation.
1226         (gomp_barrier_handle_tasks): New prototype.
1227         (gomp_finish_task): New inline function.
1228         (struct gomp_work_share): Move chunk_size, end, incr into
1229         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1230         next_ll fields.  Reshuffle fields.  Add next_alloc,
1231         next_ws, next_free and inline_ordered_team_ids fields, change
1232         ordered_team_ids into pointer from flexible array member.
1233         Add mode field.  Put lock and next into a different cache line
1234         from most of the write-once fields.
1235         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1236         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1237         gomp_iter_ull_guided_next): New prototypes.
1238         (gomp_new_icv): New prototype.
1239         (struct gomp_thread): Add thread_pool and task fields.
1240         (struct gomp_thread_pool): New type.
1241         (gomp_new_team): New prototype.
1242         (gomp_team_start): Change type of last argument.
1243         (gomp_new_work_share): Removed.
1244         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1245         (gomp_work_share_init_done): New static inline.
1246         (gomp_throttled_spin_count_var, gomp_available_cpus,
1247         gomp_managed_threads): New extern decls.
1248         (gomp_init_task): New prototype.
1249         (gomp_spin_count_var): New extern var decl.
1250         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1251         or no alias support, or if not PIC.
1252         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1253         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1254         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1255         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1256         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1257         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1258         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1259         gomp_test_nest_lock_25): New prototypes.
1260         (omp_lock_symver, strong_alias): Define.
1261         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1262         decls.
1263         (gomp_end_task): New.
1264         (struct gomp_task_icv, gomp_global_icv): New.
1265         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1266         (struct gomp_task): New.
1267         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1268         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1269         (gomp_icv): New.
1270         (gomp_schedule_type): Reorder enum to match
1271         omp_sched_t.
1272         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1273         fields.
1274         (gomp_thread_start): Add gomp_team_barrier_wait call.
1275         For non-nested case remove clearing of docked thread thr fields.
1276         Use pool fields instead of global gomp_* variables.  Use
1277         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1278         Create tasks for each member thread.
1279         (free_team): Only destroy team barrier, task_lock here and free it.
1280         (gomp_free_thread): Free last_team if non-NULL.
1281         (gomp_team_end): Call gomp_team_barrier_wait instead of
1282         gomp_barrier_wait.  For nested case call one extra
1283         gomp_barrier_wait.  Move here some destruction from free_team.
1284         Call free_team on pool->last_team if any, rather than freeing
1285         current team.  Destroy work_share_list_free_lock ifndef
1286         HAVE_SYNC_BUILTINS.
1287         (gomp_new_icv): New function.
1288         (gomp_threads, gomp_threads_size, gomp_threads_used,
1289         gomp_threads_dock): Removed.
1290         (gomp_thread_destructor): New variable.
1291         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1292         functions.
1293         (gomp_team_start): Create new pool if current thread doesn't have
1294         one.  Use pool fields instead of global gomp_* variables.
1295         Initialize thread_pool field for new threads.  Clear single_count.
1296         Change last argument from ws to team, don't create
1297         new team, set ts.work_share to &team->work_shares[0] and clear
1298         ts.last_work_share.  Don't clear ts.work_share_generation.
1299         If number of threads changed, adjust atomically gomp_managed_threads.
1300         Use gomp_init_task instead of gomp_new_task,
1301         set thr->task to the corresponding implicit_task array entry.
1302         Create tasks for each member thread.  Initialize ts.level.
1303         (initialize_team): Call pthread_key_create on
1304         gomp_thread_destructor.
1305         (team_destructor): New function.
1306         (new_team): Removed.
1307         (gomp_new_team): New function.
1308         (free_team): Free gomp_work_share blocks chained through next_alloc,
1309         instead of freeing work_shares and destroying work_share_lock.
1310         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1311         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1312         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1313         of gomp_barrier_wait.
1314         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1315         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1316         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1317         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1318         of gomp_barrier_wait.
1319         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1320         gomp_work_share_init_done if gomp_work_share_start returned true.
1321         Don't unlock ws->lock.
1322         * work.c: Include stddef.h.
1323         (free_work_share): Use work_share_list_free_lock instead
1324         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1325         Call gomp_fini_work_share and then either free ws if orphaned, or
1326         put it into work_share_list_free list of the current team.
1327         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1328         functions.
1329         (gomp_work_share_start, gomp_work_share_end,
1330         gomp_work_share_end_nowait): Rewritten.
1331         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1332         (openmp_version): Set to 200805.
1333         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1334         omp_sched_guided, omp_sched_auto): New parameters.
1335         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1336         omp_set_max_active_levels, omp_get_max_active_levels,
1337         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1338         omp_get_active_level): New interfaces.
1339         * omp_lib.h.in (openmp_version): Set to 200805.
1340         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1341         omp_sched_guided, omp_sched_auto): New parameters.
1342         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1343         omp_set_max_active_levels, omp_get_max_active_levels,
1344         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1345         omp_get_active_level): New externals.
1346         * loop.c: Include limits.h.
1347         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1348         GFS_AUTO.
1349         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1350         Likewise.  Use gomp_icv.
1351         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1352         ts.static_trip here.
1353         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1354         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1355         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1356         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1357         don't unlock ws->lock, otherwise lock it.
1358         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1359         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1360         (gomp_parallel_loop_start): Call gomp_new_team instead of
1361         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1362         Adjust gomp_team_start caller.  Pass 0 as second argument to
1363         gomp_resolve_num_threads.
1364         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1365         If adding ws->chunk_size nthreads + 1 times after end won't
1366         overflow, set ws->mode to 1.
1367         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1368         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1369         GOMP_loop_ull_ordered_static_start,
1370         GOMP_loop_ull_ordered_dynamic_start,
1371         GOMP_loop_ull_ordered_guided_start,
1372         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1373         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1374         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1375         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1376         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1377         prototypes.
1378         * libgomp.map: Export lock routines also @@OMP_2.0.
1379         (GOMP_loop_ordered_dynamic_first,
1380         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1381         GOMP_loop_ordered_static_first): Remove.
1382         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1383         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1384         GOMP_loop_ull_ordered_dynamic_next,
1385         GOMP_loop_ull_ordered_dynamic_start,
1386         GOMP_loop_ull_ordered_guided_next,
1387         GOMP_loop_ull_ordered_guided_start,
1388         GOMP_loop_ull_ordered_runtime_next,
1389         GOMP_loop_ull_ordered_runtime_start,
1390         GOMP_loop_ull_ordered_static_next,
1391         GOMP_loop_ull_ordered_static_start,
1392         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1393         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1394         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1395         (omp_set_schedule, omp_get_schedule,
1396         omp_get_thread_limit, omp_set_max_active_levels,
1397         omp_get_max_active_levels, omp_get_level,
1398         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1399         omp_set_schedule_, omp_set_schedule_8_,
1400         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1401         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1402         omp_get_max_active_levels_, omp_get_level_,
1403         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1404         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1405         New exports @@OMP_3.0.
1406         * omp.h.in (omp_sched_t): New type.
1407         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1408         omp_set_max_active_levels, omp_get_max_active_levels,
1409         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1410         omp_get_active_level): New prototypes.
1411         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1412         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1413         gomp_thread_limit_var, gomp_remaining_threads_count,
1414         gomp_remaining_threads_lock): New variables.
1415         (parse_spincount): New function.
1416         (initialize_env): Call gomp_init_num_threads unconditionally.
1417         Initialize gomp_available_cpus.  Call parse_spincount,
1418         initialize gomp_{,throttled_}spin_count_var
1419         depending on presence and value of OMP_WAIT_POLICY and
1420         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1421         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1422         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1423         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1424         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1425         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1426         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1427         (gomp_global_icv): New.
1428         (parse_schedule): Use it.  Parse "auto".
1429         (omp_set_num_threads): Use gomp_icv.
1430         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1431         Likewise.
1432         (omp_get_max_threads): Move from parallel.c.
1433         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1434         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1435         add ialias.
1436         (parse_stacksize, parse_wait_policy): New functions.
1437         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1438         both wrappers for compatibility and new locks.
1439         (omp_set_schedule, omp_get_schedule,
1440         omp_get_thread_limit, omp_set_max_active_levels,
1441         omp_get_max_active_levels, omp_get_level,
1442         omp_get_ancestor_thread_num, omp_get_team_size,
1443         omp_get_active_level): New ialias_redirect.
1444         (omp_set_schedule_, omp_set_schedule_8_,
1445         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1446         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1447         omp_get_max_active_levels_, omp_get_level_,
1448         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1449         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1450         New functions.
1451         * parallel.c: Include limits.h.
1452         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1453         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1454         argument to gomp_team_start.  Pass 0 as second argument to
1455         gomp_resolve_num_threads.
1456         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1457         if gomp_thread_limit_var != ULONG_MAX.
1458         (omp_in_parallel): Implement using ts.active_level.
1459         (omp_get_max_threads): Move to env.c.
1460         (omp_get_level, omp_get_ancestor_thread_num,
1461         omp_get_team_size, omp_get_active_level): New functions,
1462         add ialias.
1463         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1464         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1465         gomp_iter_dynamic_next instead of the _locked variant and don't take
1466         lock around it, otherwise acquire it before calling
1467         gomp_iter_dynamic_next_locked.
1468         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1469         gomp_iter_dynamic_next instead of the _locked variant and don't take
1470         lock around it.
1471         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1472         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1473         Adjust gomp_team_start caller.  Pass count as second argument to
1474         gomp_resolve_num_threads, don't adjust num_threads after the call.
1475         Use gomp_icv.
1476         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1477         ws->chunk_size by incr.
1478         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1479         code.
1480         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1481         types.
1482         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1483         (omp_check_defines): Check even the compat defines.
1484         * config/linux/ptrlock.c: New file.
1485         * config/linux/ptrlock.h: New file.
1486         * config/linux/wait.h: New file.
1487         * config/posix/ptrlock.c: New file.
1488         * config/posix/ptrlock.h: New file.
1489         * config/linux/bar.h (gomp_team_barrier_wait,
1490         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1491         (gomp_team_barrier_set_task_pending,
1492         gomp_team_barrier_clear_task_pending,
1493         gomp_team_barrier_set_waiting_for_tasks,
1494         gomp_team_barrier_waiting_for_tasks,
1495         gomp_team_barrier_done): New inlines.
1496         (gomp_barrier_t): Rewritten.
1497         (gomp_barrier_state_t): New typedef.
1498         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1499         gomp_barrier_wait_start): Rewritten.
1500         (gomp_barrier_wait_end): Change second argument to
1501         gomp_barrier_state_t.
1502         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1503         inlines.
1504         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1505         futex.h.
1506         (gomp_barrier_wait_end): Rewritten.
1507         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1508         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1509         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1510         (gomp_barrier_state_t): New typedef.
1511         (gomp_team_barrier_wait,
1512         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1513         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1514         into the return value.  Return gomp_barrier_state_t.
1515         (gomp_team_barrier_set_task_pending,
1516         gomp_team_barrier_clear_task_pending,
1517         gomp_team_barrier_set_waiting_for_tasks,
1518         gomp_team_barrier_waiting_for_tasks,
1519         gomp_team_barrier_done): New inlines.
1520         (gomp_barrier_wait_end): Change second argument to
1521         gomp_barrier_state_t.
1522         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1523         inlines.
1524         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1525         (gomp_barrier_wait_end): Change second argument to
1526         gomp_barrier_state_t.
1527         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1528         gomp_team_barrier_wake): New functions.
1529         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1530         futex.h.
1531         (gomp_futex_wake, gomp_futex_wait): New variables.
1532         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1533         * config/linux/lock.c: Rewrite to make locks task owned,
1534         for backwards compatibility provide the old entrypoints
1535         if symbol versioning.  Include wait.h instead of libgomp.h and
1536         futex.h.
1537         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1538         * config/posix95/lock.c: Rewrite to make locks task owned,
1539         for backwards compatibility provide the old entrypoints
1540         if symbol versioning.
1541         * config/posix/lock.c: Rewrite to make locks task owned,
1542         for backwards compatibility provide the old entrypoints
1543         if symbol versioning.
1544         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1545         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1546         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1547         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1548         (sys_futex0): Return error code.
1549         (futex_wake, futex_wait): If ENOSYS was returned, clear
1550         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1551         (cpu_relax, atomic_write_barrier): New static inlines.
1552         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1553         (futex_wake, futex_wait): If ENOSYS was returned, clear
1554         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1555         (cpu_relax, atomic_write_barrier): New static inlines.
1556         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1557         (sys_futex0): Return error code.
1558         (futex_wake, futex_wait): If ENOSYS was returned, clear
1559         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1560         (cpu_relax, atomic_write_barrier): New static inlines.
1561         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1562         (sys_futex0): Return error code.
1563         (futex_wake, futex_wait): If ENOSYS was returned, clear
1564         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1565         (cpu_relax, atomic_write_barrier): New static inlines.
1566         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1567         (sys_futex0): Return error code.
1568         (futex_wake, futex_wait): If ENOSYS was returned, clear
1569         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1570         (cpu_relax, atomic_write_barrier): New static inlines.
1571         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1572         (sys_futex0): Return error code.
1573         (futex_wake, futex_wait): If ENOSYS was returned, clear
1574         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1575         (cpu_relax, atomic_write_barrier): New static inlines.
1576         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1577         futex.h.
1578         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1579         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1580         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1581         types.
1582         (omp_nest_lock_t): Change owner into void *, add lock field.
1583         * config/posix95/omp-lock.h: Include semaphore.h.
1584         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1585         (omp_lock_t): Use sem_t instead of mutex if semaphores
1586         aren't broken.
1587         (omp_nest_lock_t): Likewise.  Change owner to void *.
1588         * config/posix/omp-lock.h: Include semaphore.h.
1589         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1590         (omp_lock_t): Use sem_t instead of mutex if semaphores
1591         aren't broken.
1592         (omp_nest_lock_t): Likewise.  Add owner field.
1594 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1596         * testsuite/libgomp.c/collapse-1.c: New test.
1597         * testsuite/libgomp.c/collapse-2.c: New test.
1598         * testsuite/libgomp.c/collapse-3.c: New test.
1599         * testsuite/libgomp.c/icv-1.c: New test.
1600         * testsuite/libgomp.c/icv-2.c: New test.
1601         * testsuite/libgomp.c/lib-2.c: New test.
1602         * testsuite/libgomp.c/lock-1.c: New test.
1603         * testsuite/libgomp.c/lock-2.c: New test.
1604         * testsuite/libgomp.c/lock-3.c: New test.
1605         * testsuite/libgomp.c/loop-4.c: New test.
1606         * testsuite/libgomp.c/loop-5.c: New test.
1607         * testsuite/libgomp.c/loop-6.c: New test.
1608         * testsuite/libgomp.c/loop-7.c: New test.
1609         * testsuite/libgomp.c/loop-8.c: New test.
1610         * testsuite/libgomp.c/loop-9.c: New test.
1611         * testsuite/libgomp.c/nested-3.c: New test.
1612         * testsuite/libgomp.c/nestedfn-6.c: New test.
1613         * testsuite/libgomp.c/sort-1.c: New test.
1614         * testsuite/libgomp.c/task-1.c: New test.
1615         * testsuite/libgomp.c/task-2.c: New test.
1616         * testsuite/libgomp.c/task-3.c: New test.
1617         * testsuite/libgomp.c/task-4.c: New test.
1618         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1619         to C++ testsuite default compiler options.
1620         * testsuite/libgomp.c++/collapse-1.C: New test.
1621         * testsuite/libgomp.c++/collapse-2.C: New test.
1622         * testsuite/libgomp.c++/ctor-10.C: New test.
1623         * testsuite/libgomp.c++/for-1.C: New test.
1624         * testsuite/libgomp.c++/for-2.C: New test.
1625         * testsuite/libgomp.c++/for-3.C: New test.
1626         * testsuite/libgomp.c++/for-4.C: New test.
1627         * testsuite/libgomp.c++/for-5.C: New test.
1628         * testsuite/libgomp.c++/loop-8.C: New test.
1629         * testsuite/libgomp.c++/loop-9.C: New test.
1630         * testsuite/libgomp.c++/loop-10.C: New test.
1631         * testsuite/libgomp.c++/task-1.C: New test.
1632         * testsuite/libgomp.c++/task-2.C: New test.
1633         * testsuite/libgomp.c++/task-3.C: New test.
1634         * testsuite/libgomp.c++/task-4.C: New test.
1635         * testsuite/libgomp.c++/task-5.C: New test.
1636         * testsuite/libgomp.c++/task-6.C: New test.
1637         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1638         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1639         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1640         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1641         * testsuite/libgomp.fortran/collapse1.f90: New test.
1642         * testsuite/libgomp.fortran/collapse2.f90: New test.
1643         * testsuite/libgomp.fortran/collapse3.f90: New test.
1644         * testsuite/libgomp.fortran/collapse4.f90: New test.
1645         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1646         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1647         * testsuite/libgomp.fortran/lib4.f90: New test.
1648         * testsuite/libgomp.fortran/lock-1.f90: New test.
1649         * testsuite/libgomp.fortran/lock-2.f90: New test.
1650         * testsuite/libgomp.fortran/nested1.f90: New test.
1651         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1652         * testsuite/libgomp.fortran/strassen.f90: New test.
1653         * testsuite/libgomp.fortran/tabs1.f90: New test.
1654         * testsuite/libgomp.fortran/tabs2.f: New test.
1655         * testsuite/libgomp.fortran/task1.f90: New test.
1656         * testsuite/libgomp.fortran/task2.f90: New test.
1657         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1658         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1659         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1660         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1661         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1663 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1665         PR c++/36308
1666         * testsuite/libgomp.c++/ctor-11.C: New test.
1667         * testsuite/libgomp.c++/ctor-12.C: New test.
1669 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1671         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1673 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1675         PR middle-end/36106
1676         * testsuite/libgomp.c/atomic-5.c: New test.
1677         * testsuite/libgomp.c/atomic-6.c: New test.
1678         * testsuite/libgomp.c/autopar-1.c: New test.
1680 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1682         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1683         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1684         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1685         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1686         * configure: Regenerate.
1687         * Makefile.in, testsuite/Makefile.in: Likewise.
1689 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1691         PR bootstrap/35457
1692         * aclocal.m4: Regenerate.
1693         * configure: Regenerate.
1695 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1697         PR middle-end/35611
1698         * testsuite/libgomp.c/atomic-4.c: New test.
1700         PR libgomp/35625
1701         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1702         (gomp_iter_guided_next): Likewise.
1703         * testsuite/libgomp.c/pr35625.c: New test.
1705 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1707         * aclocal.m4: Regenerate.
1708         * configure: Likewise.
1709         * Makefile.in: Likewise.
1710         * testsuite/Makefile.in: Likewise.
1712 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1714         PR middle-end/35185
1715         * testsuite/libgomp.c++/pr35185.C: New test.
1717 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1719         PR middle-end/35549
1720         * testsuite/libgomp.c/pr35549.c: New test.
1722 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1724         * testsuite/libgomp.c/atomic-3.c: New test.
1726 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1728         PR fortran/33197
1729         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1730         .F08 file suffixes.
1732 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1734         PR libgomp/33131
1735         * configure.ac: Add ACX_HEADER_STRING.
1736         * env.c: Include strings.h.
1737         * aclocal.m4: Regenerate.
1738         * config.h.in: Regenerate.
1739         * configure: Regenerate.
1740         * Makefile.in: Regenerate.
1741         * testsuite/Makefile.in: Regenerate.
1743 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1745         PR middle-end/35196
1746         * testsuite/libgomp.c/pr35196.c: New test.
1748         PR middle-end/35130
1749         * testsuite/libgomp.fortran/pr35130.f90: New test.
1750         * testsuite/libgomp.c/pr35130.c: New test.
1752 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1754         PR middle-end/33880
1755         * testsuite/libgomp.c/pr33880.c: New test.
1756         * testsuite/libgomp.fortran/pr33880.f90: New test.
1758 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1760         * configure: Regenerate.
1762 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1764         * configure.ac: Move futex checking into ../config/futex.m4.
1765         * configure: Rebuilt.
1766         * aclocal.m4: Rebuilt.
1767         * Makefile.in: Rebuilt.
1769         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1770         2007-10-15 ../config/tls.m4 change.
1772 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1774         PR c++/34513
1775         * testsuite/libgomp.c/pr34513.c: New test.
1776         * testsuite/libgomp.c++/pr34513.C: New test.
1778 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1780         PR target/32765
1781         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1783 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1785         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1787 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1789         * testsuite/libgomp.c/private-1.c: New test.
1791 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1792             Paolo Bonzini  <bonzini@gnu.org>
1794         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1795         instead of 'VPATH ='.
1796         * Makefile.in: Regenerate.
1798 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1800         * configure.ac: Adjust makeinfo version check.
1801         * configure: Regenerate.
1803 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1805         PR fortran/34020
1806         * testsuite/libgomp.fortran/pr34020.f90: New test.
1808 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1810         PR c++/33894
1811         * testsuite/libgomp.c++/atomic-1.C: New test.
1813 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1815         PR libgomp/33275
1816         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1817         Make x and y integers rather than (implicit) reals.  Add private (j)
1818         clause to the last omp parallel.
1820 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1822         * configure: Regenerate following changes to ../config/tls.m4.
1824 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1826         * testsuite/libgomp.fortran/stack.f90: New test.
1828 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1830         * config/mingw32/proc.c: New file.
1832 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1834         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1835         (main): Use __get_cpuid to get i386 target fetaures.
1836         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1837         (main): Use __get_cpuid to get x86_64 target fetaures.
1839 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1841         PR target/32765
1842         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1843         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1845 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1847         PR fortran/32550
1848         * testsuite/libgomp.fortran/pr32550.f90: New test.
1849         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1851 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1853         * aclocal.m4: Regenerated.
1855 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1857         PR fortran/32359
1858         * testsuite/libgomp.fortran/pr32359.f90: New.
1860 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1862         PR libgomp/32468
1863         * sections.c (GOMP_parallel_sections_start): Only decrease
1864         number of threads to COUNT if dyn_var is true.
1865         * testsuite/libgomp.c/pr32468.c: New test.
1867 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1869         PR libgomp/26308
1870         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1872 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1874         PR middle-end/32362
1875         * testsuite/libgomp.c/pr32362-1.c: New test.
1876         * testsuite/libgomp.c/pr32362-2.c: New test.
1877         * testsuite/libgomp.c/pr32362-3.c: New test.
1879 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1881         * team.c (gomp_team_start): Fix setting up thread_attr
1882         stack size.
1884 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1886         * configure: Regenerate.
1888 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1890         * Makefile.in: Regenerate.
1891         * configure: Regenerate.
1892         * aclocal.m4: Regenerate.
1893         * testsuite/Makefile.in: Regenerate.
1895 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1897         * config/linux/proc.c: New file.
1899         PR libgomp/28482
1900         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1902 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1904         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1906 2007-04-16  Matthias Klose  <doko@debian.org>
1908         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1909         flags if not building with -m64.
1910         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1911         flag for i?86-*-* targets, if current target matches -m64.
1913 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1915         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1916         * Makefile.in: Regenerate.
1918 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1920         PR testsuite/31369
1921         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1922         ld_library_path.
1923         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1925 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1927         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1928         decls.
1929         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1930         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1931         (parse_affinity): New function.
1932         (initialize_env): Call it and gomp_init_affinity.
1933         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1934         create new pthread_attr_t and call gomp_init_thread_affinity
1935         on it for each thread before passing the attribute to pthread_create.
1936         * config/linux/affinity.c: New file.
1937         * config/posix/affinity.c: New file.
1938         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1939         * configure: Rebuilt.
1940         * config.h.in: Rebuilt.
1941         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1942         * Makefile.in: Rebuilt.
1944 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1946         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1947         *-*-darwin*.
1948         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1949         and use it if found.
1951 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1953         * testsuite/config/default.exp: New file.
1954         * testsuite/lib/libgomp.exp: New file.
1955         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1956         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1957         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1958         (libgomp_load): Remove.
1959         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1960         always_ld_library_path, not ld_library_path.  Set additional_flags
1961         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1962         (target_compile): Do not call libgomp_init.  Append lang_library_path
1963         and lang_link_flags to options.
1964         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1965         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1966         here.
1967         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1968         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1969         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1970         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1971         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1972         CX8 flag.
1973         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1974         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1975         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1976         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1977         * testsuite/libgomp.c/atomic-10.c: Ditto.
1979 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1981         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1982         dg-final cleanup-modules line.
1983         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1984         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1985         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1986         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1987         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1988         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1989         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1991 2007-03-18  Andreas Schwab  <schwab@suse.de>
1993         * acinclude.m4: Adjust regular expression for ld version
1994         extraction.
1995         * configure: Regenerate.
1997 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1999         * Makefile.am: Add install-pdf target as copied from
2000         automake v1.10 rules.
2001         * Makefile.in: Regenerate
2003 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2005         PR libgomp/28486
2006         * configure: Regenerate.
2008         PR c++/30703
2009         * testsuite/libgomp.c++/pr30703.C: New test.
2011 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2013         Revert:
2014         2006-07-05  Eric Christopher  <echristo@apple.com>
2015         * configure.ac: Depend addition of -pthread on host OS.
2016         * configure: Regenerate.
2018 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2020         * libgomp.texi: Fix spacing after abbreviations.
2022 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2024         PR libgomp/30546
2025         * configure.ac: Add check for makeinfo
2026         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2027         if an appropiate version of makeinfo is found.
2028         * aclocal.m4: Regenerated.
2029         * configure: Regenerated.
2030         * Makefile.in: Regenerated.
2031         * testsuite/Makefile.in: Regenerated.
2033 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2035         PR libgomp/30540
2036         * libgomp.texi: More about implementation-dependent settings.
2038 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2040         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2042 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2044         PR middle-end/30494
2045         * testsuite/libgomp.c/pr30494.c: New test.
2047 2007-01-15  Tom Tromey  <tromey@redhat.com>
2049         * configure: Rebuilt.
2050         * configure.ac: Fixed comment.
2052 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2054         * libgomp.texi: Document implementation specific default values of
2055         environment variables.
2057 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2059         PR libgomp/28209
2060         * libgomp.texi: New file.
2061         * configure.ac: Add --enable-generated-files-in-srcdir option.
2062         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2063         files to srcdir.
2064         * Makefile.in: Regenerated.
2065         * config.h.in: Regenerated.
2066         * testsuite/Makefile.in: Regenerated.
2067         * NOTES: Removed.
2069 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2071         PR libgomp/29949
2072         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2074 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2076         * configure: Regenerate.
2078 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2080         PR libgomp/29947
2081         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2082         start if there shouldn't be any loop iterations.
2083         (gomp_loop_ordered_static_start): Remove start == end test.
2084         * testsuite/libgomp.c/pr29947-1.c: New test.
2085         * testsuite/libgomp.c/pr29947-2.c: New test.
2087 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2089         * configure.tgt: Force initial-exec TLS model on Linux only.
2091 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2093         * configure: Regenerated.
2095 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2097         * env.c (parse_schedule): Reject out of range values.
2098         (parse_unsigned_long): Reject out of range, negative or zero values.
2100 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2102         PR fortran/29629
2103         * testsuite/libgomp.fortran/pr29629.f90: New test.
2105 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2107         PR libgomp/29494
2108         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2109         * config/posix95: New directory.
2110         * config/posix95/omp-lock.h: New file.
2111         * config/posix95/lock.c: Likewise.
2113 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2115         * aclocal.m4: Regenerate.
2116         * configure: Regenerate.
2118 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2120         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2121         '<' to '<='.
2123 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2125         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2126         test.
2127         * configure: Regenerate.
2128         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2130 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2132         PR middle-end/25261
2133         PR middle-end/28790
2134         * testsuite/libgomp.c/nestedfn-4.c: New test.
2135         * testsuite/libgomp.c/nestedfn-5.c: New test.
2136         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2138         PR fortran/29097
2139         * testsuite/libgomp.fortran/condinc1.f: New test.
2140         * testsuite/libgomp.fortran/condinc2.f: New test.
2141         * testsuite/libgomp.fortran/condinc3.f90: New test.
2142         * testsuite/libgomp.fortran/condinc4.f90: New test.
2143         * testsuite/libgomp.fortran/condinc1.inc: New file.
2145 2006-09-18  Tom Tromey  <tromey@redhat.com>
2147         * configure: Rebuilt.
2149 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2151         PR c/28768
2152         PR preprocessor/14634
2153         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2154         to AC_DEFINE.
2155         * configure: Regenerate.
2157 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2159         * testsuite/libgomp.fortran/reduction3.f90: Change
2160         -2147483648 to -huge(i)-1 to avoid overflow.
2161         * testsuite/libgomp.fortran/reduction4.f90: Change
2162         Z'ffffffff' to not(0) to avoid overflow.
2164 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2166         PR libgomp/25938
2167         * Makefile.am (libsubincludedir): New.
2168         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2169         * Makefile.in: Regenerate.
2171 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2173         PR libgomp/28725
2174         * env.c: Include ctype.h.
2175         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2176         leading and/or trailing whitespace and compare strings case
2177         insensitively.
2179 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2181         PR fortran/28390
2182         * testsuite/libgomp.fortran/pr28390.f: New test.
2184 2006-07-05  Eric Christopher  <echristo@apple.com>
2186         * configure.ac: Depend addition of -pthread on host OS.
2187         * configure: Regenerate.
2189 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2191         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2192         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2193         defined.
2195 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2197         PR libgomp/26175
2198         PR libgomp/26477
2199         * configure.ac: If neither --enable-linux-futex nor
2200         --disable-linux-futex is passed, determine the default by checking
2201         for compiling and/or running against NPTL.  With --enable-linux-futex,
2202         check if SYS_gettid and SYS_futex are defined.
2203         * configure: Rebuilt.
2205 2006-06-14  Richard Henderson  <rth@redhat.com>
2207         PR libgomp/28008
2208         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2209         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2211 2006-06-09  Richard Henderson  <rth@redhat.com>
2213         * env.c (gomp_nthreads_var): Change to unsigned long.
2214         (gomp_run_sched_chunk): Likewise.
2215         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2216         (initialize_env): Initialize gomp_thread_attr.
2217         * libgomp.h (gomp_nthreads_var): Update decl.
2218         (gomp_run_sched_chunk): Likewise.
2219         (gomp_thread_attr): Declare.
2220         * team.c (gomp_thread_attr): Export.
2221         (initialize_team): Don't initialize it.
2223 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2225         PR fortran/27916
2226         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2227         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2229 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2231         * config/mingw32/time.c: New file.
2232         * configure.tgt: Use it.
2234 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2236         * Makefile.am: Add install-html target. Add install-html to .PHONY
2237         * Makefile.in: Regenerate.
2239 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2241         PR libgomp/27612
2242         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2243         * testsuite/libgomp.c/critical-1.c: Likewise.
2244         * testsuite/libgomp.c/loop-1.c: Likewise.
2245         * testsuite/libgomp.c/loop-2.c: Likewise.
2246         * testsuite/libgomp.c/single-1.c: Likewise.
2247         * testsuite/libgomp.c/ordered-1.c: Likewise.
2248         * testsuite/libgomp.c/ordered-2.c: Likewise.
2250 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2252         PR middle-end/27416
2253         * libgomp.fortran/pr27416-1.f90: New test.
2255 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2257         PR fortran/27395
2258         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2259         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2261 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2263         PR c++/26943
2264         * testsuite/libgomp.c/pr26943-1.c: New test.
2265         * testsuite/libgomp.c/pr26943-2.c: New test.
2266         * testsuite/libgomp.c/pr26943-3.c: New test.
2267         * testsuite/libgomp.c/pr26943-4.c: New test.
2268         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2269         * testsuite/libgomp.c++/pr26943.C: New test.
2271 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2273         PR middle-end/27337
2274         * testsuite/libgomp.c++/pr27337.C: New test.
2276 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2278         PR c/26171
2279         * testsuite/libgomp.c/pr26171.c: New test.
2281 2006-04-25  Richard Henderson  <rth@redhat.com>
2283         PR libgomp/25865
2284         * configure.ac: Use GCC_CHECK_TLS.
2285         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2286         * Makefile.in, aclocal.m4, configure: Regenerate.
2288 2006-04-10  Matthias Klose  <doko@debian.org>
2290         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2291         directory names containing underscores.
2293 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2295         PR c++/26691
2296         * testsuite/libgomp.c++/pr26691.C: New test.
2298 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2300         * testsuite/libgomp.fortran/retval2.f90: New test.
2302 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2304         * testsuite/libgomp.c++: New directory.
2306 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2308         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2309         * config/posix/sem.c: Implement the above.
2311 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2313         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2314         define HAVE_BROKEN_POSIX_SEMAPHORES.
2315         * configure: Rebuilt.
2316         * config.h.in: Rebuilt.
2318 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2320         PR bootstrap/26161
2321         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2322         for the other pthread check.
2323         * configure: Regenerate.
2324         * config.h.in: Regenerate.
2326 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2328         PR libgomp/25938
2329         PR libgomp/25984
2330         * Makefile.am (fincludedir): New variable.
2331         (nodist_include_HEADERS): Remove Fortran files.
2332         (nodist_finclude_HEADERS): New variable.
2333         * Makefile.in: Regenerated.
2335 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2337         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2338         Remove tests for returning assumed character length arrays.
2340 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2341             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2343         PR libgomp/25936
2344         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2346 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2348         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2350 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2352         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2353         part of LD_LIBRARY_PATH manually.
2355 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2357         PR libgomp/25852
2358         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2359         libgomp_init.
2361 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2363         PR libgomp/25884
2364         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2365         * configure.ac (PERL): Don't set.
2366         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2367         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2368         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2369         * omp.h.in: Wrap the new configure substitutions with @ characters.
2370         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2371         * aclocal.m4, configure, Makefile.in: Regenerate.
2372         * mkomp_h.pl: Delete.
2374 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2376         PR libgomp/25259
2377         * configure.ac: Use GCC_HEADER_STDINT.
2378         * libgomp.h: Include gstdint.h.
2379         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2380         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2382 2006-01-24  Richard Henderson  <rth@redhat.com>
2384         PR libgomp/25942
2385         * configure.ac: Add AM_MAINTAINER_MODE.
2386         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2388 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2390         * Makefile.in: Regenerate.
2391         * testsuite/Makefile.in: Regenerate.
2392         * aclocal.m4: Regenerate.
2394 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2396         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2397         Solaris.
2398         * configure.ac: Add check for loadavg.h.
2399         (link_gomp): Adjust comment.
2400         * configure: Regenerate.
2401         * config.h.in: Regenerate.
2403 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2405         PR libgomp/25877
2406         * configure.ac: Remove check for alloca.h.
2407         * configure: Regenerate.
2408         * config.h.in: Regenerate.
2409         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2410         * team.c: Remove use of alloca.h.
2411         Call gomp_alloca instead of alloca.
2413 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2415         PR libgomp/25877
2416         * team.c: Add include of alloca.h.
2417         * configure.ac: Add check for alloca.h.
2418         * configure: Regenerate.
2419         * config.h.in: Regenerate.
2421 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2423         PR fortran/25219
2424         * testsuite/libgomp.fortran/pr25219.f90: New test.
2426 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2428         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2429         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2430         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2431         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2432         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2433         testsuite/libgomp.fortran/threadprivate1.f90,
2434         testsuite/libgomp.fortran/threadprivate2.f90,
2435         testsuite/libgomp.fortran/threadprivate3.f90,
2436         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2437         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2438         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2439         effective-target to TLS runtime.
2441         * testsuite/libgomp.fortran/pr25162.f: Require
2442         effective-target TLS runtime.
2444 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2446         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2447         * testsuite/libgomp.c/nestedfn-3.c: New test.
2449 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2451         PR fortran/25162
2452         * testsuite/libgomp.fortran/pr25162.f: New test.
2454 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2456         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2457         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2459 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2461         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2462         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2463         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2464         single.c, team.c, work.c, config/linux/alpha/futex.h,
2465         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2466         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2467         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2468         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2469         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2470         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2471         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2472         FSF address.
2474 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2476         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2477         to nodist_noinst_HEADERS.
2478         * Makefile.in: Rebuilt.
2480         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2481         add integer count field.
2482         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2483         omp_nest_lock_t type change.
2484         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2485         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2486         Increment count.
2487         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2488         Decrement count.
2489         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2490         Increment count if successful and return the new nesting level.
2491         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2492         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2493         * testsuite/libgomp.c/lib-1.c: New test.
2494         * testsuite/libgomp.fortran/lib1.f90: New test.
2495         * testsuite/libgomp.fortran/lib2.f: New test.
2496         * testsuite/libgomp.fortran/lib3.f: New test.
2498 2005-11-17  Richard Henderson  <rth@redhat.com>
2500         PR 24845
2501         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2502         * configure.ac (link_gomp): New.  Substitute it.
2503         (AC_CONFIG_FILES): Add libgomp.spec.
2504         * libgomp.spec.in: New file.
2505         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2506         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2508 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2510         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2511         reduction(-:var) behaving the same as reduction(+:var).
2512         * testsuite/libgomp.c/reduction-4.c: New test.
2514 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2516         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2517         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2518         testsuite/libgomp.c/copyin-3.c,
2519         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2520         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2521         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2522         testsuite/libgomp.c++/pr24455.C,
2523         testsuite/libgomp.fortran/threadprivate1.f90,
2524         testsuite/libgomp.fortran/threadprivate2.f90,
2525         testsuite/libgomp.fortran/threadprivate3.f90,
2526         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2527         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2528         testsuite/libgomp.fortran/omp_parse3.f90: Require
2529         effective-target TLS.
2531 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2533         * HEADER: Remove.
2535 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2537         PR libgomp/24797
2538         * team.c (initialize_team): Pass NULL rather than free as
2539         pthread_key_create destructor.  Initialize thread specific data
2540         pointer in initial thread to a static local variable rather than
2541         malloced memory.
2543 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2545         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2546         its location to ld_library_path.
2548 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2550         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2552 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2554         * testsuite/libgomp.c: Rename from libgomp.dg.
2556 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2558         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2559         threadprivate variable 'i'.
2561 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2563         * config/linux/s390/futex.h: New file.
2564         * configure.tgt: Use it.
2566         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2567         before the parallel.
2569 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2571         PR c++/24734
2572         * testsuite/libgomp.c++/master-1.C: New test.
2574 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2576         * testsuite/libgomp.dg/copyin-3.c: New test.
2578 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2580         * testsuite/libgomp.fortran/retval1.f90: New test.
2581         * testsuite/libgomp.fortran/vla7.f90: New test.
2583 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2585         * testsuite/libgomp.fortran/vla2.f90: New test.
2586         * testsuite/libgomp.fortran/vla3.f90: New test.
2587         * testsuite/libgomp.fortran/vla4.f90: New test.
2588         * testsuite/libgomp.fortran/vla5.f90: New test.
2589         * testsuite/libgomp.fortran/vla6.f90: New test.
2591 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2593         * config/linux/sparc/futex.h: New file.
2594         * configure.tgt: Use it.
2595         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2597         * critical.c: Include stdlib.h.
2598         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2599         ignoring return value.
2600         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2601         LIBGOMP_CHECK_SYNC_BUILTINS check.
2602         * configure: Rebuilt.
2604 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2606         * testsuite/libgomp.fortran/vla1.f90: New test.
2608 2005-10-31  Richard Henderson  <rth@redhat.com>
2610         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2611         setting 's' in different threads.
2613 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2615         * libgomp.h (attribute_hidden, ialias): Define.
2616         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2617         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2618         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2619         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2620         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2621         omp_test_lock, omp_test_nest_lock): Likewise.
2622         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2623         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2624         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2625         omp_test_lock, omp_test_nest_lock): Likewise.
2626         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2627         omp_get_dynamic, omp_get_nested): Likewise.
2628         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2629         omp_get_thread_num, omp_in_parallel): Likewise.
2630         * fortran.c (ialias_redirect): Define.
2631         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2632         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2633         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2634         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2635         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2636         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2637         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2638         omp_get_wtime): Add ialias_redirect.
2640 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2642         * fortran.c: Include stdlib.h.
2644 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2646         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2647         * Makefile.in: Regenerated.
2649 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2651         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2652         * libgomp_f.h.in (omp_check_defines): New function.
2653         * env.c: Include libgomp_f.h.
2654         (initialize_env): Call omp_check_defines.
2656         * testsuite/libgomp.dg/copyin-2.c: New test.
2657         * testsuite/libgomp.c++/copyin-2.C: New test.
2658         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2660         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2661         * testsuite/libgomp.fortran/sharing2.f90: New test.
2663         * testsuite/libgomp.dg/copyin-1.c: New test.
2664         * testsuite/libgomp.c++/copyin-1.C: New test.
2666 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2668         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2670         * testsuite/libgomp.fortran/workshare1.f90: New test.
2672         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2673         only test.
2674         * libgomp.fortran/sharing1.f90: New test.
2676 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2678         PR c++/24502
2679         * testsuite/libgomp.c++/loop-7.C: New test.
2681         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2683         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2684         * testsuite/libgomp.fortran/reduction6.f90: New test.
2685         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2687 2005-10-23  Richard Henderson  <rth@redhat.com>
2689         * testsuite/libgomp.c++/ctor-1.C: New.
2690         * testsuite/libgomp.c++/ctor-2.C: New.
2691         * testsuite/libgomp.c++/ctor-3.C: New.
2692         * testsuite/libgomp.c++/ctor-4.C: New.
2693         * testsuite/libgomp.c++/ctor-5.C: New.
2694         * testsuite/libgomp.c++/ctor-6.C: New.
2695         * testsuite/libgomp.c++/ctor-7.C: New.
2696         * testsuite/libgomp.c++/ctor-8.C: New.
2697         * testsuite/libgomp.c++/ctor-9.C: New.
2699 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2701         PR 24455
2702         * testsuite/libgomp.c++/pr24455-1.C: New test.
2703         * testsuite/libgomp.c++/pr24455.C: New test.
2704         * testsuite/libgomp.dg/pr24455-1.c: New test.
2705         * testsuite/libgomp.dg/pr24455.c: New test.
2707 2005-10-20  Richard Henderson  <rth@redhat.com>
2709         * testsuite/libgomp.c++/loop-6.C: New.
2710         * testsuite/libgomp.dg/loop-3.c: New.
2712 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2714         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2715         explicitly private.
2716         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2717         explicitly shared.
2719 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2721         * testsuite/libgomp.fortran/jacobi.f: New test.
2723 2005-10-19  Richard Henderson  <rth@redhat.com>
2725         * configure.tgt (i?86-linux): Default to with_arch instead of
2726         CFLAGS.  Add -mtune to match target_cpu.
2727         (x86_64-linux): Tune to i686.
2729         * fortran.c (omp_test_nest_lock_): Fix typo.
2731 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2733         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2734         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2735         * testsuite/libgomp.dg/ordered-3.c: New test.
2737         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2738         Remove volatile keyword.
2740         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2741         in COMMON block to avoid warnings on 64-bit targets.
2743 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2745         * testsuite/libgomp.dg/shared-3.c: New test.
2747 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2749         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2750         * testsuite/libgomp.fortran/reduction5.f90: New test.
2752 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2754         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2755         dg-options.
2756         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2757         flush loop now that __sync_synchronize has proper memory barrier.
2758         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2759         Add -ffixed-form to dg-options.
2761 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2763         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2764         from subdirectories.
2765         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2766         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2767         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2768         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2769         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2770         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2771         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2772         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2773         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2774         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2775         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2776         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2777         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2778         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2779         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2780         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2781         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2782         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2783         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2784         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2785         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2786         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2787         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2788         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2789         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2791 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2793         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2794         lang_library_path exists.  Use find instead of glob to gather tests.
2795         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2797 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2799         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2800         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2801         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2802         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2803         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2804         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2805         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2806         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2807         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2808         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2809         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2810         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2811         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2813 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2815         * testsuite/libgomp.dg/vla-1.c: New test.
2817         * testsuite/libgomp.fortran/reference2.f90: New test.
2819         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2820         declaration of omp_get_thread_num.
2821         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2822         use omp_lib.
2824         * testsuite/libgomp.fortran/reduction1.f90: New test.
2825         * testsuite/libgomp.fortran/reduction2.f90: New test.
2826         * testsuite/libgomp.fortran/reduction3.f90: New test.
2827         * testsuite/libgomp.fortran/reduction4.f90: New test.
2829 2005-10-13  Richard Henderson  <rth@redhat.com>
2831         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2832         * Makefile.in: Regenerate.
2833         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2834         * libgomp.h: Include bar.h.
2835         (struct gomp_barrier): Remove.
2836         (struct gomp_team): Add barrier.  Replace master_barrier with
2837         master_release.  Replace threads with ordered_release.
2838         (struct gomp_thread): Replace barrier with release.
2839         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2840         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2841         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2842         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2843         (GOMP_single_copy_end): Likewise.
2844         * team.c (gomp_threads_dock): New.
2845         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2846         (gomp_thread_start): Use gomp_barrier_wait.
2847         (new_team, free_team): Update for gomp_team changes.
2848         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2849         (gomp_team_end): Use gomp_barrier_wait.
2850         (initialize_team): Update for gomp_thread changes.
2851         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2852         (gomp_work_share_end_nowait): Use atomic ops when available.
2853         * config/linux/bar.c, config/linux/bar.h: New files.
2854         * config/posix/bar.c, config/posix/bar.h: New files.
2856 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2858         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2859         * testsuite/libgomp.dg/single-2.c: New test.
2861         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2862         lang_link_flags): Unset, so that they aren't inherited from previously
2863         sourced *.exp.
2865         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2867 2005-10-12  Richard Henderson  <rth@redhat.com>
2869         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2870         (libgomp_init): Use lang_test_file, lang_library_path, and
2871         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2873         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2874         (lang_test_file, lang_link_flags): New.
2875         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2877         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2878         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2879         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2880         testsuite/libgomp.c++/parallel-1.C,
2881         testsuite/libgomp.c++/reduction-1.C,
2882         testsuite/libgomp.c++/reduction-2.C,
2883         testsuite/libgomp.c++/reduction-3.C,
2884         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2885         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2886         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2887         New files, largely cribbed from the C testsuite.
2889 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2891         * testsuite/libgomp.fortran/character1.f90: New test.
2892         * testsuite/libgomp.fortran/character2.f90: New test.
2894         * testsuite/libgomp.dg/nested-1.c: New test.
2895         * testsuite/libgomp.dg/nested-2.c: New test.
2896         * testsuite/libgomp.fortran/do1.f90: New test.
2897         * testsuite/libgomp.fortran/do2.f90: New test.
2899         * testsuite/libgomp.fortran/reference1.f90: New test.
2901 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2903         * testsuite/libgomp.dg/reduction-1.c: New test.
2904         * testsuite/libgomp.dg/reduction-2.c: New test.
2905         * testsuite/libgomp.dg/reduction-3.c: New test.
2907 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2909         * testsuite/libgomp.dg/atomic-1.c: New test.
2910         * testsuite/libgomp.dg/atomic-2.c: New test.
2912 2005-10-09  Richard Henderson  <rth@redhat.com>
2914         * critical.c (atomic_lock): New.
2915         (initialize_critical): Initialize it.
2916         (GOMP_atomic_start, GOMP_atomic_end): New.
2917         * libgomp.map: Export them.
2918         * libgomp_g.h: Declare them.
2920         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2922 2005-10-02  Richard Henderson  <rth@redhat.com>
2924         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2925         to XCFLAGS instead of CFLAGS.
2927 2005-09-30  Richard Henderson  <rth@redhat.com>
2929         * configure.ac: Determine whether -pthread or -lpthread is needed.
2930         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2931         * Makefine.in, configure: Rebuild.
2933 2005-09-28  Richard Henderson  <rth@redhat.com>
2935         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2936         * testsuite/libgomp.dg/omp-single-3.c: New test.
2938 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2940         * testsuite/libgomp.dg/omp-single-2.c: New test.
2941         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2943 2005-09-27  Richard Henderson  <rth@redhat.com>
2945         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2946         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2948 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2950         * testsuite/libgomp.dg/omp-loop03.c: New test.
2952 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2954         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2956 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2958         * testsuite/libgomp.dg/omp-single-1.c: New test.
2959         * testsuite/libgomp.dg/shared-1.c: Return 0.
2960         Add prototype for abort.
2961         * testsuite/libgomp.dg/shared-2.c: Likewise.
2963 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2965         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2966         constructs.
2968 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2970         * testsuite/libgomp.dg/shared-1.c: New test.
2971         * testsuite/libgomp.dg/shared-2.c: New test.
2973 2005-09-24  Richard Henderson  <rth@redhat.com>
2975         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2977 2005-09-24  Richard Henderson  <rth@redhat.com>
2979         * iter.c (gomp_iter_static_next): Round up when computing number
2980         of iterations.  Don't bother distributing a remainder equally.
2982         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2983         Don't call srand.  Zero b before testing.
2984         (main): New.
2986 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2988         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2989         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2991 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2993         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2994         without !$omp end do, followed immediately by subroutine end.
2996 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2998         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3000 2005-09-22  Richard Henderson  <rth@redhat.com>
3002         * critical.c (GOMP_critical_name_start): Change argument to void**.
3003         Reuse the pointer space if the mutex fits.
3004         (GOMP_critical_name_end): Likewise.
3005         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3006         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3007         (GOMP_critical_name_end): Likewise.
3008         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3009         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3011 2005-09-20  Richard Henderson  <rth@redhat.com>
3013         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3014         (create_lock_lock): New.
3015         (initialize_critical): Initialize it.
3016         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3017         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3019 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3021         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3023 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3025         * testsuite/libgomp.dg/omp-loop01.c: New test.
3026         * testsuite/libgomp.dg/omp-loop02.c: New test.
3028 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3030         * configure.ac (AC_PROG_FC): Add.
3031         (USE_FORTRAN): New automake conditional.
3032         * configure: Rebuilt.
3033         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3034         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3035         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3036         Add rules to build them.
3037         * Makefile.in: Rebuilt.
3038         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3039         OMP_NEST_LOCK_KIND.
3040         * libgomp.map: Add Fortran wrappers.
3041         * libgomp_f.h.in: New file.
3042         * omp_lib.h.in: New file.
3043         * omp_lib.f90.in: New file.
3044         * fortran.c: New file.
3045         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3046         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3047         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3048         libgfortran has been built.
3049         * testsuite/libgomp.fortran/fortran.exp: New file.
3050         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3051         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3052         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3053         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3054         * testsuite/libgomp.fortran/omp_hello.f: New test.
3055         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3056         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3057         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3058         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3059         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3060         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3061         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3062         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3064 2005-08-30  Richard Henderson  <rth@redhat.com>
3066         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3067         function for when aliases are not usable.
3068         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3069         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3070         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3071         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3072         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3073         GOMP_loop_ordered_guided_next): Likewise.
3074         * ordered.c (GOMP_ordered_start): Likewise.
3076 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3078         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3079         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3080         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3081         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3082         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3083         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3084         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3085         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3086         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3088 2005-07-07  Eric Christopher  <echristo@redhat.com>
3089             Diego Novillo  <dnovillo@redhat.com>
3091         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3092         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3093         up code.
3094         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3095         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3096         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3097         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3098         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3099         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3100         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3102 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3104         * TOPLEVEL.patch: Remove.
3106 2005-05-16  Richard Henderson  <rth@redhat.com>
3108         * configure.ac: Test for clock_gettime.
3109         * config.h.in, configure: Rebuild.
3110         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3111         (omp_get_wtime): Use clock_gettime if available.
3112         (omp_get_wtick): Use clock_getres if available.
3114 2005-05-11  Richard Henderson  <rth@redhat.com>
3116         * config/linux/ia64/futex.h: New file.
3117         * configure.tgt: Use it.
3119         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3121 2005-05-07  Richard Henderson  <rth@redhat.com>
3123         * config/linux/powerpc/futex.h: New file.
3124         * configure.tgt: Use it.
3126         * config/linux/i486/futex.h: Merge ...
3127         * config/linux/x86_64/futex.h: ... into ...
3128         * config/linux/x86/futex.h: ... here.
3129         * configure.tgt: Update to match.
3131 2005-05-06  Richard Henderson  <rth@redhat.com>
3133         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3134         * config/linux/i486/futex.h: Likewise.
3135         * config/linux/x86_64/futex.h: Likewise.
3137         * config/linux/lock.c: New file.
3138         * config/linux/omp-lock.h: New file.
3140         * critical.c, env.h: Don't include omp.h
3141         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3142         * config/posix/time.c: Likewise.
3143         * config/posix/omp-lock.h: New file.
3144         * libgomp.h: Include omp-lock.h and omp.h.
3145         * Makefile.am (nodist_include_HEADERS): New.
3146         (omp.h): New rule.
3147         * configure.ac (PERL): New.
3148         * mkomp_h.pl: New file.
3149         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3150         with templates.
3151         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3153         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3154         build directory.  Re-add -march=i486 hack.
3156         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3157         (libgomp_link_flags): Remove.
3158         (libgomp_initialized): Remove.
3159         (libgomp_init): Don't protect from reinitialization.  Copy code
3160         from libstdc++ for getting the multilib set correctly.
3162 2005-05-05  Richard Henderson  <rth@redhat.com>
3164         * config/linux/alpha/futex.h: New file.
3165         * configure.tgt (alpha*-*-linux*): Use it.
3167         * config/posix/mutex.c: New file.
3168         * config/posix/sem.c: Use libgomp.h.
3170         * configure.tgt (x86_64-linux): Also test CC for -m32.
3171         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3173         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3174         after $gccpath.
3176         * Makefile.am (SUBDIRS): New.
3177         (libgomp_la_LDFLAGS): Add -lpthread.
3178         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3179         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3181         * libgomp_g.h: New file.
3182         * libgomp.h: Split out all public declarations to libgomp_g.h.
3183         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3184         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3185         * config/linux/sem.h: Likewise.
3186         * config/posix/sem.h: Likewise.
3188         * Makefile.am (AM_LDFLAGS): New.
3189         (libgomp_version_script): Split out from ...
3190         (libgomp_la_LDFLAGS): ... here.
3191         (libgomp_version_info): New.
3192         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3193         (LIBGOMP_ENABLE): New.
3194         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3195         (LIBGOMP_ENABLE_SYMVERS): New.
3196         * configure.ac (AC_INIT): Version 1.0.
3197         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3198         (enable-linux-futex): Likewise.  Rename from enable-futex.
3199         (libtool_VERSION): New.
3200         (LIBGOMP_ENABLE_SYMVERS): Use it.
3201         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3202         * Makefile.in, aclocal.m4, configure: Rebuild.
3204         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3205         (gomp_mutex_unlock_slow): Fix typo.
3206         * config/linux/sem.c: Similarly.
3207         (gomp_sem_post_slow): Fix typo.
3208         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3209         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3210         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3212         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3213         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3214         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3215         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3216         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3217         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3218         LDFLAGS.  Pull enable_futex check to top-level.
3219         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3220         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3222         First attempt at real configury.
3223         * Makefile, config.h: Remove file.
3224         * Makefile.am, Makefile.in: New file.
3225         * acinclude.m4 aclocal.m4: New file.
3226         * configure.ac, configure.tgt, configure: New file.
3228         * config/posix/lock.c: Rename from sys-lock.c.
3229         * config/posix/mutex.h: Rename from sys-mutex.h.
3230         * config/posix/sem.c: Rename from sys-sem.c.
3231         * config/posix/sem.h: Rename from sys-sem.h.
3232         * config/posix/proc.c: Rename from sys-proc.c.
3233         * config/posix/time.c: Rename from sys-proc.c.
3235         * config/linux/mutex.c: New file.
3236         * config/linux/mutex.h: New file.
3237         * config/linux/sem.c: New file.
3238         * config/linux/sem.h: New file.
3239         * config/linux/i486/futex.h: New file.
3240         * config/linux/x86_64/futex.h: New file.
3242 2005-05-04  Richard Henderson  <rth@redhat.com>
3244         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3245         * libgomp.h: Declare them.
3246         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3247         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3249 2005-05-04  Richard Henderson  <rth@redhat.com>
3251         * libgomp-1 code drop
3253 2005-05-04  Richard Henderson  <rth@redhat.com>
3255         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3256         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3257         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3258         (gomp_iter_static_next): Update.
3259         (gomp_ordered_static_next): Update.
3260         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3261         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3262         totally empty range.
3263         (gomp_loop_ordered_static_next): Refine test for calling
3264         gomp_ordered_static_next.
3265         * testsuite/ordered-1.c: Add case for more threads than iterations.
3267         * iter.c (gomp_iter_runtime_next_locked): Remove.
3268         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3269         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3270         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3271         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3272         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3273         gomp_loop_ordered_guided_next): Downcase name, make static, add
3274         an external alias with the old name.
3275         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3276         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3277         switch and call one of the above static functions.
3278         * libgomp.h: Update.
3280         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3281         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3282         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3283         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3284         GOMP_loop_ordered_guided_start): Update to match.
3285         * sections.c (GOMP_sections_start): Likewise.
3286         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3288         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3289         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3290         Use bounds check instead of modulus.
3291         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3292         (gomp_ordered_last): Don't sync with ordered_owner here.
3293         (gomp_ordered_next): Likewise.
3294         (gomp_ordered_static_loop_next): Likewise.
3295         * loop.c, libgomp.h: Update to match.
3297         * libgomp.h (GOMP_barrier): Declare.
3299         * testsuite/barrier-1.c: New file.
3300         * testsuite/critical-1.c: New file.
3301         * testsuite/ordered-2.c: New file.
3302         * testsuite/ordered-1.c: New file.
3303         * testsuite/sections-1.c: New file.
3304         * testsuite/single-1.c: New file.
3305         * testsuite/Makefile (TESTS): Add them.
3307 2005-05-04  Richard Henderson  <rth@redhat.com>
3309         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3310         * loop.c (GOMP_loop_static_start): If not the startup thread,
3311         acquire the mutex to wait for initialization complete.
3312         (GOMP_loop_ordered_static_start): Likewise.
3313         (GOMP_loop_ordered_runtime_start): Likewise.
3314         (GOMP_loop_ordered_static_first): Remove.
3315         (GOMP_loop_ordered_dynamic_first): Remove.
3316         (GOMP_loop_ordered_guided_first): Remove.
3317         (GOMP_loop_ordered_runtime_first): Remove.
3318         * ordered.c (gomp_ordered_loop_first): Post to own release when
3319         we're the first thread.
3320         (gomp_ordered_loop_last): Wait on release if not owner.
3321         (gomp_ordered_loop_next): Likewise.
3322         (gomp_ordered_static_loop_init): New.
3323         (gomp_ordered_static_loop_next): Use ordered_owner.
3324         (GOMP_ordered_start): Likewise.
3325         * work.c (gomp_new_work_share): Initialize ordered_owner.
3327 2005-05-03  Richard Henderson  <rth@redhat.com>
3329         * Makefile (OPT): New.
3330         (CFLAGS): Use it.
3332         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3333         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3334         * libgomp.h, libgomp.map, NOTES: Update to match.
3336         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3337         Add initialized and thr members.
3338         (gomp_thread_start): Pause when initially spawned to wait for
3339         the whole team to be created.
3340         (gomp_team_start): Release team members at the end.
3342         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3343         (f_foo_1): Use GOMP_loop_end.
3344         (f_foo_2): Use GOMP_loop_end_nowait.
3346         * testsuite/loop-2.c: New file.
3347         * testsuite/Makefile (TESTS): Add it.
3349 2005-05-03  Richard Henderson  <rth@redhat.com>
3351         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3352         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3353         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3354         initial work_share.
3356         * testsuite/Makefile: New file.
3357         * testsuite/loop-1.c: New file.
3359 2005-05-03  Richard Henderson  <rth@redhat.com>
3361         Initial implementation and checkin.