* libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
[official-gcc.git] / libgomp / ChangeLog
blob1cfd599d460447a5568112a59dd941afd6f945a7
1 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
3         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
5 2012-06-22  Richard Guenther  <rguenther@suse.de>
7         Merge from graphite branch
8         2012-01-13  Tobias Grosser  <tobias@grosser.es>
10         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
15         PR middle-end/53580
16         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17         use GOMP_barrier () call instead.
18         * testsuite/libgomp.c/pr26943-3.c: Likewise.
19         * testsuite/libgomp.c/pr26943-4.c: Likewise.
20         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
21         call GOMP_barrier instead.
22         * testsuite/libgomp.fortran/vla5.f90: Likewise.
24 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
26         PR libgomp/52993
27         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
28         argument to memset call.
30 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32         * configure: Regenerated.
34 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
38 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
40         PR bootstrap/52812
41         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
43 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
45         PR middle-end/52547
46         * testsuite/libgomp.c/pr52547.c: New test.
48 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
50         * testsuite/lib/libgomp.exp: load fortran-modules.exp
52 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
54         * configure.tgt (mips-sgi-irix6*): Remove.
56 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
58         * configure.tgt (alpha*-dec-osf*): Remove.
60         * config/osf/sem.h: Remove.
61         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
63 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
65         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
67 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
69         PR libstdc++/52188
70         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
71         Remove ENABLE_SYMVERS_SOL2.
72         * configure: Regenerate.
73         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
74         (PREPROCESS): New variable.
75         (libgomp.ver): New target.
76         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
77         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
78         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
79         Use libgomp.ver.
80         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
81         * Makefile.in: Regenerate.
83 2012-02-14  Walter Lee  <walt@tilera.com>
85         * configure.tgt: Handle tilegx and tilepro.
86         * config/linux/tile/futex.h: New file.
88 2012-02-08  Richard Guenther  <rguenther@suse.de>
90         PR tree-optimization/46886
91         * testsuite/libgomp.c/pr46886.c: New testcase.
93 2012-01-25  Matthias Klose  <doko@ubuntu.com>
95         * config/linux/arm: Remove empty directory.
96         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
98 2011-12-09  Alan Modra  <amodra@gmail.com>
100         PR libgomp/51376
101         * task.c (GOMP_taskwait): Don't access task->children outside of
102         task_lock mutex region.
103         (GOMP_task): Likewise.
105 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
107         PR libgomp/51132
108         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
109         to file scope.
110         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
111         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
112         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
113         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
114         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
116 2011-12-02  Alan Modra  <amodra@gmail.com>
118         * config/linux/affinity.c: Use atomic rather than sync builtin.
119         * config/linux/lock.c: Likewise.
120         * config/linux/ptrlock.h: Likewise.
121         * config/linux/ptrlock.c: Likewise.
122         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
123         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
124         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
125         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
126         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
127         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
128         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
129         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
130         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
131         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
133 2011-11-30  Alan Modra  <amodra@gmail.com>
135         PR libgomp/51298
136         * config/linux/bar.h: Use atomic rather than sync builtins.
137         * config/linux/bar.c: Likewise.  Add missing acquire
138         synchronisation on generation field.
139         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
140         double unlock.
142 2011-11-30  Alan Modra  <amodra@gmail.com>
144         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
145         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
146         * config/linux/mutex.h: Use atomic rather than sync builtins.
147         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
148         * config/linux/omp-lock.h: Comment fix.
149         * config/linux/arm/mutex.h: Delete.
150         * config/linux/powerpc/mutex.h: Delete.
151         * config/linux/ia64/mutex.h: Delete.
152         * config/linux/mips/mutex.h: Delete.
154 2011-11-30  Alan Modra  <amodra@gmail.com>
156         PR libgomp/51249
157         * config/linux/sem.h: Rewrite.
158         * config/linux/sem.c: Rewrite.
160 2011-11-28  Richard Henderson  <rth@redhat.com>
162         * libgomp.h (enum memmodel): New.
164 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
166         * configure: Regenerate.
168 2011-10-10  Matthias Klose  <doko@ubuntu.com>
170         * config/posix95: Remove empty directory.
172 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
174         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
176 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
178         PR fortran/49792
179         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
180         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
182 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
184         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
186 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
188         PR libgomp/49965
189         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
191 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
193         * config/linux/proc.h: New.
194         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
195         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
196         (gomp_init_num_threads): Update call to cpuset_popcount.
197         (get_num_procs): Ditto.
198         * config/linux/affinity.c (gomp_init_affinity): Call
199         gomp_cpuset_popcount.
201 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
203         PR fortran/42041
204         PR fortran/46752
205         * omp.h.in (omp_in_final): New prototype.
206         * omp_lib.f90.in (omp_in_final): New interface.
207         (omp_integer_kind, omp_logical_kind): Remove
208         and replace all its uses in the module with 4.
209         (openmp_version): Change to 201107.
210         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
211         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
212         kind for the parameters.
213         (omp_in_final): New external.
214         (openmp_version): Change to 201107.
215         * task.c (omp_in_final): New function.
216         (gomp_init_task): Initialize final_task.
217         (GOMP_task): Remove unused attribute from flags.  Handle final
218         tasks.
219         (GOMP_taskyield): New function.
220         (omp_in_final): Return true if if (false) or final (true) task
221         or descendant of final (true).
222         * fortran.c (omp_in_final_): New function.
223         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
224         (GOMP_3.0): Export GOMP_taskyield.
225         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
226         variables.
227         (parse_unsigned_long_list): New function.
228         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
229         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
230         even if parse_affinity returned false.
231         * config/linux/affinity.c (gomp_init_affinity): Handle
232         gomp_cpu_affinity_len == 0.
233         * libgomp_g.h (GOMP_taskyield): New prototype.
234         * libgomp.h (struct gomp_task): Add final_task field.
235         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
236         * team.c (gomp_team_start): Override new task's nthreads_var icv
237         if list form OMP_NUM_THREADS has been used and it has value for
238         the new nesting level.
240         * testsuite/libgomp.c/atomic-11.c: New test.
241         * testsuite/libgomp.c/atomic-12.c: New test.
242         * testsuite/libgomp.c/atomic-13.c: New test.
243         * testsuite/libgomp.c/atomic-14.c: New test.
244         * testsuite/libgomp.c/reduction-6.c: New test.
245         * testsuite/libgomp.c/task-5.c: New test.
246         * testsuite/libgomp.c++/atomic-2.C: New test.
247         * testsuite/libgomp.c++/atomic-3.C: New test.
248         * testsuite/libgomp.c++/atomic-4.C: New test.
249         * testsuite/libgomp.c++/atomic-5.C: New test.
250         * testsuite/libgomp.c++/atomic-6.C: New test.
251         * testsuite/libgomp.c++/atomic-7.C: New test.
252         * testsuite/libgomp.c++/atomic-8.C: New test.
253         * testsuite/libgomp.c++/atomic-9.C: New test.
254         * testsuite/libgomp.c++/task-8.C: New test.
255         * testsuite/libgomp.c++/reduction-4.C: New test.
256         * testsuite/libgomp.fortran/allocatable7.f90: New test.
257         * testsuite/libgomp.fortran/allocatable8.f90: New test.
258         * testsuite/libgomp.fortran/crayptr3.f90: New test.
259         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
260         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
261         * testsuite/libgomp.fortran/pointer1.f90: New test.
262         * testsuite/libgomp.fortran/pointer2.f90: New test.
263         * testsuite/libgomp.fortran/task4.f90: New test.
265 2011-08-02  Tobias Burnus  <burnus@net-b.de>
267         * libgomp.texi: Update OpenMP spec references to 3.1.
268         (omp_in_final,OMP_PROC_BIND): New sections.
269         (OMP_NUM_THREADS): Document that the value can be now a list.
270         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
272 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
274         * config/linux/x86/futex.h: Check __x86_64__ instead of
275         __LP64__.
277 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
279         PR middle-end/49897
280         PR middle-end/49898
281         * testsuite/libgomp.c/pr49897-1.c: New test.
282         * testsuite/libgomp.c/pr49897-2.c: New test.
283         * testsuite/libgomp.c/pr49898-1.c: New test.
284         * testsuite/libgomp.c/pr49898-2.c: New test.
286 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
288         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
289         for ia32 instead of ilp32.
291         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
292         * testsuite/libgomp.c/atomic-6.c: Likewise.
294 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
296         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
297         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
299 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
301         PR libgomp/45351
302         * config/osf/sem.h: New file.
303         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
305 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
307         PR target/49541
308         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
309         ldflags.
311 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
313         * config/linux/wait.h (do_spin): New inline, largely copied
314         from do_wait, just don't do futex_wait here, instead return true if
315         it should be done.
316         (do_wait): Implement using do_spin.
317         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
318         to prototype.
319         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
320         __sync_bool_compare_and_swap, pass the oldval to
321         gomp_mutex_lock_slow.
322         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
323         If all mutex contenders are just spinning and not sleeping, don't
324         change state to 2 unnecessarily.  Optimize the loop when state has
325         already become 2 to use just one atomic operation per loop instead
326         of two.
327         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
328         to prototype.
329         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
330         __sync_bool_compare_and_swap, pass the oldval to
331         gomp_mutex_lock_slow.
333 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
335         PR libgomp/49490
336         * iter.c (gomp_iter_static_next): For chunk size 0
337         only use n ceil/ nthreads size for the first
338         n % nthreads threads in the team instead of
339         all threads except for the last few ones which
340         get less work or none at all.
341         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
342         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
343         chunk argument, set run_sched_modifier to 0 for static
344         resp. 1 for other kinds.  If chunk argument is 0
345         and not static, set value to 1.
347 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
349         PR c++/49043
350         * testsuite/libgomp.c++/pr49043.C: New test.
352         PR c++/48869
353         * testsuite/libgomp.c++/pr48869.C: New test.
355 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
357         PR fortran/48894
358         * fortran.c: Include limits.h.
359         (TO_INT): Define.
360         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
361         *set.
362         (omp_set_num_threads_8_, omp_set_schedule_8_,
363         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
364         omp_get_team_size_8_): Use TO_INT macro.
365         * testsuite/libgomp.fortran/pr48894.f90: New test.
367 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
369         PR middle-end/48591
370         * testsuite/libgomp.c/pr48591.c: New test.
372 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
374         PR bootstrap/48135
375         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
376         * configure: Regenerate.
378 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
380         PR fortran/47886
381         * testsuite/libgomp.fortran/task3.f90: New test.
383 2011-02-24  Tobias Burnus  <burnus@net-b.de>
385         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
387 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
389         PR libgomp/47854
390         * libgomp.texi (omp_get_wtime): Don't say time in the past
391         must be Unix Epoch.
393 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
395         PR libgomp/47804
396         * testsuite/libgomp.fortran/fortran.exp: Check for both
397         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
398         but $blddir != "", still append ${blddir}/${lang_library_path}
399         to ld_library_path.
401 2011-02-16  Tobias Burnus  <burnus@net-b.de>
403         PR libgomp/47758
404         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
405         of libquadmath.a before adding its libpath to ldflags.
407 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
409         PR libgomp/47731
410         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
411         to FUTEX_WAIT futex syscall.
412         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
414 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
416         * configure: Regenerate.
418 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
420         PR libstdc++/36104
421         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
423 2011-01-16  Gerald Pfeifer
425         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
427 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
429         PR fortran/46874
430         * libgomp.fortran/allocatable6.f90: New test.
432 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
434         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
435         * configure: Regenerate.
437 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
439         PR target/40125
440         PR lto/46695
441         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
442         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
443         * aclocal.m4: Regenerate.
444         * configure: Regenerate.
445         * Makefile.in: Regenerate.
446         * testsuite/Makefile.in: Regenerate.
448 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
450         PR fortran/46753
451         * libgomp.fortran/pr46753.f90: New test.
453         PR libgomp/43706
454         * env.c (initialize_env): Default to spin count 300000
455         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
456         is specified.
458         PR libgomp/45240
459         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
460         at the end if sync builtins aren't supported.
462 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
464         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
466 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
468         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
470 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
472         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
474 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
475             Tobias Burnus  <burnus@net-b.de>
477         PR fortran/32049
478         * configure.ac:
479         * configure: Regenerate.
481 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
483         * config/linux/futex.h: New.
484         * config/linux/arm/mutex.h: New.
485         * configure.tgt (arm*-*-linux*): Add config path.
487 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
489         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
491 2010-09-23  Tobias Burnus  <burnus@net-b.de>
493         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
494         Change Fortran datatype to LOGICAL.
495         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
496         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
498 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
500         * configure: Regenerate.
502 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
504         * libgomp.texi: Add function keyword to a couple of Fortran
505         interfaces, use integer instead of int for Fortran.
507 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
509         * libgomp.texi: Fix spelling and pasto problems throughout.
510         Adjust prototypes to match code.
512 2010-07-24  Tobias Burnus  <burnus@net-b.de>
514         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
515         silence -fwhole-file warning.
517 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
519         * configure.tgt (*-*-solaris2.[56]*): Removed.
521 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
523         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
524         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
525         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
526         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
527         targetting solaris2*.
528         * configure: Regenerate.
529         * config.h.in: Regenerate.
531         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
532         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
533         Add libgomp_version_dep.
534         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
535         versioning.
536         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
537         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
538         * Makefile.in: Regenerate.
540         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
541         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
542         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
543         to common block, protected by
544         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
546 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
548         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
550 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
552         PR bootstrap/43170
553         * configure: Regenerate.
555 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
557         PR other/43620
558         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
559         * configure: Regenerate.
560         * Makefile.in: Regenerate.
561         * testsuite/Makefile.in: Regenerate.
563 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
565         PR c/43893
566         * testsuite/libgomp.c/pr43893.c: New test.
567         * testsuite/libgomp.c++/pr43893.C: New test.
569 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
571         PR middle-end/43570
572         * testsuite/libgomp.fortran/vla8.f90: New test.
574 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
576         PR libgomp/43706
577         * config/linux/affinity.c (gomp_init_affinity): Decrease
578         gomp_available_cpus if affinity mask confines the process to fewer
579         CPUs.
580         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
581         non-NULL, just return gomp_available_cpus.
583         PR libgomp/43569
584         * sections.c (gomp_sections_init): Initialize ws->mode.
586 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
588         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
589         not unused bar variable.
590         * configure: Regenerate.
592 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
594         * Makefile.in: Regenerate.
595         * aclocal.m4: Regenerate.
596         * testsuite/Makefile.in: Regenerate.
598 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
600         PR libgomp/42942
601         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
602         (initialize_env): Adjust callers.
603         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
604         when the argument is 0.
606         * testsuite/libgomp.c/pr42942.c: New test.
608 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
610         PR middle-end/42644
611         PR middle-end/42130
612         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
613         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
615 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
617         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
618         * testsuite/libgomp.c++/task-6.C: Likewise.
620 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
622         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
624 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
626         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
627         * configure: Regenerate.
629 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
631         PR fortran/42866
632         * testsuite/libgomp.fortran/allocatable5.f90: New test.
634 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
636         * configure.ac: Test for executability of GFORTRAN.
637         * configure: Regenerate.
639 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
641         * configure: Regenerate.
643 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
645         PR libgomp/42602
646         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
648 2010-01-03  Richard Guenther  <rguenther@suse.de>
650         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
652 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
654         * testsuite/libgomp.graphite/pr4118.c: New.
656 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
658         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
659         for darwin, protect the test with require-effective-target tls_runtime.
660         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
662 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
664         PR target/41605
665         * testsuite/lib/libgomp.exp: Provide -B options to allow for
666         link spec %s substitutions for static libraries.
668 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
670         PR testsuite/42135
671         * libgomp.graphite/force-parallel-2.c: Reduce array size.
673 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
675         * Makefile.in: Regenerate.
676         * configure: Regenerate.
677         * testsuite/Makefile.in: Regenerate.
679 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
681         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
682         settings for LC_ALL and LANG.
684 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
686         PR fortran/42162
687         * testsuite/libgomp.fortran/pr42162.f90: New test.
689 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
691         PR middle-end/42029
692         * testsuite/libgomp.c/pr42029.c: New test.
694 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
696         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
697         *s.  Accept ld version without text in ()s.
698         * configure: Regenerated.
700 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
702         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
704 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
706         PR libgomp/41418
707         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
708         or a hyphen (happens with fortran language disabled).
709         * configure: Regenerate.
711 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
713         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
714         use sed script portable to Solaris /bin/sed for extracting ld
715         version.
716         * configure: Regenerate.
718 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
720         * testsuite/libgomp.graphite/bounds.c: New test.
722 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
724         * Makefile.am (libgomp_la_LINK): New.
725         * Makefile.in: Regenerate.
727 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
729         * configure.ac (AC_PREREQ): Bump to 2.64.
731 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
733         * Makefile.am (install-html, install-pdf): Remove.
734         * Makefile.in: Regenerate.
736         * Makefile.in: Regenerate.
737         * aclocal.m4: Regenerate.
738         * config.h.in: Regenerate.
739         * configure: Regenerate.
740         * testsuite/Makefile.in: Regenerate.
742 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
744         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
745         * Makefile.in: Regenerate.
747 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
749         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
750         * Makefile.in: Regenerate.
752 2009-08-19  Tobias Burnus  <burnus@net-b.de>
754         PR fortran/41102
755         omp_lib.h.in: Fix -std=f95 errors.
758 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
760         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
761         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
762         * testsuite/libgomp.graphite/graphite.exp: New.
764 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
766         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
767         only build.
769 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
771         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
772         needed memory barrier semantics.
773         * config/linux/mips/mutex.h: New file.
775 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
777         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
779 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
781         * configure: Regenerate.
783 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
785         PR testsuite/40699
786         PR testsuite/40707
787         PR testsuite/40709
788         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
789         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
790         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
792 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
794         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
795         options when choosing a multilib.
797 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
799         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
800         ld_library_path.  Use add_path.  Add just find_libgcc_s to
801         ld_library_path, not every libgcc multilib directory.
802         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
803         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
804         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
805         Use add_path.
806         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
808 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
810         * Makefile.am (LTLDFLAGS): Define.
811         (LINK): Define.
812         * Makefile.in: Regenerate.
814 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
816         PR fortran/39718
817         * testsuite/libgomp.fortran/fortran.exp: Don't link with
818         libgfortranbegin, check existence of libgfortran.a instead of
819         libgfortranbegin.a.
821 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
823         PR libgomp/40174
824         * team.c (gomp_thread_start): Destroy thr->release semaphore.
825         (gomp_free_pool_helper): Likewise.
827 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
828             Jakub Jelinek  <jakub@redhat.com>
830         PR fortran/35423
831         * testsuite/libgomp.fortran/workshare2.f90: New test.
833 2009-04-09  Nick Clifton  <nickc@redhat.com>
835         * iter.c: Change copyright header to refer to version 3 of the
836         GNU General Public License with version 3.1 of the GCC Runtime
837         Library Exception and to point readers at the COPYING3 and
838         COPYING3.RUNTIME files and the FSF's license web page.
839         * alloc.c: Likewise.
840         * barrier.c: Likewise.
841         * config/bsd/proc.c: Likewise.
842         * config/linux/affinity.c: Likewise.
843         * config/linux/alpha/futex.h: Likewise.
844         * config/linux/bar.c: Likewise.
845         * config/linux/bar.h: Likewise.
846         * config/linux/ia64/futex.h: Likewise.
847         * config/linux/ia64/mutex.h: Likewise.
848         * config/linux/lock.c: Likewise.
849         * config/linux/mips/futex.h: Likewise.
850         * config/linux/mutex.c: Likewise.
851         * config/linux/mutex.h: Likewise.
852         * config/linux/powerpc/futex.h: Likewise.
853         * config/linux/proc.c: Likewise.
854         * config/linux/ptrlock.c: Likewise.
855         * config/linux/ptrlock.h: Likewise.
856         * config/linux/s390/futex.h: Likewise.
857         * config/linux/sem.c: Likewise.
858         * config/linux/sem.h: Likewise.
859         * config/linux/sparc/futex.h: Likewise.
860         * config/linux/wait.h: Likewise.
861         * config/linux/x86/futex.h: Likewise.
862         * config/mingw32/proc.c: Likewise.
863         * config/mingw32/time.c: Likewise.
864         * config/posix/affinity.c: Likewise.
865         * config/posix/bar.c: Likewise.
866         * config/posix/bar.h: Likewise.
867         * config/posix/lock.c: Likewise.
868         * config/posix/mutex.h: Likewise.
869         * config/posix/proc.c: Likewise.
870         * config/posix/ptrlock.h: Likewise.
871         * config/posix/sem.c: Likewise.
872         * config/posix/sem.h: Likewise.
873         * config/posix/time.c: Likewise.
874         * config/posix95/lock.c: Likewise.
875         * critical.c: Likewise.
876         * env.c: Likewise.
877         * error.c: Likewise.
878         * fortran.c: Likewise.
879         * iter_ull.c: Likewise.
880         * libgomp.h: Likewise.
881         * libgomp_f.h.in: Likewise.
882         * libgomp_g.h: Likewise.
883         * loop.c: Likewise.
884         * loop_ull.c: Likewise.
885         * omp.h.in: Likewise.
886         * omp_lib.f90.in: Likewise.
887         * omp_lib.h.in: Likewise.
888         * ordered.c: Likewise.
889         * parallel.c: Likewise.
890         * sections.c: Likewise.
891         * single.c: Likewise.
892         * task.c: Likewise.
893         * team.c: Likewise.
894         * work.c: Likewise.
896 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
898         * testsuite/config/default.exp: Change copyright header to refer to
899         version 3 of the GNU General Public License and to point readers
900         at the COPYING3 file and the FSF's license web page.
902 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
904         PR middle-end/39573
905         * libgomp.c++/pr39573.C: New test.
907 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
909         PR other/39591
910         * testsuite/libgomp.c/pr39591-1.c: New test.
911         * testsuite/libgomp.c/pr39591-2.c: New test.
912         * testsuite/libgomp.c/pr39591-3.c: New test.
914 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
916         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
917         * testsuite/libgomp.c/atomic-6.c: Ditto.
919 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
921         PR c/39495
922         * testsuite/libgomp.c/loop-12.c: New test.
923         * testsuite/libgomp.c/loop-11.c: New test.
924         * testsuite/libgomp.c++/loop-11.C: New test.
925         * testsuite/libgomp.c++/loop-12.C: New test.
926         * testsuite/libgomp.c++/for-8.C: New test.
928 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
930         * configure: Regenerate.
932 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
934         PR middle-end/39154
935         * testsuite/libgomp.c/pr39154.c: New test.
937 2009-01-30  Ian Lance Taylor  <iant@google.com>
939         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
940         libgomp_ld_is_gold.  Get gold version number.
941         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
942         * configure: Rebuild.
944 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
946         * testsuite/lib/libgomp.exp: Add -B option for targets that
947         use libgfortran.a%s in their specs.
949 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
951         PR libgomp/38086
952         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
953         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
954         HAVE_AS_SYMVER_DIRECTIVE is not defined.
955         * configure: Regenerated.
956         * config.h.in: Likewise.
958 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
960         PR c++/38650
961         * testsuite/libgomp.c/pr38650.c: New test.
962         * testsuite/libgomp.c++/pr38650.C: New test.
964 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
966         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
968 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
970         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
972 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
974         * configure: Regenerate.
976 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
978         PR middle-end/36802
979         * testsuite/libgomp.c/pr36802-1.c: New test.
980         * testsuite/libgomp.c/pr36802-2.c: New test.
981         * testsuite/libgomp.c/pr36802-3.c: New test.
983 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
985         PR libgomp/38270
986         * config/linux/powerpc/mutex.h: New.
988 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
990         PR c++/38257
991         * testsuite/libgomp.c++/for-7.C: New test.
993         PR c++/38348
994         * testsuite/libgomp.c++/for-6.C: New test.
996 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
998         PR testsuite/28870
999         * testsuite/lib/libgomp.exp: Include new timeout library files.
1000         (libgomp_target_compile): Set timeout value from new proc.
1002 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1004         PR libgomp/37938
1005         * config/linux/ia64/mutex.h: New.
1007 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1009         PR libgomp/37935
1010         * libgomp.texi (Runtime library routines, environment variables):
1011         Update for OpenMP version 3.0.
1013 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1014             Steve Ellcey  <sje@cup.hp.com>
1016         * configure: Regenerate for new libtool.
1017         * Makefile.in: Ditto.
1018         * testsuite/Makefile.in: Ditto.
1020 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1021             Andreas Tobler  <a.tobler@schweiz.org>
1023         * config/bsd/proc.c: New file.
1024         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1025         * configure.ac: Check for header <sys/sysctl.h>
1026         * configure: Regenerate.
1027         * config.h.in: Likewise.
1029 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1031         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1033 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1035         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1036         * Makefile.in: Regenerated.
1037         * testsuite/Makefile.in: Regenerated.
1039 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1041         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1042         depend on blddir if blddir exists.
1043         (libgomp_target_compile): Likewise.
1044         * testsuite/libgomp.c++/c++.exp: Likewise.
1045         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1047 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1049         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1050         Do not list GPL as Invariant Section.
1052 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1053             Chao-ying Fu  <fu@mips.com>
1055         * configure.tgt: Enable futex for MIPS.
1056         * config/linux/mips/futex.h: New file.
1058 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1060         * team.c (gomp_team_end): Free team immediately if it has
1061         just one thread.
1063 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1065         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1066         * testsuite/libgomp.fortran/fortran.exp: Same.
1067         * testsuite/libgomp.c/c.exp: Same.
1068         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1069         directory to library path first.
1071 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1073         * env.c (parse_stacksize): Add cast to avoid warning.
1074         (parse_spincount): Likewise.
1076 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1078         * testsuite/libgomp.c/loop-10.c: New test.
1079         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1080         * libgomp.c++/loop-6.C (main): Likewise.
1082         PR debug/36617
1083         * testsuite/libgomp.c/debug-1.c: New test.
1085 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1087         * testsuite/libgomp.c/nqueens-1.c: New test.
1089         PR c++/36523
1090         * testsuite/libgomp.c++/task-7.C: New function.
1092 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1094         * configure: Regenerate.
1096 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1098         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1099         mutex when HAVE_SYNC_BUILTINS isn't defined.
1101 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1103         * libgomp.texi (omp_test_lock): Fix typo.
1105 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1107         * omp_lib.f90.in: Add "implicit none".
1109 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1111         PR middle-end/36506
1112         * testsuite/libgomp.c/reduction-5.c: New test.
1114 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1116         * libgomp.h (struct gomp_task): Add in_tied_task field.
1117         * task.c (gomp_init_task): Initialize it.
1118         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1119         unconditionally.  Don't call gomp_team_barrier_wake if
1120         current task is implicit or if(0) from implicit and number of
1121         running tasks is equal to nthreads - 1.
1123         PR libgomp/36471
1124         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1125         omp_get_team_size_8): Fix pastos.
1127         PR libgomp/36469
1128         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1129         * configure: Regenerated.
1130         * config.h.in: Regenerated.
1131         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1132         defined.
1134 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1136         PR bootstrap/36452
1137         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1138         (GOMP_loop_ull_dynamic_start): Likewise.
1139         (GOMP_loop_ull_guided_start): Likewise.
1140         (GOMP_loop_ull_ordered_static_start): Likewise.
1141         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1142         (GOMP_loop_ull_ordered_guided_start): Likewise.
1144 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1145             Richard Henderson  <rth@redhat.com>
1146             Ulrich Drepper  <drepper@redhat.com>
1147             Jakob Blomer  <jakob.blomer@ira.uka.de>
1149         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1150         Substitute also OMP_*LOCK_25*.
1151         * configure: Regenerated.
1152         * config.h.in: Regenerated.
1153         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1154         ptrlock.c and task.c.
1155         * Makefile.in: Regenerated.
1156         * testsuite/Makefile.in: Regenerated.
1157         * task.c: New file.
1158         * loop_ull.c: New file.
1159         * iter_ull.c: New file.
1160         * libgomp.h: Include ptrlock.h.
1161         (enum gomp_task_kind): New type.
1162         (struct gomp_team): Add task_lock, task_queue, task_count,
1163         task_running_count, single_count fields.  Add
1164         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1165         Remove work_share_lock, generation_mask,
1166         oldest_live_gen, num_live_gen and init_work_shares fields, add
1167         work work_share_list_alloc, work_share_list_free and work_share_chunk
1168         fields.  Change work_shares from pointer to pointers into an array.
1169         Change ordered_release field into gomp_sem_t ** from flexible array
1170         member.  Add implicit_task and initial_work_shares fields.
1171         Move close to the end of the struct.
1172         (struct gomp_team_state): Add single_count, last_work_share,
1173         active_level and level fields, remove work_share_generation.
1174         (gomp_barrier_handle_tasks): New prototype.
1175         (gomp_finish_task): New inline function.
1176         (struct gomp_work_share): Move chunk_size, end, incr into
1177         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1178         next_ll fields.  Reshuffle fields.  Add next_alloc,
1179         next_ws, next_free and inline_ordered_team_ids fields, change
1180         ordered_team_ids into pointer from flexible array member.
1181         Add mode field.  Put lock and next into a different cache line
1182         from most of the write-once fields.
1183         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1184         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1185         gomp_iter_ull_guided_next): New prototypes.
1186         (gomp_new_icv): New prototype.
1187         (struct gomp_thread): Add thread_pool and task fields.
1188         (struct gomp_thread_pool): New type.
1189         (gomp_new_team): New prototype.
1190         (gomp_team_start): Change type of last argument.
1191         (gomp_new_work_share): Removed.
1192         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1193         (gomp_work_share_init_done): New static inline.
1194         (gomp_throttled_spin_count_var, gomp_available_cpus,
1195         gomp_managed_threads): New extern decls.
1196         (gomp_init_task): New prototype.
1197         (gomp_spin_count_var): New extern var decl.
1198         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1199         or no alias support, or if not PIC.
1200         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1201         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1202         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1203         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1204         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1205         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1206         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1207         gomp_test_nest_lock_25): New prototypes.
1208         (omp_lock_symver, strong_alias): Define.
1209         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1210         decls.
1211         (gomp_end_task): New.
1212         (struct gomp_task_icv, gomp_global_icv): New.
1213         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1214         (struct gomp_task): New.
1215         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1216         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1217         (gomp_icv): New.
1218         (gomp_schedule_type): Reorder enum to match
1219         omp_sched_t.
1220         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1221         fields.
1222         (gomp_thread_start): Add gomp_team_barrier_wait call.
1223         For non-nested case remove clearing of docked thread thr fields.
1224         Use pool fields instead of global gomp_* variables.  Use
1225         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1226         Create tasks for each member thread.
1227         (free_team): Only destroy team barrier, task_lock here and free it.
1228         (gomp_free_thread): Free last_team if non-NULL.
1229         (gomp_team_end): Call gomp_team_barrier_wait instead of
1230         gomp_barrier_wait.  For nested case call one extra
1231         gomp_barrier_wait.  Move here some destruction from free_team.
1232         Call free_team on pool->last_team if any, rather than freeing
1233         current team.  Destroy work_share_list_free_lock ifndef
1234         HAVE_SYNC_BUILTINS.
1235         (gomp_new_icv): New function.
1236         (gomp_threads, gomp_threads_size, gomp_threads_used,
1237         gomp_threads_dock): Removed.
1238         (gomp_thread_destructor): New variable.
1239         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1240         functions.
1241         (gomp_team_start): Create new pool if current thread doesn't have
1242         one.  Use pool fields instead of global gomp_* variables.
1243         Initialize thread_pool field for new threads.  Clear single_count.
1244         Change last argument from ws to team, don't create
1245         new team, set ts.work_share to &team->work_shares[0] and clear
1246         ts.last_work_share.  Don't clear ts.work_share_generation.
1247         If number of threads changed, adjust atomically gomp_managed_threads.
1248         Use gomp_init_task instead of gomp_new_task,
1249         set thr->task to the corresponding implicit_task array entry.
1250         Create tasks for each member thread.  Initialize ts.level.
1251         (initialize_team): Call pthread_key_create on
1252         gomp_thread_destructor.
1253         (team_destructor): New function.
1254         (new_team): Removed.
1255         (gomp_new_team): New function.
1256         (free_team): Free gomp_work_share blocks chained through next_alloc,
1257         instead of freeing work_shares and destroying work_share_lock.
1258         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1259         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1260         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1261         of gomp_barrier_wait.
1262         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1263         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1264         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1265         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1266         of gomp_barrier_wait.
1267         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1268         gomp_work_share_init_done if gomp_work_share_start returned true.
1269         Don't unlock ws->lock.
1270         * work.c: Include stddef.h.
1271         (free_work_share): Use work_share_list_free_lock instead
1272         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1273         Call gomp_fini_work_share and then either free ws if orphaned, or
1274         put it into work_share_list_free list of the current team.
1275         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1276         functions.
1277         (gomp_work_share_start, gomp_work_share_end,
1278         gomp_work_share_end_nowait): Rewritten.
1279         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1280         (openmp_version): Set to 200805.
1281         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1282         omp_sched_guided, omp_sched_auto): New parameters.
1283         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1284         omp_set_max_active_levels, omp_get_max_active_levels,
1285         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1286         omp_get_active_level): New interfaces.
1287         * omp_lib.h.in (openmp_version): Set to 200805.
1288         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1289         omp_sched_guided, omp_sched_auto): New parameters.
1290         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1291         omp_set_max_active_levels, omp_get_max_active_levels,
1292         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1293         omp_get_active_level): New externals.
1294         * loop.c: Include limits.h.
1295         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1296         GFS_AUTO.
1297         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1298         Likewise.  Use gomp_icv.
1299         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1300         ts.static_trip here.
1301         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1302         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1303         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1304         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1305         don't unlock ws->lock, otherwise lock it.
1306         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1307         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1308         (gomp_parallel_loop_start): Call gomp_new_team instead of
1309         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1310         Adjust gomp_team_start caller.  Pass 0 as second argument to
1311         gomp_resolve_num_threads.
1312         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1313         If adding ws->chunk_size nthreads + 1 times after end won't
1314         overflow, set ws->mode to 1.
1315         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1316         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1317         GOMP_loop_ull_ordered_static_start,
1318         GOMP_loop_ull_ordered_dynamic_start,
1319         GOMP_loop_ull_ordered_guided_start,
1320         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1321         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1322         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1323         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1324         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1325         prototypes.
1326         * libgomp.map: Export lock routines also @@OMP_2.0.
1327         (GOMP_loop_ordered_dynamic_first,
1328         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1329         GOMP_loop_ordered_static_first): Remove.
1330         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1331         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1332         GOMP_loop_ull_ordered_dynamic_next,
1333         GOMP_loop_ull_ordered_dynamic_start,
1334         GOMP_loop_ull_ordered_guided_next,
1335         GOMP_loop_ull_ordered_guided_start,
1336         GOMP_loop_ull_ordered_runtime_next,
1337         GOMP_loop_ull_ordered_runtime_start,
1338         GOMP_loop_ull_ordered_static_next,
1339         GOMP_loop_ull_ordered_static_start,
1340         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1341         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1342         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1343         (omp_set_schedule, omp_get_schedule,
1344         omp_get_thread_limit, omp_set_max_active_levels,
1345         omp_get_max_active_levels, omp_get_level,
1346         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1347         omp_set_schedule_, omp_set_schedule_8_,
1348         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1349         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1350         omp_get_max_active_levels_, omp_get_level_,
1351         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1352         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1353         New exports @@OMP_3.0.
1354         * omp.h.in (omp_sched_t): New type.
1355         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1356         omp_set_max_active_levels, omp_get_max_active_levels,
1357         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1358         omp_get_active_level): New prototypes.
1359         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1360         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1361         gomp_thread_limit_var, gomp_remaining_threads_count,
1362         gomp_remaining_threads_lock): New variables.
1363         (parse_spincount): New function.
1364         (initialize_env): Call gomp_init_num_threads unconditionally.
1365         Initialize gomp_available_cpus.  Call parse_spincount,
1366         initialize gomp_{,throttled_}spin_count_var
1367         depending on presence and value of OMP_WAIT_POLICY and
1368         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1369         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1370         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1371         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1372         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1373         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1374         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1375         (gomp_global_icv): New.
1376         (parse_schedule): Use it.  Parse "auto".
1377         (omp_set_num_threads): Use gomp_icv.
1378         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1379         Likewise.
1380         (omp_get_max_threads): Move from parallel.c.
1381         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1382         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1383         add ialias.
1384         (parse_stacksize, parse_wait_policy): New functions.
1385         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1386         both wrappers for compatibility and new locks.
1387         (omp_set_schedule, omp_get_schedule,
1388         omp_get_thread_limit, omp_set_max_active_levels,
1389         omp_get_max_active_levels, omp_get_level,
1390         omp_get_ancestor_thread_num, omp_get_team_size,
1391         omp_get_active_level): New ialias_redirect.
1392         (omp_set_schedule_, omp_set_schedule_8_,
1393         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1394         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1395         omp_get_max_active_levels_, omp_get_level_,
1396         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1397         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1398         New functions.
1399         * parallel.c: Include limits.h.
1400         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1401         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1402         argument to gomp_team_start.  Pass 0 as second argument to
1403         gomp_resolve_num_threads.
1404         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1405         if gomp_thread_limit_var != ULONG_MAX.
1406         (omp_in_parallel): Implement using ts.active_level.
1407         (omp_get_max_threads): Move to env.c.
1408         (omp_get_level, omp_get_ancestor_thread_num,
1409         omp_get_team_size, omp_get_active_level): New functions,
1410         add ialias.
1411         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1412         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1413         gomp_iter_dynamic_next instead of the _locked variant and don't take
1414         lock around it, otherwise acquire it before calling
1415         gomp_iter_dynamic_next_locked.
1416         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1417         gomp_iter_dynamic_next instead of the _locked variant and don't take
1418         lock around it.
1419         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1420         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1421         Adjust gomp_team_start caller.  Pass count as second argument to
1422         gomp_resolve_num_threads, don't adjust num_threads after the call.
1423         Use gomp_icv.
1424         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1425         ws->chunk_size by incr.
1426         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1427         code.
1428         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1429         types.
1430         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1431         (omp_check_defines): Check even the compat defines.
1432         * config/linux/ptrlock.c: New file.
1433         * config/linux/ptrlock.h: New file.
1434         * config/linux/wait.h: New file.
1435         * config/posix/ptrlock.c: New file.
1436         * config/posix/ptrlock.h: New file.
1437         * config/linux/bar.h (gomp_team_barrier_wait,
1438         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1439         (gomp_team_barrier_set_task_pending,
1440         gomp_team_barrier_clear_task_pending,
1441         gomp_team_barrier_set_waiting_for_tasks,
1442         gomp_team_barrier_waiting_for_tasks,
1443         gomp_team_barrier_done): New inlines.
1444         (gomp_barrier_t): Rewritten.
1445         (gomp_barrier_state_t): New typedef.
1446         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1447         gomp_barrier_wait_start): Rewritten.
1448         (gomp_barrier_wait_end): Change second argument to
1449         gomp_barrier_state_t.
1450         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1451         inlines.
1452         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1453         futex.h.
1454         (gomp_barrier_wait_end): Rewritten.
1455         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1456         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1457         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1458         (gomp_barrier_state_t): New typedef.
1459         (gomp_team_barrier_wait,
1460         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1461         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1462         into the return value.  Return gomp_barrier_state_t.
1463         (gomp_team_barrier_set_task_pending,
1464         gomp_team_barrier_clear_task_pending,
1465         gomp_team_barrier_set_waiting_for_tasks,
1466         gomp_team_barrier_waiting_for_tasks,
1467         gomp_team_barrier_done): New inlines.
1468         (gomp_barrier_wait_end): Change second argument to
1469         gomp_barrier_state_t.
1470         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1471         inlines.
1472         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1473         (gomp_barrier_wait_end): Change second argument to
1474         gomp_barrier_state_t.
1475         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1476         gomp_team_barrier_wake): New functions.
1477         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1478         futex.h.
1479         (gomp_futex_wake, gomp_futex_wait): New variables.
1480         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1481         * config/linux/lock.c: Rewrite to make locks task owned,
1482         for backwards compatibility provide the old entrypoints
1483         if symbol versioning.  Include wait.h instead of libgomp.h and
1484         futex.h.
1485         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1486         * config/posix95/lock.c: Rewrite to make locks task owned,
1487         for backwards compatibility provide the old entrypoints
1488         if symbol versioning.
1489         * config/posix/lock.c: Rewrite to make locks task owned,
1490         for backwards compatibility provide the old entrypoints
1491         if symbol versioning.
1492         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1493         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1494         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1495         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1496         (sys_futex0): Return error code.
1497         (futex_wake, futex_wait): If ENOSYS was returned, clear
1498         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1499         (cpu_relax, atomic_write_barrier): New static inlines.
1500         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1501         (futex_wake, futex_wait): If ENOSYS was returned, clear
1502         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1503         (cpu_relax, atomic_write_barrier): New static inlines.
1504         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1505         (sys_futex0): Return error code.
1506         (futex_wake, futex_wait): If ENOSYS was returned, clear
1507         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1508         (cpu_relax, atomic_write_barrier): New static inlines.
1509         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1510         (sys_futex0): Return error code.
1511         (futex_wake, futex_wait): If ENOSYS was returned, clear
1512         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1513         (cpu_relax, atomic_write_barrier): New static inlines.
1514         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1515         (sys_futex0): Return error code.
1516         (futex_wake, futex_wait): If ENOSYS was returned, clear
1517         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1518         (cpu_relax, atomic_write_barrier): New static inlines.
1519         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1520         (sys_futex0): Return error code.
1521         (futex_wake, futex_wait): If ENOSYS was returned, clear
1522         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1523         (cpu_relax, atomic_write_barrier): New static inlines.
1524         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1525         futex.h.
1526         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1527         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1528         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1529         types.
1530         (omp_nest_lock_t): Change owner into void *, add lock field.
1531         * config/posix95/omp-lock.h: Include semaphore.h.
1532         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1533         (omp_lock_t): Use sem_t instead of mutex if semaphores
1534         aren't broken.
1535         (omp_nest_lock_t): Likewise.  Change owner to void *.
1536         * config/posix/omp-lock.h: Include semaphore.h.
1537         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1538         (omp_lock_t): Use sem_t instead of mutex if semaphores
1539         aren't broken.
1540         (omp_nest_lock_t): Likewise.  Add owner field.
1542 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1544         * testsuite/libgomp.c/collapse-1.c: New test.
1545         * testsuite/libgomp.c/collapse-2.c: New test.
1546         * testsuite/libgomp.c/collapse-3.c: New test.
1547         * testsuite/libgomp.c/icv-1.c: New test.
1548         * testsuite/libgomp.c/icv-2.c: New test.
1549         * testsuite/libgomp.c/lib-2.c: New test.
1550         * testsuite/libgomp.c/lock-1.c: New test.
1551         * testsuite/libgomp.c/lock-2.c: New test.
1552         * testsuite/libgomp.c/lock-3.c: New test.
1553         * testsuite/libgomp.c/loop-4.c: New test.
1554         * testsuite/libgomp.c/loop-5.c: New test.
1555         * testsuite/libgomp.c/loop-6.c: New test.
1556         * testsuite/libgomp.c/loop-7.c: New test.
1557         * testsuite/libgomp.c/loop-8.c: New test.
1558         * testsuite/libgomp.c/loop-9.c: New test.
1559         * testsuite/libgomp.c/nested-3.c: New test.
1560         * testsuite/libgomp.c/nestedfn-6.c: New test.
1561         * testsuite/libgomp.c/sort-1.c: New test.
1562         * testsuite/libgomp.c/task-1.c: New test.
1563         * testsuite/libgomp.c/task-2.c: New test.
1564         * testsuite/libgomp.c/task-3.c: New test.
1565         * testsuite/libgomp.c/task-4.c: New test.
1566         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1567         to C++ testsuite default compiler options.
1568         * testsuite/libgomp.c++/collapse-1.C: New test.
1569         * testsuite/libgomp.c++/collapse-2.C: New test.
1570         * testsuite/libgomp.c++/ctor-10.C: New test.
1571         * testsuite/libgomp.c++/for-1.C: New test.
1572         * testsuite/libgomp.c++/for-2.C: New test.
1573         * testsuite/libgomp.c++/for-3.C: New test.
1574         * testsuite/libgomp.c++/for-4.C: New test.
1575         * testsuite/libgomp.c++/for-5.C: New test.
1576         * testsuite/libgomp.c++/loop-8.C: New test.
1577         * testsuite/libgomp.c++/loop-9.C: New test.
1578         * testsuite/libgomp.c++/loop-10.C: New test.
1579         * testsuite/libgomp.c++/task-1.C: New test.
1580         * testsuite/libgomp.c++/task-2.C: New test.
1581         * testsuite/libgomp.c++/task-3.C: New test.
1582         * testsuite/libgomp.c++/task-4.C: New test.
1583         * testsuite/libgomp.c++/task-5.C: New test.
1584         * testsuite/libgomp.c++/task-6.C: New test.
1585         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1586         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1587         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1588         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1589         * testsuite/libgomp.fortran/collapse1.f90: New test.
1590         * testsuite/libgomp.fortran/collapse2.f90: New test.
1591         * testsuite/libgomp.fortran/collapse3.f90: New test.
1592         * testsuite/libgomp.fortran/collapse4.f90: New test.
1593         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1594         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1595         * testsuite/libgomp.fortran/lib4.f90: New test.
1596         * testsuite/libgomp.fortran/lock-1.f90: New test.
1597         * testsuite/libgomp.fortran/lock-2.f90: New test.
1598         * testsuite/libgomp.fortran/nested1.f90: New test.
1599         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1600         * testsuite/libgomp.fortran/strassen.f90: New test.
1601         * testsuite/libgomp.fortran/tabs1.f90: New test.
1602         * testsuite/libgomp.fortran/tabs2.f: New test.
1603         * testsuite/libgomp.fortran/task1.f90: New test.
1604         * testsuite/libgomp.fortran/task2.f90: New test.
1605         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1606         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1607         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1608         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1609         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1611 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1613         PR c++/36308
1614         * testsuite/libgomp.c++/ctor-11.C: New test.
1615         * testsuite/libgomp.c++/ctor-12.C: New test.
1617 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1619         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1621 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1623         PR middle-end/36106
1624         * testsuite/libgomp.c/atomic-5.c: New test.
1625         * testsuite/libgomp.c/atomic-6.c: New test.
1626         * testsuite/libgomp.c/autopar-1.c: New test.
1628 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1630         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1631         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1632         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1633         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1634         * configure: Regenerate.
1635         * Makefile.in, testsuite/Makefile.in: Likewise.
1637 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1639         PR bootstrap/35457
1640         * aclocal.m4: Regenerate.
1641         * configure: Regenerate.
1643 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1645         PR middle-end/35611
1646         * testsuite/libgomp.c/atomic-4.c: New test.
1648         PR libgomp/35625
1649         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1650         (gomp_iter_guided_next): Likewise.
1651         * testsuite/libgomp.c/pr35625.c: New test.
1653 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1655         * aclocal.m4: Regenerate.
1656         * configure: Likewise.
1657         * Makefile.in: Likewise.
1658         * testsuite/Makefile.in: Likewise.
1660 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1662         PR middle-end/35185
1663         * testsuite/libgomp.c++/pr35185.C: New test.
1665 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1667         PR middle-end/35549
1668         * testsuite/libgomp.c/pr35549.c: New test.
1670 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1672         * testsuite/libgomp.c/atomic-3.c: New test.
1674 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1676         PR fortran/33197
1677         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1678         .F08 file suffixes.
1680 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1682         PR libgomp/33131
1683         * configure.ac: Add ACX_HEADER_STRING.
1684         * env.c: Include strings.h.
1685         * aclocal.m4: Regenerate.
1686         * config.h.in: Regenerate.
1687         * configure: Regenerate.
1688         * Makefile.in: Regenerate.
1689         * testsuite/Makefile.in: Regenerate.
1691 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1693         PR middle-end/35196
1694         * testsuite/libgomp.c/pr35196.c: New test.
1696         PR middle-end/35130
1697         * testsuite/libgomp.fortran/pr35130.f90: New test.
1698         * testsuite/libgomp.c/pr35130.c: New test.
1700 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1702         PR middle-end/33880
1703         * testsuite/libgomp.c/pr33880.c: New test.
1704         * testsuite/libgomp.fortran/pr33880.f90: New test.
1706 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1708         * configure: Regenerate.
1710 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1712         * configure.ac: Move futex checking into ../config/futex.m4.
1713         * configure: Rebuilt.
1714         * aclocal.m4: Rebuilt.
1715         * Makefile.in: Rebuilt.
1717         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1718         2007-10-15 ../config/tls.m4 change.
1720 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1722         PR c++/34513
1723         * testsuite/libgomp.c/pr34513.c: New test.
1724         * testsuite/libgomp.c++/pr34513.C: New test.
1726 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1728         PR target/32765
1729         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1731 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1733         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1735 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1737         * testsuite/libgomp.c/private-1.c: New test.
1739 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1740             Paolo Bonzini  <bonzini@gnu.org>
1742         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1743         instead of 'VPATH ='.
1744         * Makefile.in: Regenerate.
1746 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1748         * configure.ac: Adjust makeinfo version check.
1749         * configure: Regenerate.
1751 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1753         PR fortran/34020
1754         * testsuite/libgomp.fortran/pr34020.f90: New test.
1756 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1758         PR c++/33894
1759         * testsuite/libgomp.c++/atomic-1.C: New test.
1761 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1763         PR libgomp/33275
1764         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1765         Make x and y integers rather than (implicit) reals.  Add private (j)
1766         clause to the last omp parallel.
1768 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1770         * configure: Regenerate following changes to ../config/tls.m4.
1772 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1774         * testsuite/libgomp.fortran/stack.f90: New test.
1776 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1778         * config/mingw32/proc.c: New file.
1780 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1782         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1783         (main): Use __get_cpuid to get i386 target fetaures.
1784         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1785         (main): Use __get_cpuid to get x86_64 target fetaures.
1787 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1789         PR target/32765
1790         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1791         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1793 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1795         PR fortran/32550
1796         * testsuite/libgomp.fortran/pr32550.f90: New test.
1797         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1799 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1801         * aclocal.m4: Regenerated.
1803 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1805         PR fortran/32359
1806         * testsuite/libgomp.fortran/pr32359.f90: New.
1808 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1810         PR libgomp/32468
1811         * sections.c (GOMP_parallel_sections_start): Only decrease
1812         number of threads to COUNT if dyn_var is true.
1813         * testsuite/libgomp.c/pr32468.c: New test.
1815 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1817         PR libgomp/26308
1818         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1820 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1822         PR middle-end/32362
1823         * testsuite/libgomp.c/pr32362-1.c: New test.
1824         * testsuite/libgomp.c/pr32362-2.c: New test.
1825         * testsuite/libgomp.c/pr32362-3.c: New test.
1827 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1829         * team.c (gomp_team_start): Fix setting up thread_attr
1830         stack size.
1832 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1834         * configure: Regenerate.
1836 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1838         * Makefile.in: Regenerate.
1839         * configure: Regenerate.
1840         * aclocal.m4: Regenerate.
1841         * testsuite/Makefile.in: Regenerate.
1843 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1845         * config/linux/proc.c: New file.
1847         PR libgomp/28482
1848         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1850 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1852         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1854 2007-04-16  Matthias Klose  <doko@debian.org>
1856         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1857         flags if not building with -m64.
1858         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1859         flag for i?86-*-* targets, if current target matches -m64.
1861 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1863         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1864         * Makefile.in: Regenerate.
1866 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1868         PR testsuite/31369
1869         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1870         ld_library_path.
1871         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1873 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1875         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1876         decls.
1877         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1878         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1879         (parse_affinity): New function.
1880         (initialize_env): Call it and gomp_init_affinity.
1881         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1882         create new pthread_attr_t and call gomp_init_thread_affinity
1883         on it for each thread before passing the attribute to pthread_create.
1884         * config/linux/affinity.c: New file.
1885         * config/posix/affinity.c: New file.
1886         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1887         * configure: Rebuilt.
1888         * config.h.in: Rebuilt.
1889         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1890         * Makefile.in: Rebuilt.
1892 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1894         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1895         *-*-darwin*.
1896         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1897         and use it if found.
1899 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1901         * testsuite/config/default.exp: New file.
1902         * testsuite/lib/libgomp.exp: New file.
1903         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1904         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1905         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1906         (libgomp_load): Remove.
1907         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1908         always_ld_library_path, not ld_library_path.  Set additional_flags
1909         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1910         (target_compile): Do not call libgomp_init.  Append lang_library_path
1911         and lang_link_flags to options.
1912         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1913         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1914         here.
1915         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1916         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1917         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1918         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1919         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1920         CX8 flag.
1921         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1922         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1923         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1924         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1925         * testsuite/libgomp.c/atomic-10.c: Ditto.
1927 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1929         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1930         dg-final cleanup-modules line.
1931         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1932         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1933         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1934         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1935         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1936         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1937         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1939 2007-03-18  Andreas Schwab  <schwab@suse.de>
1941         * acinclude.m4: Adjust regular expression for ld version
1942         extraction.
1943         * configure: Regenerate.
1945 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1947         * Makefile.am: Add install-pdf target as copied from
1948         automake v1.10 rules.
1949         * Makefile.in: Regenerate
1951 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1953         PR libgomp/28486
1954         * configure: Regenerate.
1956         PR c++/30703
1957         * testsuite/libgomp.c++/pr30703.C: New test.
1959 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1961         Revert:
1962         2006-07-05  Eric Christopher  <echristo@apple.com>
1963         * configure.ac: Depend addition of -pthread on host OS.
1964         * configure: Regenerate.
1966 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1968         * libgomp.texi: Fix spacing after abbreviations.
1970 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1972         PR libgomp/30546
1973         * configure.ac: Add check for makeinfo
1974         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1975         if an appropiate version of makeinfo is found.
1976         * aclocal.m4: Regenerated.
1977         * configure: Regenerated.
1978         * Makefile.in: Regenerated.
1979         * testsuite/Makefile.in: Regenerated.
1981 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1983         PR libgomp/30540
1984         * libgomp.texi: More about implementation-dependent settings.
1986 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1988         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1990 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1992         PR middle-end/30494
1993         * testsuite/libgomp.c/pr30494.c: New test.
1995 2007-01-15  Tom Tromey  <tromey@redhat.com>
1997         * configure: Rebuilt.
1998         * configure.ac: Fixed comment.
2000 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2002         * libgomp.texi: Document implementation specific default values of
2003         environment variables.
2005 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2007         PR libgomp/28209
2008         * libgomp.texi: New file.
2009         * configure.ac: Add --enable-generated-files-in-srcdir option.
2010         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2011         files to srcdir.
2012         * Makefile.in: Regenerated.
2013         * config.h.in: Regenerated.
2014         * testsuite/Makefile.in: Regenerated.
2015         * NOTES: Removed.
2017 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2019         PR libgomp/29949
2020         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2022 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2024         * configure: Regenerate.
2026 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2028         PR libgomp/29947
2029         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2030         start if there shouldn't be any loop iterations.
2031         (gomp_loop_ordered_static_start): Remove start == end test.
2032         * testsuite/libgomp.c/pr29947-1.c: New test.
2033         * testsuite/libgomp.c/pr29947-2.c: New test.
2035 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2037         * configure.tgt: Force initial-exec TLS model on Linux only.
2039 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2041         * configure: Regenerated.
2043 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2045         * env.c (parse_schedule): Reject out of range values.
2046         (parse_unsigned_long): Reject out of range, negative or zero values.
2048 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2050         PR fortran/29629
2051         * testsuite/libgomp.fortran/pr29629.f90: New test.
2053 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2055         PR libgomp/29494
2056         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2057         * config/posix95: New directory.
2058         * config/posix95/omp-lock.h: New file.
2059         * config/posix95/lock.c: Likewise.
2061 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2063         * aclocal.m4: Regenerate.
2064         * configure: Regenerate.
2066 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2068         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2069         '<' to '<='.
2071 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2073         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2074         test.
2075         * configure: Regenerate.
2076         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2078 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2080         PR middle-end/25261
2081         PR middle-end/28790
2082         * testsuite/libgomp.c/nestedfn-4.c: New test.
2083         * testsuite/libgomp.c/nestedfn-5.c: New test.
2084         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2086         PR fortran/29097
2087         * testsuite/libgomp.fortran/condinc1.f: New test.
2088         * testsuite/libgomp.fortran/condinc2.f: New test.
2089         * testsuite/libgomp.fortran/condinc3.f90: New test.
2090         * testsuite/libgomp.fortran/condinc4.f90: New test.
2091         * testsuite/libgomp.fortran/condinc1.inc: New file.
2093 2006-09-18  Tom Tromey  <tromey@redhat.com>
2095         * configure: Rebuilt.
2097 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2099         PR c/28768
2100         PR preprocessor/14634
2101         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2102         to AC_DEFINE.
2103         * configure: Regenerate.
2105 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2107         * testsuite/libgomp.fortran/reduction3.f90: Change
2108         -2147483648 to -huge(i)-1 to avoid overflow.
2109         * testsuite/libgomp.fortran/reduction4.f90: Change
2110         Z'ffffffff' to not(0) to avoid overflow.
2112 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2114         PR libgomp/25938
2115         * Makefile.am (libsubincludedir): New.
2116         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2117         * Makefile.in: Regenerate.
2119 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2121         PR libgomp/28725
2122         * env.c: Include ctype.h.
2123         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2124         leading and/or trailing whitespace and compare strings case
2125         insensitively.
2127 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2129         PR fortran/28390
2130         * testsuite/libgomp.fortran/pr28390.f: New test.
2132 2006-07-05  Eric Christopher  <echristo@apple.com>
2134         * configure.ac: Depend addition of -pthread on host OS.
2135         * configure: Regenerate.
2137 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2139         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2140         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2141         defined.
2143 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2145         PR libgomp/26175
2146         PR libgomp/26477
2147         * configure.ac: If neither --enable-linux-futex nor
2148         --disable-linux-futex is passed, determine the default by checking
2149         for compiling and/or running against NPTL.  With --enable-linux-futex,
2150         check if SYS_gettid and SYS_futex are defined.
2151         * configure: Rebuilt.
2153 2006-06-14  Richard Henderson  <rth@redhat.com>
2155         PR libgomp/28008
2156         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2157         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2159 2006-06-09  Richard Henderson  <rth@redhat.com>
2161         * env.c (gomp_nthreads_var): Change to unsigned long.
2162         (gomp_run_sched_chunk): Likewise.
2163         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2164         (initialize_env): Initialize gomp_thread_attr.
2165         * libgomp.h (gomp_nthreads_var): Update decl.
2166         (gomp_run_sched_chunk): Likewise.
2167         (gomp_thread_attr): Declare.
2168         * team.c (gomp_thread_attr): Export.
2169         (initialize_team): Don't initialize it.
2171 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2173         PR fortran/27916
2174         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2175         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2177 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2179         * config/mingw32/time.c: New file.
2180         * configure.tgt: Use it.
2182 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2184         * Makefile.am: Add install-html target. Add install-html to .PHONY
2185         * Makefile.in: Regenerate.
2187 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2189         PR libgomp/27612
2190         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2191         * testsuite/libgomp.c/critical-1.c: Likewise.
2192         * testsuite/libgomp.c/loop-1.c: Likewise.
2193         * testsuite/libgomp.c/loop-2.c: Likewise.
2194         * testsuite/libgomp.c/single-1.c: Likewise.
2195         * testsuite/libgomp.c/ordered-1.c: Likewise.
2196         * testsuite/libgomp.c/ordered-2.c: Likewise.
2198 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2200         PR middle-end/27416
2201         * libgomp.fortran/pr27416-1.f90: New test.
2203 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2205         PR fortran/27395
2206         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2207         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2209 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2211         PR c++/26943
2212         * testsuite/libgomp.c/pr26943-1.c: New test.
2213         * testsuite/libgomp.c/pr26943-2.c: New test.
2214         * testsuite/libgomp.c/pr26943-3.c: New test.
2215         * testsuite/libgomp.c/pr26943-4.c: New test.
2216         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2217         * testsuite/libgomp.c++/pr26943.C: New test.
2219 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2221         PR middle-end/27337
2222         * testsuite/libgomp.c++/pr27337.C: New test.
2224 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2226         PR c/26171
2227         * testsuite/libgomp.c/pr26171.c: New test.
2229 2006-04-25  Richard Henderson  <rth@redhat.com>
2231         PR libgomp/25865
2232         * configure.ac: Use GCC_CHECK_TLS.
2233         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2234         * Makefile.in, aclocal.m4, configure: Regenerate.
2236 2006-04-10  Matthias Klose  <doko@debian.org>
2238         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2239         directory names containing underscores.
2241 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2243         PR c++/26691
2244         * testsuite/libgomp.c++/pr26691.C: New test.
2246 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2248         * testsuite/libgomp.fortran/retval2.f90: New test.
2250 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2252         * testsuite/libgomp.c++: New directory.
2254 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2256         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2257         * config/posix/sem.c: Implement the above.
2259 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2261         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2262         define HAVE_BROKEN_POSIX_SEMAPHORES.
2263         * configure: Rebuilt.
2264         * config.h.in: Rebuilt.
2266 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2268         PR bootstrap/26161
2269         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2270         for the other pthread check.
2271         * configure: Regenerate.
2272         * config.h.in: Regenerate.
2274 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2276         PR libgomp/25938
2277         PR libgomp/25984
2278         * Makefile.am (fincludedir): New variable.
2279         (nodist_include_HEADERS): Remove Fortran files.
2280         (nodist_finclude_HEADERS): New variable.
2281         * Makefile.in: Regenerated.
2283 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2285         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2286         Remove tests for returning assumed character length arrays.
2288 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2289             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2291         PR libgomp/25936
2292         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2294 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2296         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2298 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2300         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2301         part of LD_LIBRARY_PATH manually.
2303 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2305         PR libgomp/25852
2306         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2307         libgomp_init.
2309 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2311         PR libgomp/25884
2312         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2313         * configure.ac (PERL): Don't set.
2314         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2315         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2316         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2317         * omp.h.in: Wrap the new configure substitutions with @ characters.
2318         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2319         * aclocal.m4, configure, Makefile.in: Regenerate.
2320         * mkomp_h.pl: Delete.
2322 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2324         PR libgomp/25259
2325         * configure.ac: Use GCC_HEADER_STDINT.
2326         * libgomp.h: Include gstdint.h.
2327         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2328         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2330 2006-01-24  Richard Henderson  <rth@redhat.com>
2332         PR libgomp/25942
2333         * configure.ac: Add AM_MAINTAINER_MODE.
2334         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2336 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2338         * Makefile.in: Regenerate.
2339         * testsuite/Makefile.in: Regenerate.
2340         * aclocal.m4: Regenerate.
2342 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2344         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2345         Solaris.
2346         * configure.ac: Add check for loadavg.h.
2347         (link_gomp): Adjust comment.
2348         * configure: Regenerate.
2349         * config.h.in: Regenerate.
2351 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2353         PR libgomp/25877
2354         * configure.ac: Remove check for alloca.h.
2355         * configure: Regenerate.
2356         * config.h.in: Regenerate.
2357         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2358         * team.c: Remove use of alloca.h.
2359         Call gomp_alloca instead of alloca.
2361 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2363         PR libgomp/25877
2364         * team.c: Add include of alloca.h.
2365         * configure.ac: Add check for alloca.h.
2366         * configure: Regenerate.
2367         * config.h.in: Regenerate.
2369 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2371         PR fortran/25219
2372         * testsuite/libgomp.fortran/pr25219.f90: New test.
2374 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2376         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2377         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2378         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2379         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2380         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2381         testsuite/libgomp.fortran/threadprivate1.f90,
2382         testsuite/libgomp.fortran/threadprivate2.f90,
2383         testsuite/libgomp.fortran/threadprivate3.f90,
2384         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2385         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2386         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2387         effective-target to TLS runtime.
2389         * testsuite/libgomp.fortran/pr25162.f: Require
2390         effective-target TLS runtime.
2392 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2394         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2395         * testsuite/libgomp.c/nestedfn-3.c: New test.
2397 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2399         PR fortran/25162
2400         * testsuite/libgomp.fortran/pr25162.f: New test.
2402 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2404         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2405         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2407 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2409         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2410         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2411         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2412         single.c, team.c, work.c, config/linux/alpha/futex.h,
2413         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2414         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2415         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2416         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2417         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2418         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2419         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2420         FSF address.
2422 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2424         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2425         to nodist_noinst_HEADERS.
2426         * Makefile.in: Rebuilt.
2428         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2429         add integer count field.
2430         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2431         omp_nest_lock_t type change.
2432         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2433         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2434         Increment count.
2435         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2436         Decrement count.
2437         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2438         Increment count if successful and return the new nesting level.
2439         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2440         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2441         * testsuite/libgomp.c/lib-1.c: New test.
2442         * testsuite/libgomp.fortran/lib1.f90: New test.
2443         * testsuite/libgomp.fortran/lib2.f: New test.
2444         * testsuite/libgomp.fortran/lib3.f: New test.
2446 2005-11-17  Richard Henderson  <rth@redhat.com>
2448         PR 24845
2449         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2450         * configure.ac (link_gomp): New.  Substitute it.
2451         (AC_CONFIG_FILES): Add libgomp.spec.
2452         * libgomp.spec.in: New file.
2453         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2454         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2456 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2458         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2459         reduction(-:var) behaving the same as reduction(+:var).
2460         * testsuite/libgomp.c/reduction-4.c: New test.
2462 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2464         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2465         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2466         testsuite/libgomp.c/copyin-3.c,
2467         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2468         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2469         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2470         testsuite/libgomp.c++/pr24455.C,
2471         testsuite/libgomp.fortran/threadprivate1.f90,
2472         testsuite/libgomp.fortran/threadprivate2.f90,
2473         testsuite/libgomp.fortran/threadprivate3.f90,
2474         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2475         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2476         testsuite/libgomp.fortran/omp_parse3.f90: Require
2477         effective-target TLS.
2479 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2481         * HEADER: Remove.
2483 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2485         PR libgomp/24797
2486         * team.c (initialize_team): Pass NULL rather than free as
2487         pthread_key_create destructor.  Initialize thread specific data
2488         pointer in initial thread to a static local variable rather than
2489         malloced memory.
2491 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2493         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2494         its location to ld_library_path.
2496 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2498         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2500 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2502         * testsuite/libgomp.c: Rename from libgomp.dg.
2504 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2506         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2507         threadprivate variable 'i'.
2509 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2511         * config/linux/s390/futex.h: New file.
2512         * configure.tgt: Use it.
2514         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2515         before the parallel.
2517 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2519         PR c++/24734
2520         * testsuite/libgomp.c++/master-1.C: New test.
2522 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2524         * testsuite/libgomp.dg/copyin-3.c: New test.
2526 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2528         * testsuite/libgomp.fortran/retval1.f90: New test.
2529         * testsuite/libgomp.fortran/vla7.f90: New test.
2531 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2533         * testsuite/libgomp.fortran/vla2.f90: New test.
2534         * testsuite/libgomp.fortran/vla3.f90: New test.
2535         * testsuite/libgomp.fortran/vla4.f90: New test.
2536         * testsuite/libgomp.fortran/vla5.f90: New test.
2537         * testsuite/libgomp.fortran/vla6.f90: New test.
2539 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2541         * config/linux/sparc/futex.h: New file.
2542         * configure.tgt: Use it.
2543         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2545         * critical.c: Include stdlib.h.
2546         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2547         ignoring return value.
2548         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2549         LIBGOMP_CHECK_SYNC_BUILTINS check.
2550         * configure: Rebuilt.
2552 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2554         * testsuite/libgomp.fortran/vla1.f90: New test.
2556 2005-10-31  Richard Henderson  <rth@redhat.com>
2558         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2559         setting 's' in different threads.
2561 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2563         * libgomp.h (attribute_hidden, ialias): Define.
2564         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2565         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2566         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2567         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2568         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2569         omp_test_lock, omp_test_nest_lock): Likewise.
2570         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2571         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2572         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2573         omp_test_lock, omp_test_nest_lock): Likewise.
2574         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2575         omp_get_dynamic, omp_get_nested): Likewise.
2576         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2577         omp_get_thread_num, omp_in_parallel): Likewise.
2578         * fortran.c (ialias_redirect): Define.
2579         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2580         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2581         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2582         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2583         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2584         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2585         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2586         omp_get_wtime): Add ialias_redirect.
2588 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2590         * fortran.c: Include stdlib.h.
2592 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2594         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2595         * Makefile.in: Regenerated.
2597 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2599         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2600         * libgomp_f.h.in (omp_check_defines): New function.
2601         * env.c: Include libgomp_f.h.
2602         (initialize_env): Call omp_check_defines.
2604         * testsuite/libgomp.dg/copyin-2.c: New test.
2605         * testsuite/libgomp.c++/copyin-2.C: New test.
2606         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2608         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2609         * testsuite/libgomp.fortran/sharing2.f90: New test.
2611         * testsuite/libgomp.dg/copyin-1.c: New test.
2612         * testsuite/libgomp.c++/copyin-1.C: New test.
2614 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2616         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2618         * testsuite/libgomp.fortran/workshare1.f90: New test.
2620         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2621         only test.
2622         * libgomp.fortran/sharing1.f90: New test.
2624 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2626         PR c++/24502
2627         * testsuite/libgomp.c++/loop-7.C: New test.
2629         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2631         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2632         * testsuite/libgomp.fortran/reduction6.f90: New test.
2633         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2635 2005-10-23  Richard Henderson  <rth@redhat.com>
2637         * testsuite/libgomp.c++/ctor-1.C: New.
2638         * testsuite/libgomp.c++/ctor-2.C: New.
2639         * testsuite/libgomp.c++/ctor-3.C: New.
2640         * testsuite/libgomp.c++/ctor-4.C: New.
2641         * testsuite/libgomp.c++/ctor-5.C: New.
2642         * testsuite/libgomp.c++/ctor-6.C: New.
2643         * testsuite/libgomp.c++/ctor-7.C: New.
2644         * testsuite/libgomp.c++/ctor-8.C: New.
2645         * testsuite/libgomp.c++/ctor-9.C: New.
2647 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2649         PR 24455
2650         * testsuite/libgomp.c++/pr24455-1.C: New test.
2651         * testsuite/libgomp.c++/pr24455.C: New test.
2652         * testsuite/libgomp.dg/pr24455-1.c: New test.
2653         * testsuite/libgomp.dg/pr24455.c: New test.
2655 2005-10-20  Richard Henderson  <rth@redhat.com>
2657         * testsuite/libgomp.c++/loop-6.C: New.
2658         * testsuite/libgomp.dg/loop-3.c: New.
2660 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2662         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2663         explicitly private.
2664         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2665         explicitly shared.
2667 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2669         * testsuite/libgomp.fortran/jacobi.f: New test.
2671 2005-10-19  Richard Henderson  <rth@redhat.com>
2673         * configure.tgt (i?86-linux): Default to with_arch instead of
2674         CFLAGS.  Add -mtune to match target_cpu.
2675         (x86_64-linux): Tune to i686.
2677         * fortran.c (omp_test_nest_lock_): Fix typo.
2679 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2681         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2682         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2683         * testsuite/libgomp.dg/ordered-3.c: New test.
2685         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2686         Remove volatile keyword.
2688         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2689         in COMMON block to avoid warnings on 64-bit targets.
2691 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2693         * testsuite/libgomp.dg/shared-3.c: New test.
2695 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2697         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2698         * testsuite/libgomp.fortran/reduction5.f90: New test.
2700 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2702         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2703         dg-options.
2704         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2705         flush loop now that __sync_synchronize has proper memory barrier.
2706         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2707         Add -ffixed-form to dg-options.
2709 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2711         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2712         from subdirectories.
2713         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2714         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2715         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2716         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2717         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2718         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2719         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2720         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2721         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2722         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2723         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2724         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2725         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2726         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2727         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2728         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2729         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2730         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2731         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2732         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2733         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2734         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2735         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2736         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2737         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2739 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2741         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2742         lang_library_path exists.  Use find instead of glob to gather tests.
2743         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2745 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2747         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2748         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2749         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2750         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2751         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2752         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2753         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2754         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2755         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2756         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2757         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2758         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2759         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2761 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2763         * testsuite/libgomp.dg/vla-1.c: New test.
2765         * testsuite/libgomp.fortran/reference2.f90: New test.
2767         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2768         declaration of omp_get_thread_num.
2769         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2770         use omp_lib.
2772         * testsuite/libgomp.fortran/reduction1.f90: New test.
2773         * testsuite/libgomp.fortran/reduction2.f90: New test.
2774         * testsuite/libgomp.fortran/reduction3.f90: New test.
2775         * testsuite/libgomp.fortran/reduction4.f90: New test.
2777 2005-10-13  Richard Henderson  <rth@redhat.com>
2779         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2780         * Makefile.in: Regenerate.
2781         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2782         * libgomp.h: Include bar.h.
2783         (struct gomp_barrier): Remove.
2784         (struct gomp_team): Add barrier.  Replace master_barrier with
2785         master_release.  Replace threads with ordered_release.
2786         (struct gomp_thread): Replace barrier with release.
2787         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2788         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2789         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2790         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2791         (GOMP_single_copy_end): Likewise.
2792         * team.c (gomp_threads_dock): New.
2793         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2794         (gomp_thread_start): Use gomp_barrier_wait.
2795         (new_team, free_team): Update for gomp_team changes.
2796         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2797         (gomp_team_end): Use gomp_barrier_wait.
2798         (initialize_team): Update for gomp_thread changes.
2799         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2800         (gomp_work_share_end_nowait): Use atomic ops when available.
2801         * config/linux/bar.c, config/linux/bar.h: New files.
2802         * config/posix/bar.c, config/posix/bar.h: New files.
2804 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2806         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2807         * testsuite/libgomp.dg/single-2.c: New test.
2809         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2810         lang_link_flags): Unset, so that they aren't inherited from previously
2811         sourced *.exp.
2813         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2815 2005-10-12  Richard Henderson  <rth@redhat.com>
2817         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2818         (libgomp_init): Use lang_test_file, lang_library_path, and
2819         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2821         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2822         (lang_test_file, lang_link_flags): New.
2823         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2825         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2826         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2827         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2828         testsuite/libgomp.c++/parallel-1.C,
2829         testsuite/libgomp.c++/reduction-1.C,
2830         testsuite/libgomp.c++/reduction-2.C,
2831         testsuite/libgomp.c++/reduction-3.C,
2832         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2833         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2834         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2835         New files, largely cribbed from the C testsuite.
2837 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2839         * testsuite/libgomp.fortran/character1.f90: New test.
2840         * testsuite/libgomp.fortran/character2.f90: New test.
2842         * testsuite/libgomp.dg/nested-1.c: New test.
2843         * testsuite/libgomp.dg/nested-2.c: New test.
2844         * testsuite/libgomp.fortran/do1.f90: New test.
2845         * testsuite/libgomp.fortran/do2.f90: New test.
2847         * testsuite/libgomp.fortran/reference1.f90: New test.
2849 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2851         * testsuite/libgomp.dg/reduction-1.c: New test.
2852         * testsuite/libgomp.dg/reduction-2.c: New test.
2853         * testsuite/libgomp.dg/reduction-3.c: New test.
2855 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2857         * testsuite/libgomp.dg/atomic-1.c: New test.
2858         * testsuite/libgomp.dg/atomic-2.c: New test.
2860 2005-10-09  Richard Henderson  <rth@redhat.com>
2862         * critical.c (atomic_lock): New.
2863         (initialize_critical): Initialize it.
2864         (GOMP_atomic_start, GOMP_atomic_end): New.
2865         * libgomp.map: Export them.
2866         * libgomp_g.h: Declare them.
2868         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2870 2005-10-02  Richard Henderson  <rth@redhat.com>
2872         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2873         to XCFLAGS instead of CFLAGS.
2875 2005-09-30  Richard Henderson  <rth@redhat.com>
2877         * configure.ac: Determine whether -pthread or -lpthread is needed.
2878         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2879         * Makefine.in, configure: Rebuild.
2881 2005-09-28  Richard Henderson  <rth@redhat.com>
2883         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2884         * testsuite/libgomp.dg/omp-single-3.c: New test.
2886 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2888         * testsuite/libgomp.dg/omp-single-2.c: New test.
2889         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2891 2005-09-27  Richard Henderson  <rth@redhat.com>
2893         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2894         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2896 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2898         * testsuite/libgomp.dg/omp-loop03.c: New test.
2900 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2902         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2904 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2906         * testsuite/libgomp.dg/omp-single-1.c: New test.
2907         * testsuite/libgomp.dg/shared-1.c: Return 0.
2908         Add prototype for abort.
2909         * testsuite/libgomp.dg/shared-2.c: Likewise.
2911 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2913         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2914         constructs.
2916 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2918         * testsuite/libgomp.dg/shared-1.c: New test.
2919         * testsuite/libgomp.dg/shared-2.c: New test.
2921 2005-09-24  Richard Henderson  <rth@redhat.com>
2923         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2925 2005-09-24  Richard Henderson  <rth@redhat.com>
2927         * iter.c (gomp_iter_static_next): Round up when computing number
2928         of iterations.  Don't bother distributing a remainder equally.
2930         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2931         Don't call srand.  Zero b before testing.
2932         (main): New.
2934 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2936         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2937         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2939 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2941         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2942         without !$omp end do, followed immediately by subroutine end.
2944 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2946         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2948 2005-09-22  Richard Henderson  <rth@redhat.com>
2950         * critical.c (GOMP_critical_name_start): Change argument to void**.
2951         Reuse the pointer space if the mutex fits.
2952         (GOMP_critical_name_end): Likewise.
2953         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2954         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2955         (GOMP_critical_name_end): Likewise.
2956         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2957         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2959 2005-09-20  Richard Henderson  <rth@redhat.com>
2961         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2962         (create_lock_lock): New.
2963         (initialize_critical): Initialize it.
2964         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2965         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2967 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2969         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2971 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2973         * testsuite/libgomp.dg/omp-loop01.c: New test.
2974         * testsuite/libgomp.dg/omp-loop02.c: New test.
2976 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2978         * configure.ac (AC_PROG_FC): Add.
2979         (USE_FORTRAN): New automake conditional.
2980         * configure: Rebuilt.
2981         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2982         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2983         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2984         Add rules to build them.
2985         * Makefile.in: Rebuilt.
2986         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2987         OMP_NEST_LOCK_KIND.
2988         * libgomp.map: Add Fortran wrappers.
2989         * libgomp_f.h.in: New file.
2990         * omp_lib.h.in: New file.
2991         * omp_lib.f90.in: New file.
2992         * fortran.c: New file.
2993         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2994         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2995         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2996         libgfortran has been built.
2997         * testsuite/libgomp.fortran/fortran.exp: New file.
2998         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2999         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3000         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3001         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3002         * testsuite/libgomp.fortran/omp_hello.f: New test.
3003         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3004         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3005         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3006         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3007         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3008         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3009         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3010         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3012 2005-08-30  Richard Henderson  <rth@redhat.com>
3014         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3015         function for when aliases are not usable.
3016         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3017         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3018         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3019         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3020         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3021         GOMP_loop_ordered_guided_next): Likewise.
3022         * ordered.c (GOMP_ordered_start): Likewise.
3024 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3026         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3027         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3028         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3029         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3030         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3031         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3032         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3033         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3034         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3036 2005-07-07  Eric Christopher  <echristo@redhat.com>
3037             Diego Novillo  <dnovillo@redhat.com>
3039         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3040         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3041         up code.
3042         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3043         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3044         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3045         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3046         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3047         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3048         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3050 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3052         * TOPLEVEL.patch: Remove.
3054 2005-05-16  Richard Henderson  <rth@redhat.com>
3056         * configure.ac: Test for clock_gettime.
3057         * config.h.in, configure: Rebuild.
3058         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3059         (omp_get_wtime): Use clock_gettime if available.
3060         (omp_get_wtick): Use clock_getres if available.
3062 2005-05-11  Richard Henderson  <rth@redhat.com>
3064         * config/linux/ia64/futex.h: New file.
3065         * configure.tgt: Use it.
3067         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3069 2005-05-07  Richard Henderson  <rth@redhat.com>
3071         * config/linux/powerpc/futex.h: New file.
3072         * configure.tgt: Use it.
3074         * config/linux/i486/futex.h: Merge ...
3075         * config/linux/x86_64/futex.h: ... into ...
3076         * config/linux/x86/futex.h: ... here.
3077         * configure.tgt: Update to match.
3079 2005-05-06  Richard Henderson  <rth@redhat.com>
3081         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3082         * config/linux/i486/futex.h: Likewise.
3083         * config/linux/x86_64/futex.h: Likewise.
3085         * config/linux/lock.c: New file.
3086         * config/linux/omp-lock.h: New file.
3088         * critical.c, env.h: Don't include omp.h
3089         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3090         * config/posix/time.c: Likewise.
3091         * config/posix/omp-lock.h: New file.
3092         * libgomp.h: Include omp-lock.h and omp.h.
3093         * Makefile.am (nodist_include_HEADERS): New.
3094         (omp.h): New rule.
3095         * configure.ac (PERL): New.
3096         * mkomp_h.pl: New file.
3097         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3098         with templates.
3099         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3101         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3102         build directory.  Re-add -march=i486 hack.
3104         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3105         (libgomp_link_flags): Remove.
3106         (libgomp_initialized): Remove.
3107         (libgomp_init): Don't protect from reinitialization.  Copy code
3108         from libstdc++ for getting the multilib set correctly.
3110 2005-05-05  Richard Henderson  <rth@redhat.com>
3112         * config/linux/alpha/futex.h: New file.
3113         * configure.tgt (alpha*-*-linux*): Use it.
3115         * config/posix/mutex.c: New file.
3116         * config/posix/sem.c: Use libgomp.h.
3118         * configure.tgt (x86_64-linux): Also test CC for -m32.
3119         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3121         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3122         after $gccpath.
3124         * Makefile.am (SUBDIRS): New.
3125         (libgomp_la_LDFLAGS): Add -lpthread.
3126         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3127         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3129         * libgomp_g.h: New file.
3130         * libgomp.h: Split out all public declarations to libgomp_g.h.
3131         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3132         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3133         * config/linux/sem.h: Likewise.
3134         * config/posix/sem.h: Likewise.
3136         * Makefile.am (AM_LDFLAGS): New.
3137         (libgomp_version_script): Split out from ...
3138         (libgomp_la_LDFLAGS): ... here.
3139         (libgomp_version_info): New.
3140         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3141         (LIBGOMP_ENABLE): New.
3142         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3143         (LIBGOMP_ENABLE_SYMVERS): New.
3144         * configure.ac (AC_INIT): Version 1.0.
3145         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3146         (enable-linux-futex): Likewise.  Rename from enable-futex.
3147         (libtool_VERSION): New.
3148         (LIBGOMP_ENABLE_SYMVERS): Use it.
3149         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3150         * Makefile.in, aclocal.m4, configure: Rebuild.
3152         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3153         (gomp_mutex_unlock_slow): Fix typo.
3154         * config/linux/sem.c: Similarly.
3155         (gomp_sem_post_slow): Fix typo.
3156         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3157         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3158         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3160         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3161         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3162         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3163         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3164         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3165         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3166         LDFLAGS.  Pull enable_futex check to top-level.
3167         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3168         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3170         First attempt at real configury.
3171         * Makefile, config.h: Remove file.
3172         * Makefile.am, Makefile.in: New file.
3173         * acinclude.m4 aclocal.m4: New file.
3174         * configure.ac, configure.tgt, configure: New file.
3176         * config/posix/lock.c: Rename from sys-lock.c.
3177         * config/posix/mutex.h: Rename from sys-mutex.h.
3178         * config/posix/sem.c: Rename from sys-sem.c.
3179         * config/posix/sem.h: Rename from sys-sem.h.
3180         * config/posix/proc.c: Rename from sys-proc.c.
3181         * config/posix/time.c: Rename from sys-proc.c.
3183         * config/linux/mutex.c: New file.
3184         * config/linux/mutex.h: New file.
3185         * config/linux/sem.c: New file.
3186         * config/linux/sem.h: New file.
3187         * config/linux/i486/futex.h: New file.
3188         * config/linux/x86_64/futex.h: New file.
3190 2005-05-04  Richard Henderson  <rth@redhat.com>
3192         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3193         * libgomp.h: Declare them.
3194         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3195         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3197 2005-05-04  Richard Henderson  <rth@redhat.com>
3199         * libgomp-1 code drop
3201 2005-05-04  Richard Henderson  <rth@redhat.com>
3203         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3204         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3205         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3206         (gomp_iter_static_next): Update.
3207         (gomp_ordered_static_next): Update.
3208         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3209         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3210         totally empty range.
3211         (gomp_loop_ordered_static_next): Refine test for calling
3212         gomp_ordered_static_next.
3213         * testsuite/ordered-1.c: Add case for more threads than iterations.
3215         * iter.c (gomp_iter_runtime_next_locked): Remove.
3216         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3217         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3218         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3219         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3220         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3221         gomp_loop_ordered_guided_next): Downcase name, make static, add
3222         an external alias with the old name.
3223         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3224         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3225         switch and call one of the above static functions.
3226         * libgomp.h: Update.
3228         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3229         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3230         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3231         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3232         GOMP_loop_ordered_guided_start): Update to match.
3233         * sections.c (GOMP_sections_start): Likewise.
3234         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3236         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3237         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3238         Use bounds check instead of modulus.
3239         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3240         (gomp_ordered_last): Don't sync with ordered_owner here.
3241         (gomp_ordered_next): Likewise.
3242         (gomp_ordered_static_loop_next): Likewise.
3243         * loop.c, libgomp.h: Update to match.
3245         * libgomp.h (GOMP_barrier): Declare.
3247         * testsuite/barrier-1.c: New file.
3248         * testsuite/critical-1.c: New file.
3249         * testsuite/ordered-2.c: New file.
3250         * testsuite/ordered-1.c: New file.
3251         * testsuite/sections-1.c: New file.
3252         * testsuite/single-1.c: New file.
3253         * testsuite/Makefile (TESTS): Add them.
3255 2005-05-04  Richard Henderson  <rth@redhat.com>
3257         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3258         * loop.c (GOMP_loop_static_start): If not the startup thread,
3259         acquire the mutex to wait for initialization complete.
3260         (GOMP_loop_ordered_static_start): Likewise.
3261         (GOMP_loop_ordered_runtime_start): Likewise.
3262         (GOMP_loop_ordered_static_first): Remove.
3263         (GOMP_loop_ordered_dynamic_first): Remove.
3264         (GOMP_loop_ordered_guided_first): Remove.
3265         (GOMP_loop_ordered_runtime_first): Remove.
3266         * ordered.c (gomp_ordered_loop_first): Post to own release when
3267         we're the first thread.
3268         (gomp_ordered_loop_last): Wait on release if not owner.
3269         (gomp_ordered_loop_next): Likewise.
3270         (gomp_ordered_static_loop_init): New.
3271         (gomp_ordered_static_loop_next): Use ordered_owner.
3272         (GOMP_ordered_start): Likewise.
3273         * work.c (gomp_new_work_share): Initialize ordered_owner.
3275 2005-05-03  Richard Henderson  <rth@redhat.com>
3277         * Makefile (OPT): New.
3278         (CFLAGS): Use it.
3280         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3281         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3282         * libgomp.h, libgomp.map, NOTES: Update to match.
3284         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3285         Add initialized and thr members.
3286         (gomp_thread_start): Pause when initially spawned to wait for
3287         the whole team to be created.
3288         (gomp_team_start): Release team members at the end.
3290         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3291         (f_foo_1): Use GOMP_loop_end.
3292         (f_foo_2): Use GOMP_loop_end_nowait.
3294         * testsuite/loop-2.c: New file.
3295         * testsuite/Makefile (TESTS): Add it.
3297 2005-05-03  Richard Henderson  <rth@redhat.com>
3299         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3300         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3301         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3302         initial work_share.
3304         * testsuite/Makefile: New file.
3305         * testsuite/loop-1.c: New file.
3307 2005-05-03  Richard Henderson  <rth@redhat.com>
3309         Initial implementation and checkin.