2012-05-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgomp / ChangeLog
blobbc6d5c47792846f73631107ca83e5aafb9af2623
1 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
5 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
7         PR bootstrap/52812
8         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
12         PR middle-end/52547
13         * testsuite/libgomp.c/pr52547.c: New test.
15 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17         * testsuite/lib/libgomp.exp: load fortran-modules.exp
19 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21         * configure.tgt (mips-sgi-irix6*): Remove.
23 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25         * configure.tgt (alpha*-dec-osf*): Remove.
27         * config/osf/sem.h: Remove.
28         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
30 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
32         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
34 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36         PR libstdc++/52188
37         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
38         Remove ENABLE_SYMVERS_SOL2.
39         * configure: Regenerate.
40         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
41         (PREPROCESS): New variable.
42         (libgomp.ver): New target.
43         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
44         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
45         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
46         Use libgomp.ver.
47         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
48         * Makefile.in: Regenerate.
50 2012-02-14  Walter Lee  <walt@tilera.com>
52         * configure.tgt: Handle tilegx and tilepro.
53         * config/linux/tile/futex.h: New file.
55 2012-02-08  Richard Guenther  <rguenther@suse.de>
57         PR tree-optimization/46886
58         * testsuite/libgomp.c/pr46886.c: New testcase.
60 2012-01-25  Matthias Klose  <doko@ubuntu.com>
62         * config/linux/arm: Remove empty directory.
63         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
65 2011-12-09  Alan Modra  <amodra@gmail.com>
67         PR libgomp/51376
68         * task.c (GOMP_taskwait): Don't access task->children outside of
69         task_lock mutex region.
70         (GOMP_task): Likewise.
72 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
74         PR libgomp/51132
75         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
76         to file scope.
77         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
78         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
79         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
80         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
81         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
83 2011-12-02  Alan Modra  <amodra@gmail.com>
85         * config/linux/affinity.c: Use atomic rather than sync builtin.
86         * config/linux/lock.c: Likewise.
87         * config/linux/ptrlock.h: Likewise.
88         * config/linux/ptrlock.c: Likewise.
89         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
90         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
91         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
92         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
93         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
94         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
95         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
96         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
97         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
98         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
100 2011-11-30  Alan Modra  <amodra@gmail.com>
102         PR libgomp/51298
103         * config/linux/bar.h: Use atomic rather than sync builtins.
104         * config/linux/bar.c: Likewise.  Add missing acquire
105         synchronisation on generation field.
106         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
107         double unlock.
109 2011-11-30  Alan Modra  <amodra@gmail.com>
111         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
112         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
113         * config/linux/mutex.h: Use atomic rather than sync builtins.
114         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
115         * config/linux/omp-lock.h: Comment fix.
116         * config/linux/arm/mutex.h: Delete.
117         * config/linux/powerpc/mutex.h: Delete.
118         * config/linux/ia64/mutex.h: Delete.
119         * config/linux/mips/mutex.h: Delete.
121 2011-11-30  Alan Modra  <amodra@gmail.com>
123         PR libgomp/51249
124         * config/linux/sem.h: Rewrite.
125         * config/linux/sem.c: Rewrite.
127 2011-11-28  Richard Henderson  <rth@redhat.com>
129         * libgomp.h (enum memmodel): New.
131 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
133         * configure: Regenerate.
135 2011-10-10  Matthias Klose  <doko@ubuntu.com>
137         * config/posix95: Remove empty directory.
139 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
141         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
143 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
145         PR fortran/49792
146         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
147         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
149 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
151         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
153 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
155         PR libgomp/49965
156         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
158 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
160         * config/linux/proc.h: New.
161         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
162         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
163         (gomp_init_num_threads): Update call to cpuset_popcount.
164         (get_num_procs): Ditto.
165         * config/linux/affinity.c (gomp_init_affinity): Call
166         gomp_cpuset_popcount.
168 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
170         PR fortran/42041
171         PR fortran/46752
172         * omp.h.in (omp_in_final): New prototype.
173         * omp_lib.f90.in (omp_in_final): New interface.
174         (omp_integer_kind, omp_logical_kind): Remove
175         and replace all its uses in the module with 4.
176         (openmp_version): Change to 201107.
177         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
178         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
179         kind for the parameters.
180         (omp_in_final): New external.
181         (openmp_version): Change to 201107.
182         * task.c (omp_in_final): New function.
183         (gomp_init_task): Initialize final_task.
184         (GOMP_task): Remove unused attribute from flags.  Handle final
185         tasks.
186         (GOMP_taskyield): New function.
187         (omp_in_final): Return true if if (false) or final (true) task
188         or descendant of final (true).
189         * fortran.c (omp_in_final_): New function.
190         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
191         (GOMP_3.0): Export GOMP_taskyield.
192         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
193         variables.
194         (parse_unsigned_long_list): New function.
195         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
196         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
197         even if parse_affinity returned false.
198         * config/linux/affinity.c (gomp_init_affinity): Handle
199         gomp_cpu_affinity_len == 0.
200         * libgomp_g.h (GOMP_taskyield): New prototype.
201         * libgomp.h (struct gomp_task): Add final_task field.
202         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
203         * team.c (gomp_team_start): Override new task's nthreads_var icv
204         if list form OMP_NUM_THREADS has been used and it has value for
205         the new nesting level.
207         * testsuite/libgomp.c/atomic-11.c: New test.
208         * testsuite/libgomp.c/atomic-12.c: New test.
209         * testsuite/libgomp.c/atomic-13.c: New test.
210         * testsuite/libgomp.c/atomic-14.c: New test.
211         * testsuite/libgomp.c/reduction-6.c: New test.
212         * testsuite/libgomp.c/task-5.c: New test.
213         * testsuite/libgomp.c++/atomic-2.C: New test.
214         * testsuite/libgomp.c++/atomic-3.C: New test.
215         * testsuite/libgomp.c++/atomic-4.C: New test.
216         * testsuite/libgomp.c++/atomic-5.C: New test.
217         * testsuite/libgomp.c++/atomic-6.C: New test.
218         * testsuite/libgomp.c++/atomic-7.C: New test.
219         * testsuite/libgomp.c++/atomic-8.C: New test.
220         * testsuite/libgomp.c++/atomic-9.C: New test.
221         * testsuite/libgomp.c++/task-8.C: New test.
222         * testsuite/libgomp.c++/reduction-4.C: New test.
223         * testsuite/libgomp.fortran/allocatable7.f90: New test.
224         * testsuite/libgomp.fortran/allocatable8.f90: New test.
225         * testsuite/libgomp.fortran/crayptr3.f90: New test.
226         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
227         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
228         * testsuite/libgomp.fortran/pointer1.f90: New test.
229         * testsuite/libgomp.fortran/pointer2.f90: New test.
230         * testsuite/libgomp.fortran/task4.f90: New test.
232 2011-08-02  Tobias Burnus  <burnus@net-b.de>
234         * libgomp.texi: Update OpenMP spec references to 3.1.
235         (omp_in_final,OMP_PROC_BIND): New sections.
236         (OMP_NUM_THREADS): Document that the value can be now a list.
237         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
239 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
241         * config/linux/x86/futex.h: Check __x86_64__ instead of
242         __LP64__.
244 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
246         PR middle-end/49897
247         PR middle-end/49898
248         * testsuite/libgomp.c/pr49897-1.c: New test.
249         * testsuite/libgomp.c/pr49897-2.c: New test.
250         * testsuite/libgomp.c/pr49898-1.c: New test.
251         * testsuite/libgomp.c/pr49898-2.c: New test.
253 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
255         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
256         for ia32 instead of ilp32.
258         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
259         * testsuite/libgomp.c/atomic-6.c: Likewise.
261 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
263         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
264         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
266 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
268         PR libgomp/45351
269         * config/osf/sem.h: New file.
270         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
272 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
274         PR target/49541
275         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
276         ldflags.
278 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
280         * config/linux/wait.h (do_spin): New inline, largely copied
281         from do_wait, just don't do futex_wait here, instead return true if
282         it should be done.
283         (do_wait): Implement using do_spin.
284         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
285         to prototype.
286         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
287         __sync_bool_compare_and_swap, pass the oldval to
288         gomp_mutex_lock_slow.
289         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
290         If all mutex contenders are just spinning and not sleeping, don't
291         change state to 2 unnecessarily.  Optimize the loop when state has
292         already become 2 to use just one atomic operation per loop instead
293         of two.
294         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
295         to prototype.
296         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
297         __sync_bool_compare_and_swap, pass the oldval to
298         gomp_mutex_lock_slow.
300 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
302         PR libgomp/49490
303         * iter.c (gomp_iter_static_next): For chunk size 0
304         only use n ceil/ nthreads size for the first
305         n % nthreads threads in the team instead of
306         all threads except for the last few ones which
307         get less work or none at all.
308         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
309         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
310         chunk argument, set run_sched_modifier to 0 for static
311         resp. 1 for other kinds.  If chunk argument is 0
312         and not static, set value to 1.
314 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
316         PR c++/49043
317         * testsuite/libgomp.c++/pr49043.C: New test.
319         PR c++/48869
320         * testsuite/libgomp.c++/pr48869.C: New test.
322 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
324         PR fortran/48894
325         * fortran.c: Include limits.h.
326         (TO_INT): Define.
327         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
328         *set.
329         (omp_set_num_threads_8_, omp_set_schedule_8_,
330         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
331         omp_get_team_size_8_): Use TO_INT macro.
332         * testsuite/libgomp.fortran/pr48894.f90: New test.
334 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
336         PR middle-end/48591
337         * testsuite/libgomp.c/pr48591.c: New test.
339 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
341         PR bootstrap/48135
342         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
343         * configure: Regenerate.
345 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
347         PR fortran/47886
348         * testsuite/libgomp.fortran/task3.f90: New test.
350 2011-02-24  Tobias Burnus  <burnus@net-b.de>
352         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
354 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
356         PR libgomp/47854
357         * libgomp.texi (omp_get_wtime): Don't say time in the past
358         must be Unix Epoch.
360 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
362         PR libgomp/47804
363         * testsuite/libgomp.fortran/fortran.exp: Check for both
364         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
365         but $blddir != "", still append ${blddir}/${lang_library_path}
366         to ld_library_path.
368 2011-02-16  Tobias Burnus  <burnus@net-b.de>
370         PR libgomp/47758
371         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
372         of libquadmath.a before adding its libpath to ldflags.
374 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
376         PR libgomp/47731
377         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
378         to FUTEX_WAIT futex syscall.
379         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
381 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
383         * configure: Regenerate.
385 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
387         PR libstdc++/36104
388         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
390 2011-01-16  Gerald Pfeifer
392         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
394 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
396         PR fortran/46874
397         * libgomp.fortran/allocatable6.f90: New test.
399 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
401         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
402         * configure: Regenerate.
404 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
406         PR target/40125
407         PR lto/46695
408         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
409         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
410         * aclocal.m4: Regenerate.
411         * configure: Regenerate.
412         * Makefile.in: Regenerate.
413         * testsuite/Makefile.in: Regenerate.
415 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
417         PR fortran/46753
418         * libgomp.fortran/pr46753.f90: New test.
420         PR libgomp/43706
421         * env.c (initialize_env): Default to spin count 300000
422         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
423         is specified.
425         PR libgomp/45240
426         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
427         at the end if sync builtins aren't supported.
429 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
431         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
433 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
435         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
437 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
439         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
441 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
442             Tobias Burnus  <burnus@net-b.de>
444         PR fortran/32049
445         * configure.ac:
446         * configure: Regenerate.
448 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
450         * config/linux/futex.h: New.
451         * config/linux/arm/mutex.h: New.
452         * configure.tgt (arm*-*-linux*): Add config path.
454 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
456         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
458 2010-09-23  Tobias Burnus  <burnus@net-b.de>
460         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
461         Change Fortran datatype to LOGICAL.
462         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
463         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
465 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
467         * configure: Regenerate.
469 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
471         * libgomp.texi: Add function keyword to a couple of Fortran
472         interfaces, use integer instead of int for Fortran.
474 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
476         * libgomp.texi: Fix spelling and pasto problems throughout.
477         Adjust prototypes to match code.
479 2010-07-24  Tobias Burnus  <burnus@net-b.de>
481         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
482         silence -fwhole-file warning.
484 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
486         * configure.tgt (*-*-solaris2.[56]*): Removed.
488 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
490         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
491         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
492         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
493         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
494         targetting solaris2*.
495         * configure: Regenerate.
496         * config.h.in: Regenerate.
498         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
499         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
500         Add libgomp_version_dep.
501         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
502         versioning.
503         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
504         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
505         * Makefile.in: Regenerate.
507         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
508         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
509         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
510         to common block, protected by
511         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
513 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
515         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
517 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
519         PR bootstrap/43170
520         * configure: Regenerate.
522 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
524         PR other/43620
525         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
526         * configure: Regenerate.
527         * Makefile.in: Regenerate.
528         * testsuite/Makefile.in: Regenerate.
530 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
532         PR c/43893
533         * testsuite/libgomp.c/pr43893.c: New test.
534         * testsuite/libgomp.c++/pr43893.C: New test.
536 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
538         PR middle-end/43570
539         * testsuite/libgomp.fortran/vla8.f90: New test.
541 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
543         PR libgomp/43706
544         * config/linux/affinity.c (gomp_init_affinity): Decrease
545         gomp_available_cpus if affinity mask confines the process to fewer
546         CPUs.
547         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
548         non-NULL, just return gomp_available_cpus.
550         PR libgomp/43569
551         * sections.c (gomp_sections_init): Initialize ws->mode.
553 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
555         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
556         not unused bar variable.
557         * configure: Regenerate.
559 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
561         * Makefile.in: Regenerate.
562         * aclocal.m4: Regenerate.
563         * testsuite/Makefile.in: Regenerate.
565 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
567         PR libgomp/42942
568         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
569         (initialize_env): Adjust callers.
570         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
571         when the argument is 0.
573         * testsuite/libgomp.c/pr42942.c: New test.
575 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
577         PR middle-end/42644
578         PR middle-end/42130
579         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
580         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
582 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
584         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
585         * testsuite/libgomp.c++/task-6.C: Likewise.
587 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
589         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
591 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
593         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
594         * configure: Regenerate.
596 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
598         PR fortran/42866
599         * testsuite/libgomp.fortran/allocatable5.f90: New test.
601 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
603         * configure.ac: Test for executability of GFORTRAN.
604         * configure: Regenerate.
606 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
608         * configure: Regenerate.
610 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
612         PR libgomp/42602
613         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
615 2010-01-03  Richard Guenther  <rguenther@suse.de>
617         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
619 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
621         * testsuite/libgomp.graphite/pr4118.c: New.
623 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
625         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
626         for darwin, protect the test with require-effective-target tls_runtime.
627         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
629 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
631         PR target/41605
632         * testsuite/lib/libgomp.exp: Provide -B options to allow for
633         link spec %s substitutions for static libraries.
635 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
637         PR testsuite/42135
638         * libgomp.graphite/force-parallel-2.c: Reduce array size.
640 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
642         * Makefile.in: Regenerate.
643         * configure: Regenerate.
644         * testsuite/Makefile.in: Regenerate.
646 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
648         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
649         settings for LC_ALL and LANG.
651 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
653         PR fortran/42162
654         * testsuite/libgomp.fortran/pr42162.f90: New test.
656 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
658         PR middle-end/42029
659         * testsuite/libgomp.c/pr42029.c: New test.
661 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
663         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
664         *s.  Accept ld version without text in ()s.
665         * configure: Regenerated.
667 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
669         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
671 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
673         PR libgomp/41418
674         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
675         or a hyphen (happens with fortran language disabled).
676         * configure: Regenerate.
678 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
680         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
681         use sed script portable to Solaris /bin/sed for extracting ld
682         version.
683         * configure: Regenerate.
685 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
687         * testsuite/libgomp.graphite/bounds.c: New test.
689 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
691         * Makefile.am (libgomp_la_LINK): New.
692         * Makefile.in: Regenerate.
694 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
696         * configure.ac (AC_PREREQ): Bump to 2.64.
698 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
700         * Makefile.am (install-html, install-pdf): Remove.
701         * Makefile.in: Regenerate.
703         * Makefile.in: Regenerate.
704         * aclocal.m4: Regenerate.
705         * config.h.in: Regenerate.
706         * configure: Regenerate.
707         * testsuite/Makefile.in: Regenerate.
709 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
711         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
712         * Makefile.in: Regenerate.
714 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
716         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
717         * Makefile.in: Regenerate.
719 2009-08-19  Tobias Burnus  <burnus@net-b.de>
721         PR fortran/41102
722         omp_lib.h.in: Fix -std=f95 errors.
725 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
727         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
728         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
729         * testsuite/libgomp.graphite/graphite.exp: New.
731 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
733         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
734         only build.
736 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
738         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
739         needed memory barrier semantics.
740         * config/linux/mips/mutex.h: New file.
742 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
744         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
746 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
748         * configure: Regenerate.
750 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
752         PR testsuite/40699
753         PR testsuite/40707
754         PR testsuite/40709
755         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
756         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
757         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
759 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
761         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
762         options when choosing a multilib.
764 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
766         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
767         ld_library_path.  Use add_path.  Add just find_libgcc_s to
768         ld_library_path, not every libgcc multilib directory.
769         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
770         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
771         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
772         Use add_path.
773         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
775 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
777         * Makefile.am (LTLDFLAGS): Define.
778         (LINK): Define.
779         * Makefile.in: Regenerate.
781 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
783         PR fortran/39718
784         * testsuite/libgomp.fortran/fortran.exp: Don't link with
785         libgfortranbegin, check existence of libgfortran.a instead of
786         libgfortranbegin.a.
788 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
790         PR libgomp/40174
791         * team.c (gomp_thread_start): Destroy thr->release semaphore.
792         (gomp_free_pool_helper): Likewise.
794 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
795             Jakub Jelinek  <jakub@redhat.com>
797         PR fortran/35423
798         * testsuite/libgomp.fortran/workshare2.f90: New test.
800 2009-04-09  Nick Clifton  <nickc@redhat.com>
802         * iter.c: Change copyright header to refer to version 3 of the
803         GNU General Public License with version 3.1 of the GCC Runtime
804         Library Exception and to point readers at the COPYING3 and
805         COPYING3.RUNTIME files and the FSF's license web page.
806         * alloc.c: Likewise.
807         * barrier.c: Likewise.
808         * config/bsd/proc.c: Likewise.
809         * config/linux/affinity.c: Likewise.
810         * config/linux/alpha/futex.h: Likewise.
811         * config/linux/bar.c: Likewise.
812         * config/linux/bar.h: Likewise.
813         * config/linux/ia64/futex.h: Likewise.
814         * config/linux/ia64/mutex.h: Likewise.
815         * config/linux/lock.c: Likewise.
816         * config/linux/mips/futex.h: Likewise.
817         * config/linux/mutex.c: Likewise.
818         * config/linux/mutex.h: Likewise.
819         * config/linux/powerpc/futex.h: Likewise.
820         * config/linux/proc.c: Likewise.
821         * config/linux/ptrlock.c: Likewise.
822         * config/linux/ptrlock.h: Likewise.
823         * config/linux/s390/futex.h: Likewise.
824         * config/linux/sem.c: Likewise.
825         * config/linux/sem.h: Likewise.
826         * config/linux/sparc/futex.h: Likewise.
827         * config/linux/wait.h: Likewise.
828         * config/linux/x86/futex.h: Likewise.
829         * config/mingw32/proc.c: Likewise.
830         * config/mingw32/time.c: Likewise.
831         * config/posix/affinity.c: Likewise.
832         * config/posix/bar.c: Likewise.
833         * config/posix/bar.h: Likewise.
834         * config/posix/lock.c: Likewise.
835         * config/posix/mutex.h: Likewise.
836         * config/posix/proc.c: Likewise.
837         * config/posix/ptrlock.h: Likewise.
838         * config/posix/sem.c: Likewise.
839         * config/posix/sem.h: Likewise.
840         * config/posix/time.c: Likewise.
841         * config/posix95/lock.c: Likewise.
842         * critical.c: Likewise.
843         * env.c: Likewise.
844         * error.c: Likewise.
845         * fortran.c: Likewise.
846         * iter_ull.c: Likewise.
847         * libgomp.h: Likewise.
848         * libgomp_f.h.in: Likewise.
849         * libgomp_g.h: Likewise.
850         * loop.c: Likewise.
851         * loop_ull.c: Likewise.
852         * omp.h.in: Likewise.
853         * omp_lib.f90.in: Likewise.
854         * omp_lib.h.in: Likewise.
855         * ordered.c: Likewise.
856         * parallel.c: Likewise.
857         * sections.c: Likewise.
858         * single.c: Likewise.
859         * task.c: Likewise.
860         * team.c: Likewise.
861         * work.c: Likewise.
863 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
865         * testsuite/config/default.exp: Change copyright header to refer to
866         version 3 of the GNU General Public License and to point readers
867         at the COPYING3 file and the FSF's license web page.
869 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
871         PR middle-end/39573
872         * libgomp.c++/pr39573.C: New test.
874 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
876         PR other/39591
877         * testsuite/libgomp.c/pr39591-1.c: New test.
878         * testsuite/libgomp.c/pr39591-2.c: New test.
879         * testsuite/libgomp.c/pr39591-3.c: New test.
881 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
883         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
884         * testsuite/libgomp.c/atomic-6.c: Ditto.
886 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
888         PR c/39495
889         * testsuite/libgomp.c/loop-12.c: New test.
890         * testsuite/libgomp.c/loop-11.c: New test.
891         * testsuite/libgomp.c++/loop-11.C: New test.
892         * testsuite/libgomp.c++/loop-12.C: New test.
893         * testsuite/libgomp.c++/for-8.C: New test.
895 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
897         * configure: Regenerate.
899 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
901         PR middle-end/39154
902         * testsuite/libgomp.c/pr39154.c: New test.
904 2009-01-30  Ian Lance Taylor  <iant@google.com>
906         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
907         libgomp_ld_is_gold.  Get gold version number.
908         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
909         * configure: Rebuild.
911 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
913         * testsuite/lib/libgomp.exp: Add -B option for targets that
914         use libgfortran.a%s in their specs.
916 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
918         PR libgomp/38086
919         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
920         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
921         HAVE_AS_SYMVER_DIRECTIVE is not defined.
922         * configure: Regenerated.
923         * config.h.in: Likewise.
925 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
927         PR c++/38650
928         * testsuite/libgomp.c/pr38650.c: New test.
929         * testsuite/libgomp.c++/pr38650.C: New test.
931 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
933         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
935 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
937         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
939 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
941         * configure: Regenerate.
943 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
945         PR middle-end/36802
946         * testsuite/libgomp.c/pr36802-1.c: New test.
947         * testsuite/libgomp.c/pr36802-2.c: New test.
948         * testsuite/libgomp.c/pr36802-3.c: New test.
950 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
952         PR libgomp/38270
953         * config/linux/powerpc/mutex.h: New.
955 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
957         PR c++/38257
958         * testsuite/libgomp.c++/for-7.C: New test.
960         PR c++/38348
961         * testsuite/libgomp.c++/for-6.C: New test.
963 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
965         PR testsuite/28870
966         * testsuite/lib/libgomp.exp: Include new timeout library files.
967         (libgomp_target_compile): Set timeout value from new proc.
969 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
971         PR libgomp/37938
972         * config/linux/ia64/mutex.h: New.
974 2008-11-04  Tobias Burnus  <burnus@net-b.de>
976         PR libgomp/37935
977         * libgomp.texi (Runtime library routines, environment variables):
978         Update for OpenMP version 3.0.
980 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
981             Steve Ellcey  <sje@cup.hp.com>
983         * configure: Regenerate for new libtool.
984         * Makefile.in: Ditto.
985         * testsuite/Makefile.in: Ditto.
987 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
988             Andreas Tobler  <a.tobler@schweiz.org>
990         * config/bsd/proc.c: New file.
991         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
992         * configure.ac: Check for header <sys/sysctl.h>
993         * configure: Regenerate.
994         * config.h.in: Likewise.
996 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
998         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1000 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1002         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1003         * Makefile.in: Regenerated.
1004         * testsuite/Makefile.in: Regenerated.
1006 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1008         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1009         depend on blddir if blddir exists.
1010         (libgomp_target_compile): Likewise.
1011         * testsuite/libgomp.c++/c++.exp: Likewise.
1012         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1014 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1016         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1017         Do not list GPL as Invariant Section.
1019 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1020             Chao-ying Fu  <fu@mips.com>
1022         * configure.tgt: Enable futex for MIPS.
1023         * config/linux/mips/futex.h: New file.
1025 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1027         * team.c (gomp_team_end): Free team immediately if it has
1028         just one thread.
1030 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1032         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1033         * testsuite/libgomp.fortran/fortran.exp: Same.
1034         * testsuite/libgomp.c/c.exp: Same.
1035         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1036         directory to library path first.
1038 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1040         * env.c (parse_stacksize): Add cast to avoid warning.
1041         (parse_spincount): Likewise.
1043 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1045         * testsuite/libgomp.c/loop-10.c: New test.
1046         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1047         * libgomp.c++/loop-6.C (main): Likewise.
1049         PR debug/36617
1050         * testsuite/libgomp.c/debug-1.c: New test.
1052 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1054         * testsuite/libgomp.c/nqueens-1.c: New test.
1056         PR c++/36523
1057         * testsuite/libgomp.c++/task-7.C: New function.
1059 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1061         * configure: Regenerate.
1063 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1065         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1066         mutex when HAVE_SYNC_BUILTINS isn't defined.
1068 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1070         * libgomp.texi (omp_test_lock): Fix typo.
1072 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1074         * omp_lib.f90.in: Add "implicit none".
1076 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1078         PR middle-end/36506
1079         * testsuite/libgomp.c/reduction-5.c: New test.
1081 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1083         * libgomp.h (struct gomp_task): Add in_tied_task field.
1084         * task.c (gomp_init_task): Initialize it.
1085         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1086         unconditionally.  Don't call gomp_team_barrier_wake if
1087         current task is implicit or if(0) from implicit and number of
1088         running tasks is equal to nthreads - 1.
1090         PR libgomp/36471
1091         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1092         omp_get_team_size_8): Fix pastos.
1094         PR libgomp/36469
1095         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1096         * configure: Regenerated.
1097         * config.h.in: Regenerated.
1098         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1099         defined.
1101 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1103         PR bootstrap/36452
1104         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1105         (GOMP_loop_ull_dynamic_start): Likewise.
1106         (GOMP_loop_ull_guided_start): Likewise.
1107         (GOMP_loop_ull_ordered_static_start): Likewise.
1108         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1109         (GOMP_loop_ull_ordered_guided_start): Likewise.
1111 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1112             Richard Henderson  <rth@redhat.com>
1113             Ulrich Drepper  <drepper@redhat.com>
1114             Jakob Blomer  <jakob.blomer@ira.uka.de>
1116         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1117         Substitute also OMP_*LOCK_25*.
1118         * configure: Regenerated.
1119         * config.h.in: Regenerated.
1120         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1121         ptrlock.c and task.c.
1122         * Makefile.in: Regenerated.
1123         * testsuite/Makefile.in: Regenerated.
1124         * task.c: New file.
1125         * loop_ull.c: New file.
1126         * iter_ull.c: New file.
1127         * libgomp.h: Include ptrlock.h.
1128         (enum gomp_task_kind): New type.
1129         (struct gomp_team): Add task_lock, task_queue, task_count,
1130         task_running_count, single_count fields.  Add
1131         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1132         Remove work_share_lock, generation_mask,
1133         oldest_live_gen, num_live_gen and init_work_shares fields, add
1134         work work_share_list_alloc, work_share_list_free and work_share_chunk
1135         fields.  Change work_shares from pointer to pointers into an array.
1136         Change ordered_release field into gomp_sem_t ** from flexible array
1137         member.  Add implicit_task and initial_work_shares fields.
1138         Move close to the end of the struct.
1139         (struct gomp_team_state): Add single_count, last_work_share,
1140         active_level and level fields, remove work_share_generation.
1141         (gomp_barrier_handle_tasks): New prototype.
1142         (gomp_finish_task): New inline function.
1143         (struct gomp_work_share): Move chunk_size, end, incr into
1144         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1145         next_ll fields.  Reshuffle fields.  Add next_alloc,
1146         next_ws, next_free and inline_ordered_team_ids fields, change
1147         ordered_team_ids into pointer from flexible array member.
1148         Add mode field.  Put lock and next into a different cache line
1149         from most of the write-once fields.
1150         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1151         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1152         gomp_iter_ull_guided_next): New prototypes.
1153         (gomp_new_icv): New prototype.
1154         (struct gomp_thread): Add thread_pool and task fields.
1155         (struct gomp_thread_pool): New type.
1156         (gomp_new_team): New prototype.
1157         (gomp_team_start): Change type of last argument.
1158         (gomp_new_work_share): Removed.
1159         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1160         (gomp_work_share_init_done): New static inline.
1161         (gomp_throttled_spin_count_var, gomp_available_cpus,
1162         gomp_managed_threads): New extern decls.
1163         (gomp_init_task): New prototype.
1164         (gomp_spin_count_var): New extern var decl.
1165         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1166         or no alias support, or if not PIC.
1167         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1168         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1169         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1170         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1171         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1172         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1173         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1174         gomp_test_nest_lock_25): New prototypes.
1175         (omp_lock_symver, strong_alias): Define.
1176         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1177         decls.
1178         (gomp_end_task): New.
1179         (struct gomp_task_icv, gomp_global_icv): New.
1180         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1181         (struct gomp_task): New.
1182         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1183         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1184         (gomp_icv): New.
1185         (gomp_schedule_type): Reorder enum to match
1186         omp_sched_t.
1187         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1188         fields.
1189         (gomp_thread_start): Add gomp_team_barrier_wait call.
1190         For non-nested case remove clearing of docked thread thr fields.
1191         Use pool fields instead of global gomp_* variables.  Use
1192         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1193         Create tasks for each member thread.
1194         (free_team): Only destroy team barrier, task_lock here and free it.
1195         (gomp_free_thread): Free last_team if non-NULL.
1196         (gomp_team_end): Call gomp_team_barrier_wait instead of
1197         gomp_barrier_wait.  For nested case call one extra
1198         gomp_barrier_wait.  Move here some destruction from free_team.
1199         Call free_team on pool->last_team if any, rather than freeing
1200         current team.  Destroy work_share_list_free_lock ifndef
1201         HAVE_SYNC_BUILTINS.
1202         (gomp_new_icv): New function.
1203         (gomp_threads, gomp_threads_size, gomp_threads_used,
1204         gomp_threads_dock): Removed.
1205         (gomp_thread_destructor): New variable.
1206         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1207         functions.
1208         (gomp_team_start): Create new pool if current thread doesn't have
1209         one.  Use pool fields instead of global gomp_* variables.
1210         Initialize thread_pool field for new threads.  Clear single_count.
1211         Change last argument from ws to team, don't create
1212         new team, set ts.work_share to &team->work_shares[0] and clear
1213         ts.last_work_share.  Don't clear ts.work_share_generation.
1214         If number of threads changed, adjust atomically gomp_managed_threads.
1215         Use gomp_init_task instead of gomp_new_task,
1216         set thr->task to the corresponding implicit_task array entry.
1217         Create tasks for each member thread.  Initialize ts.level.
1218         (initialize_team): Call pthread_key_create on
1219         gomp_thread_destructor.
1220         (team_destructor): New function.
1221         (new_team): Removed.
1222         (gomp_new_team): New function.
1223         (free_team): Free gomp_work_share blocks chained through next_alloc,
1224         instead of freeing work_shares and destroying work_share_lock.
1225         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1226         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1227         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1228         of gomp_barrier_wait.
1229         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1230         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1231         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1232         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1233         of gomp_barrier_wait.
1234         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1235         gomp_work_share_init_done if gomp_work_share_start returned true.
1236         Don't unlock ws->lock.
1237         * work.c: Include stddef.h.
1238         (free_work_share): Use work_share_list_free_lock instead
1239         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1240         Call gomp_fini_work_share and then either free ws if orphaned, or
1241         put it into work_share_list_free list of the current team.
1242         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1243         functions.
1244         (gomp_work_share_start, gomp_work_share_end,
1245         gomp_work_share_end_nowait): Rewritten.
1246         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1247         (openmp_version): Set to 200805.
1248         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1249         omp_sched_guided, omp_sched_auto): New parameters.
1250         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1251         omp_set_max_active_levels, omp_get_max_active_levels,
1252         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1253         omp_get_active_level): New interfaces.
1254         * omp_lib.h.in (openmp_version): Set to 200805.
1255         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1256         omp_sched_guided, omp_sched_auto): New parameters.
1257         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1258         omp_set_max_active_levels, omp_get_max_active_levels,
1259         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1260         omp_get_active_level): New externals.
1261         * loop.c: Include limits.h.
1262         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1263         GFS_AUTO.
1264         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1265         Likewise.  Use gomp_icv.
1266         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1267         ts.static_trip here.
1268         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1269         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1270         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1271         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1272         don't unlock ws->lock, otherwise lock it.
1273         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1274         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1275         (gomp_parallel_loop_start): Call gomp_new_team instead of
1276         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1277         Adjust gomp_team_start caller.  Pass 0 as second argument to
1278         gomp_resolve_num_threads.
1279         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1280         If adding ws->chunk_size nthreads + 1 times after end won't
1281         overflow, set ws->mode to 1.
1282         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1283         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1284         GOMP_loop_ull_ordered_static_start,
1285         GOMP_loop_ull_ordered_dynamic_start,
1286         GOMP_loop_ull_ordered_guided_start,
1287         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1288         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1289         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1290         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1291         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1292         prototypes.
1293         * libgomp.map: Export lock routines also @@OMP_2.0.
1294         (GOMP_loop_ordered_dynamic_first,
1295         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1296         GOMP_loop_ordered_static_first): Remove.
1297         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1298         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1299         GOMP_loop_ull_ordered_dynamic_next,
1300         GOMP_loop_ull_ordered_dynamic_start,
1301         GOMP_loop_ull_ordered_guided_next,
1302         GOMP_loop_ull_ordered_guided_start,
1303         GOMP_loop_ull_ordered_runtime_next,
1304         GOMP_loop_ull_ordered_runtime_start,
1305         GOMP_loop_ull_ordered_static_next,
1306         GOMP_loop_ull_ordered_static_start,
1307         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1308         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1309         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1310         (omp_set_schedule, omp_get_schedule,
1311         omp_get_thread_limit, omp_set_max_active_levels,
1312         omp_get_max_active_levels, omp_get_level,
1313         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1314         omp_set_schedule_, omp_set_schedule_8_,
1315         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1316         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1317         omp_get_max_active_levels_, omp_get_level_,
1318         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1319         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1320         New exports @@OMP_3.0.
1321         * omp.h.in (omp_sched_t): New type.
1322         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1323         omp_set_max_active_levels, omp_get_max_active_levels,
1324         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1325         omp_get_active_level): New prototypes.
1326         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1327         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1328         gomp_thread_limit_var, gomp_remaining_threads_count,
1329         gomp_remaining_threads_lock): New variables.
1330         (parse_spincount): New function.
1331         (initialize_env): Call gomp_init_num_threads unconditionally.
1332         Initialize gomp_available_cpus.  Call parse_spincount,
1333         initialize gomp_{,throttled_}spin_count_var
1334         depending on presence and value of OMP_WAIT_POLICY and
1335         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1336         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1337         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1338         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1339         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1340         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1341         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1342         (gomp_global_icv): New.
1343         (parse_schedule): Use it.  Parse "auto".
1344         (omp_set_num_threads): Use gomp_icv.
1345         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1346         Likewise.
1347         (omp_get_max_threads): Move from parallel.c.
1348         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1349         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1350         add ialias.
1351         (parse_stacksize, parse_wait_policy): New functions.
1352         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1353         both wrappers for compatibility and new locks.
1354         (omp_set_schedule, omp_get_schedule,
1355         omp_get_thread_limit, omp_set_max_active_levels,
1356         omp_get_max_active_levels, omp_get_level,
1357         omp_get_ancestor_thread_num, omp_get_team_size,
1358         omp_get_active_level): New ialias_redirect.
1359         (omp_set_schedule_, omp_set_schedule_8_,
1360         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1361         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1362         omp_get_max_active_levels_, omp_get_level_,
1363         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1364         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1365         New functions.
1366         * parallel.c: Include limits.h.
1367         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1368         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1369         argument to gomp_team_start.  Pass 0 as second argument to
1370         gomp_resolve_num_threads.
1371         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1372         if gomp_thread_limit_var != ULONG_MAX.
1373         (omp_in_parallel): Implement using ts.active_level.
1374         (omp_get_max_threads): Move to env.c.
1375         (omp_get_level, omp_get_ancestor_thread_num,
1376         omp_get_team_size, omp_get_active_level): New functions,
1377         add ialias.
1378         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1379         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1380         gomp_iter_dynamic_next instead of the _locked variant and don't take
1381         lock around it, otherwise acquire it before calling
1382         gomp_iter_dynamic_next_locked.
1383         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1384         gomp_iter_dynamic_next instead of the _locked variant and don't take
1385         lock around it.
1386         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1387         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1388         Adjust gomp_team_start caller.  Pass count as second argument to
1389         gomp_resolve_num_threads, don't adjust num_threads after the call.
1390         Use gomp_icv.
1391         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1392         ws->chunk_size by incr.
1393         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1394         code.
1395         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1396         types.
1397         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1398         (omp_check_defines): Check even the compat defines.
1399         * config/linux/ptrlock.c: New file.
1400         * config/linux/ptrlock.h: New file.
1401         * config/linux/wait.h: New file.
1402         * config/posix/ptrlock.c: New file.
1403         * config/posix/ptrlock.h: New file.
1404         * config/linux/bar.h (gomp_team_barrier_wait,
1405         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1406         (gomp_team_barrier_set_task_pending,
1407         gomp_team_barrier_clear_task_pending,
1408         gomp_team_barrier_set_waiting_for_tasks,
1409         gomp_team_barrier_waiting_for_tasks,
1410         gomp_team_barrier_done): New inlines.
1411         (gomp_barrier_t): Rewritten.
1412         (gomp_barrier_state_t): New typedef.
1413         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1414         gomp_barrier_wait_start): Rewritten.
1415         (gomp_barrier_wait_end): Change second argument to
1416         gomp_barrier_state_t.
1417         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1418         inlines.
1419         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1420         futex.h.
1421         (gomp_barrier_wait_end): Rewritten.
1422         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1423         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1424         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1425         (gomp_barrier_state_t): New typedef.
1426         (gomp_team_barrier_wait,
1427         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1428         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1429         into the return value.  Return gomp_barrier_state_t.
1430         (gomp_team_barrier_set_task_pending,
1431         gomp_team_barrier_clear_task_pending,
1432         gomp_team_barrier_set_waiting_for_tasks,
1433         gomp_team_barrier_waiting_for_tasks,
1434         gomp_team_barrier_done): New inlines.
1435         (gomp_barrier_wait_end): Change second argument to
1436         gomp_barrier_state_t.
1437         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1438         inlines.
1439         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1440         (gomp_barrier_wait_end): Change second argument to
1441         gomp_barrier_state_t.
1442         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1443         gomp_team_barrier_wake): New functions.
1444         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1445         futex.h.
1446         (gomp_futex_wake, gomp_futex_wait): New variables.
1447         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1448         * config/linux/lock.c: Rewrite to make locks task owned,
1449         for backwards compatibility provide the old entrypoints
1450         if symbol versioning.  Include wait.h instead of libgomp.h and
1451         futex.h.
1452         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1453         * config/posix95/lock.c: Rewrite to make locks task owned,
1454         for backwards compatibility provide the old entrypoints
1455         if symbol versioning.
1456         * config/posix/lock.c: Rewrite to make locks task owned,
1457         for backwards compatibility provide the old entrypoints
1458         if symbol versioning.
1459         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1460         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1461         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1462         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1463         (sys_futex0): Return error code.
1464         (futex_wake, futex_wait): If ENOSYS was returned, clear
1465         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1466         (cpu_relax, atomic_write_barrier): New static inlines.
1467         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1468         (futex_wake, futex_wait): If ENOSYS was returned, clear
1469         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1470         (cpu_relax, atomic_write_barrier): New static inlines.
1471         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1472         (sys_futex0): Return error code.
1473         (futex_wake, futex_wait): If ENOSYS was returned, clear
1474         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1475         (cpu_relax, atomic_write_barrier): New static inlines.
1476         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1477         (sys_futex0): Return error code.
1478         (futex_wake, futex_wait): If ENOSYS was returned, clear
1479         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1480         (cpu_relax, atomic_write_barrier): New static inlines.
1481         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1482         (sys_futex0): Return error code.
1483         (futex_wake, futex_wait): If ENOSYS was returned, clear
1484         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1485         (cpu_relax, atomic_write_barrier): New static inlines.
1486         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1487         (sys_futex0): Return error code.
1488         (futex_wake, futex_wait): If ENOSYS was returned, clear
1489         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1490         (cpu_relax, atomic_write_barrier): New static inlines.
1491         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1492         futex.h.
1493         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1494         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1495         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1496         types.
1497         (omp_nest_lock_t): Change owner into void *, add lock field.
1498         * config/posix95/omp-lock.h: Include semaphore.h.
1499         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1500         (omp_lock_t): Use sem_t instead of mutex if semaphores
1501         aren't broken.
1502         (omp_nest_lock_t): Likewise.  Change owner to void *.
1503         * config/posix/omp-lock.h: Include semaphore.h.
1504         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1505         (omp_lock_t): Use sem_t instead of mutex if semaphores
1506         aren't broken.
1507         (omp_nest_lock_t): Likewise.  Add owner field.
1509 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1511         * testsuite/libgomp.c/collapse-1.c: New test.
1512         * testsuite/libgomp.c/collapse-2.c: New test.
1513         * testsuite/libgomp.c/collapse-3.c: New test.
1514         * testsuite/libgomp.c/icv-1.c: New test.
1515         * testsuite/libgomp.c/icv-2.c: New test.
1516         * testsuite/libgomp.c/lib-2.c: New test.
1517         * testsuite/libgomp.c/lock-1.c: New test.
1518         * testsuite/libgomp.c/lock-2.c: New test.
1519         * testsuite/libgomp.c/lock-3.c: New test.
1520         * testsuite/libgomp.c/loop-4.c: New test.
1521         * testsuite/libgomp.c/loop-5.c: New test.
1522         * testsuite/libgomp.c/loop-6.c: New test.
1523         * testsuite/libgomp.c/loop-7.c: New test.
1524         * testsuite/libgomp.c/loop-8.c: New test.
1525         * testsuite/libgomp.c/loop-9.c: New test.
1526         * testsuite/libgomp.c/nested-3.c: New test.
1527         * testsuite/libgomp.c/nestedfn-6.c: New test.
1528         * testsuite/libgomp.c/sort-1.c: New test.
1529         * testsuite/libgomp.c/task-1.c: New test.
1530         * testsuite/libgomp.c/task-2.c: New test.
1531         * testsuite/libgomp.c/task-3.c: New test.
1532         * testsuite/libgomp.c/task-4.c: New test.
1533         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1534         to C++ testsuite default compiler options.
1535         * testsuite/libgomp.c++/collapse-1.C: New test.
1536         * testsuite/libgomp.c++/collapse-2.C: New test.
1537         * testsuite/libgomp.c++/ctor-10.C: New test.
1538         * testsuite/libgomp.c++/for-1.C: New test.
1539         * testsuite/libgomp.c++/for-2.C: New test.
1540         * testsuite/libgomp.c++/for-3.C: New test.
1541         * testsuite/libgomp.c++/for-4.C: New test.
1542         * testsuite/libgomp.c++/for-5.C: New test.
1543         * testsuite/libgomp.c++/loop-8.C: New test.
1544         * testsuite/libgomp.c++/loop-9.C: New test.
1545         * testsuite/libgomp.c++/loop-10.C: New test.
1546         * testsuite/libgomp.c++/task-1.C: New test.
1547         * testsuite/libgomp.c++/task-2.C: New test.
1548         * testsuite/libgomp.c++/task-3.C: New test.
1549         * testsuite/libgomp.c++/task-4.C: New test.
1550         * testsuite/libgomp.c++/task-5.C: New test.
1551         * testsuite/libgomp.c++/task-6.C: New test.
1552         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1553         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1554         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1555         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1556         * testsuite/libgomp.fortran/collapse1.f90: New test.
1557         * testsuite/libgomp.fortran/collapse2.f90: New test.
1558         * testsuite/libgomp.fortran/collapse3.f90: New test.
1559         * testsuite/libgomp.fortran/collapse4.f90: New test.
1560         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1561         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1562         * testsuite/libgomp.fortran/lib4.f90: New test.
1563         * testsuite/libgomp.fortran/lock-1.f90: New test.
1564         * testsuite/libgomp.fortran/lock-2.f90: New test.
1565         * testsuite/libgomp.fortran/nested1.f90: New test.
1566         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1567         * testsuite/libgomp.fortran/strassen.f90: New test.
1568         * testsuite/libgomp.fortran/tabs1.f90: New test.
1569         * testsuite/libgomp.fortran/tabs2.f: New test.
1570         * testsuite/libgomp.fortran/task1.f90: New test.
1571         * testsuite/libgomp.fortran/task2.f90: New test.
1572         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1573         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1574         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1575         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1576         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1578 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1580         PR c++/36308
1581         * testsuite/libgomp.c++/ctor-11.C: New test.
1582         * testsuite/libgomp.c++/ctor-12.C: New test.
1584 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1586         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1588 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1590         PR middle-end/36106
1591         * testsuite/libgomp.c/atomic-5.c: New test.
1592         * testsuite/libgomp.c/atomic-6.c: New test.
1593         * testsuite/libgomp.c/autopar-1.c: New test.
1595 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1597         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1598         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1599         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1600         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1601         * configure: Regenerate.
1602         * Makefile.in, testsuite/Makefile.in: Likewise.
1604 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1606         PR bootstrap/35457
1607         * aclocal.m4: Regenerate.
1608         * configure: Regenerate.
1610 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1612         PR middle-end/35611
1613         * testsuite/libgomp.c/atomic-4.c: New test.
1615         PR libgomp/35625
1616         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1617         (gomp_iter_guided_next): Likewise.
1618         * testsuite/libgomp.c/pr35625.c: New test.
1620 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1622         * aclocal.m4: Regenerate.
1623         * configure: Likewise.
1624         * Makefile.in: Likewise.
1625         * testsuite/Makefile.in: Likewise.
1627 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1629         PR middle-end/35185
1630         * testsuite/libgomp.c++/pr35185.C: New test.
1632 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1634         PR middle-end/35549
1635         * testsuite/libgomp.c/pr35549.c: New test.
1637 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1639         * testsuite/libgomp.c/atomic-3.c: New test.
1641 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1643         PR fortran/33197
1644         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1645         .F08 file suffixes.
1647 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1649         PR libgomp/33131
1650         * configure.ac: Add ACX_HEADER_STRING.
1651         * env.c: Include strings.h.
1652         * aclocal.m4: Regenerate.
1653         * config.h.in: Regenerate.
1654         * configure: Regenerate.
1655         * Makefile.in: Regenerate.
1656         * testsuite/Makefile.in: Regenerate.
1658 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1660         PR middle-end/35196
1661         * testsuite/libgomp.c/pr35196.c: New test.
1663         PR middle-end/35130
1664         * testsuite/libgomp.fortran/pr35130.f90: New test.
1665         * testsuite/libgomp.c/pr35130.c: New test.
1667 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1669         PR middle-end/33880
1670         * testsuite/libgomp.c/pr33880.c: New test.
1671         * testsuite/libgomp.fortran/pr33880.f90: New test.
1673 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1675         * configure: Regenerate.
1677 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1679         * configure.ac: Move futex checking into ../config/futex.m4.
1680         * configure: Rebuilt.
1681         * aclocal.m4: Rebuilt.
1682         * Makefile.in: Rebuilt.
1684         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1685         2007-10-15 ../config/tls.m4 change.
1687 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1689         PR c++/34513
1690         * testsuite/libgomp.c/pr34513.c: New test.
1691         * testsuite/libgomp.c++/pr34513.C: New test.
1693 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1695         PR target/32765
1696         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1698 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1700         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1702 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1704         * testsuite/libgomp.c/private-1.c: New test.
1706 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1707             Paolo Bonzini  <bonzini@gnu.org>
1709         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1710         instead of 'VPATH ='.
1711         * Makefile.in: Regenerate.
1713 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1715         * configure.ac: Adjust makeinfo version check.
1716         * configure: Regenerate.
1718 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1720         PR fortran/34020
1721         * testsuite/libgomp.fortran/pr34020.f90: New test.
1723 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1725         PR c++/33894
1726         * testsuite/libgomp.c++/atomic-1.C: New test.
1728 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1730         PR libgomp/33275
1731         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1732         Make x and y integers rather than (implicit) reals.  Add private (j)
1733         clause to the last omp parallel.
1735 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1737         * configure: Regenerate following changes to ../config/tls.m4.
1739 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1741         * testsuite/libgomp.fortran/stack.f90: New test.
1743 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1745         * config/mingw32/proc.c: New file.
1747 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1749         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1750         (main): Use __get_cpuid to get i386 target fetaures.
1751         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1752         (main): Use __get_cpuid to get x86_64 target fetaures.
1754 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1756         PR target/32765
1757         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1758         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1760 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1762         PR fortran/32550
1763         * testsuite/libgomp.fortran/pr32550.f90: New test.
1764         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1766 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1768         * aclocal.m4: Regenerated.
1770 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1772         PR fortran/32359
1773         * testsuite/libgomp.fortran/pr32359.f90: New.
1775 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1777         PR libgomp/32468
1778         * sections.c (GOMP_parallel_sections_start): Only decrease
1779         number of threads to COUNT if dyn_var is true.
1780         * testsuite/libgomp.c/pr32468.c: New test.
1782 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1784         PR libgomp/26308
1785         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1787 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1789         PR middle-end/32362
1790         * testsuite/libgomp.c/pr32362-1.c: New test.
1791         * testsuite/libgomp.c/pr32362-2.c: New test.
1792         * testsuite/libgomp.c/pr32362-3.c: New test.
1794 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1796         * team.c (gomp_team_start): Fix setting up thread_attr
1797         stack size.
1799 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1801         * configure: Regenerate.
1803 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1805         * Makefile.in: Regenerate.
1806         * configure: Regenerate.
1807         * aclocal.m4: Regenerate.
1808         * testsuite/Makefile.in: Regenerate.
1810 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1812         * config/linux/proc.c: New file.
1814         PR libgomp/28482
1815         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1817 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1819         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1821 2007-04-16  Matthias Klose  <doko@debian.org>
1823         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1824         flags if not building with -m64.
1825         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1826         flag for i?86-*-* targets, if current target matches -m64.
1828 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1830         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1831         * Makefile.in: Regenerate.
1833 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1835         PR testsuite/31369
1836         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1837         ld_library_path.
1838         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1840 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1842         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1843         decls.
1844         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1845         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1846         (parse_affinity): New function.
1847         (initialize_env): Call it and gomp_init_affinity.
1848         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1849         create new pthread_attr_t and call gomp_init_thread_affinity
1850         on it for each thread before passing the attribute to pthread_create.
1851         * config/linux/affinity.c: New file.
1852         * config/posix/affinity.c: New file.
1853         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1854         * configure: Rebuilt.
1855         * config.h.in: Rebuilt.
1856         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1857         * Makefile.in: Rebuilt.
1859 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1861         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1862         *-*-darwin*.
1863         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1864         and use it if found.
1866 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1868         * testsuite/config/default.exp: New file.
1869         * testsuite/lib/libgomp.exp: New file.
1870         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1871         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1872         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1873         (libgomp_load): Remove.
1874         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1875         always_ld_library_path, not ld_library_path.  Set additional_flags
1876         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1877         (target_compile): Do not call libgomp_init.  Append lang_library_path
1878         and lang_link_flags to options.
1879         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1880         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1881         here.
1882         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1883         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1884         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1885         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1886         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1887         CX8 flag.
1888         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1889         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1890         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1891         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1892         * testsuite/libgomp.c/atomic-10.c: Ditto.
1894 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1896         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1897         dg-final cleanup-modules line.
1898         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1899         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1900         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1901         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1902         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1903         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1904         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1906 2007-03-18  Andreas Schwab  <schwab@suse.de>
1908         * acinclude.m4: Adjust regular expression for ld version
1909         extraction.
1910         * configure: Regenerate.
1912 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1914         * Makefile.am: Add install-pdf target as copied from
1915         automake v1.10 rules.
1916         * Makefile.in: Regenerate
1918 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1920         PR libgomp/28486
1921         * configure: Regenerate.
1923         PR c++/30703
1924         * testsuite/libgomp.c++/pr30703.C: New test.
1926 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1928         Revert:
1929         2006-07-05  Eric Christopher  <echristo@apple.com>
1930         * configure.ac: Depend addition of -pthread on host OS.
1931         * configure: Regenerate.
1933 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1935         * libgomp.texi: Fix spacing after abbreviations.
1937 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1939         PR libgomp/30546
1940         * configure.ac: Add check for makeinfo
1941         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1942         if an appropiate version of makeinfo is found.
1943         * aclocal.m4: Regenerated.
1944         * configure: Regenerated.
1945         * Makefile.in: Regenerated.
1946         * testsuite/Makefile.in: Regenerated.
1948 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1950         PR libgomp/30540
1951         * libgomp.texi: More about implementation-dependent settings.
1953 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1955         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1957 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1959         PR middle-end/30494
1960         * testsuite/libgomp.c/pr30494.c: New test.
1962 2007-01-15  Tom Tromey  <tromey@redhat.com>
1964         * configure: Rebuilt.
1965         * configure.ac: Fixed comment.
1967 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1969         * libgomp.texi: Document implementation specific default values of
1970         environment variables.
1972 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1974         PR libgomp/28209
1975         * libgomp.texi: New file.
1976         * configure.ac: Add --enable-generated-files-in-srcdir option.
1977         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1978         files to srcdir.
1979         * Makefile.in: Regenerated.
1980         * config.h.in: Regenerated.
1981         * testsuite/Makefile.in: Regenerated.
1982         * NOTES: Removed.
1984 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1986         PR libgomp/29949
1987         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1989 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1991         * configure: Regenerate.
1993 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1995         PR libgomp/29947
1996         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1997         start if there shouldn't be any loop iterations.
1998         (gomp_loop_ordered_static_start): Remove start == end test.
1999         * testsuite/libgomp.c/pr29947-1.c: New test.
2000         * testsuite/libgomp.c/pr29947-2.c: New test.
2002 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2004         * configure.tgt: Force initial-exec TLS model on Linux only.
2006 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2008         * configure: Regenerated.
2010 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2012         * env.c (parse_schedule): Reject out of range values.
2013         (parse_unsigned_long): Reject out of range, negative or zero values.
2015 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2017         PR fortran/29629
2018         * testsuite/libgomp.fortran/pr29629.f90: New test.
2020 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2022         PR libgomp/29494
2023         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2024         * config/posix95: New directory.
2025         * config/posix95/omp-lock.h: New file.
2026         * config/posix95/lock.c: Likewise.
2028 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2030         * aclocal.m4: Regenerate.
2031         * configure: Regenerate.
2033 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2035         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2036         '<' to '<='.
2038 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2040         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2041         test.
2042         * configure: Regenerate.
2043         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2045 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2047         PR middle-end/25261
2048         PR middle-end/28790
2049         * testsuite/libgomp.c/nestedfn-4.c: New test.
2050         * testsuite/libgomp.c/nestedfn-5.c: New test.
2051         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2053         PR fortran/29097
2054         * testsuite/libgomp.fortran/condinc1.f: New test.
2055         * testsuite/libgomp.fortran/condinc2.f: New test.
2056         * testsuite/libgomp.fortran/condinc3.f90: New test.
2057         * testsuite/libgomp.fortran/condinc4.f90: New test.
2058         * testsuite/libgomp.fortran/condinc1.inc: New file.
2060 2006-09-18  Tom Tromey  <tromey@redhat.com>
2062         * configure: Rebuilt.
2064 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2066         PR c/28768
2067         PR preprocessor/14634
2068         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2069         to AC_DEFINE.
2070         * configure: Regenerate.
2072 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2074         * testsuite/libgomp.fortran/reduction3.f90: Change
2075         -2147483648 to -huge(i)-1 to avoid overflow.
2076         * testsuite/libgomp.fortran/reduction4.f90: Change
2077         Z'ffffffff' to not(0) to avoid overflow.
2079 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2081         PR libgomp/25938
2082         * Makefile.am (libsubincludedir): New.
2083         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2084         * Makefile.in: Regenerate.
2086 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2088         PR libgomp/28725
2089         * env.c: Include ctype.h.
2090         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2091         leading and/or trailing whitespace and compare strings case
2092         insensitively.
2094 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2096         PR fortran/28390
2097         * testsuite/libgomp.fortran/pr28390.f: New test.
2099 2006-07-05  Eric Christopher  <echristo@apple.com>
2101         * configure.ac: Depend addition of -pthread on host OS.
2102         * configure: Regenerate.
2104 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2106         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2107         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2108         defined.
2110 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2112         PR libgomp/26175
2113         PR libgomp/26477
2114         * configure.ac: If neither --enable-linux-futex nor
2115         --disable-linux-futex is passed, determine the default by checking
2116         for compiling and/or running against NPTL.  With --enable-linux-futex,
2117         check if SYS_gettid and SYS_futex are defined.
2118         * configure: Rebuilt.
2120 2006-06-14  Richard Henderson  <rth@redhat.com>
2122         PR libgomp/28008
2123         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2124         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2126 2006-06-09  Richard Henderson  <rth@redhat.com>
2128         * env.c (gomp_nthreads_var): Change to unsigned long.
2129         (gomp_run_sched_chunk): Likewise.
2130         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2131         (initialize_env): Initialize gomp_thread_attr.
2132         * libgomp.h (gomp_nthreads_var): Update decl.
2133         (gomp_run_sched_chunk): Likewise.
2134         (gomp_thread_attr): Declare.
2135         * team.c (gomp_thread_attr): Export.
2136         (initialize_team): Don't initialize it.
2138 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2140         PR fortran/27916
2141         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2142         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2144 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2146         * config/mingw32/time.c: New file.
2147         * configure.tgt: Use it.
2149 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2151         * Makefile.am: Add install-html target. Add install-html to .PHONY
2152         * Makefile.in: Regenerate.
2154 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2156         PR libgomp/27612
2157         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2158         * testsuite/libgomp.c/critical-1.c: Likewise.
2159         * testsuite/libgomp.c/loop-1.c: Likewise.
2160         * testsuite/libgomp.c/loop-2.c: Likewise.
2161         * testsuite/libgomp.c/single-1.c: Likewise.
2162         * testsuite/libgomp.c/ordered-1.c: Likewise.
2163         * testsuite/libgomp.c/ordered-2.c: Likewise.
2165 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2167         PR middle-end/27416
2168         * libgomp.fortran/pr27416-1.f90: New test.
2170 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2172         PR fortran/27395
2173         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2174         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2176 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2178         PR c++/26943
2179         * testsuite/libgomp.c/pr26943-1.c: New test.
2180         * testsuite/libgomp.c/pr26943-2.c: New test.
2181         * testsuite/libgomp.c/pr26943-3.c: New test.
2182         * testsuite/libgomp.c/pr26943-4.c: New test.
2183         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2184         * testsuite/libgomp.c++/pr26943.C: New test.
2186 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2188         PR middle-end/27337
2189         * testsuite/libgomp.c++/pr27337.C: New test.
2191 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2193         PR c/26171
2194         * testsuite/libgomp.c/pr26171.c: New test.
2196 2006-04-25  Richard Henderson  <rth@redhat.com>
2198         PR libgomp/25865
2199         * configure.ac: Use GCC_CHECK_TLS.
2200         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2201         * Makefile.in, aclocal.m4, configure: Regenerate.
2203 2006-04-10  Matthias Klose  <doko@debian.org>
2205         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2206         directory names containing underscores.
2208 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2210         PR c++/26691
2211         * testsuite/libgomp.c++/pr26691.C: New test.
2213 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2215         * testsuite/libgomp.fortran/retval2.f90: New test.
2217 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2219         * testsuite/libgomp.c++: New directory.
2221 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2223         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2224         * config/posix/sem.c: Implement the above.
2226 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2228         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2229         define HAVE_BROKEN_POSIX_SEMAPHORES.
2230         * configure: Rebuilt.
2231         * config.h.in: Rebuilt.
2233 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2235         PR bootstrap/26161
2236         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2237         for the other pthread check.
2238         * configure: Regenerate.
2239         * config.h.in: Regenerate.
2241 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2243         PR libgomp/25938
2244         PR libgomp/25984
2245         * Makefile.am (fincludedir): New variable.
2246         (nodist_include_HEADERS): Remove Fortran files.
2247         (nodist_finclude_HEADERS): New variable.
2248         * Makefile.in: Regenerated.
2250 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2252         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2253         Remove tests for returning assumed character length arrays.
2255 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2256             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2258         PR libgomp/25936
2259         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2261 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2263         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2265 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2267         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2268         part of LD_LIBRARY_PATH manually.
2270 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2272         PR libgomp/25852
2273         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2274         libgomp_init.
2276 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2278         PR libgomp/25884
2279         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2280         * configure.ac (PERL): Don't set.
2281         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2282         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2283         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2284         * omp.h.in: Wrap the new configure substitutions with @ characters.
2285         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2286         * aclocal.m4, configure, Makefile.in: Regenerate.
2287         * mkomp_h.pl: Delete.
2289 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2291         PR libgomp/25259
2292         * configure.ac: Use GCC_HEADER_STDINT.
2293         * libgomp.h: Include gstdint.h.
2294         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2295         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2297 2006-01-24  Richard Henderson  <rth@redhat.com>
2299         PR libgomp/25942
2300         * configure.ac: Add AM_MAINTAINER_MODE.
2301         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2303 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2305         * Makefile.in: Regenerate.
2306         * testsuite/Makefile.in: Regenerate.
2307         * aclocal.m4: Regenerate.
2309 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2311         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2312         Solaris.
2313         * configure.ac: Add check for loadavg.h.
2314         (link_gomp): Adjust comment.
2315         * configure: Regenerate.
2316         * config.h.in: Regenerate.
2318 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2320         PR libgomp/25877
2321         * configure.ac: Remove check for alloca.h.
2322         * configure: Regenerate.
2323         * config.h.in: Regenerate.
2324         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2325         * team.c: Remove use of alloca.h.
2326         Call gomp_alloca instead of alloca.
2328 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2330         PR libgomp/25877
2331         * team.c: Add include of alloca.h.
2332         * configure.ac: Add check for alloca.h.
2333         * configure: Regenerate.
2334         * config.h.in: Regenerate.
2336 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2338         PR fortran/25219
2339         * testsuite/libgomp.fortran/pr25219.f90: New test.
2341 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2343         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2344         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2345         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2346         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2347         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2348         testsuite/libgomp.fortran/threadprivate1.f90,
2349         testsuite/libgomp.fortran/threadprivate2.f90,
2350         testsuite/libgomp.fortran/threadprivate3.f90,
2351         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2352         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2353         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2354         effective-target to TLS runtime.
2356         * testsuite/libgomp.fortran/pr25162.f: Require
2357         effective-target TLS runtime.
2359 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2361         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2362         * testsuite/libgomp.c/nestedfn-3.c: New test.
2364 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2366         PR fortran/25162
2367         * testsuite/libgomp.fortran/pr25162.f: New test.
2369 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2371         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2372         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2374 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2376         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2377         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2378         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2379         single.c, team.c, work.c, config/linux/alpha/futex.h,
2380         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2381         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2382         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2383         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2384         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2385         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2386         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2387         FSF address.
2389 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2391         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2392         to nodist_noinst_HEADERS.
2393         * Makefile.in: Rebuilt.
2395         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2396         add integer count field.
2397         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2398         omp_nest_lock_t type change.
2399         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2400         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2401         Increment count.
2402         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2403         Decrement count.
2404         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2405         Increment count if successful and return the new nesting level.
2406         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2407         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2408         * testsuite/libgomp.c/lib-1.c: New test.
2409         * testsuite/libgomp.fortran/lib1.f90: New test.
2410         * testsuite/libgomp.fortran/lib2.f: New test.
2411         * testsuite/libgomp.fortran/lib3.f: New test.
2413 2005-11-17  Richard Henderson  <rth@redhat.com>
2415         PR 24845
2416         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2417         * configure.ac (link_gomp): New.  Substitute it.
2418         (AC_CONFIG_FILES): Add libgomp.spec.
2419         * libgomp.spec.in: New file.
2420         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2421         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2423 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2425         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2426         reduction(-:var) behaving the same as reduction(+:var).
2427         * testsuite/libgomp.c/reduction-4.c: New test.
2429 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2431         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2432         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2433         testsuite/libgomp.c/copyin-3.c,
2434         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2435         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2436         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2437         testsuite/libgomp.c++/pr24455.C,
2438         testsuite/libgomp.fortran/threadprivate1.f90,
2439         testsuite/libgomp.fortran/threadprivate2.f90,
2440         testsuite/libgomp.fortran/threadprivate3.f90,
2441         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2442         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2443         testsuite/libgomp.fortran/omp_parse3.f90: Require
2444         effective-target TLS.
2446 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2448         * HEADER: Remove.
2450 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2452         PR libgomp/24797
2453         * team.c (initialize_team): Pass NULL rather than free as
2454         pthread_key_create destructor.  Initialize thread specific data
2455         pointer in initial thread to a static local variable rather than
2456         malloced memory.
2458 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2460         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2461         its location to ld_library_path.
2463 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2465         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2467 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2469         * testsuite/libgomp.c: Rename from libgomp.dg.
2471 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2473         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2474         threadprivate variable 'i'.
2476 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2478         * config/linux/s390/futex.h: New file.
2479         * configure.tgt: Use it.
2481         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2482         before the parallel.
2484 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2486         PR c++/24734
2487         * testsuite/libgomp.c++/master-1.C: New test.
2489 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2491         * testsuite/libgomp.dg/copyin-3.c: New test.
2493 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2495         * testsuite/libgomp.fortran/retval1.f90: New test.
2496         * testsuite/libgomp.fortran/vla7.f90: New test.
2498 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2500         * testsuite/libgomp.fortran/vla2.f90: New test.
2501         * testsuite/libgomp.fortran/vla3.f90: New test.
2502         * testsuite/libgomp.fortran/vla4.f90: New test.
2503         * testsuite/libgomp.fortran/vla5.f90: New test.
2504         * testsuite/libgomp.fortran/vla6.f90: New test.
2506 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2508         * config/linux/sparc/futex.h: New file.
2509         * configure.tgt: Use it.
2510         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2512         * critical.c: Include stdlib.h.
2513         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2514         ignoring return value.
2515         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2516         LIBGOMP_CHECK_SYNC_BUILTINS check.
2517         * configure: Rebuilt.
2519 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2521         * testsuite/libgomp.fortran/vla1.f90: New test.
2523 2005-10-31  Richard Henderson  <rth@redhat.com>
2525         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2526         setting 's' in different threads.
2528 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2530         * libgomp.h (attribute_hidden, ialias): Define.
2531         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2532         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2533         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2534         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2535         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2536         omp_test_lock, omp_test_nest_lock): Likewise.
2537         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2538         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2539         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2540         omp_test_lock, omp_test_nest_lock): Likewise.
2541         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2542         omp_get_dynamic, omp_get_nested): Likewise.
2543         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2544         omp_get_thread_num, omp_in_parallel): Likewise.
2545         * fortran.c (ialias_redirect): Define.
2546         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2547         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2548         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2549         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2550         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2551         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2552         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2553         omp_get_wtime): Add ialias_redirect.
2555 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2557         * fortran.c: Include stdlib.h.
2559 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2561         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2562         * Makefile.in: Regenerated.
2564 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2566         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2567         * libgomp_f.h.in (omp_check_defines): New function.
2568         * env.c: Include libgomp_f.h.
2569         (initialize_env): Call omp_check_defines.
2571         * testsuite/libgomp.dg/copyin-2.c: New test.
2572         * testsuite/libgomp.c++/copyin-2.C: New test.
2573         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2575         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2576         * testsuite/libgomp.fortran/sharing2.f90: New test.
2578         * testsuite/libgomp.dg/copyin-1.c: New test.
2579         * testsuite/libgomp.c++/copyin-1.C: New test.
2581 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2583         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2585         * testsuite/libgomp.fortran/workshare1.f90: New test.
2587         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2588         only test.
2589         * libgomp.fortran/sharing1.f90: New test.
2591 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2593         PR c++/24502
2594         * testsuite/libgomp.c++/loop-7.C: New test.
2596         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2598         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2599         * testsuite/libgomp.fortran/reduction6.f90: New test.
2600         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2602 2005-10-23  Richard Henderson  <rth@redhat.com>
2604         * testsuite/libgomp.c++/ctor-1.C: New.
2605         * testsuite/libgomp.c++/ctor-2.C: New.
2606         * testsuite/libgomp.c++/ctor-3.C: New.
2607         * testsuite/libgomp.c++/ctor-4.C: New.
2608         * testsuite/libgomp.c++/ctor-5.C: New.
2609         * testsuite/libgomp.c++/ctor-6.C: New.
2610         * testsuite/libgomp.c++/ctor-7.C: New.
2611         * testsuite/libgomp.c++/ctor-8.C: New.
2612         * testsuite/libgomp.c++/ctor-9.C: New.
2614 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2616         PR 24455
2617         * testsuite/libgomp.c++/pr24455-1.C: New test.
2618         * testsuite/libgomp.c++/pr24455.C: New test.
2619         * testsuite/libgomp.dg/pr24455-1.c: New test.
2620         * testsuite/libgomp.dg/pr24455.c: New test.
2622 2005-10-20  Richard Henderson  <rth@redhat.com>
2624         * testsuite/libgomp.c++/loop-6.C: New.
2625         * testsuite/libgomp.dg/loop-3.c: New.
2627 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2629         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2630         explicitly private.
2631         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2632         explicitly shared.
2634 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2636         * testsuite/libgomp.fortran/jacobi.f: New test.
2638 2005-10-19  Richard Henderson  <rth@redhat.com>
2640         * configure.tgt (i?86-linux): Default to with_arch instead of
2641         CFLAGS.  Add -mtune to match target_cpu.
2642         (x86_64-linux): Tune to i686.
2644         * fortran.c (omp_test_nest_lock_): Fix typo.
2646 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2648         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2649         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2650         * testsuite/libgomp.dg/ordered-3.c: New test.
2652         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2653         Remove volatile keyword.
2655         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2656         in COMMON block to avoid warnings on 64-bit targets.
2658 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2660         * testsuite/libgomp.dg/shared-3.c: New test.
2662 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2664         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2665         * testsuite/libgomp.fortran/reduction5.f90: New test.
2667 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2669         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2670         dg-options.
2671         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2672         flush loop now that __sync_synchronize has proper memory barrier.
2673         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2674         Add -ffixed-form to dg-options.
2676 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2678         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2679         from subdirectories.
2680         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2681         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2682         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2683         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2684         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2685         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2686         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2687         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2688         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2689         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2690         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2691         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2692         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2693         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2694         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2695         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2696         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2697         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2698         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2699         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2700         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2701         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2702         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2703         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2704         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2706 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2708         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2709         lang_library_path exists.  Use find instead of glob to gather tests.
2710         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2712 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2714         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2715         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2716         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2717         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2718         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2719         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2720         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2721         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2722         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2723         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2724         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2725         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2726         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2728 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2730         * testsuite/libgomp.dg/vla-1.c: New test.
2732         * testsuite/libgomp.fortran/reference2.f90: New test.
2734         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2735         declaration of omp_get_thread_num.
2736         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2737         use omp_lib.
2739         * testsuite/libgomp.fortran/reduction1.f90: New test.
2740         * testsuite/libgomp.fortran/reduction2.f90: New test.
2741         * testsuite/libgomp.fortran/reduction3.f90: New test.
2742         * testsuite/libgomp.fortran/reduction4.f90: New test.
2744 2005-10-13  Richard Henderson  <rth@redhat.com>
2746         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2747         * Makefile.in: Regenerate.
2748         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2749         * libgomp.h: Include bar.h.
2750         (struct gomp_barrier): Remove.
2751         (struct gomp_team): Add barrier.  Replace master_barrier with
2752         master_release.  Replace threads with ordered_release.
2753         (struct gomp_thread): Replace barrier with release.
2754         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2755         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2756         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2757         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2758         (GOMP_single_copy_end): Likewise.
2759         * team.c (gomp_threads_dock): New.
2760         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2761         (gomp_thread_start): Use gomp_barrier_wait.
2762         (new_team, free_team): Update for gomp_team changes.
2763         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2764         (gomp_team_end): Use gomp_barrier_wait.
2765         (initialize_team): Update for gomp_thread changes.
2766         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2767         (gomp_work_share_end_nowait): Use atomic ops when available.
2768         * config/linux/bar.c, config/linux/bar.h: New files.
2769         * config/posix/bar.c, config/posix/bar.h: New files.
2771 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2773         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2774         * testsuite/libgomp.dg/single-2.c: New test.
2776         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2777         lang_link_flags): Unset, so that they aren't inherited from previously
2778         sourced *.exp.
2780         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2782 2005-10-12  Richard Henderson  <rth@redhat.com>
2784         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2785         (libgomp_init): Use lang_test_file, lang_library_path, and
2786         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2788         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2789         (lang_test_file, lang_link_flags): New.
2790         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2792         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2793         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2794         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2795         testsuite/libgomp.c++/parallel-1.C,
2796         testsuite/libgomp.c++/reduction-1.C,
2797         testsuite/libgomp.c++/reduction-2.C,
2798         testsuite/libgomp.c++/reduction-3.C,
2799         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2800         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2801         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2802         New files, largely cribbed from the C testsuite.
2804 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2806         * testsuite/libgomp.fortran/character1.f90: New test.
2807         * testsuite/libgomp.fortran/character2.f90: New test.
2809         * testsuite/libgomp.dg/nested-1.c: New test.
2810         * testsuite/libgomp.dg/nested-2.c: New test.
2811         * testsuite/libgomp.fortran/do1.f90: New test.
2812         * testsuite/libgomp.fortran/do2.f90: New test.
2814         * testsuite/libgomp.fortran/reference1.f90: New test.
2816 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2818         * testsuite/libgomp.dg/reduction-1.c: New test.
2819         * testsuite/libgomp.dg/reduction-2.c: New test.
2820         * testsuite/libgomp.dg/reduction-3.c: New test.
2822 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2824         * testsuite/libgomp.dg/atomic-1.c: New test.
2825         * testsuite/libgomp.dg/atomic-2.c: New test.
2827 2005-10-09  Richard Henderson  <rth@redhat.com>
2829         * critical.c (atomic_lock): New.
2830         (initialize_critical): Initialize it.
2831         (GOMP_atomic_start, GOMP_atomic_end): New.
2832         * libgomp.map: Export them.
2833         * libgomp_g.h: Declare them.
2835         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2837 2005-10-02  Richard Henderson  <rth@redhat.com>
2839         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2840         to XCFLAGS instead of CFLAGS.
2842 2005-09-30  Richard Henderson  <rth@redhat.com>
2844         * configure.ac: Determine whether -pthread or -lpthread is needed.
2845         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2846         * Makefine.in, configure: Rebuild.
2848 2005-09-28  Richard Henderson  <rth@redhat.com>
2850         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2851         * testsuite/libgomp.dg/omp-single-3.c: New test.
2853 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2855         * testsuite/libgomp.dg/omp-single-2.c: New test.
2856         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2858 2005-09-27  Richard Henderson  <rth@redhat.com>
2860         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2861         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2863 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2865         * testsuite/libgomp.dg/omp-loop03.c: New test.
2867 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2869         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2871 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2873         * testsuite/libgomp.dg/omp-single-1.c: New test.
2874         * testsuite/libgomp.dg/shared-1.c: Return 0.
2875         Add prototype for abort.
2876         * testsuite/libgomp.dg/shared-2.c: Likewise.
2878 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2880         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2881         constructs.
2883 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2885         * testsuite/libgomp.dg/shared-1.c: New test.
2886         * testsuite/libgomp.dg/shared-2.c: New test.
2888 2005-09-24  Richard Henderson  <rth@redhat.com>
2890         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2892 2005-09-24  Richard Henderson  <rth@redhat.com>
2894         * iter.c (gomp_iter_static_next): Round up when computing number
2895         of iterations.  Don't bother distributing a remainder equally.
2897         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2898         Don't call srand.  Zero b before testing.
2899         (main): New.
2901 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2903         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2904         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2906 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2908         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2909         without !$omp end do, followed immediately by subroutine end.
2911 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2913         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2915 2005-09-22  Richard Henderson  <rth@redhat.com>
2917         * critical.c (GOMP_critical_name_start): Change argument to void**.
2918         Reuse the pointer space if the mutex fits.
2919         (GOMP_critical_name_end): Likewise.
2920         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2921         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2922         (GOMP_critical_name_end): Likewise.
2923         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2924         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2926 2005-09-20  Richard Henderson  <rth@redhat.com>
2928         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2929         (create_lock_lock): New.
2930         (initialize_critical): Initialize it.
2931         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2932         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2934 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2936         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2938 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2940         * testsuite/libgomp.dg/omp-loop01.c: New test.
2941         * testsuite/libgomp.dg/omp-loop02.c: New test.
2943 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2945         * configure.ac (AC_PROG_FC): Add.
2946         (USE_FORTRAN): New automake conditional.
2947         * configure: Rebuilt.
2948         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2949         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2950         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2951         Add rules to build them.
2952         * Makefile.in: Rebuilt.
2953         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2954         OMP_NEST_LOCK_KIND.
2955         * libgomp.map: Add Fortran wrappers.
2956         * libgomp_f.h.in: New file.
2957         * omp_lib.h.in: New file.
2958         * omp_lib.f90.in: New file.
2959         * fortran.c: New file.
2960         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2961         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2962         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2963         libgfortran has been built.
2964         * testsuite/libgomp.fortran/fortran.exp: New file.
2965         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2966         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2967         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2968         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2969         * testsuite/libgomp.fortran/omp_hello.f: New test.
2970         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2971         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2972         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2973         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2974         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2975         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2976         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2977         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2979 2005-08-30  Richard Henderson  <rth@redhat.com>
2981         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2982         function for when aliases are not usable.
2983         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2984         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2985         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2986         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2987         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2988         GOMP_loop_ordered_guided_next): Likewise.
2989         * ordered.c (GOMP_ordered_start): Likewise.
2991 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2993         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2994         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2995         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2996         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2997         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2998         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2999         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3000         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3001         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3003 2005-07-07  Eric Christopher  <echristo@redhat.com>
3004             Diego Novillo  <dnovillo@redhat.com>
3006         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3007         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3008         up code.
3009         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3010         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3011         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3012         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3013         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3014         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3015         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3017 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3019         * TOPLEVEL.patch: Remove.
3021 2005-05-16  Richard Henderson  <rth@redhat.com>
3023         * configure.ac: Test for clock_gettime.
3024         * config.h.in, configure: Rebuild.
3025         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3026         (omp_get_wtime): Use clock_gettime if available.
3027         (omp_get_wtick): Use clock_getres if available.
3029 2005-05-11  Richard Henderson  <rth@redhat.com>
3031         * config/linux/ia64/futex.h: New file.
3032         * configure.tgt: Use it.
3034         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3036 2005-05-07  Richard Henderson  <rth@redhat.com>
3038         * config/linux/powerpc/futex.h: New file.
3039         * configure.tgt: Use it.
3041         * config/linux/i486/futex.h: Merge ...
3042         * config/linux/x86_64/futex.h: ... into ...
3043         * config/linux/x86/futex.h: ... here.
3044         * configure.tgt: Update to match.
3046 2005-05-06  Richard Henderson  <rth@redhat.com>
3048         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3049         * config/linux/i486/futex.h: Likewise.
3050         * config/linux/x86_64/futex.h: Likewise.
3052         * config/linux/lock.c: New file.
3053         * config/linux/omp-lock.h: New file.
3055         * critical.c, env.h: Don't include omp.h
3056         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3057         * config/posix/time.c: Likewise.
3058         * config/posix/omp-lock.h: New file.
3059         * libgomp.h: Include omp-lock.h and omp.h.
3060         * Makefile.am (nodist_include_HEADERS): New.
3061         (omp.h): New rule.
3062         * configure.ac (PERL): New.
3063         * mkomp_h.pl: New file.
3064         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3065         with templates.
3066         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3068         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3069         build directory.  Re-add -march=i486 hack.
3071         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3072         (libgomp_link_flags): Remove.
3073         (libgomp_initialized): Remove.
3074         (libgomp_init): Don't protect from reinitialization.  Copy code
3075         from libstdc++ for getting the multilib set correctly.
3077 2005-05-05  Richard Henderson  <rth@redhat.com>
3079         * config/linux/alpha/futex.h: New file.
3080         * configure.tgt (alpha*-*-linux*): Use it.
3082         * config/posix/mutex.c: New file.
3083         * config/posix/sem.c: Use libgomp.h.
3085         * configure.tgt (x86_64-linux): Also test CC for -m32.
3086         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3088         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3089         after $gccpath.
3091         * Makefile.am (SUBDIRS): New.
3092         (libgomp_la_LDFLAGS): Add -lpthread.
3093         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3094         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3096         * libgomp_g.h: New file.
3097         * libgomp.h: Split out all public declarations to libgomp_g.h.
3098         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3099         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3100         * config/linux/sem.h: Likewise.
3101         * config/posix/sem.h: Likewise.
3103         * Makefile.am (AM_LDFLAGS): New.
3104         (libgomp_version_script): Split out from ...
3105         (libgomp_la_LDFLAGS): ... here.
3106         (libgomp_version_info): New.
3107         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3108         (LIBGOMP_ENABLE): New.
3109         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3110         (LIBGOMP_ENABLE_SYMVERS): New.
3111         * configure.ac (AC_INIT): Version 1.0.
3112         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3113         (enable-linux-futex): Likewise.  Rename from enable-futex.
3114         (libtool_VERSION): New.
3115         (LIBGOMP_ENABLE_SYMVERS): Use it.
3116         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3117         * Makefile.in, aclocal.m4, configure: Rebuild.
3119         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3120         (gomp_mutex_unlock_slow): Fix typo.
3121         * config/linux/sem.c: Similarly.
3122         (gomp_sem_post_slow): Fix typo.
3123         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3124         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3125         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3127         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3128         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3129         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3130         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3131         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3132         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3133         LDFLAGS.  Pull enable_futex check to top-level.
3134         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3135         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3137         First attempt at real configury.
3138         * Makefile, config.h: Remove file.
3139         * Makefile.am, Makefile.in: New file.
3140         * acinclude.m4 aclocal.m4: New file.
3141         * configure.ac, configure.tgt, configure: New file.
3143         * config/posix/lock.c: Rename from sys-lock.c.
3144         * config/posix/mutex.h: Rename from sys-mutex.h.
3145         * config/posix/sem.c: Rename from sys-sem.c.
3146         * config/posix/sem.h: Rename from sys-sem.h.
3147         * config/posix/proc.c: Rename from sys-proc.c.
3148         * config/posix/time.c: Rename from sys-proc.c.
3150         * config/linux/mutex.c: New file.
3151         * config/linux/mutex.h: New file.
3152         * config/linux/sem.c: New file.
3153         * config/linux/sem.h: New file.
3154         * config/linux/i486/futex.h: New file.
3155         * config/linux/x86_64/futex.h: New file.
3157 2005-05-04  Richard Henderson  <rth@redhat.com>
3159         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3160         * libgomp.h: Declare them.
3161         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3162         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3164 2005-05-04  Richard Henderson  <rth@redhat.com>
3166         * libgomp-1 code drop
3168 2005-05-04  Richard Henderson  <rth@redhat.com>
3170         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3171         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3172         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3173         (gomp_iter_static_next): Update.
3174         (gomp_ordered_static_next): Update.
3175         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3176         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3177         totally empty range.
3178         (gomp_loop_ordered_static_next): Refine test for calling
3179         gomp_ordered_static_next.
3180         * testsuite/ordered-1.c: Add case for more threads than iterations.
3182         * iter.c (gomp_iter_runtime_next_locked): Remove.
3183         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3184         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3185         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3186         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3187         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3188         gomp_loop_ordered_guided_next): Downcase name, make static, add
3189         an external alias with the old name.
3190         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3191         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3192         switch and call one of the above static functions.
3193         * libgomp.h: Update.
3195         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3196         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3197         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3198         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3199         GOMP_loop_ordered_guided_start): Update to match.
3200         * sections.c (GOMP_sections_start): Likewise.
3201         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3203         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3204         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3205         Use bounds check instead of modulus.
3206         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3207         (gomp_ordered_last): Don't sync with ordered_owner here.
3208         (gomp_ordered_next): Likewise.
3209         (gomp_ordered_static_loop_next): Likewise.
3210         * loop.c, libgomp.h: Update to match.
3212         * libgomp.h (GOMP_barrier): Declare.
3214         * testsuite/barrier-1.c: New file.
3215         * testsuite/critical-1.c: New file.
3216         * testsuite/ordered-2.c: New file.
3217         * testsuite/ordered-1.c: New file.
3218         * testsuite/sections-1.c: New file.
3219         * testsuite/single-1.c: New file.
3220         * testsuite/Makefile (TESTS): Add them.
3222 2005-05-04  Richard Henderson  <rth@redhat.com>
3224         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3225         * loop.c (GOMP_loop_static_start): If not the startup thread,
3226         acquire the mutex to wait for initialization complete.
3227         (GOMP_loop_ordered_static_start): Likewise.
3228         (GOMP_loop_ordered_runtime_start): Likewise.
3229         (GOMP_loop_ordered_static_first): Remove.
3230         (GOMP_loop_ordered_dynamic_first): Remove.
3231         (GOMP_loop_ordered_guided_first): Remove.
3232         (GOMP_loop_ordered_runtime_first): Remove.
3233         * ordered.c (gomp_ordered_loop_first): Post to own release when
3234         we're the first thread.
3235         (gomp_ordered_loop_last): Wait on release if not owner.
3236         (gomp_ordered_loop_next): Likewise.
3237         (gomp_ordered_static_loop_init): New.
3238         (gomp_ordered_static_loop_next): Use ordered_owner.
3239         (GOMP_ordered_start): Likewise.
3240         * work.c (gomp_new_work_share): Initialize ordered_owner.
3242 2005-05-03  Richard Henderson  <rth@redhat.com>
3244         * Makefile (OPT): New.
3245         (CFLAGS): Use it.
3247         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3248         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3249         * libgomp.h, libgomp.map, NOTES: Update to match.
3251         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3252         Add initialized and thr members.
3253         (gomp_thread_start): Pause when initially spawned to wait for
3254         the whole team to be created.
3255         (gomp_team_start): Release team members at the end.
3257         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3258         (f_foo_1): Use GOMP_loop_end.
3259         (f_foo_2): Use GOMP_loop_end_nowait.
3261         * testsuite/loop-2.c: New file.
3262         * testsuite/Makefile (TESTS): Add it.
3264 2005-05-03  Richard Henderson  <rth@redhat.com>
3266         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3267         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3268         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3269         initial work_share.
3271         * testsuite/Makefile: New file.
3272         * testsuite/loop-1.c: New file.
3274 2005-05-03  Richard Henderson  <rth@redhat.com>
3276         Initial implementation and checkin.