2012-09-10 Andrew Pinski <apinski@cavium.com>
[official-gcc.git] / libgomp / ChangeLog
blob2f761d7177f9c3b20a555a38a78ec637d097e974
1 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
3         * config/linux/mips/futex.h (sys_futex0): Change to static
4         function with noinline, nomips16 attributes under MIPS16. Adjust
5         asm statement to place 'li v0,SYS_futex' immediately before
6         syscall insn.
8 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
10         * libgomp.texi (Library Index): Renamed from "Index" to prevent
11         conflict with index.html on case-insensitive file systems.
13 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
15         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
18 2012-07-02  Richard Guenther  <rguenther@suse.de>
19             Michael Matz  <matz@suse.de>
20             Tobias Grosser <tobias@grosser.es>
21             Sebastian Pop <sebpop@gmail.com>
23         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
24         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
25         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
26         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
28 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
30         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
32 2012-06-22  Richard Guenther  <rguenther@suse.de>
34         Merge from graphite branch
35         2012-01-13  Tobias Grosser  <tobias@grosser.es>
37         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
38         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
40 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
42         PR middle-end/53580
43         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
44         use GOMP_barrier () call instead.
45         * testsuite/libgomp.c/pr26943-3.c: Likewise.
46         * testsuite/libgomp.c/pr26943-4.c: Likewise.
47         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
48         call GOMP_barrier instead.
49         * testsuite/libgomp.fortran/vla5.f90: Likewise.
51 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
53         PR libgomp/52993
54         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
55         argument to memset call.
57 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
59         * configure: Regenerated.
61 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
63         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
65 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
67         PR bootstrap/52812
68         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
70 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
72         PR middle-end/52547
73         * testsuite/libgomp.c/pr52547.c: New test.
75 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
77         * testsuite/lib/libgomp.exp: load fortran-modules.exp
79 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
81         * configure.tgt (mips-sgi-irix6*): Remove.
83 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
85         * configure.tgt (alpha*-dec-osf*): Remove.
87         * config/osf/sem.h: Remove.
88         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
90 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
92         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
94 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
96         PR libstdc++/52188
97         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
98         Remove ENABLE_SYMVERS_SOL2.
99         * configure: Regenerate.
100         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
101         (PREPROCESS): New variable.
102         (libgomp.ver): New target.
103         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
104         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
105         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
106         Use libgomp.ver.
107         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
108         * Makefile.in: Regenerate.
110 2012-02-14  Walter Lee  <walt@tilera.com>
112         * configure.tgt: Handle tilegx and tilepro.
113         * config/linux/tile/futex.h: New file.
115 2012-02-08  Richard Guenther  <rguenther@suse.de>
117         PR tree-optimization/46886
118         * testsuite/libgomp.c/pr46886.c: New testcase.
120 2012-01-25  Matthias Klose  <doko@ubuntu.com>
122         * config/linux/arm: Remove empty directory.
123         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
125 2011-12-09  Alan Modra  <amodra@gmail.com>
127         PR libgomp/51376
128         * task.c (GOMP_taskwait): Don't access task->children outside of
129         task_lock mutex region.
130         (GOMP_task): Likewise.
132 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
134         PR libgomp/51132
135         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
136         to file scope.
137         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
138         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
139         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
140         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
141         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
143 2011-12-02  Alan Modra  <amodra@gmail.com>
145         * config/linux/affinity.c: Use atomic rather than sync builtin.
146         * config/linux/lock.c: Likewise.
147         * config/linux/ptrlock.h: Likewise.
148         * config/linux/ptrlock.c: Likewise.
149         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
150         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
151         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
152         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
153         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
154         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
155         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
156         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
157         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
158         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
160 2011-11-30  Alan Modra  <amodra@gmail.com>
162         PR libgomp/51298
163         * config/linux/bar.h: Use atomic rather than sync builtins.
164         * config/linux/bar.c: Likewise.  Add missing acquire
165         synchronisation on generation field.
166         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
167         double unlock.
169 2011-11-30  Alan Modra  <amodra@gmail.com>
171         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
172         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
173         * config/linux/mutex.h: Use atomic rather than sync builtins.
174         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
175         * config/linux/omp-lock.h: Comment fix.
176         * config/linux/arm/mutex.h: Delete.
177         * config/linux/powerpc/mutex.h: Delete.
178         * config/linux/ia64/mutex.h: Delete.
179         * config/linux/mips/mutex.h: Delete.
181 2011-11-30  Alan Modra  <amodra@gmail.com>
183         PR libgomp/51249
184         * config/linux/sem.h: Rewrite.
185         * config/linux/sem.c: Rewrite.
187 2011-11-28  Richard Henderson  <rth@redhat.com>
189         * libgomp.h (enum memmodel): New.
191 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
193         * configure: Regenerate.
195 2011-10-10  Matthias Klose  <doko@ubuntu.com>
197         * config/posix95: Remove empty directory.
199 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
201         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
203 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
205         PR fortran/49792
206         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
207         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
209 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
211         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
213 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
215         PR libgomp/49965
216         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
218 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
220         * config/linux/proc.h: New.
221         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
222         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
223         (gomp_init_num_threads): Update call to cpuset_popcount.
224         (get_num_procs): Ditto.
225         * config/linux/affinity.c (gomp_init_affinity): Call
226         gomp_cpuset_popcount.
228 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
230         PR fortran/42041
231         PR fortran/46752
232         * omp.h.in (omp_in_final): New prototype.
233         * omp_lib.f90.in (omp_in_final): New interface.
234         (omp_integer_kind, omp_logical_kind): Remove
235         and replace all its uses in the module with 4.
236         (openmp_version): Change to 201107.
237         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
238         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
239         kind for the parameters.
240         (omp_in_final): New external.
241         (openmp_version): Change to 201107.
242         * task.c (omp_in_final): New function.
243         (gomp_init_task): Initialize final_task.
244         (GOMP_task): Remove unused attribute from flags.  Handle final
245         tasks.
246         (GOMP_taskyield): New function.
247         (omp_in_final): Return true if if (false) or final (true) task
248         or descendant of final (true).
249         * fortran.c (omp_in_final_): New function.
250         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
251         (GOMP_3.0): Export GOMP_taskyield.
252         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
253         variables.
254         (parse_unsigned_long_list): New function.
255         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
256         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
257         even if parse_affinity returned false.
258         * config/linux/affinity.c (gomp_init_affinity): Handle
259         gomp_cpu_affinity_len == 0.
260         * libgomp_g.h (GOMP_taskyield): New prototype.
261         * libgomp.h (struct gomp_task): Add final_task field.
262         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
263         * team.c (gomp_team_start): Override new task's nthreads_var icv
264         if list form OMP_NUM_THREADS has been used and it has value for
265         the new nesting level.
267         * testsuite/libgomp.c/atomic-11.c: New test.
268         * testsuite/libgomp.c/atomic-12.c: New test.
269         * testsuite/libgomp.c/atomic-13.c: New test.
270         * testsuite/libgomp.c/atomic-14.c: New test.
271         * testsuite/libgomp.c/reduction-6.c: New test.
272         * testsuite/libgomp.c/task-5.c: New test.
273         * testsuite/libgomp.c++/atomic-2.C: New test.
274         * testsuite/libgomp.c++/atomic-3.C: New test.
275         * testsuite/libgomp.c++/atomic-4.C: New test.
276         * testsuite/libgomp.c++/atomic-5.C: New test.
277         * testsuite/libgomp.c++/atomic-6.C: New test.
278         * testsuite/libgomp.c++/atomic-7.C: New test.
279         * testsuite/libgomp.c++/atomic-8.C: New test.
280         * testsuite/libgomp.c++/atomic-9.C: New test.
281         * testsuite/libgomp.c++/task-8.C: New test.
282         * testsuite/libgomp.c++/reduction-4.C: New test.
283         * testsuite/libgomp.fortran/allocatable7.f90: New test.
284         * testsuite/libgomp.fortran/allocatable8.f90: New test.
285         * testsuite/libgomp.fortran/crayptr3.f90: New test.
286         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
287         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
288         * testsuite/libgomp.fortran/pointer1.f90: New test.
289         * testsuite/libgomp.fortran/pointer2.f90: New test.
290         * testsuite/libgomp.fortran/task4.f90: New test.
292 2011-08-02  Tobias Burnus  <burnus@net-b.de>
294         * libgomp.texi: Update OpenMP spec references to 3.1.
295         (omp_in_final,OMP_PROC_BIND): New sections.
296         (OMP_NUM_THREADS): Document that the value can be now a list.
297         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
299 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
301         * config/linux/x86/futex.h: Check __x86_64__ instead of
302         __LP64__.
304 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
306         PR middle-end/49897
307         PR middle-end/49898
308         * testsuite/libgomp.c/pr49897-1.c: New test.
309         * testsuite/libgomp.c/pr49897-2.c: New test.
310         * testsuite/libgomp.c/pr49898-1.c: New test.
311         * testsuite/libgomp.c/pr49898-2.c: New test.
313 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
315         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
316         for ia32 instead of ilp32.
318         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
319         * testsuite/libgomp.c/atomic-6.c: Likewise.
321 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
323         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
324         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
326 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
328         PR libgomp/45351
329         * config/osf/sem.h: New file.
330         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
332 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
334         PR target/49541
335         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
336         ldflags.
338 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
340         * config/linux/wait.h (do_spin): New inline, largely copied
341         from do_wait, just don't do futex_wait here, instead return true if
342         it should be done.
343         (do_wait): Implement using do_spin.
344         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
345         to prototype.
346         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
347         __sync_bool_compare_and_swap, pass the oldval to
348         gomp_mutex_lock_slow.
349         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
350         If all mutex contenders are just spinning and not sleeping, don't
351         change state to 2 unnecessarily.  Optimize the loop when state has
352         already become 2 to use just one atomic operation per loop instead
353         of two.
354         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
355         to prototype.
356         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
357         __sync_bool_compare_and_swap, pass the oldval to
358         gomp_mutex_lock_slow.
360 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
362         PR libgomp/49490
363         * iter.c (gomp_iter_static_next): For chunk size 0
364         only use n ceil/ nthreads size for the first
365         n % nthreads threads in the team instead of
366         all threads except for the last few ones which
367         get less work or none at all.
368         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
369         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
370         chunk argument, set run_sched_modifier to 0 for static
371         resp. 1 for other kinds.  If chunk argument is 0
372         and not static, set value to 1.
374 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
376         PR c++/49043
377         * testsuite/libgomp.c++/pr49043.C: New test.
379         PR c++/48869
380         * testsuite/libgomp.c++/pr48869.C: New test.
382 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
384         PR fortran/48894
385         * fortran.c: Include limits.h.
386         (TO_INT): Define.
387         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
388         *set.
389         (omp_set_num_threads_8_, omp_set_schedule_8_,
390         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
391         omp_get_team_size_8_): Use TO_INT macro.
392         * testsuite/libgomp.fortran/pr48894.f90: New test.
394 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
396         PR middle-end/48591
397         * testsuite/libgomp.c/pr48591.c: New test.
399 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
401         PR bootstrap/48135
402         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
403         * configure: Regenerate.
405 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
407         PR fortran/47886
408         * testsuite/libgomp.fortran/task3.f90: New test.
410 2011-02-24  Tobias Burnus  <burnus@net-b.de>
412         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
414 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
416         PR libgomp/47854
417         * libgomp.texi (omp_get_wtime): Don't say time in the past
418         must be Unix Epoch.
420 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
422         PR libgomp/47804
423         * testsuite/libgomp.fortran/fortran.exp: Check for both
424         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
425         but $blddir != "", still append ${blddir}/${lang_library_path}
426         to ld_library_path.
428 2011-02-16  Tobias Burnus  <burnus@net-b.de>
430         PR libgomp/47758
431         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
432         of libquadmath.a before adding its libpath to ldflags.
434 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
436         PR libgomp/47731
437         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
438         to FUTEX_WAIT futex syscall.
439         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
441 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
443         * configure: Regenerate.
445 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
447         PR libstdc++/36104
448         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
450 2011-01-16  Gerald Pfeifer
452         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
454 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
456         PR fortran/46874
457         * libgomp.fortran/allocatable6.f90: New test.
459 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
461         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
462         * configure: Regenerate.
464 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
466         PR target/40125
467         PR lto/46695
468         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
469         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
470         * aclocal.m4: Regenerate.
471         * configure: Regenerate.
472         * Makefile.in: Regenerate.
473         * testsuite/Makefile.in: Regenerate.
475 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
477         PR fortran/46753
478         * libgomp.fortran/pr46753.f90: New test.
480         PR libgomp/43706
481         * env.c (initialize_env): Default to spin count 300000
482         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
483         is specified.
485         PR libgomp/45240
486         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
487         at the end if sync builtins aren't supported.
489 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
491         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
493 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
495         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
497 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
499         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
501 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
502             Tobias Burnus  <burnus@net-b.de>
504         PR fortran/32049
505         * configure.ac:
506         * configure: Regenerate.
508 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
510         * config/linux/futex.h: New.
511         * config/linux/arm/mutex.h: New.
512         * configure.tgt (arm*-*-linux*): Add config path.
514 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
516         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
518 2010-09-23  Tobias Burnus  <burnus@net-b.de>
520         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
521         Change Fortran datatype to LOGICAL.
522         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
523         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
525 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
527         * configure: Regenerate.
529 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
531         * libgomp.texi: Add function keyword to a couple of Fortran
532         interfaces, use integer instead of int for Fortran.
534 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
536         * libgomp.texi: Fix spelling and pasto problems throughout.
537         Adjust prototypes to match code.
539 2010-07-24  Tobias Burnus  <burnus@net-b.de>
541         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
542         silence -fwhole-file warning.
544 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
546         * configure.tgt (*-*-solaris2.[56]*): Removed.
548 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
550         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
551         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
552         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
553         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
554         targetting solaris2*.
555         * configure: Regenerate.
556         * config.h.in: Regenerate.
558         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
559         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
560         Add libgomp_version_dep.
561         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
562         versioning.
563         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
564         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
565         * Makefile.in: Regenerate.
567         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
568         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
569         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
570         to common block, protected by
571         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
573 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
575         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
577 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
579         PR bootstrap/43170
580         * configure: Regenerate.
582 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
584         PR other/43620
585         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
586         * configure: Regenerate.
587         * Makefile.in: Regenerate.
588         * testsuite/Makefile.in: Regenerate.
590 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
592         PR c/43893
593         * testsuite/libgomp.c/pr43893.c: New test.
594         * testsuite/libgomp.c++/pr43893.C: New test.
596 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
598         PR middle-end/43570
599         * testsuite/libgomp.fortran/vla8.f90: New test.
601 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
603         PR libgomp/43706
604         * config/linux/affinity.c (gomp_init_affinity): Decrease
605         gomp_available_cpus if affinity mask confines the process to fewer
606         CPUs.
607         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
608         non-NULL, just return gomp_available_cpus.
610         PR libgomp/43569
611         * sections.c (gomp_sections_init): Initialize ws->mode.
613 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
615         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
616         not unused bar variable.
617         * configure: Regenerate.
619 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
621         * Makefile.in: Regenerate.
622         * aclocal.m4: Regenerate.
623         * testsuite/Makefile.in: Regenerate.
625 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
627         PR libgomp/42942
628         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
629         (initialize_env): Adjust callers.
630         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
631         when the argument is 0.
633         * testsuite/libgomp.c/pr42942.c: New test.
635 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
637         PR middle-end/42644
638         PR middle-end/42130
639         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
640         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
642 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
644         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
645         * testsuite/libgomp.c++/task-6.C: Likewise.
647 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
649         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
651 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
653         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
654         * configure: Regenerate.
656 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
658         PR fortran/42866
659         * testsuite/libgomp.fortran/allocatable5.f90: New test.
661 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
663         * configure.ac: Test for executability of GFORTRAN.
664         * configure: Regenerate.
666 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
668         * configure: Regenerate.
670 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
672         PR libgomp/42602
673         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
675 2010-01-03  Richard Guenther  <rguenther@suse.de>
677         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
679 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
681         * testsuite/libgomp.graphite/pr4118.c: New.
683 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
685         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
686         for darwin, protect the test with require-effective-target tls_runtime.
687         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
689 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
691         PR target/41605
692         * testsuite/lib/libgomp.exp: Provide -B options to allow for
693         link spec %s substitutions for static libraries.
695 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
697         PR testsuite/42135
698         * libgomp.graphite/force-parallel-2.c: Reduce array size.
700 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
702         * Makefile.in: Regenerate.
703         * configure: Regenerate.
704         * testsuite/Makefile.in: Regenerate.
706 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
708         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
709         settings for LC_ALL and LANG.
711 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
713         PR fortran/42162
714         * testsuite/libgomp.fortran/pr42162.f90: New test.
716 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
718         PR middle-end/42029
719         * testsuite/libgomp.c/pr42029.c: New test.
721 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
723         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
724         *s.  Accept ld version without text in ()s.
725         * configure: Regenerated.
727 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
729         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
731 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
733         PR libgomp/41418
734         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
735         or a hyphen (happens with fortran language disabled).
736         * configure: Regenerate.
738 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
740         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
741         use sed script portable to Solaris /bin/sed for extracting ld
742         version.
743         * configure: Regenerate.
745 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
747         * testsuite/libgomp.graphite/bounds.c: New test.
749 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
751         * Makefile.am (libgomp_la_LINK): New.
752         * Makefile.in: Regenerate.
754 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
756         * configure.ac (AC_PREREQ): Bump to 2.64.
758 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
760         * Makefile.am (install-html, install-pdf): Remove.
761         * Makefile.in: Regenerate.
763         * Makefile.in: Regenerate.
764         * aclocal.m4: Regenerate.
765         * config.h.in: Regenerate.
766         * configure: Regenerate.
767         * testsuite/Makefile.in: Regenerate.
769 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
771         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
772         * Makefile.in: Regenerate.
774 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
776         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
777         * Makefile.in: Regenerate.
779 2009-08-19  Tobias Burnus  <burnus@net-b.de>
781         PR fortran/41102
782         omp_lib.h.in: Fix -std=f95 errors.
785 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
787         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
788         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
789         * testsuite/libgomp.graphite/graphite.exp: New.
791 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
793         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
794         only build.
796 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
798         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
799         needed memory barrier semantics.
800         * config/linux/mips/mutex.h: New file.
802 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
804         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
806 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
808         * configure: Regenerate.
810 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
812         PR testsuite/40699
813         PR testsuite/40707
814         PR testsuite/40709
815         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
816         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
817         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
819 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
821         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
822         options when choosing a multilib.
824 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
826         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
827         ld_library_path.  Use add_path.  Add just find_libgcc_s to
828         ld_library_path, not every libgcc multilib directory.
829         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
830         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
831         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
832         Use add_path.
833         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
835 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
837         * Makefile.am (LTLDFLAGS): Define.
838         (LINK): Define.
839         * Makefile.in: Regenerate.
841 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
843         PR fortran/39718
844         * testsuite/libgomp.fortran/fortran.exp: Don't link with
845         libgfortranbegin, check existence of libgfortran.a instead of
846         libgfortranbegin.a.
848 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
850         PR libgomp/40174
851         * team.c (gomp_thread_start): Destroy thr->release semaphore.
852         (gomp_free_pool_helper): Likewise.
854 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
855             Jakub Jelinek  <jakub@redhat.com>
857         PR fortran/35423
858         * testsuite/libgomp.fortran/workshare2.f90: New test.
860 2009-04-09  Nick Clifton  <nickc@redhat.com>
862         * iter.c: Change copyright header to refer to version 3 of the
863         GNU General Public License with version 3.1 of the GCC Runtime
864         Library Exception and to point readers at the COPYING3 and
865         COPYING3.RUNTIME files and the FSF's license web page.
866         * alloc.c: Likewise.
867         * barrier.c: Likewise.
868         * config/bsd/proc.c: Likewise.
869         * config/linux/affinity.c: Likewise.
870         * config/linux/alpha/futex.h: Likewise.
871         * config/linux/bar.c: Likewise.
872         * config/linux/bar.h: Likewise.
873         * config/linux/ia64/futex.h: Likewise.
874         * config/linux/ia64/mutex.h: Likewise.
875         * config/linux/lock.c: Likewise.
876         * config/linux/mips/futex.h: Likewise.
877         * config/linux/mutex.c: Likewise.
878         * config/linux/mutex.h: Likewise.
879         * config/linux/powerpc/futex.h: Likewise.
880         * config/linux/proc.c: Likewise.
881         * config/linux/ptrlock.c: Likewise.
882         * config/linux/ptrlock.h: Likewise.
883         * config/linux/s390/futex.h: Likewise.
884         * config/linux/sem.c: Likewise.
885         * config/linux/sem.h: Likewise.
886         * config/linux/sparc/futex.h: Likewise.
887         * config/linux/wait.h: Likewise.
888         * config/linux/x86/futex.h: Likewise.
889         * config/mingw32/proc.c: Likewise.
890         * config/mingw32/time.c: Likewise.
891         * config/posix/affinity.c: Likewise.
892         * config/posix/bar.c: Likewise.
893         * config/posix/bar.h: Likewise.
894         * config/posix/lock.c: Likewise.
895         * config/posix/mutex.h: Likewise.
896         * config/posix/proc.c: Likewise.
897         * config/posix/ptrlock.h: Likewise.
898         * config/posix/sem.c: Likewise.
899         * config/posix/sem.h: Likewise.
900         * config/posix/time.c: Likewise.
901         * config/posix95/lock.c: Likewise.
902         * critical.c: Likewise.
903         * env.c: Likewise.
904         * error.c: Likewise.
905         * fortran.c: Likewise.
906         * iter_ull.c: Likewise.
907         * libgomp.h: Likewise.
908         * libgomp_f.h.in: Likewise.
909         * libgomp_g.h: Likewise.
910         * loop.c: Likewise.
911         * loop_ull.c: Likewise.
912         * omp.h.in: Likewise.
913         * omp_lib.f90.in: Likewise.
914         * omp_lib.h.in: Likewise.
915         * ordered.c: Likewise.
916         * parallel.c: Likewise.
917         * sections.c: Likewise.
918         * single.c: Likewise.
919         * task.c: Likewise.
920         * team.c: Likewise.
921         * work.c: Likewise.
923 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
925         * testsuite/config/default.exp: Change copyright header to refer to
926         version 3 of the GNU General Public License and to point readers
927         at the COPYING3 file and the FSF's license web page.
929 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
931         PR middle-end/39573
932         * libgomp.c++/pr39573.C: New test.
934 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
936         PR other/39591
937         * testsuite/libgomp.c/pr39591-1.c: New test.
938         * testsuite/libgomp.c/pr39591-2.c: New test.
939         * testsuite/libgomp.c/pr39591-3.c: New test.
941 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
943         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
944         * testsuite/libgomp.c/atomic-6.c: Ditto.
946 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
948         PR c/39495
949         * testsuite/libgomp.c/loop-12.c: New test.
950         * testsuite/libgomp.c/loop-11.c: New test.
951         * testsuite/libgomp.c++/loop-11.C: New test.
952         * testsuite/libgomp.c++/loop-12.C: New test.
953         * testsuite/libgomp.c++/for-8.C: New test.
955 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
957         * configure: Regenerate.
959 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
961         PR middle-end/39154
962         * testsuite/libgomp.c/pr39154.c: New test.
964 2009-01-30  Ian Lance Taylor  <iant@google.com>
966         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
967         libgomp_ld_is_gold.  Get gold version number.
968         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
969         * configure: Rebuild.
971 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
973         * testsuite/lib/libgomp.exp: Add -B option for targets that
974         use libgfortran.a%s in their specs.
976 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
978         PR libgomp/38086
979         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
980         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
981         HAVE_AS_SYMVER_DIRECTIVE is not defined.
982         * configure: Regenerated.
983         * config.h.in: Likewise.
985 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
987         PR c++/38650
988         * testsuite/libgomp.c/pr38650.c: New test.
989         * testsuite/libgomp.c++/pr38650.C: New test.
991 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
993         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
995 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
997         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
999 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1001         * configure: Regenerate.
1003 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1005         PR middle-end/36802
1006         * testsuite/libgomp.c/pr36802-1.c: New test.
1007         * testsuite/libgomp.c/pr36802-2.c: New test.
1008         * testsuite/libgomp.c/pr36802-3.c: New test.
1010 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1012         PR libgomp/38270
1013         * config/linux/powerpc/mutex.h: New.
1015 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1017         PR c++/38257
1018         * testsuite/libgomp.c++/for-7.C: New test.
1020         PR c++/38348
1021         * testsuite/libgomp.c++/for-6.C: New test.
1023 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1025         PR testsuite/28870
1026         * testsuite/lib/libgomp.exp: Include new timeout library files.
1027         (libgomp_target_compile): Set timeout value from new proc.
1029 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1031         PR libgomp/37938
1032         * config/linux/ia64/mutex.h: New.
1034 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1036         PR libgomp/37935
1037         * libgomp.texi (Runtime library routines, environment variables):
1038         Update for OpenMP version 3.0.
1040 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1041             Steve Ellcey  <sje@cup.hp.com>
1043         * configure: Regenerate for new libtool.
1044         * Makefile.in: Ditto.
1045         * testsuite/Makefile.in: Ditto.
1047 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1048             Andreas Tobler  <a.tobler@schweiz.org>
1050         * config/bsd/proc.c: New file.
1051         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1052         * configure.ac: Check for header <sys/sysctl.h>
1053         * configure: Regenerate.
1054         * config.h.in: Likewise.
1056 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1058         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1060 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1062         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1063         * Makefile.in: Regenerated.
1064         * testsuite/Makefile.in: Regenerated.
1066 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1068         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1069         depend on blddir if blddir exists.
1070         (libgomp_target_compile): Likewise.
1071         * testsuite/libgomp.c++/c++.exp: Likewise.
1072         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1074 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1076         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1077         Do not list GPL as Invariant Section.
1079 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1080             Chao-ying Fu  <fu@mips.com>
1082         * configure.tgt: Enable futex for MIPS.
1083         * config/linux/mips/futex.h: New file.
1085 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1087         * team.c (gomp_team_end): Free team immediately if it has
1088         just one thread.
1090 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1092         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1093         * testsuite/libgomp.fortran/fortran.exp: Same.
1094         * testsuite/libgomp.c/c.exp: Same.
1095         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1096         directory to library path first.
1098 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1100         * env.c (parse_stacksize): Add cast to avoid warning.
1101         (parse_spincount): Likewise.
1103 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1105         * testsuite/libgomp.c/loop-10.c: New test.
1106         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1107         * libgomp.c++/loop-6.C (main): Likewise.
1109         PR debug/36617
1110         * testsuite/libgomp.c/debug-1.c: New test.
1112 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1114         * testsuite/libgomp.c/nqueens-1.c: New test.
1116         PR c++/36523
1117         * testsuite/libgomp.c++/task-7.C: New function.
1119 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1121         * configure: Regenerate.
1123 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1125         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1126         mutex when HAVE_SYNC_BUILTINS isn't defined.
1128 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1130         * libgomp.texi (omp_test_lock): Fix typo.
1132 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1134         * omp_lib.f90.in: Add "implicit none".
1136 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1138         PR middle-end/36506
1139         * testsuite/libgomp.c/reduction-5.c: New test.
1141 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1143         * libgomp.h (struct gomp_task): Add in_tied_task field.
1144         * task.c (gomp_init_task): Initialize it.
1145         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1146         unconditionally.  Don't call gomp_team_barrier_wake if
1147         current task is implicit or if(0) from implicit and number of
1148         running tasks is equal to nthreads - 1.
1150         PR libgomp/36471
1151         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1152         omp_get_team_size_8): Fix pastos.
1154         PR libgomp/36469
1155         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1156         * configure: Regenerated.
1157         * config.h.in: Regenerated.
1158         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1159         defined.
1161 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1163         PR bootstrap/36452
1164         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1165         (GOMP_loop_ull_dynamic_start): Likewise.
1166         (GOMP_loop_ull_guided_start): Likewise.
1167         (GOMP_loop_ull_ordered_static_start): Likewise.
1168         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1169         (GOMP_loop_ull_ordered_guided_start): Likewise.
1171 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1172             Richard Henderson  <rth@redhat.com>
1173             Ulrich Drepper  <drepper@redhat.com>
1174             Jakob Blomer  <jakob.blomer@ira.uka.de>
1176         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1177         Substitute also OMP_*LOCK_25*.
1178         * configure: Regenerated.
1179         * config.h.in: Regenerated.
1180         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1181         ptrlock.c and task.c.
1182         * Makefile.in: Regenerated.
1183         * testsuite/Makefile.in: Regenerated.
1184         * task.c: New file.
1185         * loop_ull.c: New file.
1186         * iter_ull.c: New file.
1187         * libgomp.h: Include ptrlock.h.
1188         (enum gomp_task_kind): New type.
1189         (struct gomp_team): Add task_lock, task_queue, task_count,
1190         task_running_count, single_count fields.  Add
1191         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1192         Remove work_share_lock, generation_mask,
1193         oldest_live_gen, num_live_gen and init_work_shares fields, add
1194         work work_share_list_alloc, work_share_list_free and work_share_chunk
1195         fields.  Change work_shares from pointer to pointers into an array.
1196         Change ordered_release field into gomp_sem_t ** from flexible array
1197         member.  Add implicit_task and initial_work_shares fields.
1198         Move close to the end of the struct.
1199         (struct gomp_team_state): Add single_count, last_work_share,
1200         active_level and level fields, remove work_share_generation.
1201         (gomp_barrier_handle_tasks): New prototype.
1202         (gomp_finish_task): New inline function.
1203         (struct gomp_work_share): Move chunk_size, end, incr into
1204         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1205         next_ll fields.  Reshuffle fields.  Add next_alloc,
1206         next_ws, next_free and inline_ordered_team_ids fields, change
1207         ordered_team_ids into pointer from flexible array member.
1208         Add mode field.  Put lock and next into a different cache line
1209         from most of the write-once fields.
1210         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1211         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1212         gomp_iter_ull_guided_next): New prototypes.
1213         (gomp_new_icv): New prototype.
1214         (struct gomp_thread): Add thread_pool and task fields.
1215         (struct gomp_thread_pool): New type.
1216         (gomp_new_team): New prototype.
1217         (gomp_team_start): Change type of last argument.
1218         (gomp_new_work_share): Removed.
1219         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1220         (gomp_work_share_init_done): New static inline.
1221         (gomp_throttled_spin_count_var, gomp_available_cpus,
1222         gomp_managed_threads): New extern decls.
1223         (gomp_init_task): New prototype.
1224         (gomp_spin_count_var): New extern var decl.
1225         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1226         or no alias support, or if not PIC.
1227         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1228         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1229         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1230         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1231         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1232         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1233         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1234         gomp_test_nest_lock_25): New prototypes.
1235         (omp_lock_symver, strong_alias): Define.
1236         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1237         decls.
1238         (gomp_end_task): New.
1239         (struct gomp_task_icv, gomp_global_icv): New.
1240         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1241         (struct gomp_task): New.
1242         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1243         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1244         (gomp_icv): New.
1245         (gomp_schedule_type): Reorder enum to match
1246         omp_sched_t.
1247         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1248         fields.
1249         (gomp_thread_start): Add gomp_team_barrier_wait call.
1250         For non-nested case remove clearing of docked thread thr fields.
1251         Use pool fields instead of global gomp_* variables.  Use
1252         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1253         Create tasks for each member thread.
1254         (free_team): Only destroy team barrier, task_lock here and free it.
1255         (gomp_free_thread): Free last_team if non-NULL.
1256         (gomp_team_end): Call gomp_team_barrier_wait instead of
1257         gomp_barrier_wait.  For nested case call one extra
1258         gomp_barrier_wait.  Move here some destruction from free_team.
1259         Call free_team on pool->last_team if any, rather than freeing
1260         current team.  Destroy work_share_list_free_lock ifndef
1261         HAVE_SYNC_BUILTINS.
1262         (gomp_new_icv): New function.
1263         (gomp_threads, gomp_threads_size, gomp_threads_used,
1264         gomp_threads_dock): Removed.
1265         (gomp_thread_destructor): New variable.
1266         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1267         functions.
1268         (gomp_team_start): Create new pool if current thread doesn't have
1269         one.  Use pool fields instead of global gomp_* variables.
1270         Initialize thread_pool field for new threads.  Clear single_count.
1271         Change last argument from ws to team, don't create
1272         new team, set ts.work_share to &team->work_shares[0] and clear
1273         ts.last_work_share.  Don't clear ts.work_share_generation.
1274         If number of threads changed, adjust atomically gomp_managed_threads.
1275         Use gomp_init_task instead of gomp_new_task,
1276         set thr->task to the corresponding implicit_task array entry.
1277         Create tasks for each member thread.  Initialize ts.level.
1278         (initialize_team): Call pthread_key_create on
1279         gomp_thread_destructor.
1280         (team_destructor): New function.
1281         (new_team): Removed.
1282         (gomp_new_team): New function.
1283         (free_team): Free gomp_work_share blocks chained through next_alloc,
1284         instead of freeing work_shares and destroying work_share_lock.
1285         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1286         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1287         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1288         of gomp_barrier_wait.
1289         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1290         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1291         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1292         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1293         of gomp_barrier_wait.
1294         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1295         gomp_work_share_init_done if gomp_work_share_start returned true.
1296         Don't unlock ws->lock.
1297         * work.c: Include stddef.h.
1298         (free_work_share): Use work_share_list_free_lock instead
1299         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1300         Call gomp_fini_work_share and then either free ws if orphaned, or
1301         put it into work_share_list_free list of the current team.
1302         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1303         functions.
1304         (gomp_work_share_start, gomp_work_share_end,
1305         gomp_work_share_end_nowait): Rewritten.
1306         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1307         (openmp_version): Set to 200805.
1308         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1309         omp_sched_guided, omp_sched_auto): New parameters.
1310         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1311         omp_set_max_active_levels, omp_get_max_active_levels,
1312         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1313         omp_get_active_level): New interfaces.
1314         * omp_lib.h.in (openmp_version): Set to 200805.
1315         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1316         omp_sched_guided, omp_sched_auto): New parameters.
1317         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1318         omp_set_max_active_levels, omp_get_max_active_levels,
1319         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1320         omp_get_active_level): New externals.
1321         * loop.c: Include limits.h.
1322         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1323         GFS_AUTO.
1324         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1325         Likewise.  Use gomp_icv.
1326         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1327         ts.static_trip here.
1328         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1329         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1330         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1331         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1332         don't unlock ws->lock, otherwise lock it.
1333         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1334         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1335         (gomp_parallel_loop_start): Call gomp_new_team instead of
1336         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1337         Adjust gomp_team_start caller.  Pass 0 as second argument to
1338         gomp_resolve_num_threads.
1339         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1340         If adding ws->chunk_size nthreads + 1 times after end won't
1341         overflow, set ws->mode to 1.
1342         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1343         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1344         GOMP_loop_ull_ordered_static_start,
1345         GOMP_loop_ull_ordered_dynamic_start,
1346         GOMP_loop_ull_ordered_guided_start,
1347         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1348         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1349         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1350         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1351         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1352         prototypes.
1353         * libgomp.map: Export lock routines also @@OMP_2.0.
1354         (GOMP_loop_ordered_dynamic_first,
1355         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1356         GOMP_loop_ordered_static_first): Remove.
1357         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1358         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1359         GOMP_loop_ull_ordered_dynamic_next,
1360         GOMP_loop_ull_ordered_dynamic_start,
1361         GOMP_loop_ull_ordered_guided_next,
1362         GOMP_loop_ull_ordered_guided_start,
1363         GOMP_loop_ull_ordered_runtime_next,
1364         GOMP_loop_ull_ordered_runtime_start,
1365         GOMP_loop_ull_ordered_static_next,
1366         GOMP_loop_ull_ordered_static_start,
1367         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1368         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1369         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1370         (omp_set_schedule, omp_get_schedule,
1371         omp_get_thread_limit, omp_set_max_active_levels,
1372         omp_get_max_active_levels, omp_get_level,
1373         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1374         omp_set_schedule_, omp_set_schedule_8_,
1375         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1376         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1377         omp_get_max_active_levels_, omp_get_level_,
1378         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1379         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1380         New exports @@OMP_3.0.
1381         * omp.h.in (omp_sched_t): New type.
1382         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1383         omp_set_max_active_levels, omp_get_max_active_levels,
1384         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1385         omp_get_active_level): New prototypes.
1386         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1387         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1388         gomp_thread_limit_var, gomp_remaining_threads_count,
1389         gomp_remaining_threads_lock): New variables.
1390         (parse_spincount): New function.
1391         (initialize_env): Call gomp_init_num_threads unconditionally.
1392         Initialize gomp_available_cpus.  Call parse_spincount,
1393         initialize gomp_{,throttled_}spin_count_var
1394         depending on presence and value of OMP_WAIT_POLICY and
1395         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1396         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1397         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1398         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1399         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1400         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1401         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1402         (gomp_global_icv): New.
1403         (parse_schedule): Use it.  Parse "auto".
1404         (omp_set_num_threads): Use gomp_icv.
1405         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1406         Likewise.
1407         (omp_get_max_threads): Move from parallel.c.
1408         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1409         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1410         add ialias.
1411         (parse_stacksize, parse_wait_policy): New functions.
1412         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1413         both wrappers for compatibility and new locks.
1414         (omp_set_schedule, omp_get_schedule,
1415         omp_get_thread_limit, omp_set_max_active_levels,
1416         omp_get_max_active_levels, omp_get_level,
1417         omp_get_ancestor_thread_num, omp_get_team_size,
1418         omp_get_active_level): New ialias_redirect.
1419         (omp_set_schedule_, omp_set_schedule_8_,
1420         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1421         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1422         omp_get_max_active_levels_, omp_get_level_,
1423         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1424         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1425         New functions.
1426         * parallel.c: Include limits.h.
1427         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1428         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1429         argument to gomp_team_start.  Pass 0 as second argument to
1430         gomp_resolve_num_threads.
1431         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1432         if gomp_thread_limit_var != ULONG_MAX.
1433         (omp_in_parallel): Implement using ts.active_level.
1434         (omp_get_max_threads): Move to env.c.
1435         (omp_get_level, omp_get_ancestor_thread_num,
1436         omp_get_team_size, omp_get_active_level): New functions,
1437         add ialias.
1438         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1439         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1440         gomp_iter_dynamic_next instead of the _locked variant and don't take
1441         lock around it, otherwise acquire it before calling
1442         gomp_iter_dynamic_next_locked.
1443         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1444         gomp_iter_dynamic_next instead of the _locked variant and don't take
1445         lock around it.
1446         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1447         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1448         Adjust gomp_team_start caller.  Pass count as second argument to
1449         gomp_resolve_num_threads, don't adjust num_threads after the call.
1450         Use gomp_icv.
1451         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1452         ws->chunk_size by incr.
1453         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1454         code.
1455         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1456         types.
1457         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1458         (omp_check_defines): Check even the compat defines.
1459         * config/linux/ptrlock.c: New file.
1460         * config/linux/ptrlock.h: New file.
1461         * config/linux/wait.h: New file.
1462         * config/posix/ptrlock.c: New file.
1463         * config/posix/ptrlock.h: New file.
1464         * config/linux/bar.h (gomp_team_barrier_wait,
1465         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1466         (gomp_team_barrier_set_task_pending,
1467         gomp_team_barrier_clear_task_pending,
1468         gomp_team_barrier_set_waiting_for_tasks,
1469         gomp_team_barrier_waiting_for_tasks,
1470         gomp_team_barrier_done): New inlines.
1471         (gomp_barrier_t): Rewritten.
1472         (gomp_barrier_state_t): New typedef.
1473         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1474         gomp_barrier_wait_start): Rewritten.
1475         (gomp_barrier_wait_end): Change second argument to
1476         gomp_barrier_state_t.
1477         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1478         inlines.
1479         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1480         futex.h.
1481         (gomp_barrier_wait_end): Rewritten.
1482         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1483         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1484         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1485         (gomp_barrier_state_t): New typedef.
1486         (gomp_team_barrier_wait,
1487         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1488         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1489         into the return value.  Return gomp_barrier_state_t.
1490         (gomp_team_barrier_set_task_pending,
1491         gomp_team_barrier_clear_task_pending,
1492         gomp_team_barrier_set_waiting_for_tasks,
1493         gomp_team_barrier_waiting_for_tasks,
1494         gomp_team_barrier_done): New inlines.
1495         (gomp_barrier_wait_end): Change second argument to
1496         gomp_barrier_state_t.
1497         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1498         inlines.
1499         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1500         (gomp_barrier_wait_end): Change second argument to
1501         gomp_barrier_state_t.
1502         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1503         gomp_team_barrier_wake): New functions.
1504         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1505         futex.h.
1506         (gomp_futex_wake, gomp_futex_wait): New variables.
1507         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1508         * config/linux/lock.c: Rewrite to make locks task owned,
1509         for backwards compatibility provide the old entrypoints
1510         if symbol versioning.  Include wait.h instead of libgomp.h and
1511         futex.h.
1512         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1513         * config/posix95/lock.c: Rewrite to make locks task owned,
1514         for backwards compatibility provide the old entrypoints
1515         if symbol versioning.
1516         * config/posix/lock.c: Rewrite to make locks task owned,
1517         for backwards compatibility provide the old entrypoints
1518         if symbol versioning.
1519         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1520         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1521         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1522         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1523         (sys_futex0): Return error code.
1524         (futex_wake, futex_wait): If ENOSYS was returned, clear
1525         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1526         (cpu_relax, atomic_write_barrier): New static inlines.
1527         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1528         (futex_wake, futex_wait): If ENOSYS was returned, clear
1529         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1530         (cpu_relax, atomic_write_barrier): New static inlines.
1531         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1532         (sys_futex0): Return error code.
1533         (futex_wake, futex_wait): If ENOSYS was returned, clear
1534         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1535         (cpu_relax, atomic_write_barrier): New static inlines.
1536         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1537         (sys_futex0): Return error code.
1538         (futex_wake, futex_wait): If ENOSYS was returned, clear
1539         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1540         (cpu_relax, atomic_write_barrier): New static inlines.
1541         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1542         (sys_futex0): Return error code.
1543         (futex_wake, futex_wait): If ENOSYS was returned, clear
1544         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1545         (cpu_relax, atomic_write_barrier): New static inlines.
1546         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1547         (sys_futex0): Return error code.
1548         (futex_wake, futex_wait): If ENOSYS was returned, clear
1549         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1550         (cpu_relax, atomic_write_barrier): New static inlines.
1551         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1552         futex.h.
1553         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1554         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1555         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1556         types.
1557         (omp_nest_lock_t): Change owner into void *, add lock field.
1558         * config/posix95/omp-lock.h: Include semaphore.h.
1559         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1560         (omp_lock_t): Use sem_t instead of mutex if semaphores
1561         aren't broken.
1562         (omp_nest_lock_t): Likewise.  Change owner to void *.
1563         * config/posix/omp-lock.h: Include semaphore.h.
1564         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1565         (omp_lock_t): Use sem_t instead of mutex if semaphores
1566         aren't broken.
1567         (omp_nest_lock_t): Likewise.  Add owner field.
1569 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1571         * testsuite/libgomp.c/collapse-1.c: New test.
1572         * testsuite/libgomp.c/collapse-2.c: New test.
1573         * testsuite/libgomp.c/collapse-3.c: New test.
1574         * testsuite/libgomp.c/icv-1.c: New test.
1575         * testsuite/libgomp.c/icv-2.c: New test.
1576         * testsuite/libgomp.c/lib-2.c: New test.
1577         * testsuite/libgomp.c/lock-1.c: New test.
1578         * testsuite/libgomp.c/lock-2.c: New test.
1579         * testsuite/libgomp.c/lock-3.c: New test.
1580         * testsuite/libgomp.c/loop-4.c: New test.
1581         * testsuite/libgomp.c/loop-5.c: New test.
1582         * testsuite/libgomp.c/loop-6.c: New test.
1583         * testsuite/libgomp.c/loop-7.c: New test.
1584         * testsuite/libgomp.c/loop-8.c: New test.
1585         * testsuite/libgomp.c/loop-9.c: New test.
1586         * testsuite/libgomp.c/nested-3.c: New test.
1587         * testsuite/libgomp.c/nestedfn-6.c: New test.
1588         * testsuite/libgomp.c/sort-1.c: New test.
1589         * testsuite/libgomp.c/task-1.c: New test.
1590         * testsuite/libgomp.c/task-2.c: New test.
1591         * testsuite/libgomp.c/task-3.c: New test.
1592         * testsuite/libgomp.c/task-4.c: New test.
1593         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1594         to C++ testsuite default compiler options.
1595         * testsuite/libgomp.c++/collapse-1.C: New test.
1596         * testsuite/libgomp.c++/collapse-2.C: New test.
1597         * testsuite/libgomp.c++/ctor-10.C: New test.
1598         * testsuite/libgomp.c++/for-1.C: New test.
1599         * testsuite/libgomp.c++/for-2.C: New test.
1600         * testsuite/libgomp.c++/for-3.C: New test.
1601         * testsuite/libgomp.c++/for-4.C: New test.
1602         * testsuite/libgomp.c++/for-5.C: New test.
1603         * testsuite/libgomp.c++/loop-8.C: New test.
1604         * testsuite/libgomp.c++/loop-9.C: New test.
1605         * testsuite/libgomp.c++/loop-10.C: New test.
1606         * testsuite/libgomp.c++/task-1.C: New test.
1607         * testsuite/libgomp.c++/task-2.C: New test.
1608         * testsuite/libgomp.c++/task-3.C: New test.
1609         * testsuite/libgomp.c++/task-4.C: New test.
1610         * testsuite/libgomp.c++/task-5.C: New test.
1611         * testsuite/libgomp.c++/task-6.C: New test.
1612         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1613         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1614         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1615         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1616         * testsuite/libgomp.fortran/collapse1.f90: New test.
1617         * testsuite/libgomp.fortran/collapse2.f90: New test.
1618         * testsuite/libgomp.fortran/collapse3.f90: New test.
1619         * testsuite/libgomp.fortran/collapse4.f90: New test.
1620         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1621         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1622         * testsuite/libgomp.fortran/lib4.f90: New test.
1623         * testsuite/libgomp.fortran/lock-1.f90: New test.
1624         * testsuite/libgomp.fortran/lock-2.f90: New test.
1625         * testsuite/libgomp.fortran/nested1.f90: New test.
1626         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1627         * testsuite/libgomp.fortran/strassen.f90: New test.
1628         * testsuite/libgomp.fortran/tabs1.f90: New test.
1629         * testsuite/libgomp.fortran/tabs2.f: New test.
1630         * testsuite/libgomp.fortran/task1.f90: New test.
1631         * testsuite/libgomp.fortran/task2.f90: New test.
1632         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1633         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1634         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1635         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1636         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1638 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1640         PR c++/36308
1641         * testsuite/libgomp.c++/ctor-11.C: New test.
1642         * testsuite/libgomp.c++/ctor-12.C: New test.
1644 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1646         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1648 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1650         PR middle-end/36106
1651         * testsuite/libgomp.c/atomic-5.c: New test.
1652         * testsuite/libgomp.c/atomic-6.c: New test.
1653         * testsuite/libgomp.c/autopar-1.c: New test.
1655 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1657         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1658         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1659         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1660         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1661         * configure: Regenerate.
1662         * Makefile.in, testsuite/Makefile.in: Likewise.
1664 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1666         PR bootstrap/35457
1667         * aclocal.m4: Regenerate.
1668         * configure: Regenerate.
1670 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1672         PR middle-end/35611
1673         * testsuite/libgomp.c/atomic-4.c: New test.
1675         PR libgomp/35625
1676         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1677         (gomp_iter_guided_next): Likewise.
1678         * testsuite/libgomp.c/pr35625.c: New test.
1680 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1682         * aclocal.m4: Regenerate.
1683         * configure: Likewise.
1684         * Makefile.in: Likewise.
1685         * testsuite/Makefile.in: Likewise.
1687 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1689         PR middle-end/35185
1690         * testsuite/libgomp.c++/pr35185.C: New test.
1692 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1694         PR middle-end/35549
1695         * testsuite/libgomp.c/pr35549.c: New test.
1697 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1699         * testsuite/libgomp.c/atomic-3.c: New test.
1701 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1703         PR fortran/33197
1704         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1705         .F08 file suffixes.
1707 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1709         PR libgomp/33131
1710         * configure.ac: Add ACX_HEADER_STRING.
1711         * env.c: Include strings.h.
1712         * aclocal.m4: Regenerate.
1713         * config.h.in: Regenerate.
1714         * configure: Regenerate.
1715         * Makefile.in: Regenerate.
1716         * testsuite/Makefile.in: Regenerate.
1718 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1720         PR middle-end/35196
1721         * testsuite/libgomp.c/pr35196.c: New test.
1723         PR middle-end/35130
1724         * testsuite/libgomp.fortran/pr35130.f90: New test.
1725         * testsuite/libgomp.c/pr35130.c: New test.
1727 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1729         PR middle-end/33880
1730         * testsuite/libgomp.c/pr33880.c: New test.
1731         * testsuite/libgomp.fortran/pr33880.f90: New test.
1733 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1735         * configure: Regenerate.
1737 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1739         * configure.ac: Move futex checking into ../config/futex.m4.
1740         * configure: Rebuilt.
1741         * aclocal.m4: Rebuilt.
1742         * Makefile.in: Rebuilt.
1744         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1745         2007-10-15 ../config/tls.m4 change.
1747 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1749         PR c++/34513
1750         * testsuite/libgomp.c/pr34513.c: New test.
1751         * testsuite/libgomp.c++/pr34513.C: New test.
1753 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1755         PR target/32765
1756         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1758 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1760         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1762 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1764         * testsuite/libgomp.c/private-1.c: New test.
1766 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1767             Paolo Bonzini  <bonzini@gnu.org>
1769         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1770         instead of 'VPATH ='.
1771         * Makefile.in: Regenerate.
1773 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1775         * configure.ac: Adjust makeinfo version check.
1776         * configure: Regenerate.
1778 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1780         PR fortran/34020
1781         * testsuite/libgomp.fortran/pr34020.f90: New test.
1783 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1785         PR c++/33894
1786         * testsuite/libgomp.c++/atomic-1.C: New test.
1788 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1790         PR libgomp/33275
1791         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1792         Make x and y integers rather than (implicit) reals.  Add private (j)
1793         clause to the last omp parallel.
1795 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1797         * configure: Regenerate following changes to ../config/tls.m4.
1799 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1801         * testsuite/libgomp.fortran/stack.f90: New test.
1803 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1805         * config/mingw32/proc.c: New file.
1807 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1809         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1810         (main): Use __get_cpuid to get i386 target fetaures.
1811         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1812         (main): Use __get_cpuid to get x86_64 target fetaures.
1814 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1816         PR target/32765
1817         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1818         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1820 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1822         PR fortran/32550
1823         * testsuite/libgomp.fortran/pr32550.f90: New test.
1824         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1826 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1828         * aclocal.m4: Regenerated.
1830 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1832         PR fortran/32359
1833         * testsuite/libgomp.fortran/pr32359.f90: New.
1835 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1837         PR libgomp/32468
1838         * sections.c (GOMP_parallel_sections_start): Only decrease
1839         number of threads to COUNT if dyn_var is true.
1840         * testsuite/libgomp.c/pr32468.c: New test.
1842 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1844         PR libgomp/26308
1845         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1847 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1849         PR middle-end/32362
1850         * testsuite/libgomp.c/pr32362-1.c: New test.
1851         * testsuite/libgomp.c/pr32362-2.c: New test.
1852         * testsuite/libgomp.c/pr32362-3.c: New test.
1854 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1856         * team.c (gomp_team_start): Fix setting up thread_attr
1857         stack size.
1859 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1861         * configure: Regenerate.
1863 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1865         * Makefile.in: Regenerate.
1866         * configure: Regenerate.
1867         * aclocal.m4: Regenerate.
1868         * testsuite/Makefile.in: Regenerate.
1870 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1872         * config/linux/proc.c: New file.
1874         PR libgomp/28482
1875         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1877 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1879         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1881 2007-04-16  Matthias Klose  <doko@debian.org>
1883         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1884         flags if not building with -m64.
1885         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1886         flag for i?86-*-* targets, if current target matches -m64.
1888 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1890         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1891         * Makefile.in: Regenerate.
1893 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1895         PR testsuite/31369
1896         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1897         ld_library_path.
1898         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1900 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1902         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1903         decls.
1904         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1905         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1906         (parse_affinity): New function.
1907         (initialize_env): Call it and gomp_init_affinity.
1908         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1909         create new pthread_attr_t and call gomp_init_thread_affinity
1910         on it for each thread before passing the attribute to pthread_create.
1911         * config/linux/affinity.c: New file.
1912         * config/posix/affinity.c: New file.
1913         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1914         * configure: Rebuilt.
1915         * config.h.in: Rebuilt.
1916         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1917         * Makefile.in: Rebuilt.
1919 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1921         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1922         *-*-darwin*.
1923         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1924         and use it if found.
1926 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1928         * testsuite/config/default.exp: New file.
1929         * testsuite/lib/libgomp.exp: New file.
1930         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1931         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1932         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1933         (libgomp_load): Remove.
1934         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1935         always_ld_library_path, not ld_library_path.  Set additional_flags
1936         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1937         (target_compile): Do not call libgomp_init.  Append lang_library_path
1938         and lang_link_flags to options.
1939         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1940         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1941         here.
1942         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1943         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1944         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1945         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1946         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1947         CX8 flag.
1948         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1949         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1950         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1951         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1952         * testsuite/libgomp.c/atomic-10.c: Ditto.
1954 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1956         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1957         dg-final cleanup-modules line.
1958         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1959         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1960         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1961         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1962         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1963         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1964         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1966 2007-03-18  Andreas Schwab  <schwab@suse.de>
1968         * acinclude.m4: Adjust regular expression for ld version
1969         extraction.
1970         * configure: Regenerate.
1972 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1974         * Makefile.am: Add install-pdf target as copied from
1975         automake v1.10 rules.
1976         * Makefile.in: Regenerate
1978 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1980         PR libgomp/28486
1981         * configure: Regenerate.
1983         PR c++/30703
1984         * testsuite/libgomp.c++/pr30703.C: New test.
1986 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1988         Revert:
1989         2006-07-05  Eric Christopher  <echristo@apple.com>
1990         * configure.ac: Depend addition of -pthread on host OS.
1991         * configure: Regenerate.
1993 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1995         * libgomp.texi: Fix spacing after abbreviations.
1997 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1999         PR libgomp/30546
2000         * configure.ac: Add check for makeinfo
2001         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2002         if an appropiate version of makeinfo is found.
2003         * aclocal.m4: Regenerated.
2004         * configure: Regenerated.
2005         * Makefile.in: Regenerated.
2006         * testsuite/Makefile.in: Regenerated.
2008 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2010         PR libgomp/30540
2011         * libgomp.texi: More about implementation-dependent settings.
2013 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2015         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2017 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2019         PR middle-end/30494
2020         * testsuite/libgomp.c/pr30494.c: New test.
2022 2007-01-15  Tom Tromey  <tromey@redhat.com>
2024         * configure: Rebuilt.
2025         * configure.ac: Fixed comment.
2027 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2029         * libgomp.texi: Document implementation specific default values of
2030         environment variables.
2032 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2034         PR libgomp/28209
2035         * libgomp.texi: New file.
2036         * configure.ac: Add --enable-generated-files-in-srcdir option.
2037         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2038         files to srcdir.
2039         * Makefile.in: Regenerated.
2040         * config.h.in: Regenerated.
2041         * testsuite/Makefile.in: Regenerated.
2042         * NOTES: Removed.
2044 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2046         PR libgomp/29949
2047         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2049 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2051         * configure: Regenerate.
2053 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2055         PR libgomp/29947
2056         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2057         start if there shouldn't be any loop iterations.
2058         (gomp_loop_ordered_static_start): Remove start == end test.
2059         * testsuite/libgomp.c/pr29947-1.c: New test.
2060         * testsuite/libgomp.c/pr29947-2.c: New test.
2062 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2064         * configure.tgt: Force initial-exec TLS model on Linux only.
2066 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2068         * configure: Regenerated.
2070 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2072         * env.c (parse_schedule): Reject out of range values.
2073         (parse_unsigned_long): Reject out of range, negative or zero values.
2075 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2077         PR fortran/29629
2078         * testsuite/libgomp.fortran/pr29629.f90: New test.
2080 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2082         PR libgomp/29494
2083         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2084         * config/posix95: New directory.
2085         * config/posix95/omp-lock.h: New file.
2086         * config/posix95/lock.c: Likewise.
2088 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2090         * aclocal.m4: Regenerate.
2091         * configure: Regenerate.
2093 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2095         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2096         '<' to '<='.
2098 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2100         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2101         test.
2102         * configure: Regenerate.
2103         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2105 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2107         PR middle-end/25261
2108         PR middle-end/28790
2109         * testsuite/libgomp.c/nestedfn-4.c: New test.
2110         * testsuite/libgomp.c/nestedfn-5.c: New test.
2111         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2113         PR fortran/29097
2114         * testsuite/libgomp.fortran/condinc1.f: New test.
2115         * testsuite/libgomp.fortran/condinc2.f: New test.
2116         * testsuite/libgomp.fortran/condinc3.f90: New test.
2117         * testsuite/libgomp.fortran/condinc4.f90: New test.
2118         * testsuite/libgomp.fortran/condinc1.inc: New file.
2120 2006-09-18  Tom Tromey  <tromey@redhat.com>
2122         * configure: Rebuilt.
2124 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2126         PR c/28768
2127         PR preprocessor/14634
2128         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2129         to AC_DEFINE.
2130         * configure: Regenerate.
2132 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2134         * testsuite/libgomp.fortran/reduction3.f90: Change
2135         -2147483648 to -huge(i)-1 to avoid overflow.
2136         * testsuite/libgomp.fortran/reduction4.f90: Change
2137         Z'ffffffff' to not(0) to avoid overflow.
2139 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2141         PR libgomp/25938
2142         * Makefile.am (libsubincludedir): New.
2143         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2144         * Makefile.in: Regenerate.
2146 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2148         PR libgomp/28725
2149         * env.c: Include ctype.h.
2150         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2151         leading and/or trailing whitespace and compare strings case
2152         insensitively.
2154 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2156         PR fortran/28390
2157         * testsuite/libgomp.fortran/pr28390.f: New test.
2159 2006-07-05  Eric Christopher  <echristo@apple.com>
2161         * configure.ac: Depend addition of -pthread on host OS.
2162         * configure: Regenerate.
2164 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2166         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2167         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2168         defined.
2170 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2172         PR libgomp/26175
2173         PR libgomp/26477
2174         * configure.ac: If neither --enable-linux-futex nor
2175         --disable-linux-futex is passed, determine the default by checking
2176         for compiling and/or running against NPTL.  With --enable-linux-futex,
2177         check if SYS_gettid and SYS_futex are defined.
2178         * configure: Rebuilt.
2180 2006-06-14  Richard Henderson  <rth@redhat.com>
2182         PR libgomp/28008
2183         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2184         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2186 2006-06-09  Richard Henderson  <rth@redhat.com>
2188         * env.c (gomp_nthreads_var): Change to unsigned long.
2189         (gomp_run_sched_chunk): Likewise.
2190         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2191         (initialize_env): Initialize gomp_thread_attr.
2192         * libgomp.h (gomp_nthreads_var): Update decl.
2193         (gomp_run_sched_chunk): Likewise.
2194         (gomp_thread_attr): Declare.
2195         * team.c (gomp_thread_attr): Export.
2196         (initialize_team): Don't initialize it.
2198 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2200         PR fortran/27916
2201         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2202         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2204 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2206         * config/mingw32/time.c: New file.
2207         * configure.tgt: Use it.
2209 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2211         * Makefile.am: Add install-html target. Add install-html to .PHONY
2212         * Makefile.in: Regenerate.
2214 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2216         PR libgomp/27612
2217         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2218         * testsuite/libgomp.c/critical-1.c: Likewise.
2219         * testsuite/libgomp.c/loop-1.c: Likewise.
2220         * testsuite/libgomp.c/loop-2.c: Likewise.
2221         * testsuite/libgomp.c/single-1.c: Likewise.
2222         * testsuite/libgomp.c/ordered-1.c: Likewise.
2223         * testsuite/libgomp.c/ordered-2.c: Likewise.
2225 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2227         PR middle-end/27416
2228         * libgomp.fortran/pr27416-1.f90: New test.
2230 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2232         PR fortran/27395
2233         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2234         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2236 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2238         PR c++/26943
2239         * testsuite/libgomp.c/pr26943-1.c: New test.
2240         * testsuite/libgomp.c/pr26943-2.c: New test.
2241         * testsuite/libgomp.c/pr26943-3.c: New test.
2242         * testsuite/libgomp.c/pr26943-4.c: New test.
2243         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2244         * testsuite/libgomp.c++/pr26943.C: New test.
2246 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2248         PR middle-end/27337
2249         * testsuite/libgomp.c++/pr27337.C: New test.
2251 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2253         PR c/26171
2254         * testsuite/libgomp.c/pr26171.c: New test.
2256 2006-04-25  Richard Henderson  <rth@redhat.com>
2258         PR libgomp/25865
2259         * configure.ac: Use GCC_CHECK_TLS.
2260         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2261         * Makefile.in, aclocal.m4, configure: Regenerate.
2263 2006-04-10  Matthias Klose  <doko@debian.org>
2265         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2266         directory names containing underscores.
2268 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2270         PR c++/26691
2271         * testsuite/libgomp.c++/pr26691.C: New test.
2273 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2275         * testsuite/libgomp.fortran/retval2.f90: New test.
2277 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2279         * testsuite/libgomp.c++: New directory.
2281 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2283         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2284         * config/posix/sem.c: Implement the above.
2286 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2288         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2289         define HAVE_BROKEN_POSIX_SEMAPHORES.
2290         * configure: Rebuilt.
2291         * config.h.in: Rebuilt.
2293 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2295         PR bootstrap/26161
2296         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2297         for the other pthread check.
2298         * configure: Regenerate.
2299         * config.h.in: Regenerate.
2301 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2303         PR libgomp/25938
2304         PR libgomp/25984
2305         * Makefile.am (fincludedir): New variable.
2306         (nodist_include_HEADERS): Remove Fortran files.
2307         (nodist_finclude_HEADERS): New variable.
2308         * Makefile.in: Regenerated.
2310 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2312         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2313         Remove tests for returning assumed character length arrays.
2315 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2316             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2318         PR libgomp/25936
2319         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2321 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2323         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2325 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2327         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2328         part of LD_LIBRARY_PATH manually.
2330 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2332         PR libgomp/25852
2333         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2334         libgomp_init.
2336 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2338         PR libgomp/25884
2339         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2340         * configure.ac (PERL): Don't set.
2341         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2342         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2343         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2344         * omp.h.in: Wrap the new configure substitutions with @ characters.
2345         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2346         * aclocal.m4, configure, Makefile.in: Regenerate.
2347         * mkomp_h.pl: Delete.
2349 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2351         PR libgomp/25259
2352         * configure.ac: Use GCC_HEADER_STDINT.
2353         * libgomp.h: Include gstdint.h.
2354         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2355         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2357 2006-01-24  Richard Henderson  <rth@redhat.com>
2359         PR libgomp/25942
2360         * configure.ac: Add AM_MAINTAINER_MODE.
2361         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2363 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2365         * Makefile.in: Regenerate.
2366         * testsuite/Makefile.in: Regenerate.
2367         * aclocal.m4: Regenerate.
2369 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2371         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2372         Solaris.
2373         * configure.ac: Add check for loadavg.h.
2374         (link_gomp): Adjust comment.
2375         * configure: Regenerate.
2376         * config.h.in: Regenerate.
2378 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2380         PR libgomp/25877
2381         * configure.ac: Remove check for alloca.h.
2382         * configure: Regenerate.
2383         * config.h.in: Regenerate.
2384         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2385         * team.c: Remove use of alloca.h.
2386         Call gomp_alloca instead of alloca.
2388 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2390         PR libgomp/25877
2391         * team.c: Add include of alloca.h.
2392         * configure.ac: Add check for alloca.h.
2393         * configure: Regenerate.
2394         * config.h.in: Regenerate.
2396 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2398         PR fortran/25219
2399         * testsuite/libgomp.fortran/pr25219.f90: New test.
2401 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2403         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2404         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2405         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2406         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2407         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2408         testsuite/libgomp.fortran/threadprivate1.f90,
2409         testsuite/libgomp.fortran/threadprivate2.f90,
2410         testsuite/libgomp.fortran/threadprivate3.f90,
2411         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2412         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2413         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2414         effective-target to TLS runtime.
2416         * testsuite/libgomp.fortran/pr25162.f: Require
2417         effective-target TLS runtime.
2419 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2421         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2422         * testsuite/libgomp.c/nestedfn-3.c: New test.
2424 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2426         PR fortran/25162
2427         * testsuite/libgomp.fortran/pr25162.f: New test.
2429 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2431         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2432         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2434 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2436         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2437         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2438         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2439         single.c, team.c, work.c, config/linux/alpha/futex.h,
2440         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2441         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2442         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2443         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2444         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2445         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2446         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2447         FSF address.
2449 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2451         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2452         to nodist_noinst_HEADERS.
2453         * Makefile.in: Rebuilt.
2455         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2456         add integer count field.
2457         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2458         omp_nest_lock_t type change.
2459         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2460         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2461         Increment count.
2462         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2463         Decrement count.
2464         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2465         Increment count if successful and return the new nesting level.
2466         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2467         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2468         * testsuite/libgomp.c/lib-1.c: New test.
2469         * testsuite/libgomp.fortran/lib1.f90: New test.
2470         * testsuite/libgomp.fortran/lib2.f: New test.
2471         * testsuite/libgomp.fortran/lib3.f: New test.
2473 2005-11-17  Richard Henderson  <rth@redhat.com>
2475         PR 24845
2476         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2477         * configure.ac (link_gomp): New.  Substitute it.
2478         (AC_CONFIG_FILES): Add libgomp.spec.
2479         * libgomp.spec.in: New file.
2480         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2481         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2483 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2485         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2486         reduction(-:var) behaving the same as reduction(+:var).
2487         * testsuite/libgomp.c/reduction-4.c: New test.
2489 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2491         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2492         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2493         testsuite/libgomp.c/copyin-3.c,
2494         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2495         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2496         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2497         testsuite/libgomp.c++/pr24455.C,
2498         testsuite/libgomp.fortran/threadprivate1.f90,
2499         testsuite/libgomp.fortran/threadprivate2.f90,
2500         testsuite/libgomp.fortran/threadprivate3.f90,
2501         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2502         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2503         testsuite/libgomp.fortran/omp_parse3.f90: Require
2504         effective-target TLS.
2506 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2508         * HEADER: Remove.
2510 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2512         PR libgomp/24797
2513         * team.c (initialize_team): Pass NULL rather than free as
2514         pthread_key_create destructor.  Initialize thread specific data
2515         pointer in initial thread to a static local variable rather than
2516         malloced memory.
2518 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2520         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2521         its location to ld_library_path.
2523 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2525         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2527 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2529         * testsuite/libgomp.c: Rename from libgomp.dg.
2531 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2533         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2534         threadprivate variable 'i'.
2536 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2538         * config/linux/s390/futex.h: New file.
2539         * configure.tgt: Use it.
2541         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2542         before the parallel.
2544 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2546         PR c++/24734
2547         * testsuite/libgomp.c++/master-1.C: New test.
2549 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2551         * testsuite/libgomp.dg/copyin-3.c: New test.
2553 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2555         * testsuite/libgomp.fortran/retval1.f90: New test.
2556         * testsuite/libgomp.fortran/vla7.f90: New test.
2558 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2560         * testsuite/libgomp.fortran/vla2.f90: New test.
2561         * testsuite/libgomp.fortran/vla3.f90: New test.
2562         * testsuite/libgomp.fortran/vla4.f90: New test.
2563         * testsuite/libgomp.fortran/vla5.f90: New test.
2564         * testsuite/libgomp.fortran/vla6.f90: New test.
2566 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2568         * config/linux/sparc/futex.h: New file.
2569         * configure.tgt: Use it.
2570         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2572         * critical.c: Include stdlib.h.
2573         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2574         ignoring return value.
2575         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2576         LIBGOMP_CHECK_SYNC_BUILTINS check.
2577         * configure: Rebuilt.
2579 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2581         * testsuite/libgomp.fortran/vla1.f90: New test.
2583 2005-10-31  Richard Henderson  <rth@redhat.com>
2585         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2586         setting 's' in different threads.
2588 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2590         * libgomp.h (attribute_hidden, ialias): Define.
2591         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2592         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2593         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2594         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2595         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2596         omp_test_lock, omp_test_nest_lock): Likewise.
2597         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2598         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2599         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2600         omp_test_lock, omp_test_nest_lock): Likewise.
2601         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2602         omp_get_dynamic, omp_get_nested): Likewise.
2603         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2604         omp_get_thread_num, omp_in_parallel): Likewise.
2605         * fortran.c (ialias_redirect): Define.
2606         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2607         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2608         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2609         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2610         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2611         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2612         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2613         omp_get_wtime): Add ialias_redirect.
2615 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2617         * fortran.c: Include stdlib.h.
2619 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2621         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2622         * Makefile.in: Regenerated.
2624 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2626         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2627         * libgomp_f.h.in (omp_check_defines): New function.
2628         * env.c: Include libgomp_f.h.
2629         (initialize_env): Call omp_check_defines.
2631         * testsuite/libgomp.dg/copyin-2.c: New test.
2632         * testsuite/libgomp.c++/copyin-2.C: New test.
2633         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2635         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2636         * testsuite/libgomp.fortran/sharing2.f90: New test.
2638         * testsuite/libgomp.dg/copyin-1.c: New test.
2639         * testsuite/libgomp.c++/copyin-1.C: New test.
2641 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2643         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2645         * testsuite/libgomp.fortran/workshare1.f90: New test.
2647         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2648         only test.
2649         * libgomp.fortran/sharing1.f90: New test.
2651 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2653         PR c++/24502
2654         * testsuite/libgomp.c++/loop-7.C: New test.
2656         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2658         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2659         * testsuite/libgomp.fortran/reduction6.f90: New test.
2660         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2662 2005-10-23  Richard Henderson  <rth@redhat.com>
2664         * testsuite/libgomp.c++/ctor-1.C: New.
2665         * testsuite/libgomp.c++/ctor-2.C: New.
2666         * testsuite/libgomp.c++/ctor-3.C: New.
2667         * testsuite/libgomp.c++/ctor-4.C: New.
2668         * testsuite/libgomp.c++/ctor-5.C: New.
2669         * testsuite/libgomp.c++/ctor-6.C: New.
2670         * testsuite/libgomp.c++/ctor-7.C: New.
2671         * testsuite/libgomp.c++/ctor-8.C: New.
2672         * testsuite/libgomp.c++/ctor-9.C: New.
2674 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2676         PR 24455
2677         * testsuite/libgomp.c++/pr24455-1.C: New test.
2678         * testsuite/libgomp.c++/pr24455.C: New test.
2679         * testsuite/libgomp.dg/pr24455-1.c: New test.
2680         * testsuite/libgomp.dg/pr24455.c: New test.
2682 2005-10-20  Richard Henderson  <rth@redhat.com>
2684         * testsuite/libgomp.c++/loop-6.C: New.
2685         * testsuite/libgomp.dg/loop-3.c: New.
2687 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2689         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2690         explicitly private.
2691         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2692         explicitly shared.
2694 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2696         * testsuite/libgomp.fortran/jacobi.f: New test.
2698 2005-10-19  Richard Henderson  <rth@redhat.com>
2700         * configure.tgt (i?86-linux): Default to with_arch instead of
2701         CFLAGS.  Add -mtune to match target_cpu.
2702         (x86_64-linux): Tune to i686.
2704         * fortran.c (omp_test_nest_lock_): Fix typo.
2706 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2708         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2709         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2710         * testsuite/libgomp.dg/ordered-3.c: New test.
2712         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2713         Remove volatile keyword.
2715         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2716         in COMMON block to avoid warnings on 64-bit targets.
2718 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2720         * testsuite/libgomp.dg/shared-3.c: New test.
2722 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2724         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2725         * testsuite/libgomp.fortran/reduction5.f90: New test.
2727 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2729         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2730         dg-options.
2731         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2732         flush loop now that __sync_synchronize has proper memory barrier.
2733         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2734         Add -ffixed-form to dg-options.
2736 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2738         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2739         from subdirectories.
2740         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2741         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2742         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2743         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2744         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2745         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2746         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2747         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2748         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2749         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2750         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2751         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2752         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2753         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2754         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2755         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2756         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2757         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2758         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2759         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2760         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2761         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2762         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2763         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2764         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2766 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2768         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2769         lang_library_path exists.  Use find instead of glob to gather tests.
2770         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2772 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2774         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2775         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2776         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2777         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2778         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2779         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2780         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2781         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2782         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2783         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2784         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2785         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2786         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2788 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2790         * testsuite/libgomp.dg/vla-1.c: New test.
2792         * testsuite/libgomp.fortran/reference2.f90: New test.
2794         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2795         declaration of omp_get_thread_num.
2796         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2797         use omp_lib.
2799         * testsuite/libgomp.fortran/reduction1.f90: New test.
2800         * testsuite/libgomp.fortran/reduction2.f90: New test.
2801         * testsuite/libgomp.fortran/reduction3.f90: New test.
2802         * testsuite/libgomp.fortran/reduction4.f90: New test.
2804 2005-10-13  Richard Henderson  <rth@redhat.com>
2806         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2807         * Makefile.in: Regenerate.
2808         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2809         * libgomp.h: Include bar.h.
2810         (struct gomp_barrier): Remove.
2811         (struct gomp_team): Add barrier.  Replace master_barrier with
2812         master_release.  Replace threads with ordered_release.
2813         (struct gomp_thread): Replace barrier with release.
2814         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2815         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2816         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2817         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2818         (GOMP_single_copy_end): Likewise.
2819         * team.c (gomp_threads_dock): New.
2820         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2821         (gomp_thread_start): Use gomp_barrier_wait.
2822         (new_team, free_team): Update for gomp_team changes.
2823         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2824         (gomp_team_end): Use gomp_barrier_wait.
2825         (initialize_team): Update for gomp_thread changes.
2826         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2827         (gomp_work_share_end_nowait): Use atomic ops when available.
2828         * config/linux/bar.c, config/linux/bar.h: New files.
2829         * config/posix/bar.c, config/posix/bar.h: New files.
2831 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2833         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2834         * testsuite/libgomp.dg/single-2.c: New test.
2836         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2837         lang_link_flags): Unset, so that they aren't inherited from previously
2838         sourced *.exp.
2840         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2842 2005-10-12  Richard Henderson  <rth@redhat.com>
2844         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2845         (libgomp_init): Use lang_test_file, lang_library_path, and
2846         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2848         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2849         (lang_test_file, lang_link_flags): New.
2850         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2852         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2853         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2854         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2855         testsuite/libgomp.c++/parallel-1.C,
2856         testsuite/libgomp.c++/reduction-1.C,
2857         testsuite/libgomp.c++/reduction-2.C,
2858         testsuite/libgomp.c++/reduction-3.C,
2859         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2860         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2861         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2862         New files, largely cribbed from the C testsuite.
2864 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2866         * testsuite/libgomp.fortran/character1.f90: New test.
2867         * testsuite/libgomp.fortran/character2.f90: New test.
2869         * testsuite/libgomp.dg/nested-1.c: New test.
2870         * testsuite/libgomp.dg/nested-2.c: New test.
2871         * testsuite/libgomp.fortran/do1.f90: New test.
2872         * testsuite/libgomp.fortran/do2.f90: New test.
2874         * testsuite/libgomp.fortran/reference1.f90: New test.
2876 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2878         * testsuite/libgomp.dg/reduction-1.c: New test.
2879         * testsuite/libgomp.dg/reduction-2.c: New test.
2880         * testsuite/libgomp.dg/reduction-3.c: New test.
2882 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2884         * testsuite/libgomp.dg/atomic-1.c: New test.
2885         * testsuite/libgomp.dg/atomic-2.c: New test.
2887 2005-10-09  Richard Henderson  <rth@redhat.com>
2889         * critical.c (atomic_lock): New.
2890         (initialize_critical): Initialize it.
2891         (GOMP_atomic_start, GOMP_atomic_end): New.
2892         * libgomp.map: Export them.
2893         * libgomp_g.h: Declare them.
2895         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2897 2005-10-02  Richard Henderson  <rth@redhat.com>
2899         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2900         to XCFLAGS instead of CFLAGS.
2902 2005-09-30  Richard Henderson  <rth@redhat.com>
2904         * configure.ac: Determine whether -pthread or -lpthread is needed.
2905         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2906         * Makefine.in, configure: Rebuild.
2908 2005-09-28  Richard Henderson  <rth@redhat.com>
2910         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2911         * testsuite/libgomp.dg/omp-single-3.c: New test.
2913 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2915         * testsuite/libgomp.dg/omp-single-2.c: New test.
2916         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2918 2005-09-27  Richard Henderson  <rth@redhat.com>
2920         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2921         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2923 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2925         * testsuite/libgomp.dg/omp-loop03.c: New test.
2927 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2929         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2931 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2933         * testsuite/libgomp.dg/omp-single-1.c: New test.
2934         * testsuite/libgomp.dg/shared-1.c: Return 0.
2935         Add prototype for abort.
2936         * testsuite/libgomp.dg/shared-2.c: Likewise.
2938 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2940         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2941         constructs.
2943 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2945         * testsuite/libgomp.dg/shared-1.c: New test.
2946         * testsuite/libgomp.dg/shared-2.c: New test.
2948 2005-09-24  Richard Henderson  <rth@redhat.com>
2950         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2952 2005-09-24  Richard Henderson  <rth@redhat.com>
2954         * iter.c (gomp_iter_static_next): Round up when computing number
2955         of iterations.  Don't bother distributing a remainder equally.
2957         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2958         Don't call srand.  Zero b before testing.
2959         (main): New.
2961 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2963         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2964         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2966 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2968         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2969         without !$omp end do, followed immediately by subroutine end.
2971 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2973         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2975 2005-09-22  Richard Henderson  <rth@redhat.com>
2977         * critical.c (GOMP_critical_name_start): Change argument to void**.
2978         Reuse the pointer space if the mutex fits.
2979         (GOMP_critical_name_end): Likewise.
2980         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2981         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2982         (GOMP_critical_name_end): Likewise.
2983         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2984         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2986 2005-09-20  Richard Henderson  <rth@redhat.com>
2988         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2989         (create_lock_lock): New.
2990         (initialize_critical): Initialize it.
2991         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2992         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2994 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2996         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2998 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3000         * testsuite/libgomp.dg/omp-loop01.c: New test.
3001         * testsuite/libgomp.dg/omp-loop02.c: New test.
3003 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3005         * configure.ac (AC_PROG_FC): Add.
3006         (USE_FORTRAN): New automake conditional.
3007         * configure: Rebuilt.
3008         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3009         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3010         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3011         Add rules to build them.
3012         * Makefile.in: Rebuilt.
3013         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3014         OMP_NEST_LOCK_KIND.
3015         * libgomp.map: Add Fortran wrappers.
3016         * libgomp_f.h.in: New file.
3017         * omp_lib.h.in: New file.
3018         * omp_lib.f90.in: New file.
3019         * fortran.c: New file.
3020         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3021         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3022         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3023         libgfortran has been built.
3024         * testsuite/libgomp.fortran/fortran.exp: New file.
3025         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3026         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3027         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3028         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3029         * testsuite/libgomp.fortran/omp_hello.f: New test.
3030         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3031         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3032         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3033         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3034         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3035         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3036         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3037         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3039 2005-08-30  Richard Henderson  <rth@redhat.com>
3041         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3042         function for when aliases are not usable.
3043         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3044         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3045         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3046         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3047         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3048         GOMP_loop_ordered_guided_next): Likewise.
3049         * ordered.c (GOMP_ordered_start): Likewise.
3051 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3053         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3054         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3055         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3056         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3057         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3058         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3059         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3060         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3061         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3063 2005-07-07  Eric Christopher  <echristo@redhat.com>
3064             Diego Novillo  <dnovillo@redhat.com>
3066         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3067         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3068         up code.
3069         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3070         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3071         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3072         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3073         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3074         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3075         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3077 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3079         * TOPLEVEL.patch: Remove.
3081 2005-05-16  Richard Henderson  <rth@redhat.com>
3083         * configure.ac: Test for clock_gettime.
3084         * config.h.in, configure: Rebuild.
3085         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3086         (omp_get_wtime): Use clock_gettime if available.
3087         (omp_get_wtick): Use clock_getres if available.
3089 2005-05-11  Richard Henderson  <rth@redhat.com>
3091         * config/linux/ia64/futex.h: New file.
3092         * configure.tgt: Use it.
3094         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3096 2005-05-07  Richard Henderson  <rth@redhat.com>
3098         * config/linux/powerpc/futex.h: New file.
3099         * configure.tgt: Use it.
3101         * config/linux/i486/futex.h: Merge ...
3102         * config/linux/x86_64/futex.h: ... into ...
3103         * config/linux/x86/futex.h: ... here.
3104         * configure.tgt: Update to match.
3106 2005-05-06  Richard Henderson  <rth@redhat.com>
3108         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3109         * config/linux/i486/futex.h: Likewise.
3110         * config/linux/x86_64/futex.h: Likewise.
3112         * config/linux/lock.c: New file.
3113         * config/linux/omp-lock.h: New file.
3115         * critical.c, env.h: Don't include omp.h
3116         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3117         * config/posix/time.c: Likewise.
3118         * config/posix/omp-lock.h: New file.
3119         * libgomp.h: Include omp-lock.h and omp.h.
3120         * Makefile.am (nodist_include_HEADERS): New.
3121         (omp.h): New rule.
3122         * configure.ac (PERL): New.
3123         * mkomp_h.pl: New file.
3124         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3125         with templates.
3126         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3128         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3129         build directory.  Re-add -march=i486 hack.
3131         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3132         (libgomp_link_flags): Remove.
3133         (libgomp_initialized): Remove.
3134         (libgomp_init): Don't protect from reinitialization.  Copy code
3135         from libstdc++ for getting the multilib set correctly.
3137 2005-05-05  Richard Henderson  <rth@redhat.com>
3139         * config/linux/alpha/futex.h: New file.
3140         * configure.tgt (alpha*-*-linux*): Use it.
3142         * config/posix/mutex.c: New file.
3143         * config/posix/sem.c: Use libgomp.h.
3145         * configure.tgt (x86_64-linux): Also test CC for -m32.
3146         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3148         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3149         after $gccpath.
3151         * Makefile.am (SUBDIRS): New.
3152         (libgomp_la_LDFLAGS): Add -lpthread.
3153         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3154         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3156         * libgomp_g.h: New file.
3157         * libgomp.h: Split out all public declarations to libgomp_g.h.
3158         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3159         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3160         * config/linux/sem.h: Likewise.
3161         * config/posix/sem.h: Likewise.
3163         * Makefile.am (AM_LDFLAGS): New.
3164         (libgomp_version_script): Split out from ...
3165         (libgomp_la_LDFLAGS): ... here.
3166         (libgomp_version_info): New.
3167         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3168         (LIBGOMP_ENABLE): New.
3169         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3170         (LIBGOMP_ENABLE_SYMVERS): New.
3171         * configure.ac (AC_INIT): Version 1.0.
3172         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3173         (enable-linux-futex): Likewise.  Rename from enable-futex.
3174         (libtool_VERSION): New.
3175         (LIBGOMP_ENABLE_SYMVERS): Use it.
3176         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3177         * Makefile.in, aclocal.m4, configure: Rebuild.
3179         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3180         (gomp_mutex_unlock_slow): Fix typo.
3181         * config/linux/sem.c: Similarly.
3182         (gomp_sem_post_slow): Fix typo.
3183         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3184         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3185         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3187         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3188         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3189         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3190         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3191         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3192         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3193         LDFLAGS.  Pull enable_futex check to top-level.
3194         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3195         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3197         First attempt at real configury.
3198         * Makefile, config.h: Remove file.
3199         * Makefile.am, Makefile.in: New file.
3200         * acinclude.m4 aclocal.m4: New file.
3201         * configure.ac, configure.tgt, configure: New file.
3203         * config/posix/lock.c: Rename from sys-lock.c.
3204         * config/posix/mutex.h: Rename from sys-mutex.h.
3205         * config/posix/sem.c: Rename from sys-sem.c.
3206         * config/posix/sem.h: Rename from sys-sem.h.
3207         * config/posix/proc.c: Rename from sys-proc.c.
3208         * config/posix/time.c: Rename from sys-proc.c.
3210         * config/linux/mutex.c: New file.
3211         * config/linux/mutex.h: New file.
3212         * config/linux/sem.c: New file.
3213         * config/linux/sem.h: New file.
3214         * config/linux/i486/futex.h: New file.
3215         * config/linux/x86_64/futex.h: New file.
3217 2005-05-04  Richard Henderson  <rth@redhat.com>
3219         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3220         * libgomp.h: Declare them.
3221         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3222         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3224 2005-05-04  Richard Henderson  <rth@redhat.com>
3226         * libgomp-1 code drop
3228 2005-05-04  Richard Henderson  <rth@redhat.com>
3230         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3231         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3232         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3233         (gomp_iter_static_next): Update.
3234         (gomp_ordered_static_next): Update.
3235         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3236         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3237         totally empty range.
3238         (gomp_loop_ordered_static_next): Refine test for calling
3239         gomp_ordered_static_next.
3240         * testsuite/ordered-1.c: Add case for more threads than iterations.
3242         * iter.c (gomp_iter_runtime_next_locked): Remove.
3243         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3244         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3245         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3246         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3247         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3248         gomp_loop_ordered_guided_next): Downcase name, make static, add
3249         an external alias with the old name.
3250         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3251         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3252         switch and call one of the above static functions.
3253         * libgomp.h: Update.
3255         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3256         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3257         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3258         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3259         GOMP_loop_ordered_guided_start): Update to match.
3260         * sections.c (GOMP_sections_start): Likewise.
3261         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3263         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3264         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3265         Use bounds check instead of modulus.
3266         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3267         (gomp_ordered_last): Don't sync with ordered_owner here.
3268         (gomp_ordered_next): Likewise.
3269         (gomp_ordered_static_loop_next): Likewise.
3270         * loop.c, libgomp.h: Update to match.
3272         * libgomp.h (GOMP_barrier): Declare.
3274         * testsuite/barrier-1.c: New file.
3275         * testsuite/critical-1.c: New file.
3276         * testsuite/ordered-2.c: New file.
3277         * testsuite/ordered-1.c: New file.
3278         * testsuite/sections-1.c: New file.
3279         * testsuite/single-1.c: New file.
3280         * testsuite/Makefile (TESTS): Add them.
3282 2005-05-04  Richard Henderson  <rth@redhat.com>
3284         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3285         * loop.c (GOMP_loop_static_start): If not the startup thread,
3286         acquire the mutex to wait for initialization complete.
3287         (GOMP_loop_ordered_static_start): Likewise.
3288         (GOMP_loop_ordered_runtime_start): Likewise.
3289         (GOMP_loop_ordered_static_first): Remove.
3290         (GOMP_loop_ordered_dynamic_first): Remove.
3291         (GOMP_loop_ordered_guided_first): Remove.
3292         (GOMP_loop_ordered_runtime_first): Remove.
3293         * ordered.c (gomp_ordered_loop_first): Post to own release when
3294         we're the first thread.
3295         (gomp_ordered_loop_last): Wait on release if not owner.
3296         (gomp_ordered_loop_next): Likewise.
3297         (gomp_ordered_static_loop_init): New.
3298         (gomp_ordered_static_loop_next): Use ordered_owner.
3299         (GOMP_ordered_start): Likewise.
3300         * work.c (gomp_new_work_share): Initialize ordered_owner.
3302 2005-05-03  Richard Henderson  <rth@redhat.com>
3304         * Makefile (OPT): New.
3305         (CFLAGS): Use it.
3307         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3308         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3309         * libgomp.h, libgomp.map, NOTES: Update to match.
3311         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3312         Add initialized and thr members.
3313         (gomp_thread_start): Pause when initially spawned to wait for
3314         the whole team to be created.
3315         (gomp_team_start): Release team members at the end.
3317         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3318         (f_foo_1): Use GOMP_loop_end.
3319         (f_foo_2): Use GOMP_loop_end_nowait.
3321         * testsuite/loop-2.c: New file.
3322         * testsuite/Makefile (TESTS): Add it.
3324 2005-05-03  Richard Henderson  <rth@redhat.com>
3326         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3327         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3328         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3329         initial work_share.
3331         * testsuite/Makefile: New file.
3332         * testsuite/loop-1.c: New file.
3334 2005-05-03  Richard Henderson  <rth@redhat.com>
3336         Initial implementation and checkin.