* gcc.dg/stack-usage-1.c: Use sh*-*-* instead of sh-*-*.
[official-gcc.git] / libgomp / ChangeLog
blobdf2bfb504509a7ee7d5ef437a0eb4bee1f724388
1 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
3         PR middle-end/53580
4         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
5         use GOMP_barrier () call instead.
6         * testsuite/libgomp.c/pr26943-3.c: Likewise.
7         * testsuite/libgomp.c/pr26943-4.c: Likewise.
8         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9         call GOMP_barrier instead.
10         * testsuite/libgomp.fortran/vla5.f90: Likewise.
12 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
14         PR libgomp/52993
15         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16         argument to memset call.
18 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20         * configure: Regenerated.
22 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
26 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
28         PR bootstrap/52812
29         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
31 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
33         PR middle-end/52547
34         * testsuite/libgomp.c/pr52547.c: New test.
36 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
38         * testsuite/lib/libgomp.exp: load fortran-modules.exp
40 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42         * configure.tgt (mips-sgi-irix6*): Remove.
44 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
46         * configure.tgt (alpha*-dec-osf*): Remove.
48         * config/osf/sem.h: Remove.
49         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
51 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
53         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
55 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
57         PR libstdc++/52188
58         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
59         Remove ENABLE_SYMVERS_SOL2.
60         * configure: Regenerate.
61         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
62         (PREPROCESS): New variable.
63         (libgomp.ver): New target.
64         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
65         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
66         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
67         Use libgomp.ver.
68         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
69         * Makefile.in: Regenerate.
71 2012-02-14  Walter Lee  <walt@tilera.com>
73         * configure.tgt: Handle tilegx and tilepro.
74         * config/linux/tile/futex.h: New file.
76 2012-02-08  Richard Guenther  <rguenther@suse.de>
78         PR tree-optimization/46886
79         * testsuite/libgomp.c/pr46886.c: New testcase.
81 2012-01-25  Matthias Klose  <doko@ubuntu.com>
83         * config/linux/arm: Remove empty directory.
84         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
86 2011-12-09  Alan Modra  <amodra@gmail.com>
88         PR libgomp/51376
89         * task.c (GOMP_taskwait): Don't access task->children outside of
90         task_lock mutex region.
91         (GOMP_task): Likewise.
93 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
95         PR libgomp/51132
96         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
97         to file scope.
98         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
99         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
100         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
101         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
102         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
104 2011-12-02  Alan Modra  <amodra@gmail.com>
106         * config/linux/affinity.c: Use atomic rather than sync builtin.
107         * config/linux/lock.c: Likewise.
108         * config/linux/ptrlock.h: Likewise.
109         * config/linux/ptrlock.c: Likewise.
110         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
111         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
112         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
113         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
114         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
115         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
116         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
117         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
118         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
119         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
121 2011-11-30  Alan Modra  <amodra@gmail.com>
123         PR libgomp/51298
124         * config/linux/bar.h: Use atomic rather than sync builtins.
125         * config/linux/bar.c: Likewise.  Add missing acquire
126         synchronisation on generation field.
127         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
128         double unlock.
130 2011-11-30  Alan Modra  <amodra@gmail.com>
132         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
133         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
134         * config/linux/mutex.h: Use atomic rather than sync builtins.
135         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
136         * config/linux/omp-lock.h: Comment fix.
137         * config/linux/arm/mutex.h: Delete.
138         * config/linux/powerpc/mutex.h: Delete.
139         * config/linux/ia64/mutex.h: Delete.
140         * config/linux/mips/mutex.h: Delete.
142 2011-11-30  Alan Modra  <amodra@gmail.com>
144         PR libgomp/51249
145         * config/linux/sem.h: Rewrite.
146         * config/linux/sem.c: Rewrite.
148 2011-11-28  Richard Henderson  <rth@redhat.com>
150         * libgomp.h (enum memmodel): New.
152 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
154         * configure: Regenerate.
156 2011-10-10  Matthias Klose  <doko@ubuntu.com>
158         * config/posix95: Remove empty directory.
160 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
162         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
164 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
166         PR fortran/49792
167         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
168         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
170 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
172         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
174 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
176         PR libgomp/49965
177         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
179 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
181         * config/linux/proc.h: New.
182         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
183         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
184         (gomp_init_num_threads): Update call to cpuset_popcount.
185         (get_num_procs): Ditto.
186         * config/linux/affinity.c (gomp_init_affinity): Call
187         gomp_cpuset_popcount.
189 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
191         PR fortran/42041
192         PR fortran/46752
193         * omp.h.in (omp_in_final): New prototype.
194         * omp_lib.f90.in (omp_in_final): New interface.
195         (omp_integer_kind, omp_logical_kind): Remove
196         and replace all its uses in the module with 4.
197         (openmp_version): Change to 201107.
198         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
199         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
200         kind for the parameters.
201         (omp_in_final): New external.
202         (openmp_version): Change to 201107.
203         * task.c (omp_in_final): New function.
204         (gomp_init_task): Initialize final_task.
205         (GOMP_task): Remove unused attribute from flags.  Handle final
206         tasks.
207         (GOMP_taskyield): New function.
208         (omp_in_final): Return true if if (false) or final (true) task
209         or descendant of final (true).
210         * fortran.c (omp_in_final_): New function.
211         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
212         (GOMP_3.0): Export GOMP_taskyield.
213         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
214         variables.
215         (parse_unsigned_long_list): New function.
216         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
217         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
218         even if parse_affinity returned false.
219         * config/linux/affinity.c (gomp_init_affinity): Handle
220         gomp_cpu_affinity_len == 0.
221         * libgomp_g.h (GOMP_taskyield): New prototype.
222         * libgomp.h (struct gomp_task): Add final_task field.
223         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
224         * team.c (gomp_team_start): Override new task's nthreads_var icv
225         if list form OMP_NUM_THREADS has been used and it has value for
226         the new nesting level.
228         * testsuite/libgomp.c/atomic-11.c: New test.
229         * testsuite/libgomp.c/atomic-12.c: New test.
230         * testsuite/libgomp.c/atomic-13.c: New test.
231         * testsuite/libgomp.c/atomic-14.c: New test.
232         * testsuite/libgomp.c/reduction-6.c: New test.
233         * testsuite/libgomp.c/task-5.c: New test.
234         * testsuite/libgomp.c++/atomic-2.C: New test.
235         * testsuite/libgomp.c++/atomic-3.C: New test.
236         * testsuite/libgomp.c++/atomic-4.C: New test.
237         * testsuite/libgomp.c++/atomic-5.C: New test.
238         * testsuite/libgomp.c++/atomic-6.C: New test.
239         * testsuite/libgomp.c++/atomic-7.C: New test.
240         * testsuite/libgomp.c++/atomic-8.C: New test.
241         * testsuite/libgomp.c++/atomic-9.C: New test.
242         * testsuite/libgomp.c++/task-8.C: New test.
243         * testsuite/libgomp.c++/reduction-4.C: New test.
244         * testsuite/libgomp.fortran/allocatable7.f90: New test.
245         * testsuite/libgomp.fortran/allocatable8.f90: New test.
246         * testsuite/libgomp.fortran/crayptr3.f90: New test.
247         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
248         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
249         * testsuite/libgomp.fortran/pointer1.f90: New test.
250         * testsuite/libgomp.fortran/pointer2.f90: New test.
251         * testsuite/libgomp.fortran/task4.f90: New test.
253 2011-08-02  Tobias Burnus  <burnus@net-b.de>
255         * libgomp.texi: Update OpenMP spec references to 3.1.
256         (omp_in_final,OMP_PROC_BIND): New sections.
257         (OMP_NUM_THREADS): Document that the value can be now a list.
258         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
260 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
262         * config/linux/x86/futex.h: Check __x86_64__ instead of
263         __LP64__.
265 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
267         PR middle-end/49897
268         PR middle-end/49898
269         * testsuite/libgomp.c/pr49897-1.c: New test.
270         * testsuite/libgomp.c/pr49897-2.c: New test.
271         * testsuite/libgomp.c/pr49898-1.c: New test.
272         * testsuite/libgomp.c/pr49898-2.c: New test.
274 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
276         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
277         for ia32 instead of ilp32.
279         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
280         * testsuite/libgomp.c/atomic-6.c: Likewise.
282 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
284         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
285         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
287 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
289         PR libgomp/45351
290         * config/osf/sem.h: New file.
291         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
293 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
295         PR target/49541
296         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
297         ldflags.
299 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
301         * config/linux/wait.h (do_spin): New inline, largely copied
302         from do_wait, just don't do futex_wait here, instead return true if
303         it should be done.
304         (do_wait): Implement using do_spin.
305         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
306         to prototype.
307         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
308         __sync_bool_compare_and_swap, pass the oldval to
309         gomp_mutex_lock_slow.
310         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
311         If all mutex contenders are just spinning and not sleeping, don't
312         change state to 2 unnecessarily.  Optimize the loop when state has
313         already become 2 to use just one atomic operation per loop instead
314         of two.
315         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
316         to prototype.
317         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
318         __sync_bool_compare_and_swap, pass the oldval to
319         gomp_mutex_lock_slow.
321 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
323         PR libgomp/49490
324         * iter.c (gomp_iter_static_next): For chunk size 0
325         only use n ceil/ nthreads size for the first
326         n % nthreads threads in the team instead of
327         all threads except for the last few ones which
328         get less work or none at all.
329         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
330         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
331         chunk argument, set run_sched_modifier to 0 for static
332         resp. 1 for other kinds.  If chunk argument is 0
333         and not static, set value to 1.
335 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
337         PR c++/49043
338         * testsuite/libgomp.c++/pr49043.C: New test.
340         PR c++/48869
341         * testsuite/libgomp.c++/pr48869.C: New test.
343 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
345         PR fortran/48894
346         * fortran.c: Include limits.h.
347         (TO_INT): Define.
348         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
349         *set.
350         (omp_set_num_threads_8_, omp_set_schedule_8_,
351         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
352         omp_get_team_size_8_): Use TO_INT macro.
353         * testsuite/libgomp.fortran/pr48894.f90: New test.
355 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
357         PR middle-end/48591
358         * testsuite/libgomp.c/pr48591.c: New test.
360 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
362         PR bootstrap/48135
363         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
364         * configure: Regenerate.
366 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
368         PR fortran/47886
369         * testsuite/libgomp.fortran/task3.f90: New test.
371 2011-02-24  Tobias Burnus  <burnus@net-b.de>
373         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
375 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
377         PR libgomp/47854
378         * libgomp.texi (omp_get_wtime): Don't say time in the past
379         must be Unix Epoch.
381 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
383         PR libgomp/47804
384         * testsuite/libgomp.fortran/fortran.exp: Check for both
385         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
386         but $blddir != "", still append ${blddir}/${lang_library_path}
387         to ld_library_path.
389 2011-02-16  Tobias Burnus  <burnus@net-b.de>
391         PR libgomp/47758
392         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
393         of libquadmath.a before adding its libpath to ldflags.
395 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
397         PR libgomp/47731
398         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
399         to FUTEX_WAIT futex syscall.
400         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
402 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
404         * configure: Regenerate.
406 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
408         PR libstdc++/36104
409         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
411 2011-01-16  Gerald Pfeifer
413         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
415 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
417         PR fortran/46874
418         * libgomp.fortran/allocatable6.f90: New test.
420 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
422         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
423         * configure: Regenerate.
425 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
427         PR target/40125
428         PR lto/46695
429         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
430         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
431         * aclocal.m4: Regenerate.
432         * configure: Regenerate.
433         * Makefile.in: Regenerate.
434         * testsuite/Makefile.in: Regenerate.
436 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
438         PR fortran/46753
439         * libgomp.fortran/pr46753.f90: New test.
441         PR libgomp/43706
442         * env.c (initialize_env): Default to spin count 300000
443         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
444         is specified.
446         PR libgomp/45240
447         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
448         at the end if sync builtins aren't supported.
450 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
452         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
454 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
456         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
458 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
460         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
462 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
463             Tobias Burnus  <burnus@net-b.de>
465         PR fortran/32049
466         * configure.ac:
467         * configure: Regenerate.
469 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
471         * config/linux/futex.h: New.
472         * config/linux/arm/mutex.h: New.
473         * configure.tgt (arm*-*-linux*): Add config path.
475 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
477         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
479 2010-09-23  Tobias Burnus  <burnus@net-b.de>
481         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
482         Change Fortran datatype to LOGICAL.
483         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
484         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
486 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
488         * configure: Regenerate.
490 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
492         * libgomp.texi: Add function keyword to a couple of Fortran
493         interfaces, use integer instead of int for Fortran.
495 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
497         * libgomp.texi: Fix spelling and pasto problems throughout.
498         Adjust prototypes to match code.
500 2010-07-24  Tobias Burnus  <burnus@net-b.de>
502         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
503         silence -fwhole-file warning.
505 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
507         * configure.tgt (*-*-solaris2.[56]*): Removed.
509 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
511         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
512         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
513         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
514         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
515         targetting solaris2*.
516         * configure: Regenerate.
517         * config.h.in: Regenerate.
519         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
520         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
521         Add libgomp_version_dep.
522         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
523         versioning.
524         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
525         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
526         * Makefile.in: Regenerate.
528         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
529         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
530         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
531         to common block, protected by
532         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
534 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
536         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
538 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
540         PR bootstrap/43170
541         * configure: Regenerate.
543 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
545         PR other/43620
546         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
547         * configure: Regenerate.
548         * Makefile.in: Regenerate.
549         * testsuite/Makefile.in: Regenerate.
551 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
553         PR c/43893
554         * testsuite/libgomp.c/pr43893.c: New test.
555         * testsuite/libgomp.c++/pr43893.C: New test.
557 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
559         PR middle-end/43570
560         * testsuite/libgomp.fortran/vla8.f90: New test.
562 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
564         PR libgomp/43706
565         * config/linux/affinity.c (gomp_init_affinity): Decrease
566         gomp_available_cpus if affinity mask confines the process to fewer
567         CPUs.
568         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
569         non-NULL, just return gomp_available_cpus.
571         PR libgomp/43569
572         * sections.c (gomp_sections_init): Initialize ws->mode.
574 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
576         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
577         not unused bar variable.
578         * configure: Regenerate.
580 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
582         * Makefile.in: Regenerate.
583         * aclocal.m4: Regenerate.
584         * testsuite/Makefile.in: Regenerate.
586 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
588         PR libgomp/42942
589         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
590         (initialize_env): Adjust callers.
591         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
592         when the argument is 0.
594         * testsuite/libgomp.c/pr42942.c: New test.
596 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
598         PR middle-end/42644
599         PR middle-end/42130
600         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
601         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
603 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
605         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
606         * testsuite/libgomp.c++/task-6.C: Likewise.
608 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
610         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
612 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
614         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
615         * configure: Regenerate.
617 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
619         PR fortran/42866
620         * testsuite/libgomp.fortran/allocatable5.f90: New test.
622 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
624         * configure.ac: Test for executability of GFORTRAN.
625         * configure: Regenerate.
627 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
629         * configure: Regenerate.
631 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
633         PR libgomp/42602
634         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
636 2010-01-03  Richard Guenther  <rguenther@suse.de>
638         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
640 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
642         * testsuite/libgomp.graphite/pr4118.c: New.
644 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
646         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
647         for darwin, protect the test with require-effective-target tls_runtime.
648         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
650 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
652         PR target/41605
653         * testsuite/lib/libgomp.exp: Provide -B options to allow for
654         link spec %s substitutions for static libraries.
656 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
658         PR testsuite/42135
659         * libgomp.graphite/force-parallel-2.c: Reduce array size.
661 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
663         * Makefile.in: Regenerate.
664         * configure: Regenerate.
665         * testsuite/Makefile.in: Regenerate.
667 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
669         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
670         settings for LC_ALL and LANG.
672 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
674         PR fortran/42162
675         * testsuite/libgomp.fortran/pr42162.f90: New test.
677 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
679         PR middle-end/42029
680         * testsuite/libgomp.c/pr42029.c: New test.
682 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
684         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
685         *s.  Accept ld version without text in ()s.
686         * configure: Regenerated.
688 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
690         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
692 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
694         PR libgomp/41418
695         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
696         or a hyphen (happens with fortran language disabled).
697         * configure: Regenerate.
699 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
701         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
702         use sed script portable to Solaris /bin/sed for extracting ld
703         version.
704         * configure: Regenerate.
706 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
708         * testsuite/libgomp.graphite/bounds.c: New test.
710 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
712         * Makefile.am (libgomp_la_LINK): New.
713         * Makefile.in: Regenerate.
715 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
717         * configure.ac (AC_PREREQ): Bump to 2.64.
719 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
721         * Makefile.am (install-html, install-pdf): Remove.
722         * Makefile.in: Regenerate.
724         * Makefile.in: Regenerate.
725         * aclocal.m4: Regenerate.
726         * config.h.in: Regenerate.
727         * configure: Regenerate.
728         * testsuite/Makefile.in: Regenerate.
730 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
732         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
733         * Makefile.in: Regenerate.
735 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
737         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
738         * Makefile.in: Regenerate.
740 2009-08-19  Tobias Burnus  <burnus@net-b.de>
742         PR fortran/41102
743         omp_lib.h.in: Fix -std=f95 errors.
746 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
748         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
749         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
750         * testsuite/libgomp.graphite/graphite.exp: New.
752 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
754         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
755         only build.
757 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
759         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
760         needed memory barrier semantics.
761         * config/linux/mips/mutex.h: New file.
763 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
765         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
767 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
769         * configure: Regenerate.
771 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
773         PR testsuite/40699
774         PR testsuite/40707
775         PR testsuite/40709
776         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
777         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
778         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
780 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
782         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
783         options when choosing a multilib.
785 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
787         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
788         ld_library_path.  Use add_path.  Add just find_libgcc_s to
789         ld_library_path, not every libgcc multilib directory.
790         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
791         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
792         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
793         Use add_path.
794         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
796 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
798         * Makefile.am (LTLDFLAGS): Define.
799         (LINK): Define.
800         * Makefile.in: Regenerate.
802 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
804         PR fortran/39718
805         * testsuite/libgomp.fortran/fortran.exp: Don't link with
806         libgfortranbegin, check existence of libgfortran.a instead of
807         libgfortranbegin.a.
809 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
811         PR libgomp/40174
812         * team.c (gomp_thread_start): Destroy thr->release semaphore.
813         (gomp_free_pool_helper): Likewise.
815 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
816             Jakub Jelinek  <jakub@redhat.com>
818         PR fortran/35423
819         * testsuite/libgomp.fortran/workshare2.f90: New test.
821 2009-04-09  Nick Clifton  <nickc@redhat.com>
823         * iter.c: Change copyright header to refer to version 3 of the
824         GNU General Public License with version 3.1 of the GCC Runtime
825         Library Exception and to point readers at the COPYING3 and
826         COPYING3.RUNTIME files and the FSF's license web page.
827         * alloc.c: Likewise.
828         * barrier.c: Likewise.
829         * config/bsd/proc.c: Likewise.
830         * config/linux/affinity.c: Likewise.
831         * config/linux/alpha/futex.h: Likewise.
832         * config/linux/bar.c: Likewise.
833         * config/linux/bar.h: Likewise.
834         * config/linux/ia64/futex.h: Likewise.
835         * config/linux/ia64/mutex.h: Likewise.
836         * config/linux/lock.c: Likewise.
837         * config/linux/mips/futex.h: Likewise.
838         * config/linux/mutex.c: Likewise.
839         * config/linux/mutex.h: Likewise.
840         * config/linux/powerpc/futex.h: Likewise.
841         * config/linux/proc.c: Likewise.
842         * config/linux/ptrlock.c: Likewise.
843         * config/linux/ptrlock.h: Likewise.
844         * config/linux/s390/futex.h: Likewise.
845         * config/linux/sem.c: Likewise.
846         * config/linux/sem.h: Likewise.
847         * config/linux/sparc/futex.h: Likewise.
848         * config/linux/wait.h: Likewise.
849         * config/linux/x86/futex.h: Likewise.
850         * config/mingw32/proc.c: Likewise.
851         * config/mingw32/time.c: Likewise.
852         * config/posix/affinity.c: Likewise.
853         * config/posix/bar.c: Likewise.
854         * config/posix/bar.h: Likewise.
855         * config/posix/lock.c: Likewise.
856         * config/posix/mutex.h: Likewise.
857         * config/posix/proc.c: Likewise.
858         * config/posix/ptrlock.h: Likewise.
859         * config/posix/sem.c: Likewise.
860         * config/posix/sem.h: Likewise.
861         * config/posix/time.c: Likewise.
862         * config/posix95/lock.c: Likewise.
863         * critical.c: Likewise.
864         * env.c: Likewise.
865         * error.c: Likewise.
866         * fortran.c: Likewise.
867         * iter_ull.c: Likewise.
868         * libgomp.h: Likewise.
869         * libgomp_f.h.in: Likewise.
870         * libgomp_g.h: Likewise.
871         * loop.c: Likewise.
872         * loop_ull.c: Likewise.
873         * omp.h.in: Likewise.
874         * omp_lib.f90.in: Likewise.
875         * omp_lib.h.in: Likewise.
876         * ordered.c: Likewise.
877         * parallel.c: Likewise.
878         * sections.c: Likewise.
879         * single.c: Likewise.
880         * task.c: Likewise.
881         * team.c: Likewise.
882         * work.c: Likewise.
884 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
886         * testsuite/config/default.exp: Change copyright header to refer to
887         version 3 of the GNU General Public License and to point readers
888         at the COPYING3 file and the FSF's license web page.
890 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
892         PR middle-end/39573
893         * libgomp.c++/pr39573.C: New test.
895 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
897         PR other/39591
898         * testsuite/libgomp.c/pr39591-1.c: New test.
899         * testsuite/libgomp.c/pr39591-2.c: New test.
900         * testsuite/libgomp.c/pr39591-3.c: New test.
902 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
904         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
905         * testsuite/libgomp.c/atomic-6.c: Ditto.
907 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
909         PR c/39495
910         * testsuite/libgomp.c/loop-12.c: New test.
911         * testsuite/libgomp.c/loop-11.c: New test.
912         * testsuite/libgomp.c++/loop-11.C: New test.
913         * testsuite/libgomp.c++/loop-12.C: New test.
914         * testsuite/libgomp.c++/for-8.C: New test.
916 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
918         * configure: Regenerate.
920 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
922         PR middle-end/39154
923         * testsuite/libgomp.c/pr39154.c: New test.
925 2009-01-30  Ian Lance Taylor  <iant@google.com>
927         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
928         libgomp_ld_is_gold.  Get gold version number.
929         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
930         * configure: Rebuild.
932 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
934         * testsuite/lib/libgomp.exp: Add -B option for targets that
935         use libgfortran.a%s in their specs.
937 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
939         PR libgomp/38086
940         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
941         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
942         HAVE_AS_SYMVER_DIRECTIVE is not defined.
943         * configure: Regenerated.
944         * config.h.in: Likewise.
946 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
948         PR c++/38650
949         * testsuite/libgomp.c/pr38650.c: New test.
950         * testsuite/libgomp.c++/pr38650.C: New test.
952 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
954         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
956 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
958         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
960 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
962         * configure: Regenerate.
964 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
966         PR middle-end/36802
967         * testsuite/libgomp.c/pr36802-1.c: New test.
968         * testsuite/libgomp.c/pr36802-2.c: New test.
969         * testsuite/libgomp.c/pr36802-3.c: New test.
971 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
973         PR libgomp/38270
974         * config/linux/powerpc/mutex.h: New.
976 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
978         PR c++/38257
979         * testsuite/libgomp.c++/for-7.C: New test.
981         PR c++/38348
982         * testsuite/libgomp.c++/for-6.C: New test.
984 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
986         PR testsuite/28870
987         * testsuite/lib/libgomp.exp: Include new timeout library files.
988         (libgomp_target_compile): Set timeout value from new proc.
990 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
992         PR libgomp/37938
993         * config/linux/ia64/mutex.h: New.
995 2008-11-04  Tobias Burnus  <burnus@net-b.de>
997         PR libgomp/37935
998         * libgomp.texi (Runtime library routines, environment variables):
999         Update for OpenMP version 3.0.
1001 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1002             Steve Ellcey  <sje@cup.hp.com>
1004         * configure: Regenerate for new libtool.
1005         * Makefile.in: Ditto.
1006         * testsuite/Makefile.in: Ditto.
1008 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1009             Andreas Tobler  <a.tobler@schweiz.org>
1011         * config/bsd/proc.c: New file.
1012         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1013         * configure.ac: Check for header <sys/sysctl.h>
1014         * configure: Regenerate.
1015         * config.h.in: Likewise.
1017 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1019         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1021 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1023         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1024         * Makefile.in: Regenerated.
1025         * testsuite/Makefile.in: Regenerated.
1027 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1029         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1030         depend on blddir if blddir exists.
1031         (libgomp_target_compile): Likewise.
1032         * testsuite/libgomp.c++/c++.exp: Likewise.
1033         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1035 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1037         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1038         Do not list GPL as Invariant Section.
1040 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1041             Chao-ying Fu  <fu@mips.com>
1043         * configure.tgt: Enable futex for MIPS.
1044         * config/linux/mips/futex.h: New file.
1046 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1048         * team.c (gomp_team_end): Free team immediately if it has
1049         just one thread.
1051 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1053         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1054         * testsuite/libgomp.fortran/fortran.exp: Same.
1055         * testsuite/libgomp.c/c.exp: Same.
1056         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1057         directory to library path first.
1059 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1061         * env.c (parse_stacksize): Add cast to avoid warning.
1062         (parse_spincount): Likewise.
1064 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1066         * testsuite/libgomp.c/loop-10.c: New test.
1067         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1068         * libgomp.c++/loop-6.C (main): Likewise.
1070         PR debug/36617
1071         * testsuite/libgomp.c/debug-1.c: New test.
1073 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1075         * testsuite/libgomp.c/nqueens-1.c: New test.
1077         PR c++/36523
1078         * testsuite/libgomp.c++/task-7.C: New function.
1080 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1082         * configure: Regenerate.
1084 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1086         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1087         mutex when HAVE_SYNC_BUILTINS isn't defined.
1089 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1091         * libgomp.texi (omp_test_lock): Fix typo.
1093 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1095         * omp_lib.f90.in: Add "implicit none".
1097 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1099         PR middle-end/36506
1100         * testsuite/libgomp.c/reduction-5.c: New test.
1102 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1104         * libgomp.h (struct gomp_task): Add in_tied_task field.
1105         * task.c (gomp_init_task): Initialize it.
1106         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1107         unconditionally.  Don't call gomp_team_barrier_wake if
1108         current task is implicit or if(0) from implicit and number of
1109         running tasks is equal to nthreads - 1.
1111         PR libgomp/36471
1112         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1113         omp_get_team_size_8): Fix pastos.
1115         PR libgomp/36469
1116         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1117         * configure: Regenerated.
1118         * config.h.in: Regenerated.
1119         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1120         defined.
1122 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1124         PR bootstrap/36452
1125         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1126         (GOMP_loop_ull_dynamic_start): Likewise.
1127         (GOMP_loop_ull_guided_start): Likewise.
1128         (GOMP_loop_ull_ordered_static_start): Likewise.
1129         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1130         (GOMP_loop_ull_ordered_guided_start): Likewise.
1132 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1133             Richard Henderson  <rth@redhat.com>
1134             Ulrich Drepper  <drepper@redhat.com>
1135             Jakob Blomer  <jakob.blomer@ira.uka.de>
1137         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1138         Substitute also OMP_*LOCK_25*.
1139         * configure: Regenerated.
1140         * config.h.in: Regenerated.
1141         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1142         ptrlock.c and task.c.
1143         * Makefile.in: Regenerated.
1144         * testsuite/Makefile.in: Regenerated.
1145         * task.c: New file.
1146         * loop_ull.c: New file.
1147         * iter_ull.c: New file.
1148         * libgomp.h: Include ptrlock.h.
1149         (enum gomp_task_kind): New type.
1150         (struct gomp_team): Add task_lock, task_queue, task_count,
1151         task_running_count, single_count fields.  Add
1152         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1153         Remove work_share_lock, generation_mask,
1154         oldest_live_gen, num_live_gen and init_work_shares fields, add
1155         work work_share_list_alloc, work_share_list_free and work_share_chunk
1156         fields.  Change work_shares from pointer to pointers into an array.
1157         Change ordered_release field into gomp_sem_t ** from flexible array
1158         member.  Add implicit_task and initial_work_shares fields.
1159         Move close to the end of the struct.
1160         (struct gomp_team_state): Add single_count, last_work_share,
1161         active_level and level fields, remove work_share_generation.
1162         (gomp_barrier_handle_tasks): New prototype.
1163         (gomp_finish_task): New inline function.
1164         (struct gomp_work_share): Move chunk_size, end, incr into
1165         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1166         next_ll fields.  Reshuffle fields.  Add next_alloc,
1167         next_ws, next_free and inline_ordered_team_ids fields, change
1168         ordered_team_ids into pointer from flexible array member.
1169         Add mode field.  Put lock and next into a different cache line
1170         from most of the write-once fields.
1171         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1172         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1173         gomp_iter_ull_guided_next): New prototypes.
1174         (gomp_new_icv): New prototype.
1175         (struct gomp_thread): Add thread_pool and task fields.
1176         (struct gomp_thread_pool): New type.
1177         (gomp_new_team): New prototype.
1178         (gomp_team_start): Change type of last argument.
1179         (gomp_new_work_share): Removed.
1180         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1181         (gomp_work_share_init_done): New static inline.
1182         (gomp_throttled_spin_count_var, gomp_available_cpus,
1183         gomp_managed_threads): New extern decls.
1184         (gomp_init_task): New prototype.
1185         (gomp_spin_count_var): New extern var decl.
1186         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1187         or no alias support, or if not PIC.
1188         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1189         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1190         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1191         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1192         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1193         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1194         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1195         gomp_test_nest_lock_25): New prototypes.
1196         (omp_lock_symver, strong_alias): Define.
1197         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1198         decls.
1199         (gomp_end_task): New.
1200         (struct gomp_task_icv, gomp_global_icv): New.
1201         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1202         (struct gomp_task): New.
1203         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1204         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1205         (gomp_icv): New.
1206         (gomp_schedule_type): Reorder enum to match
1207         omp_sched_t.
1208         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1209         fields.
1210         (gomp_thread_start): Add gomp_team_barrier_wait call.
1211         For non-nested case remove clearing of docked thread thr fields.
1212         Use pool fields instead of global gomp_* variables.  Use
1213         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1214         Create tasks for each member thread.
1215         (free_team): Only destroy team barrier, task_lock here and free it.
1216         (gomp_free_thread): Free last_team if non-NULL.
1217         (gomp_team_end): Call gomp_team_barrier_wait instead of
1218         gomp_barrier_wait.  For nested case call one extra
1219         gomp_barrier_wait.  Move here some destruction from free_team.
1220         Call free_team on pool->last_team if any, rather than freeing
1221         current team.  Destroy work_share_list_free_lock ifndef
1222         HAVE_SYNC_BUILTINS.
1223         (gomp_new_icv): New function.
1224         (gomp_threads, gomp_threads_size, gomp_threads_used,
1225         gomp_threads_dock): Removed.
1226         (gomp_thread_destructor): New variable.
1227         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1228         functions.
1229         (gomp_team_start): Create new pool if current thread doesn't have
1230         one.  Use pool fields instead of global gomp_* variables.
1231         Initialize thread_pool field for new threads.  Clear single_count.
1232         Change last argument from ws to team, don't create
1233         new team, set ts.work_share to &team->work_shares[0] and clear
1234         ts.last_work_share.  Don't clear ts.work_share_generation.
1235         If number of threads changed, adjust atomically gomp_managed_threads.
1236         Use gomp_init_task instead of gomp_new_task,
1237         set thr->task to the corresponding implicit_task array entry.
1238         Create tasks for each member thread.  Initialize ts.level.
1239         (initialize_team): Call pthread_key_create on
1240         gomp_thread_destructor.
1241         (team_destructor): New function.
1242         (new_team): Removed.
1243         (gomp_new_team): New function.
1244         (free_team): Free gomp_work_share blocks chained through next_alloc,
1245         instead of freeing work_shares and destroying work_share_lock.
1246         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1247         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1248         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1249         of gomp_barrier_wait.
1250         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1251         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1252         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1253         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1254         of gomp_barrier_wait.
1255         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1256         gomp_work_share_init_done if gomp_work_share_start returned true.
1257         Don't unlock ws->lock.
1258         * work.c: Include stddef.h.
1259         (free_work_share): Use work_share_list_free_lock instead
1260         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1261         Call gomp_fini_work_share and then either free ws if orphaned, or
1262         put it into work_share_list_free list of the current team.
1263         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1264         functions.
1265         (gomp_work_share_start, gomp_work_share_end,
1266         gomp_work_share_end_nowait): Rewritten.
1267         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1268         (openmp_version): Set to 200805.
1269         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1270         omp_sched_guided, omp_sched_auto): New parameters.
1271         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1272         omp_set_max_active_levels, omp_get_max_active_levels,
1273         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1274         omp_get_active_level): New interfaces.
1275         * omp_lib.h.in (openmp_version): Set to 200805.
1276         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1277         omp_sched_guided, omp_sched_auto): New parameters.
1278         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1279         omp_set_max_active_levels, omp_get_max_active_levels,
1280         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1281         omp_get_active_level): New externals.
1282         * loop.c: Include limits.h.
1283         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1284         GFS_AUTO.
1285         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1286         Likewise.  Use gomp_icv.
1287         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1288         ts.static_trip here.
1289         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1290         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1291         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1292         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1293         don't unlock ws->lock, otherwise lock it.
1294         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1295         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1296         (gomp_parallel_loop_start): Call gomp_new_team instead of
1297         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1298         Adjust gomp_team_start caller.  Pass 0 as second argument to
1299         gomp_resolve_num_threads.
1300         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1301         If adding ws->chunk_size nthreads + 1 times after end won't
1302         overflow, set ws->mode to 1.
1303         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1304         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1305         GOMP_loop_ull_ordered_static_start,
1306         GOMP_loop_ull_ordered_dynamic_start,
1307         GOMP_loop_ull_ordered_guided_start,
1308         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1309         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1310         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1311         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1312         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1313         prototypes.
1314         * libgomp.map: Export lock routines also @@OMP_2.0.
1315         (GOMP_loop_ordered_dynamic_first,
1316         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1317         GOMP_loop_ordered_static_first): Remove.
1318         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1319         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1320         GOMP_loop_ull_ordered_dynamic_next,
1321         GOMP_loop_ull_ordered_dynamic_start,
1322         GOMP_loop_ull_ordered_guided_next,
1323         GOMP_loop_ull_ordered_guided_start,
1324         GOMP_loop_ull_ordered_runtime_next,
1325         GOMP_loop_ull_ordered_runtime_start,
1326         GOMP_loop_ull_ordered_static_next,
1327         GOMP_loop_ull_ordered_static_start,
1328         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1329         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1330         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1331         (omp_set_schedule, omp_get_schedule,
1332         omp_get_thread_limit, omp_set_max_active_levels,
1333         omp_get_max_active_levels, omp_get_level,
1334         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1335         omp_set_schedule_, omp_set_schedule_8_,
1336         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1337         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1338         omp_get_max_active_levels_, omp_get_level_,
1339         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1340         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1341         New exports @@OMP_3.0.
1342         * omp.h.in (omp_sched_t): New type.
1343         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1344         omp_set_max_active_levels, omp_get_max_active_levels,
1345         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1346         omp_get_active_level): New prototypes.
1347         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1348         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1349         gomp_thread_limit_var, gomp_remaining_threads_count,
1350         gomp_remaining_threads_lock): New variables.
1351         (parse_spincount): New function.
1352         (initialize_env): Call gomp_init_num_threads unconditionally.
1353         Initialize gomp_available_cpus.  Call parse_spincount,
1354         initialize gomp_{,throttled_}spin_count_var
1355         depending on presence and value of OMP_WAIT_POLICY and
1356         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1357         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1358         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1359         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1360         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1361         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1362         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1363         (gomp_global_icv): New.
1364         (parse_schedule): Use it.  Parse "auto".
1365         (omp_set_num_threads): Use gomp_icv.
1366         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1367         Likewise.
1368         (omp_get_max_threads): Move from parallel.c.
1369         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1370         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1371         add ialias.
1372         (parse_stacksize, parse_wait_policy): New functions.
1373         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1374         both wrappers for compatibility and new locks.
1375         (omp_set_schedule, omp_get_schedule,
1376         omp_get_thread_limit, omp_set_max_active_levels,
1377         omp_get_max_active_levels, omp_get_level,
1378         omp_get_ancestor_thread_num, omp_get_team_size,
1379         omp_get_active_level): New ialias_redirect.
1380         (omp_set_schedule_, omp_set_schedule_8_,
1381         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1382         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1383         omp_get_max_active_levels_, omp_get_level_,
1384         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1385         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1386         New functions.
1387         * parallel.c: Include limits.h.
1388         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1389         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1390         argument to gomp_team_start.  Pass 0 as second argument to
1391         gomp_resolve_num_threads.
1392         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1393         if gomp_thread_limit_var != ULONG_MAX.
1394         (omp_in_parallel): Implement using ts.active_level.
1395         (omp_get_max_threads): Move to env.c.
1396         (omp_get_level, omp_get_ancestor_thread_num,
1397         omp_get_team_size, omp_get_active_level): New functions,
1398         add ialias.
1399         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1400         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1401         gomp_iter_dynamic_next instead of the _locked variant and don't take
1402         lock around it, otherwise acquire it before calling
1403         gomp_iter_dynamic_next_locked.
1404         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1405         gomp_iter_dynamic_next instead of the _locked variant and don't take
1406         lock around it.
1407         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1408         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1409         Adjust gomp_team_start caller.  Pass count as second argument to
1410         gomp_resolve_num_threads, don't adjust num_threads after the call.
1411         Use gomp_icv.
1412         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1413         ws->chunk_size by incr.
1414         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1415         code.
1416         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1417         types.
1418         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1419         (omp_check_defines): Check even the compat defines.
1420         * config/linux/ptrlock.c: New file.
1421         * config/linux/ptrlock.h: New file.
1422         * config/linux/wait.h: New file.
1423         * config/posix/ptrlock.c: New file.
1424         * config/posix/ptrlock.h: New file.
1425         * config/linux/bar.h (gomp_team_barrier_wait,
1426         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1427         (gomp_team_barrier_set_task_pending,
1428         gomp_team_barrier_clear_task_pending,
1429         gomp_team_barrier_set_waiting_for_tasks,
1430         gomp_team_barrier_waiting_for_tasks,
1431         gomp_team_barrier_done): New inlines.
1432         (gomp_barrier_t): Rewritten.
1433         (gomp_barrier_state_t): New typedef.
1434         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1435         gomp_barrier_wait_start): Rewritten.
1436         (gomp_barrier_wait_end): Change second argument to
1437         gomp_barrier_state_t.
1438         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1439         inlines.
1440         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1441         futex.h.
1442         (gomp_barrier_wait_end): Rewritten.
1443         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1444         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1445         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1446         (gomp_barrier_state_t): New typedef.
1447         (gomp_team_barrier_wait,
1448         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1449         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1450         into the return value.  Return gomp_barrier_state_t.
1451         (gomp_team_barrier_set_task_pending,
1452         gomp_team_barrier_clear_task_pending,
1453         gomp_team_barrier_set_waiting_for_tasks,
1454         gomp_team_barrier_waiting_for_tasks,
1455         gomp_team_barrier_done): New inlines.
1456         (gomp_barrier_wait_end): Change second argument to
1457         gomp_barrier_state_t.
1458         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1459         inlines.
1460         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1461         (gomp_barrier_wait_end): Change second argument to
1462         gomp_barrier_state_t.
1463         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1464         gomp_team_barrier_wake): New functions.
1465         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1466         futex.h.
1467         (gomp_futex_wake, gomp_futex_wait): New variables.
1468         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1469         * config/linux/lock.c: Rewrite to make locks task owned,
1470         for backwards compatibility provide the old entrypoints
1471         if symbol versioning.  Include wait.h instead of libgomp.h and
1472         futex.h.
1473         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1474         * config/posix95/lock.c: Rewrite to make locks task owned,
1475         for backwards compatibility provide the old entrypoints
1476         if symbol versioning.
1477         * config/posix/lock.c: Rewrite to make locks task owned,
1478         for backwards compatibility provide the old entrypoints
1479         if symbol versioning.
1480         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1481         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1482         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1483         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1484         (sys_futex0): Return error code.
1485         (futex_wake, futex_wait): If ENOSYS was returned, clear
1486         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1487         (cpu_relax, atomic_write_barrier): New static inlines.
1488         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1489         (futex_wake, futex_wait): If ENOSYS was returned, clear
1490         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1491         (cpu_relax, atomic_write_barrier): New static inlines.
1492         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1493         (sys_futex0): Return error code.
1494         (futex_wake, futex_wait): If ENOSYS was returned, clear
1495         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1496         (cpu_relax, atomic_write_barrier): New static inlines.
1497         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1498         (sys_futex0): Return error code.
1499         (futex_wake, futex_wait): If ENOSYS was returned, clear
1500         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1501         (cpu_relax, atomic_write_barrier): New static inlines.
1502         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1503         (sys_futex0): Return error code.
1504         (futex_wake, futex_wait): If ENOSYS was returned, clear
1505         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1506         (cpu_relax, atomic_write_barrier): New static inlines.
1507         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1508         (sys_futex0): Return error code.
1509         (futex_wake, futex_wait): If ENOSYS was returned, clear
1510         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1511         (cpu_relax, atomic_write_barrier): New static inlines.
1512         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1513         futex.h.
1514         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1515         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1516         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1517         types.
1518         (omp_nest_lock_t): Change owner into void *, add lock field.
1519         * config/posix95/omp-lock.h: Include semaphore.h.
1520         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1521         (omp_lock_t): Use sem_t instead of mutex if semaphores
1522         aren't broken.
1523         (omp_nest_lock_t): Likewise.  Change owner to void *.
1524         * config/posix/omp-lock.h: Include semaphore.h.
1525         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1526         (omp_lock_t): Use sem_t instead of mutex if semaphores
1527         aren't broken.
1528         (omp_nest_lock_t): Likewise.  Add owner field.
1530 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1532         * testsuite/libgomp.c/collapse-1.c: New test.
1533         * testsuite/libgomp.c/collapse-2.c: New test.
1534         * testsuite/libgomp.c/collapse-3.c: New test.
1535         * testsuite/libgomp.c/icv-1.c: New test.
1536         * testsuite/libgomp.c/icv-2.c: New test.
1537         * testsuite/libgomp.c/lib-2.c: New test.
1538         * testsuite/libgomp.c/lock-1.c: New test.
1539         * testsuite/libgomp.c/lock-2.c: New test.
1540         * testsuite/libgomp.c/lock-3.c: New test.
1541         * testsuite/libgomp.c/loop-4.c: New test.
1542         * testsuite/libgomp.c/loop-5.c: New test.
1543         * testsuite/libgomp.c/loop-6.c: New test.
1544         * testsuite/libgomp.c/loop-7.c: New test.
1545         * testsuite/libgomp.c/loop-8.c: New test.
1546         * testsuite/libgomp.c/loop-9.c: New test.
1547         * testsuite/libgomp.c/nested-3.c: New test.
1548         * testsuite/libgomp.c/nestedfn-6.c: New test.
1549         * testsuite/libgomp.c/sort-1.c: New test.
1550         * testsuite/libgomp.c/task-1.c: New test.
1551         * testsuite/libgomp.c/task-2.c: New test.
1552         * testsuite/libgomp.c/task-3.c: New test.
1553         * testsuite/libgomp.c/task-4.c: New test.
1554         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1555         to C++ testsuite default compiler options.
1556         * testsuite/libgomp.c++/collapse-1.C: New test.
1557         * testsuite/libgomp.c++/collapse-2.C: New test.
1558         * testsuite/libgomp.c++/ctor-10.C: New test.
1559         * testsuite/libgomp.c++/for-1.C: New test.
1560         * testsuite/libgomp.c++/for-2.C: New test.
1561         * testsuite/libgomp.c++/for-3.C: New test.
1562         * testsuite/libgomp.c++/for-4.C: New test.
1563         * testsuite/libgomp.c++/for-5.C: New test.
1564         * testsuite/libgomp.c++/loop-8.C: New test.
1565         * testsuite/libgomp.c++/loop-9.C: New test.
1566         * testsuite/libgomp.c++/loop-10.C: New test.
1567         * testsuite/libgomp.c++/task-1.C: New test.
1568         * testsuite/libgomp.c++/task-2.C: New test.
1569         * testsuite/libgomp.c++/task-3.C: New test.
1570         * testsuite/libgomp.c++/task-4.C: New test.
1571         * testsuite/libgomp.c++/task-5.C: New test.
1572         * testsuite/libgomp.c++/task-6.C: New test.
1573         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1574         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1575         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1576         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1577         * testsuite/libgomp.fortran/collapse1.f90: New test.
1578         * testsuite/libgomp.fortran/collapse2.f90: New test.
1579         * testsuite/libgomp.fortran/collapse3.f90: New test.
1580         * testsuite/libgomp.fortran/collapse4.f90: New test.
1581         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1582         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1583         * testsuite/libgomp.fortran/lib4.f90: New test.
1584         * testsuite/libgomp.fortran/lock-1.f90: New test.
1585         * testsuite/libgomp.fortran/lock-2.f90: New test.
1586         * testsuite/libgomp.fortran/nested1.f90: New test.
1587         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1588         * testsuite/libgomp.fortran/strassen.f90: New test.
1589         * testsuite/libgomp.fortran/tabs1.f90: New test.
1590         * testsuite/libgomp.fortran/tabs2.f: New test.
1591         * testsuite/libgomp.fortran/task1.f90: New test.
1592         * testsuite/libgomp.fortran/task2.f90: New test.
1593         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1594         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1595         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1596         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1597         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1599 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1601         PR c++/36308
1602         * testsuite/libgomp.c++/ctor-11.C: New test.
1603         * testsuite/libgomp.c++/ctor-12.C: New test.
1605 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1607         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1609 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1611         PR middle-end/36106
1612         * testsuite/libgomp.c/atomic-5.c: New test.
1613         * testsuite/libgomp.c/atomic-6.c: New test.
1614         * testsuite/libgomp.c/autopar-1.c: New test.
1616 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1618         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1619         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1620         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1621         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1622         * configure: Regenerate.
1623         * Makefile.in, testsuite/Makefile.in: Likewise.
1625 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1627         PR bootstrap/35457
1628         * aclocal.m4: Regenerate.
1629         * configure: Regenerate.
1631 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1633         PR middle-end/35611
1634         * testsuite/libgomp.c/atomic-4.c: New test.
1636         PR libgomp/35625
1637         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1638         (gomp_iter_guided_next): Likewise.
1639         * testsuite/libgomp.c/pr35625.c: New test.
1641 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1643         * aclocal.m4: Regenerate.
1644         * configure: Likewise.
1645         * Makefile.in: Likewise.
1646         * testsuite/Makefile.in: Likewise.
1648 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1650         PR middle-end/35185
1651         * testsuite/libgomp.c++/pr35185.C: New test.
1653 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1655         PR middle-end/35549
1656         * testsuite/libgomp.c/pr35549.c: New test.
1658 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1660         * testsuite/libgomp.c/atomic-3.c: New test.
1662 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1664         PR fortran/33197
1665         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1666         .F08 file suffixes.
1668 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1670         PR libgomp/33131
1671         * configure.ac: Add ACX_HEADER_STRING.
1672         * env.c: Include strings.h.
1673         * aclocal.m4: Regenerate.
1674         * config.h.in: Regenerate.
1675         * configure: Regenerate.
1676         * Makefile.in: Regenerate.
1677         * testsuite/Makefile.in: Regenerate.
1679 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1681         PR middle-end/35196
1682         * testsuite/libgomp.c/pr35196.c: New test.
1684         PR middle-end/35130
1685         * testsuite/libgomp.fortran/pr35130.f90: New test.
1686         * testsuite/libgomp.c/pr35130.c: New test.
1688 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1690         PR middle-end/33880
1691         * testsuite/libgomp.c/pr33880.c: New test.
1692         * testsuite/libgomp.fortran/pr33880.f90: New test.
1694 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1696         * configure: Regenerate.
1698 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1700         * configure.ac: Move futex checking into ../config/futex.m4.
1701         * configure: Rebuilt.
1702         * aclocal.m4: Rebuilt.
1703         * Makefile.in: Rebuilt.
1705         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1706         2007-10-15 ../config/tls.m4 change.
1708 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1710         PR c++/34513
1711         * testsuite/libgomp.c/pr34513.c: New test.
1712         * testsuite/libgomp.c++/pr34513.C: New test.
1714 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1716         PR target/32765
1717         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1719 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1721         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1723 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1725         * testsuite/libgomp.c/private-1.c: New test.
1727 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1728             Paolo Bonzini  <bonzini@gnu.org>
1730         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1731         instead of 'VPATH ='.
1732         * Makefile.in: Regenerate.
1734 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1736         * configure.ac: Adjust makeinfo version check.
1737         * configure: Regenerate.
1739 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1741         PR fortran/34020
1742         * testsuite/libgomp.fortran/pr34020.f90: New test.
1744 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1746         PR c++/33894
1747         * testsuite/libgomp.c++/atomic-1.C: New test.
1749 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1751         PR libgomp/33275
1752         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1753         Make x and y integers rather than (implicit) reals.  Add private (j)
1754         clause to the last omp parallel.
1756 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1758         * configure: Regenerate following changes to ../config/tls.m4.
1760 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1762         * testsuite/libgomp.fortran/stack.f90: New test.
1764 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1766         * config/mingw32/proc.c: New file.
1768 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1770         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1771         (main): Use __get_cpuid to get i386 target fetaures.
1772         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1773         (main): Use __get_cpuid to get x86_64 target fetaures.
1775 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1777         PR target/32765
1778         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1779         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1781 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1783         PR fortran/32550
1784         * testsuite/libgomp.fortran/pr32550.f90: New test.
1785         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1787 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1789         * aclocal.m4: Regenerated.
1791 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1793         PR fortran/32359
1794         * testsuite/libgomp.fortran/pr32359.f90: New.
1796 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1798         PR libgomp/32468
1799         * sections.c (GOMP_parallel_sections_start): Only decrease
1800         number of threads to COUNT if dyn_var is true.
1801         * testsuite/libgomp.c/pr32468.c: New test.
1803 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1805         PR libgomp/26308
1806         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1808 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1810         PR middle-end/32362
1811         * testsuite/libgomp.c/pr32362-1.c: New test.
1812         * testsuite/libgomp.c/pr32362-2.c: New test.
1813         * testsuite/libgomp.c/pr32362-3.c: New test.
1815 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1817         * team.c (gomp_team_start): Fix setting up thread_attr
1818         stack size.
1820 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1822         * configure: Regenerate.
1824 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1826         * Makefile.in: Regenerate.
1827         * configure: Regenerate.
1828         * aclocal.m4: Regenerate.
1829         * testsuite/Makefile.in: Regenerate.
1831 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1833         * config/linux/proc.c: New file.
1835         PR libgomp/28482
1836         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1838 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1840         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1842 2007-04-16  Matthias Klose  <doko@debian.org>
1844         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1845         flags if not building with -m64.
1846         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1847         flag for i?86-*-* targets, if current target matches -m64.
1849 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1851         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1852         * Makefile.in: Regenerate.
1854 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1856         PR testsuite/31369
1857         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1858         ld_library_path.
1859         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1861 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1863         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1864         decls.
1865         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1866         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1867         (parse_affinity): New function.
1868         (initialize_env): Call it and gomp_init_affinity.
1869         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1870         create new pthread_attr_t and call gomp_init_thread_affinity
1871         on it for each thread before passing the attribute to pthread_create.
1872         * config/linux/affinity.c: New file.
1873         * config/posix/affinity.c: New file.
1874         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1875         * configure: Rebuilt.
1876         * config.h.in: Rebuilt.
1877         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1878         * Makefile.in: Rebuilt.
1880 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1882         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1883         *-*-darwin*.
1884         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1885         and use it if found.
1887 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1889         * testsuite/config/default.exp: New file.
1890         * testsuite/lib/libgomp.exp: New file.
1891         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1892         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1893         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1894         (libgomp_load): Remove.
1895         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1896         always_ld_library_path, not ld_library_path.  Set additional_flags
1897         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1898         (target_compile): Do not call libgomp_init.  Append lang_library_path
1899         and lang_link_flags to options.
1900         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1901         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1902         here.
1903         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1904         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1905         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1906         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1907         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1908         CX8 flag.
1909         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1910         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1911         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1912         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1913         * testsuite/libgomp.c/atomic-10.c: Ditto.
1915 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1917         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1918         dg-final cleanup-modules line.
1919         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1920         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1921         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1922         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1923         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1924         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1925         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1927 2007-03-18  Andreas Schwab  <schwab@suse.de>
1929         * acinclude.m4: Adjust regular expression for ld version
1930         extraction.
1931         * configure: Regenerate.
1933 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1935         * Makefile.am: Add install-pdf target as copied from
1936         automake v1.10 rules.
1937         * Makefile.in: Regenerate
1939 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1941         PR libgomp/28486
1942         * configure: Regenerate.
1944         PR c++/30703
1945         * testsuite/libgomp.c++/pr30703.C: New test.
1947 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1949         Revert:
1950         2006-07-05  Eric Christopher  <echristo@apple.com>
1951         * configure.ac: Depend addition of -pthread on host OS.
1952         * configure: Regenerate.
1954 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1956         * libgomp.texi: Fix spacing after abbreviations.
1958 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1960         PR libgomp/30546
1961         * configure.ac: Add check for makeinfo
1962         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1963         if an appropiate version of makeinfo is found.
1964         * aclocal.m4: Regenerated.
1965         * configure: Regenerated.
1966         * Makefile.in: Regenerated.
1967         * testsuite/Makefile.in: Regenerated.
1969 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1971         PR libgomp/30540
1972         * libgomp.texi: More about implementation-dependent settings.
1974 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1976         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1978 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1980         PR middle-end/30494
1981         * testsuite/libgomp.c/pr30494.c: New test.
1983 2007-01-15  Tom Tromey  <tromey@redhat.com>
1985         * configure: Rebuilt.
1986         * configure.ac: Fixed comment.
1988 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1990         * libgomp.texi: Document implementation specific default values of
1991         environment variables.
1993 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1995         PR libgomp/28209
1996         * libgomp.texi: New file.
1997         * configure.ac: Add --enable-generated-files-in-srcdir option.
1998         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1999         files to srcdir.
2000         * Makefile.in: Regenerated.
2001         * config.h.in: Regenerated.
2002         * testsuite/Makefile.in: Regenerated.
2003         * NOTES: Removed.
2005 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2007         PR libgomp/29949
2008         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2010 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2012         * configure: Regenerate.
2014 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2016         PR libgomp/29947
2017         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2018         start if there shouldn't be any loop iterations.
2019         (gomp_loop_ordered_static_start): Remove start == end test.
2020         * testsuite/libgomp.c/pr29947-1.c: New test.
2021         * testsuite/libgomp.c/pr29947-2.c: New test.
2023 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2025         * configure.tgt: Force initial-exec TLS model on Linux only.
2027 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2029         * configure: Regenerated.
2031 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2033         * env.c (parse_schedule): Reject out of range values.
2034         (parse_unsigned_long): Reject out of range, negative or zero values.
2036 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2038         PR fortran/29629
2039         * testsuite/libgomp.fortran/pr29629.f90: New test.
2041 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2043         PR libgomp/29494
2044         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2045         * config/posix95: New directory.
2046         * config/posix95/omp-lock.h: New file.
2047         * config/posix95/lock.c: Likewise.
2049 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2051         * aclocal.m4: Regenerate.
2052         * configure: Regenerate.
2054 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2056         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2057         '<' to '<='.
2059 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2061         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2062         test.
2063         * configure: Regenerate.
2064         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2066 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2068         PR middle-end/25261
2069         PR middle-end/28790
2070         * testsuite/libgomp.c/nestedfn-4.c: New test.
2071         * testsuite/libgomp.c/nestedfn-5.c: New test.
2072         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2074         PR fortran/29097
2075         * testsuite/libgomp.fortran/condinc1.f: New test.
2076         * testsuite/libgomp.fortran/condinc2.f: New test.
2077         * testsuite/libgomp.fortran/condinc3.f90: New test.
2078         * testsuite/libgomp.fortran/condinc4.f90: New test.
2079         * testsuite/libgomp.fortran/condinc1.inc: New file.
2081 2006-09-18  Tom Tromey  <tromey@redhat.com>
2083         * configure: Rebuilt.
2085 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2087         PR c/28768
2088         PR preprocessor/14634
2089         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2090         to AC_DEFINE.
2091         * configure: Regenerate.
2093 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2095         * testsuite/libgomp.fortran/reduction3.f90: Change
2096         -2147483648 to -huge(i)-1 to avoid overflow.
2097         * testsuite/libgomp.fortran/reduction4.f90: Change
2098         Z'ffffffff' to not(0) to avoid overflow.
2100 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2102         PR libgomp/25938
2103         * Makefile.am (libsubincludedir): New.
2104         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2105         * Makefile.in: Regenerate.
2107 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2109         PR libgomp/28725
2110         * env.c: Include ctype.h.
2111         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2112         leading and/or trailing whitespace and compare strings case
2113         insensitively.
2115 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2117         PR fortran/28390
2118         * testsuite/libgomp.fortran/pr28390.f: New test.
2120 2006-07-05  Eric Christopher  <echristo@apple.com>
2122         * configure.ac: Depend addition of -pthread on host OS.
2123         * configure: Regenerate.
2125 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2127         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2128         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2129         defined.
2131 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2133         PR libgomp/26175
2134         PR libgomp/26477
2135         * configure.ac: If neither --enable-linux-futex nor
2136         --disable-linux-futex is passed, determine the default by checking
2137         for compiling and/or running against NPTL.  With --enable-linux-futex,
2138         check if SYS_gettid and SYS_futex are defined.
2139         * configure: Rebuilt.
2141 2006-06-14  Richard Henderson  <rth@redhat.com>
2143         PR libgomp/28008
2144         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2145         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2147 2006-06-09  Richard Henderson  <rth@redhat.com>
2149         * env.c (gomp_nthreads_var): Change to unsigned long.
2150         (gomp_run_sched_chunk): Likewise.
2151         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2152         (initialize_env): Initialize gomp_thread_attr.
2153         * libgomp.h (gomp_nthreads_var): Update decl.
2154         (gomp_run_sched_chunk): Likewise.
2155         (gomp_thread_attr): Declare.
2156         * team.c (gomp_thread_attr): Export.
2157         (initialize_team): Don't initialize it.
2159 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2161         PR fortran/27916
2162         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2163         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2165 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2167         * config/mingw32/time.c: New file.
2168         * configure.tgt: Use it.
2170 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2172         * Makefile.am: Add install-html target. Add install-html to .PHONY
2173         * Makefile.in: Regenerate.
2175 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2177         PR libgomp/27612
2178         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2179         * testsuite/libgomp.c/critical-1.c: Likewise.
2180         * testsuite/libgomp.c/loop-1.c: Likewise.
2181         * testsuite/libgomp.c/loop-2.c: Likewise.
2182         * testsuite/libgomp.c/single-1.c: Likewise.
2183         * testsuite/libgomp.c/ordered-1.c: Likewise.
2184         * testsuite/libgomp.c/ordered-2.c: Likewise.
2186 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2188         PR middle-end/27416
2189         * libgomp.fortran/pr27416-1.f90: New test.
2191 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2193         PR fortran/27395
2194         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2195         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2197 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2199         PR c++/26943
2200         * testsuite/libgomp.c/pr26943-1.c: New test.
2201         * testsuite/libgomp.c/pr26943-2.c: New test.
2202         * testsuite/libgomp.c/pr26943-3.c: New test.
2203         * testsuite/libgomp.c/pr26943-4.c: New test.
2204         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2205         * testsuite/libgomp.c++/pr26943.C: New test.
2207 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2209         PR middle-end/27337
2210         * testsuite/libgomp.c++/pr27337.C: New test.
2212 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2214         PR c/26171
2215         * testsuite/libgomp.c/pr26171.c: New test.
2217 2006-04-25  Richard Henderson  <rth@redhat.com>
2219         PR libgomp/25865
2220         * configure.ac: Use GCC_CHECK_TLS.
2221         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2222         * Makefile.in, aclocal.m4, configure: Regenerate.
2224 2006-04-10  Matthias Klose  <doko@debian.org>
2226         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2227         directory names containing underscores.
2229 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2231         PR c++/26691
2232         * testsuite/libgomp.c++/pr26691.C: New test.
2234 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2236         * testsuite/libgomp.fortran/retval2.f90: New test.
2238 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2240         * testsuite/libgomp.c++: New directory.
2242 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2244         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2245         * config/posix/sem.c: Implement the above.
2247 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2249         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2250         define HAVE_BROKEN_POSIX_SEMAPHORES.
2251         * configure: Rebuilt.
2252         * config.h.in: Rebuilt.
2254 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2256         PR bootstrap/26161
2257         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2258         for the other pthread check.
2259         * configure: Regenerate.
2260         * config.h.in: Regenerate.
2262 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2264         PR libgomp/25938
2265         PR libgomp/25984
2266         * Makefile.am (fincludedir): New variable.
2267         (nodist_include_HEADERS): Remove Fortran files.
2268         (nodist_finclude_HEADERS): New variable.
2269         * Makefile.in: Regenerated.
2271 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2273         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2274         Remove tests for returning assumed character length arrays.
2276 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2277             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2279         PR libgomp/25936
2280         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2282 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2284         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2286 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2288         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2289         part of LD_LIBRARY_PATH manually.
2291 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2293         PR libgomp/25852
2294         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2295         libgomp_init.
2297 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2299         PR libgomp/25884
2300         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2301         * configure.ac (PERL): Don't set.
2302         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2303         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2304         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2305         * omp.h.in: Wrap the new configure substitutions with @ characters.
2306         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2307         * aclocal.m4, configure, Makefile.in: Regenerate.
2308         * mkomp_h.pl: Delete.
2310 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2312         PR libgomp/25259
2313         * configure.ac: Use GCC_HEADER_STDINT.
2314         * libgomp.h: Include gstdint.h.
2315         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2316         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2318 2006-01-24  Richard Henderson  <rth@redhat.com>
2320         PR libgomp/25942
2321         * configure.ac: Add AM_MAINTAINER_MODE.
2322         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2324 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2326         * Makefile.in: Regenerate.
2327         * testsuite/Makefile.in: Regenerate.
2328         * aclocal.m4: Regenerate.
2330 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2332         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2333         Solaris.
2334         * configure.ac: Add check for loadavg.h.
2335         (link_gomp): Adjust comment.
2336         * configure: Regenerate.
2337         * config.h.in: Regenerate.
2339 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2341         PR libgomp/25877
2342         * configure.ac: Remove check for alloca.h.
2343         * configure: Regenerate.
2344         * config.h.in: Regenerate.
2345         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2346         * team.c: Remove use of alloca.h.
2347         Call gomp_alloca instead of alloca.
2349 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2351         PR libgomp/25877
2352         * team.c: Add include of alloca.h.
2353         * configure.ac: Add check for alloca.h.
2354         * configure: Regenerate.
2355         * config.h.in: Regenerate.
2357 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2359         PR fortran/25219
2360         * testsuite/libgomp.fortran/pr25219.f90: New test.
2362 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2364         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2365         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2366         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2367         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2368         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2369         testsuite/libgomp.fortran/threadprivate1.f90,
2370         testsuite/libgomp.fortran/threadprivate2.f90,
2371         testsuite/libgomp.fortran/threadprivate3.f90,
2372         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2373         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2374         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2375         effective-target to TLS runtime.
2377         * testsuite/libgomp.fortran/pr25162.f: Require
2378         effective-target TLS runtime.
2380 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2382         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2383         * testsuite/libgomp.c/nestedfn-3.c: New test.
2385 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2387         PR fortran/25162
2388         * testsuite/libgomp.fortran/pr25162.f: New test.
2390 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2392         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2393         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2395 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2397         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2398         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2399         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2400         single.c, team.c, work.c, config/linux/alpha/futex.h,
2401         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2402         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2403         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2404         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2405         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2406         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2407         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2408         FSF address.
2410 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2412         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2413         to nodist_noinst_HEADERS.
2414         * Makefile.in: Rebuilt.
2416         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2417         add integer count field.
2418         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2419         omp_nest_lock_t type change.
2420         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2421         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2422         Increment count.
2423         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2424         Decrement count.
2425         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2426         Increment count if successful and return the new nesting level.
2427         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2428         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2429         * testsuite/libgomp.c/lib-1.c: New test.
2430         * testsuite/libgomp.fortran/lib1.f90: New test.
2431         * testsuite/libgomp.fortran/lib2.f: New test.
2432         * testsuite/libgomp.fortran/lib3.f: New test.
2434 2005-11-17  Richard Henderson  <rth@redhat.com>
2436         PR 24845
2437         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2438         * configure.ac (link_gomp): New.  Substitute it.
2439         (AC_CONFIG_FILES): Add libgomp.spec.
2440         * libgomp.spec.in: New file.
2441         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2442         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2444 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2446         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2447         reduction(-:var) behaving the same as reduction(+:var).
2448         * testsuite/libgomp.c/reduction-4.c: New test.
2450 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2452         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2453         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2454         testsuite/libgomp.c/copyin-3.c,
2455         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2456         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2457         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2458         testsuite/libgomp.c++/pr24455.C,
2459         testsuite/libgomp.fortran/threadprivate1.f90,
2460         testsuite/libgomp.fortran/threadprivate2.f90,
2461         testsuite/libgomp.fortran/threadprivate3.f90,
2462         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2463         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2464         testsuite/libgomp.fortran/omp_parse3.f90: Require
2465         effective-target TLS.
2467 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2469         * HEADER: Remove.
2471 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2473         PR libgomp/24797
2474         * team.c (initialize_team): Pass NULL rather than free as
2475         pthread_key_create destructor.  Initialize thread specific data
2476         pointer in initial thread to a static local variable rather than
2477         malloced memory.
2479 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2481         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2482         its location to ld_library_path.
2484 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2486         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2488 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2490         * testsuite/libgomp.c: Rename from libgomp.dg.
2492 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2494         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2495         threadprivate variable 'i'.
2497 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2499         * config/linux/s390/futex.h: New file.
2500         * configure.tgt: Use it.
2502         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2503         before the parallel.
2505 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2507         PR c++/24734
2508         * testsuite/libgomp.c++/master-1.C: New test.
2510 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2512         * testsuite/libgomp.dg/copyin-3.c: New test.
2514 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2516         * testsuite/libgomp.fortran/retval1.f90: New test.
2517         * testsuite/libgomp.fortran/vla7.f90: New test.
2519 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2521         * testsuite/libgomp.fortran/vla2.f90: New test.
2522         * testsuite/libgomp.fortran/vla3.f90: New test.
2523         * testsuite/libgomp.fortran/vla4.f90: New test.
2524         * testsuite/libgomp.fortran/vla5.f90: New test.
2525         * testsuite/libgomp.fortran/vla6.f90: New test.
2527 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2529         * config/linux/sparc/futex.h: New file.
2530         * configure.tgt: Use it.
2531         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2533         * critical.c: Include stdlib.h.
2534         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2535         ignoring return value.
2536         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2537         LIBGOMP_CHECK_SYNC_BUILTINS check.
2538         * configure: Rebuilt.
2540 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2542         * testsuite/libgomp.fortran/vla1.f90: New test.
2544 2005-10-31  Richard Henderson  <rth@redhat.com>
2546         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2547         setting 's' in different threads.
2549 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2551         * libgomp.h (attribute_hidden, ialias): Define.
2552         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2553         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2554         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2555         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2556         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2557         omp_test_lock, omp_test_nest_lock): Likewise.
2558         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2559         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2560         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2561         omp_test_lock, omp_test_nest_lock): Likewise.
2562         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2563         omp_get_dynamic, omp_get_nested): Likewise.
2564         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2565         omp_get_thread_num, omp_in_parallel): Likewise.
2566         * fortran.c (ialias_redirect): Define.
2567         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2568         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2569         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2570         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2571         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2572         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2573         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2574         omp_get_wtime): Add ialias_redirect.
2576 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2578         * fortran.c: Include stdlib.h.
2580 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2582         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2583         * Makefile.in: Regenerated.
2585 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2587         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2588         * libgomp_f.h.in (omp_check_defines): New function.
2589         * env.c: Include libgomp_f.h.
2590         (initialize_env): Call omp_check_defines.
2592         * testsuite/libgomp.dg/copyin-2.c: New test.
2593         * testsuite/libgomp.c++/copyin-2.C: New test.
2594         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2596         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2597         * testsuite/libgomp.fortran/sharing2.f90: New test.
2599         * testsuite/libgomp.dg/copyin-1.c: New test.
2600         * testsuite/libgomp.c++/copyin-1.C: New test.
2602 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2604         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2606         * testsuite/libgomp.fortran/workshare1.f90: New test.
2608         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2609         only test.
2610         * libgomp.fortran/sharing1.f90: New test.
2612 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2614         PR c++/24502
2615         * testsuite/libgomp.c++/loop-7.C: New test.
2617         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2619         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2620         * testsuite/libgomp.fortran/reduction6.f90: New test.
2621         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2623 2005-10-23  Richard Henderson  <rth@redhat.com>
2625         * testsuite/libgomp.c++/ctor-1.C: New.
2626         * testsuite/libgomp.c++/ctor-2.C: New.
2627         * testsuite/libgomp.c++/ctor-3.C: New.
2628         * testsuite/libgomp.c++/ctor-4.C: New.
2629         * testsuite/libgomp.c++/ctor-5.C: New.
2630         * testsuite/libgomp.c++/ctor-6.C: New.
2631         * testsuite/libgomp.c++/ctor-7.C: New.
2632         * testsuite/libgomp.c++/ctor-8.C: New.
2633         * testsuite/libgomp.c++/ctor-9.C: New.
2635 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2637         PR 24455
2638         * testsuite/libgomp.c++/pr24455-1.C: New test.
2639         * testsuite/libgomp.c++/pr24455.C: New test.
2640         * testsuite/libgomp.dg/pr24455-1.c: New test.
2641         * testsuite/libgomp.dg/pr24455.c: New test.
2643 2005-10-20  Richard Henderson  <rth@redhat.com>
2645         * testsuite/libgomp.c++/loop-6.C: New.
2646         * testsuite/libgomp.dg/loop-3.c: New.
2648 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2650         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2651         explicitly private.
2652         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2653         explicitly shared.
2655 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2657         * testsuite/libgomp.fortran/jacobi.f: New test.
2659 2005-10-19  Richard Henderson  <rth@redhat.com>
2661         * configure.tgt (i?86-linux): Default to with_arch instead of
2662         CFLAGS.  Add -mtune to match target_cpu.
2663         (x86_64-linux): Tune to i686.
2665         * fortran.c (omp_test_nest_lock_): Fix typo.
2667 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2669         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2670         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2671         * testsuite/libgomp.dg/ordered-3.c: New test.
2673         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2674         Remove volatile keyword.
2676         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2677         in COMMON block to avoid warnings on 64-bit targets.
2679 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2681         * testsuite/libgomp.dg/shared-3.c: New test.
2683 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2685         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2686         * testsuite/libgomp.fortran/reduction5.f90: New test.
2688 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2690         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2691         dg-options.
2692         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2693         flush loop now that __sync_synchronize has proper memory barrier.
2694         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2695         Add -ffixed-form to dg-options.
2697 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2699         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2700         from subdirectories.
2701         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2702         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2703         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2704         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2705         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2706         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2707         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2708         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2709         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2710         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2711         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2712         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2713         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2714         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2715         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2716         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2717         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2718         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2719         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2720         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2721         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2722         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2723         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2724         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2725         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2727 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2729         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2730         lang_library_path exists.  Use find instead of glob to gather tests.
2731         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2733 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2735         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2736         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2737         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2738         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2739         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2740         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2741         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2742         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2743         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2744         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2745         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2746         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2747         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2749 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2751         * testsuite/libgomp.dg/vla-1.c: New test.
2753         * testsuite/libgomp.fortran/reference2.f90: New test.
2755         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2756         declaration of omp_get_thread_num.
2757         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2758         use omp_lib.
2760         * testsuite/libgomp.fortran/reduction1.f90: New test.
2761         * testsuite/libgomp.fortran/reduction2.f90: New test.
2762         * testsuite/libgomp.fortran/reduction3.f90: New test.
2763         * testsuite/libgomp.fortran/reduction4.f90: New test.
2765 2005-10-13  Richard Henderson  <rth@redhat.com>
2767         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2768         * Makefile.in: Regenerate.
2769         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2770         * libgomp.h: Include bar.h.
2771         (struct gomp_barrier): Remove.
2772         (struct gomp_team): Add barrier.  Replace master_barrier with
2773         master_release.  Replace threads with ordered_release.
2774         (struct gomp_thread): Replace barrier with release.
2775         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2776         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2777         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2778         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2779         (GOMP_single_copy_end): Likewise.
2780         * team.c (gomp_threads_dock): New.
2781         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2782         (gomp_thread_start): Use gomp_barrier_wait.
2783         (new_team, free_team): Update for gomp_team changes.
2784         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2785         (gomp_team_end): Use gomp_barrier_wait.
2786         (initialize_team): Update for gomp_thread changes.
2787         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2788         (gomp_work_share_end_nowait): Use atomic ops when available.
2789         * config/linux/bar.c, config/linux/bar.h: New files.
2790         * config/posix/bar.c, config/posix/bar.h: New files.
2792 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2794         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2795         * testsuite/libgomp.dg/single-2.c: New test.
2797         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2798         lang_link_flags): Unset, so that they aren't inherited from previously
2799         sourced *.exp.
2801         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2803 2005-10-12  Richard Henderson  <rth@redhat.com>
2805         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2806         (libgomp_init): Use lang_test_file, lang_library_path, and
2807         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2809         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2810         (lang_test_file, lang_link_flags): New.
2811         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2813         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2814         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2815         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2816         testsuite/libgomp.c++/parallel-1.C,
2817         testsuite/libgomp.c++/reduction-1.C,
2818         testsuite/libgomp.c++/reduction-2.C,
2819         testsuite/libgomp.c++/reduction-3.C,
2820         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2821         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2822         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2823         New files, largely cribbed from the C testsuite.
2825 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2827         * testsuite/libgomp.fortran/character1.f90: New test.
2828         * testsuite/libgomp.fortran/character2.f90: New test.
2830         * testsuite/libgomp.dg/nested-1.c: New test.
2831         * testsuite/libgomp.dg/nested-2.c: New test.
2832         * testsuite/libgomp.fortran/do1.f90: New test.
2833         * testsuite/libgomp.fortran/do2.f90: New test.
2835         * testsuite/libgomp.fortran/reference1.f90: New test.
2837 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2839         * testsuite/libgomp.dg/reduction-1.c: New test.
2840         * testsuite/libgomp.dg/reduction-2.c: New test.
2841         * testsuite/libgomp.dg/reduction-3.c: New test.
2843 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2845         * testsuite/libgomp.dg/atomic-1.c: New test.
2846         * testsuite/libgomp.dg/atomic-2.c: New test.
2848 2005-10-09  Richard Henderson  <rth@redhat.com>
2850         * critical.c (atomic_lock): New.
2851         (initialize_critical): Initialize it.
2852         (GOMP_atomic_start, GOMP_atomic_end): New.
2853         * libgomp.map: Export them.
2854         * libgomp_g.h: Declare them.
2856         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2858 2005-10-02  Richard Henderson  <rth@redhat.com>
2860         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2861         to XCFLAGS instead of CFLAGS.
2863 2005-09-30  Richard Henderson  <rth@redhat.com>
2865         * configure.ac: Determine whether -pthread or -lpthread is needed.
2866         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2867         * Makefine.in, configure: Rebuild.
2869 2005-09-28  Richard Henderson  <rth@redhat.com>
2871         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2872         * testsuite/libgomp.dg/omp-single-3.c: New test.
2874 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2876         * testsuite/libgomp.dg/omp-single-2.c: New test.
2877         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2879 2005-09-27  Richard Henderson  <rth@redhat.com>
2881         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2882         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2884 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2886         * testsuite/libgomp.dg/omp-loop03.c: New test.
2888 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2890         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2892 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2894         * testsuite/libgomp.dg/omp-single-1.c: New test.
2895         * testsuite/libgomp.dg/shared-1.c: Return 0.
2896         Add prototype for abort.
2897         * testsuite/libgomp.dg/shared-2.c: Likewise.
2899 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2901         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2902         constructs.
2904 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2906         * testsuite/libgomp.dg/shared-1.c: New test.
2907         * testsuite/libgomp.dg/shared-2.c: New test.
2909 2005-09-24  Richard Henderson  <rth@redhat.com>
2911         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2913 2005-09-24  Richard Henderson  <rth@redhat.com>
2915         * iter.c (gomp_iter_static_next): Round up when computing number
2916         of iterations.  Don't bother distributing a remainder equally.
2918         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2919         Don't call srand.  Zero b before testing.
2920         (main): New.
2922 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2924         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2925         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2927 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2929         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2930         without !$omp end do, followed immediately by subroutine end.
2932 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2934         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2936 2005-09-22  Richard Henderson  <rth@redhat.com>
2938         * critical.c (GOMP_critical_name_start): Change argument to void**.
2939         Reuse the pointer space if the mutex fits.
2940         (GOMP_critical_name_end): Likewise.
2941         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2942         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2943         (GOMP_critical_name_end): Likewise.
2944         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2945         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2947 2005-09-20  Richard Henderson  <rth@redhat.com>
2949         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2950         (create_lock_lock): New.
2951         (initialize_critical): Initialize it.
2952         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2953         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2955 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2957         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2959 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2961         * testsuite/libgomp.dg/omp-loop01.c: New test.
2962         * testsuite/libgomp.dg/omp-loop02.c: New test.
2964 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2966         * configure.ac (AC_PROG_FC): Add.
2967         (USE_FORTRAN): New automake conditional.
2968         * configure: Rebuilt.
2969         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2970         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2971         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2972         Add rules to build them.
2973         * Makefile.in: Rebuilt.
2974         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2975         OMP_NEST_LOCK_KIND.
2976         * libgomp.map: Add Fortran wrappers.
2977         * libgomp_f.h.in: New file.
2978         * omp_lib.h.in: New file.
2979         * omp_lib.f90.in: New file.
2980         * fortran.c: New file.
2981         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2982         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2983         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2984         libgfortran has been built.
2985         * testsuite/libgomp.fortran/fortran.exp: New file.
2986         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2987         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2988         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2989         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2990         * testsuite/libgomp.fortran/omp_hello.f: New test.
2991         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2992         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2993         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2994         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2995         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2996         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2997         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2998         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3000 2005-08-30  Richard Henderson  <rth@redhat.com>
3002         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3003         function for when aliases are not usable.
3004         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3005         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3006         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3007         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3008         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3009         GOMP_loop_ordered_guided_next): Likewise.
3010         * ordered.c (GOMP_ordered_start): Likewise.
3012 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3014         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3015         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3016         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3017         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3018         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3019         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3020         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3021         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3022         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3024 2005-07-07  Eric Christopher  <echristo@redhat.com>
3025             Diego Novillo  <dnovillo@redhat.com>
3027         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3028         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3029         up code.
3030         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3031         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3032         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3033         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3034         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3035         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3036         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3038 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3040         * TOPLEVEL.patch: Remove.
3042 2005-05-16  Richard Henderson  <rth@redhat.com>
3044         * configure.ac: Test for clock_gettime.
3045         * config.h.in, configure: Rebuild.
3046         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3047         (omp_get_wtime): Use clock_gettime if available.
3048         (omp_get_wtick): Use clock_getres if available.
3050 2005-05-11  Richard Henderson  <rth@redhat.com>
3052         * config/linux/ia64/futex.h: New file.
3053         * configure.tgt: Use it.
3055         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3057 2005-05-07  Richard Henderson  <rth@redhat.com>
3059         * config/linux/powerpc/futex.h: New file.
3060         * configure.tgt: Use it.
3062         * config/linux/i486/futex.h: Merge ...
3063         * config/linux/x86_64/futex.h: ... into ...
3064         * config/linux/x86/futex.h: ... here.
3065         * configure.tgt: Update to match.
3067 2005-05-06  Richard Henderson  <rth@redhat.com>
3069         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3070         * config/linux/i486/futex.h: Likewise.
3071         * config/linux/x86_64/futex.h: Likewise.
3073         * config/linux/lock.c: New file.
3074         * config/linux/omp-lock.h: New file.
3076         * critical.c, env.h: Don't include omp.h
3077         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3078         * config/posix/time.c: Likewise.
3079         * config/posix/omp-lock.h: New file.
3080         * libgomp.h: Include omp-lock.h and omp.h.
3081         * Makefile.am (nodist_include_HEADERS): New.
3082         (omp.h): New rule.
3083         * configure.ac (PERL): New.
3084         * mkomp_h.pl: New file.
3085         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3086         with templates.
3087         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3089         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3090         build directory.  Re-add -march=i486 hack.
3092         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3093         (libgomp_link_flags): Remove.
3094         (libgomp_initialized): Remove.
3095         (libgomp_init): Don't protect from reinitialization.  Copy code
3096         from libstdc++ for getting the multilib set correctly.
3098 2005-05-05  Richard Henderson  <rth@redhat.com>
3100         * config/linux/alpha/futex.h: New file.
3101         * configure.tgt (alpha*-*-linux*): Use it.
3103         * config/posix/mutex.c: New file.
3104         * config/posix/sem.c: Use libgomp.h.
3106         * configure.tgt (x86_64-linux): Also test CC for -m32.
3107         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3109         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3110         after $gccpath.
3112         * Makefile.am (SUBDIRS): New.
3113         (libgomp_la_LDFLAGS): Add -lpthread.
3114         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3115         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3117         * libgomp_g.h: New file.
3118         * libgomp.h: Split out all public declarations to libgomp_g.h.
3119         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3120         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3121         * config/linux/sem.h: Likewise.
3122         * config/posix/sem.h: Likewise.
3124         * Makefile.am (AM_LDFLAGS): New.
3125         (libgomp_version_script): Split out from ...
3126         (libgomp_la_LDFLAGS): ... here.
3127         (libgomp_version_info): New.
3128         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3129         (LIBGOMP_ENABLE): New.
3130         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3131         (LIBGOMP_ENABLE_SYMVERS): New.
3132         * configure.ac (AC_INIT): Version 1.0.
3133         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3134         (enable-linux-futex): Likewise.  Rename from enable-futex.
3135         (libtool_VERSION): New.
3136         (LIBGOMP_ENABLE_SYMVERS): Use it.
3137         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3138         * Makefile.in, aclocal.m4, configure: Rebuild.
3140         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3141         (gomp_mutex_unlock_slow): Fix typo.
3142         * config/linux/sem.c: Similarly.
3143         (gomp_sem_post_slow): Fix typo.
3144         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3145         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3146         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3148         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3149         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3150         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3151         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3152         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3153         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3154         LDFLAGS.  Pull enable_futex check to top-level.
3155         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3156         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3158         First attempt at real configury.
3159         * Makefile, config.h: Remove file.
3160         * Makefile.am, Makefile.in: New file.
3161         * acinclude.m4 aclocal.m4: New file.
3162         * configure.ac, configure.tgt, configure: New file.
3164         * config/posix/lock.c: Rename from sys-lock.c.
3165         * config/posix/mutex.h: Rename from sys-mutex.h.
3166         * config/posix/sem.c: Rename from sys-sem.c.
3167         * config/posix/sem.h: Rename from sys-sem.h.
3168         * config/posix/proc.c: Rename from sys-proc.c.
3169         * config/posix/time.c: Rename from sys-proc.c.
3171         * config/linux/mutex.c: New file.
3172         * config/linux/mutex.h: New file.
3173         * config/linux/sem.c: New file.
3174         * config/linux/sem.h: New file.
3175         * config/linux/i486/futex.h: New file.
3176         * config/linux/x86_64/futex.h: New file.
3178 2005-05-04  Richard Henderson  <rth@redhat.com>
3180         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3181         * libgomp.h: Declare them.
3182         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3183         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3185 2005-05-04  Richard Henderson  <rth@redhat.com>
3187         * libgomp-1 code drop
3189 2005-05-04  Richard Henderson  <rth@redhat.com>
3191         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3192         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3193         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3194         (gomp_iter_static_next): Update.
3195         (gomp_ordered_static_next): Update.
3196         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3197         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3198         totally empty range.
3199         (gomp_loop_ordered_static_next): Refine test for calling
3200         gomp_ordered_static_next.
3201         * testsuite/ordered-1.c: Add case for more threads than iterations.
3203         * iter.c (gomp_iter_runtime_next_locked): Remove.
3204         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3205         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3206         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3207         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3208         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3209         gomp_loop_ordered_guided_next): Downcase name, make static, add
3210         an external alias with the old name.
3211         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3212         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3213         switch and call one of the above static functions.
3214         * libgomp.h: Update.
3216         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3217         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3218         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3219         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3220         GOMP_loop_ordered_guided_start): Update to match.
3221         * sections.c (GOMP_sections_start): Likewise.
3222         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3224         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3225         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3226         Use bounds check instead of modulus.
3227         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3228         (gomp_ordered_last): Don't sync with ordered_owner here.
3229         (gomp_ordered_next): Likewise.
3230         (gomp_ordered_static_loop_next): Likewise.
3231         * loop.c, libgomp.h: Update to match.
3233         * libgomp.h (GOMP_barrier): Declare.
3235         * testsuite/barrier-1.c: New file.
3236         * testsuite/critical-1.c: New file.
3237         * testsuite/ordered-2.c: New file.
3238         * testsuite/ordered-1.c: New file.
3239         * testsuite/sections-1.c: New file.
3240         * testsuite/single-1.c: New file.
3241         * testsuite/Makefile (TESTS): Add them.
3243 2005-05-04  Richard Henderson  <rth@redhat.com>
3245         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3246         * loop.c (GOMP_loop_static_start): If not the startup thread,
3247         acquire the mutex to wait for initialization complete.
3248         (GOMP_loop_ordered_static_start): Likewise.
3249         (GOMP_loop_ordered_runtime_start): Likewise.
3250         (GOMP_loop_ordered_static_first): Remove.
3251         (GOMP_loop_ordered_dynamic_first): Remove.
3252         (GOMP_loop_ordered_guided_first): Remove.
3253         (GOMP_loop_ordered_runtime_first): Remove.
3254         * ordered.c (gomp_ordered_loop_first): Post to own release when
3255         we're the first thread.
3256         (gomp_ordered_loop_last): Wait on release if not owner.
3257         (gomp_ordered_loop_next): Likewise.
3258         (gomp_ordered_static_loop_init): New.
3259         (gomp_ordered_static_loop_next): Use ordered_owner.
3260         (GOMP_ordered_start): Likewise.
3261         * work.c (gomp_new_work_share): Initialize ordered_owner.
3263 2005-05-03  Richard Henderson  <rth@redhat.com>
3265         * Makefile (OPT): New.
3266         (CFLAGS): Use it.
3268         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3269         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3270         * libgomp.h, libgomp.map, NOTES: Update to match.
3272         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3273         Add initialized and thr members.
3274         (gomp_thread_start): Pause when initially spawned to wait for
3275         the whole team to be created.
3276         (gomp_team_start): Release team members at the end.
3278         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3279         (f_foo_1): Use GOMP_loop_end.
3280         (f_foo_2): Use GOMP_loop_end_nowait.
3282         * testsuite/loop-2.c: New file.
3283         * testsuite/Makefile (TESTS): Add it.
3285 2005-05-03  Richard Henderson  <rth@redhat.com>
3287         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3288         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3289         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3290         initial work_share.
3292         * testsuite/Makefile: New file.
3293         * testsuite/loop-1.c: New file.
3295 2005-05-03  Richard Henderson  <rth@redhat.com>
3297         Initial implementation and checkin.