PR target/54601
[official-gcc.git] / libgomp / ChangeLog
blob2bbb789c1a49882e2454c4d7a58050f32e12cfe9
1 2013-02-01  Alan Modra  <amodra@gmail.com>
3         * task.c (GOMP_task, GOMP_taskwait): Comment.
5 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
6             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
8         PR libgomp/55561
9         * config/linux/wait.h (do_spin): Use atomic load for addr.
10         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
11         for intptr and ptrlock.
12         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
13         for ptrlock.
15 2013-01-22  Alan Modra  <amodra@gmail.com>
17         PR libgomp/51376
18         PR libgomp/56073
19         * task.c (GOMP_task): Revert 2011-12-09 change.
20         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
21         barrier to read task->children..
22         (gomp_barrier_handle_tasks): ..and matching atomic store with
23         release barrier here when setting parent->children to NULL.
25 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
26             Tobias Burnus  <burnus@net-b.de>
28         PR driver/55884
29         * testsuite/libgomp.fortran/fortran.exp: Use
30         -fintrinsic-modules-path= instead of
31         -fintrinsic-modules-path.
33 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
35         Update copyright years.
37 2012-12-19  Tobias Burnus  <burnus@net-b.de>
39         * testsuite/libgomp.fortran/fortran.exp: Set
40         -fintrinsic-modules-path.
42 2012-12-19  Tobias Burnus  <burnus@net-b.de>
44         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
45         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
47 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
49         PR libgomp/55411
50         * team.c (gomp_free_thread): Decrease gomp_managed_threads
51         if pool had any threads_used.
53 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
55         * testsuite/libgomp.c++/pr24455.C: Use
56         -Wl,-undefined,dynamic_lookup on darwin.
58 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
60         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
62 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
64         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
66 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
67             Jim MacArthur  <jim.macarthur@arm.com>
68             Marcus Shawcroft  <marcus.shawcroft@arm.com>
69             Nigel Stephens  <nigel.stephens@arm.com>
70             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
71             Richard Earnshaw  <rearnsha@arm.com>
72             Sofiane Naci  <sofiane.naci@arm.com>
73             Stephen Thomas  <stephen.thomas@arm.com>
74             Tejas Belagod  <tejas.belagod@arm.com>
75             Yufeng Zhang  <yufeng.zhang@arm.com>
77         * configure.tgt: Add AArch64.
79 2012-10-04  Jason Merrill  <jason@redhat.com>
81         * testsuite/libgomp.c++/tls-init1.C: New.
83 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
85         * configure: Regenerated.
87 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
89         * config/linux/mips/futex.h (sys_futex0): Change to static
90         function with noinline, nomips16 attributes under MIPS16. Adjust
91         asm statement to place 'li v0,SYS_futex' immediately before
92         syscall insn.
94 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
96         * libgomp.texi (Library Index): Renamed from "Index" to prevent
97         conflict with index.html on case-insensitive file systems.
99 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
101         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
102         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
104 2012-07-02  Richard Guenther  <rguenther@suse.de>
105             Michael Matz  <matz@suse.de>
106             Tobias Grosser <tobias@grosser.es>
107             Sebastian Pop <sebpop@gmail.com>
109         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
110         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
111         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
112         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
114 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
116         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
118 2012-06-22  Richard Guenther  <rguenther@suse.de>
120         Merge from graphite branch
121         2012-01-13  Tobias Grosser  <tobias@grosser.es>
123         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
124         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
126 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
128         PR middle-end/53580
129         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
130         use GOMP_barrier () call instead.
131         * testsuite/libgomp.c/pr26943-3.c: Likewise.
132         * testsuite/libgomp.c/pr26943-4.c: Likewise.
133         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
134         call GOMP_barrier instead.
135         * testsuite/libgomp.fortran/vla5.f90: Likewise.
137 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
139         PR libgomp/52993
140         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
141         argument to memset call.
143 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
145         * configure: Regenerated.
147 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
149         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
151 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
153         PR bootstrap/52812
154         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
156 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
158         PR middle-end/52547
159         * testsuite/libgomp.c/pr52547.c: New test.
161 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
163         * testsuite/lib/libgomp.exp: load fortran-modules.exp
165 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
167         * configure.tgt (mips-sgi-irix6*): Remove.
169 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
171         * configure.tgt (alpha*-dec-osf*): Remove.
173         * config/osf/sem.h: Remove.
174         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
176 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
178         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
180 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
182         PR libstdc++/52188
183         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
184         Remove ENABLE_SYMVERS_SOL2.
185         * configure: Regenerate.
186         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
187         (PREPROCESS): New variable.
188         (libgomp.ver): New target.
189         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
190         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
191         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
192         Use libgomp.ver.
193         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
194         * Makefile.in: Regenerate.
196 2012-02-14  Walter Lee  <walt@tilera.com>
198         * configure.tgt: Handle tilegx and tilepro.
199         * config/linux/tile/futex.h: New file.
201 2012-02-08  Richard Guenther  <rguenther@suse.de>
203         PR tree-optimization/46886
204         * testsuite/libgomp.c/pr46886.c: New testcase.
206 2012-01-25  Matthias Klose  <doko@ubuntu.com>
208         * config/linux/arm: Remove empty directory.
209         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
211 2011-12-09  Alan Modra  <amodra@gmail.com>
213         PR libgomp/51376
214         * task.c (GOMP_taskwait): Don't access task->children outside of
215         task_lock mutex region.
216         (GOMP_task): Likewise.
218 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
220         PR libgomp/51132
221         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
222         to file scope.
223         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
224         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
225         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
226         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
227         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
229 2011-12-02  Alan Modra  <amodra@gmail.com>
231         * config/linux/affinity.c: Use atomic rather than sync builtin.
232         * config/linux/lock.c: Likewise.
233         * config/linux/ptrlock.h: Likewise.
234         * config/linux/ptrlock.c: Likewise.
235         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
236         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
237         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
238         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
239         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
240         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
241         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
242         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
243         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
244         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
246 2011-11-30  Alan Modra  <amodra@gmail.com>
248         PR libgomp/51298
249         * config/linux/bar.h: Use atomic rather than sync builtins.
250         * config/linux/bar.c: Likewise.  Add missing acquire
251         synchronisation on generation field.
252         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
253         double unlock.
255 2011-11-30  Alan Modra  <amodra@gmail.com>
257         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
258         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
259         * config/linux/mutex.h: Use atomic rather than sync builtins.
260         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
261         * config/linux/omp-lock.h: Comment fix.
262         * config/linux/arm/mutex.h: Delete.
263         * config/linux/powerpc/mutex.h: Delete.
264         * config/linux/ia64/mutex.h: Delete.
265         * config/linux/mips/mutex.h: Delete.
267 2011-11-30  Alan Modra  <amodra@gmail.com>
269         PR libgomp/51249
270         * config/linux/sem.h: Rewrite.
271         * config/linux/sem.c: Rewrite.
273 2011-11-28  Richard Henderson  <rth@redhat.com>
275         * libgomp.h (enum memmodel): New.
277 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
279         * configure: Regenerate.
281 2011-10-10  Matthias Klose  <doko@ubuntu.com>
283         * config/posix95: Remove empty directory.
285 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
287         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
289 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
291         PR fortran/49792
292         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
293         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
295 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
297         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
299 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
301         PR libgomp/49965
302         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
304 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
306         * config/linux/proc.h: New.
307         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
308         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
309         (gomp_init_num_threads): Update call to cpuset_popcount.
310         (get_num_procs): Ditto.
311         * config/linux/affinity.c (gomp_init_affinity): Call
312         gomp_cpuset_popcount.
314 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
316         PR fortran/42041
317         PR fortran/46752
318         * omp.h.in (omp_in_final): New prototype.
319         * omp_lib.f90.in (omp_in_final): New interface.
320         (omp_integer_kind, omp_logical_kind): Remove
321         and replace all its uses in the module with 4.
322         (openmp_version): Change to 201107.
323         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
324         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
325         kind for the parameters.
326         (omp_in_final): New external.
327         (openmp_version): Change to 201107.
328         * task.c (omp_in_final): New function.
329         (gomp_init_task): Initialize final_task.
330         (GOMP_task): Remove unused attribute from flags.  Handle final
331         tasks.
332         (GOMP_taskyield): New function.
333         (omp_in_final): Return true if if (false) or final (true) task
334         or descendant of final (true).
335         * fortran.c (omp_in_final_): New function.
336         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
337         (GOMP_3.0): Export GOMP_taskyield.
338         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
339         variables.
340         (parse_unsigned_long_list): New function.
341         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
342         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
343         even if parse_affinity returned false.
344         * config/linux/affinity.c (gomp_init_affinity): Handle
345         gomp_cpu_affinity_len == 0.
346         * libgomp_g.h (GOMP_taskyield): New prototype.
347         * libgomp.h (struct gomp_task): Add final_task field.
348         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
349         * team.c (gomp_team_start): Override new task's nthreads_var icv
350         if list form OMP_NUM_THREADS has been used and it has value for
351         the new nesting level.
353         * testsuite/libgomp.c/atomic-11.c: New test.
354         * testsuite/libgomp.c/atomic-12.c: New test.
355         * testsuite/libgomp.c/atomic-13.c: New test.
356         * testsuite/libgomp.c/atomic-14.c: New test.
357         * testsuite/libgomp.c/reduction-6.c: New test.
358         * testsuite/libgomp.c/task-5.c: New test.
359         * testsuite/libgomp.c++/atomic-2.C: New test.
360         * testsuite/libgomp.c++/atomic-3.C: New test.
361         * testsuite/libgomp.c++/atomic-4.C: New test.
362         * testsuite/libgomp.c++/atomic-5.C: New test.
363         * testsuite/libgomp.c++/atomic-6.C: New test.
364         * testsuite/libgomp.c++/atomic-7.C: New test.
365         * testsuite/libgomp.c++/atomic-8.C: New test.
366         * testsuite/libgomp.c++/atomic-9.C: New test.
367         * testsuite/libgomp.c++/task-8.C: New test.
368         * testsuite/libgomp.c++/reduction-4.C: New test.
369         * testsuite/libgomp.fortran/allocatable7.f90: New test.
370         * testsuite/libgomp.fortran/allocatable8.f90: New test.
371         * testsuite/libgomp.fortran/crayptr3.f90: New test.
372         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
373         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
374         * testsuite/libgomp.fortran/pointer1.f90: New test.
375         * testsuite/libgomp.fortran/pointer2.f90: New test.
376         * testsuite/libgomp.fortran/task4.f90: New test.
378 2011-08-02  Tobias Burnus  <burnus@net-b.de>
380         * libgomp.texi: Update OpenMP spec references to 3.1.
381         (omp_in_final,OMP_PROC_BIND): New sections.
382         (OMP_NUM_THREADS): Document that the value can be now a list.
383         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
385 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
387         * config/linux/x86/futex.h: Check __x86_64__ instead of
388         __LP64__.
390 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
392         PR middle-end/49897
393         PR middle-end/49898
394         * testsuite/libgomp.c/pr49897-1.c: New test.
395         * testsuite/libgomp.c/pr49897-2.c: New test.
396         * testsuite/libgomp.c/pr49898-1.c: New test.
397         * testsuite/libgomp.c/pr49898-2.c: New test.
399 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
401         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
402         for ia32 instead of ilp32.
404         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
405         * testsuite/libgomp.c/atomic-6.c: Likewise.
407 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
409         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
410         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
412 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
414         PR libgomp/45351
415         * config/osf/sem.h: New file.
416         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
418 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
420         PR target/49541
421         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
422         ldflags.
424 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
426         * config/linux/wait.h (do_spin): New inline, largely copied
427         from do_wait, just don't do futex_wait here, instead return true if
428         it should be done.
429         (do_wait): Implement using do_spin.
430         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
431         to prototype.
432         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
433         __sync_bool_compare_and_swap, pass the oldval to
434         gomp_mutex_lock_slow.
435         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
436         If all mutex contenders are just spinning and not sleeping, don't
437         change state to 2 unnecessarily.  Optimize the loop when state has
438         already become 2 to use just one atomic operation per loop instead
439         of two.
440         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
441         to prototype.
442         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
443         __sync_bool_compare_and_swap, pass the oldval to
444         gomp_mutex_lock_slow.
446 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
448         PR libgomp/49490
449         * iter.c (gomp_iter_static_next): For chunk size 0
450         only use n ceil/ nthreads size for the first
451         n % nthreads threads in the team instead of
452         all threads except for the last few ones which
453         get less work or none at all.
454         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
455         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
456         chunk argument, set run_sched_modifier to 0 for static
457         resp. 1 for other kinds.  If chunk argument is 0
458         and not static, set value to 1.
460 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
462         PR c++/49043
463         * testsuite/libgomp.c++/pr49043.C: New test.
465         PR c++/48869
466         * testsuite/libgomp.c++/pr48869.C: New test.
468 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
470         PR fortran/48894
471         * fortran.c: Include limits.h.
472         (TO_INT): Define.
473         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
474         *set.
475         (omp_set_num_threads_8_, omp_set_schedule_8_,
476         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
477         omp_get_team_size_8_): Use TO_INT macro.
478         * testsuite/libgomp.fortran/pr48894.f90: New test.
480 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
482         PR middle-end/48591
483         * testsuite/libgomp.c/pr48591.c: New test.
485 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
487         PR bootstrap/48135
488         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
489         * configure: Regenerate.
491 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
493         PR fortran/47886
494         * testsuite/libgomp.fortran/task3.f90: New test.
496 2011-02-24  Tobias Burnus  <burnus@net-b.de>
498         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
500 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
502         PR libgomp/47854
503         * libgomp.texi (omp_get_wtime): Don't say time in the past
504         must be Unix Epoch.
506 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
508         PR libgomp/47804
509         * testsuite/libgomp.fortran/fortran.exp: Check for both
510         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
511         but $blddir != "", still append ${blddir}/${lang_library_path}
512         to ld_library_path.
514 2011-02-16  Tobias Burnus  <burnus@net-b.de>
516         PR libgomp/47758
517         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
518         of libquadmath.a before adding its libpath to ldflags.
520 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
522         PR libgomp/47731
523         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
524         to FUTEX_WAIT futex syscall.
525         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
527 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
529         * configure: Regenerate.
531 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
533         PR libstdc++/36104
534         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
536 2011-01-16  Gerald Pfeifer
538         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
540 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
542         PR fortran/46874
543         * libgomp.fortran/allocatable6.f90: New test.
545 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
547         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
548         * configure: Regenerate.
550 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
552         PR target/40125
553         PR lto/46695
554         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
555         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
556         * aclocal.m4: Regenerate.
557         * configure: Regenerate.
558         * Makefile.in: Regenerate.
559         * testsuite/Makefile.in: Regenerate.
561 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
563         PR fortran/46753
564         * libgomp.fortran/pr46753.f90: New test.
566         PR libgomp/43706
567         * env.c (initialize_env): Default to spin count 300000
568         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
569         is specified.
571         PR libgomp/45240
572         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
573         at the end if sync builtins aren't supported.
575 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
577         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
579 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
581         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
583 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
585         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
587 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
588             Tobias Burnus  <burnus@net-b.de>
590         PR fortran/32049
591         * configure.ac:
592         * configure: Regenerate.
594 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
596         * config/linux/futex.h: New.
597         * config/linux/arm/mutex.h: New.
598         * configure.tgt (arm*-*-linux*): Add config path.
600 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
602         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
604 2010-09-23  Tobias Burnus  <burnus@net-b.de>
606         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
607         Change Fortran datatype to LOGICAL.
608         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
609         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
611 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
613         * configure: Regenerate.
615 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
617         * libgomp.texi: Add function keyword to a couple of Fortran
618         interfaces, use integer instead of int for Fortran.
620 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
622         * libgomp.texi: Fix spelling and pasto problems throughout.
623         Adjust prototypes to match code.
625 2010-07-24  Tobias Burnus  <burnus@net-b.de>
627         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
628         silence -fwhole-file warning.
630 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
632         * configure.tgt (*-*-solaris2.[56]*): Removed.
634 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
636         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
637         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
638         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
639         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
640         targetting solaris2*.
641         * configure: Regenerate.
642         * config.h.in: Regenerate.
644         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
645         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
646         Add libgomp_version_dep.
647         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
648         versioning.
649         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
650         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
651         * Makefile.in: Regenerate.
653         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
654         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
655         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
656         to common block, protected by
657         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
659 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
661         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
663 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
665         PR bootstrap/43170
666         * configure: Regenerate.
668 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
670         PR other/43620
671         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
672         * configure: Regenerate.
673         * Makefile.in: Regenerate.
674         * testsuite/Makefile.in: Regenerate.
676 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
678         PR c/43893
679         * testsuite/libgomp.c/pr43893.c: New test.
680         * testsuite/libgomp.c++/pr43893.C: New test.
682 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
684         PR middle-end/43570
685         * testsuite/libgomp.fortran/vla8.f90: New test.
687 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
689         PR libgomp/43706
690         * config/linux/affinity.c (gomp_init_affinity): Decrease
691         gomp_available_cpus if affinity mask confines the process to fewer
692         CPUs.
693         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
694         non-NULL, just return gomp_available_cpus.
696         PR libgomp/43569
697         * sections.c (gomp_sections_init): Initialize ws->mode.
699 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
701         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
702         not unused bar variable.
703         * configure: Regenerate.
705 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
707         * Makefile.in: Regenerate.
708         * aclocal.m4: Regenerate.
709         * testsuite/Makefile.in: Regenerate.
711 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
713         PR libgomp/42942
714         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
715         (initialize_env): Adjust callers.
716         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
717         when the argument is 0.
719         * testsuite/libgomp.c/pr42942.c: New test.
721 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
723         PR middle-end/42644
724         PR middle-end/42130
725         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
726         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
728 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
730         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
731         * testsuite/libgomp.c++/task-6.C: Likewise.
733 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
735         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
737 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
739         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
740         * configure: Regenerate.
742 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
744         PR fortran/42866
745         * testsuite/libgomp.fortran/allocatable5.f90: New test.
747 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
749         * configure.ac: Test for executability of GFORTRAN.
750         * configure: Regenerate.
752 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
754         * configure: Regenerate.
756 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
758         PR libgomp/42602
759         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
761 2010-01-03  Richard Guenther  <rguenther@suse.de>
763         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
765 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
767         * testsuite/libgomp.graphite/pr4118.c: New.
769 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
771         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
772         for darwin, protect the test with require-effective-target tls_runtime.
773         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
775 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
777         PR target/41605
778         * testsuite/lib/libgomp.exp: Provide -B options to allow for
779         link spec %s substitutions for static libraries.
781 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
783         PR testsuite/42135
784         * libgomp.graphite/force-parallel-2.c: Reduce array size.
786 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
788         * Makefile.in: Regenerate.
789         * configure: Regenerate.
790         * testsuite/Makefile.in: Regenerate.
792 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
794         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
795         settings for LC_ALL and LANG.
797 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
799         PR fortran/42162
800         * testsuite/libgomp.fortran/pr42162.f90: New test.
802 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
804         PR middle-end/42029
805         * testsuite/libgomp.c/pr42029.c: New test.
807 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
809         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
810         *s.  Accept ld version without text in ()s.
811         * configure: Regenerated.
813 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
815         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
817 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
819         PR libgomp/41418
820         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
821         or a hyphen (happens with fortran language disabled).
822         * configure: Regenerate.
824 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
826         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
827         use sed script portable to Solaris /bin/sed for extracting ld
828         version.
829         * configure: Regenerate.
831 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
833         * testsuite/libgomp.graphite/bounds.c: New test.
835 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
837         * Makefile.am (libgomp_la_LINK): New.
838         * Makefile.in: Regenerate.
840 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
842         * configure.ac (AC_PREREQ): Bump to 2.64.
844 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
846         * Makefile.am (install-html, install-pdf): Remove.
847         * Makefile.in: Regenerate.
849         * Makefile.in: Regenerate.
850         * aclocal.m4: Regenerate.
851         * config.h.in: Regenerate.
852         * configure: Regenerate.
853         * testsuite/Makefile.in: Regenerate.
855 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
857         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
858         * Makefile.in: Regenerate.
860 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
862         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
863         * Makefile.in: Regenerate.
865 2009-08-19  Tobias Burnus  <burnus@net-b.de>
867         PR fortran/41102
868         omp_lib.h.in: Fix -std=f95 errors.
871 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
873         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
874         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
875         * testsuite/libgomp.graphite/graphite.exp: New.
877 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
879         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
880         only build.
882 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
884         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
885         needed memory barrier semantics.
886         * config/linux/mips/mutex.h: New file.
888 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
890         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
892 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
894         * configure: Regenerate.
896 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
898         PR testsuite/40699
899         PR testsuite/40707
900         PR testsuite/40709
901         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
902         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
903         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
905 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
907         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
908         options when choosing a multilib.
910 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
912         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
913         ld_library_path.  Use add_path.  Add just find_libgcc_s to
914         ld_library_path, not every libgcc multilib directory.
915         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
916         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
917         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
918         Use add_path.
919         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
921 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
923         * Makefile.am (LTLDFLAGS): Define.
924         (LINK): Define.
925         * Makefile.in: Regenerate.
927 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
929         PR fortran/39718
930         * testsuite/libgomp.fortran/fortran.exp: Don't link with
931         libgfortranbegin, check existence of libgfortran.a instead of
932         libgfortranbegin.a.
934 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
936         PR libgomp/40174
937         * team.c (gomp_thread_start): Destroy thr->release semaphore.
938         (gomp_free_pool_helper): Likewise.
940 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
941             Jakub Jelinek  <jakub@redhat.com>
943         PR fortran/35423
944         * testsuite/libgomp.fortran/workshare2.f90: New test.
946 2009-04-09  Nick Clifton  <nickc@redhat.com>
948         * iter.c: Change copyright header to refer to version 3 of the
949         GNU General Public License with version 3.1 of the GCC Runtime
950         Library Exception and to point readers at the COPYING3 and
951         COPYING3.RUNTIME files and the FSF's license web page.
952         * alloc.c: Likewise.
953         * barrier.c: Likewise.
954         * config/bsd/proc.c: Likewise.
955         * config/linux/affinity.c: Likewise.
956         * config/linux/alpha/futex.h: Likewise.
957         * config/linux/bar.c: Likewise.
958         * config/linux/bar.h: Likewise.
959         * config/linux/ia64/futex.h: Likewise.
960         * config/linux/ia64/mutex.h: Likewise.
961         * config/linux/lock.c: Likewise.
962         * config/linux/mips/futex.h: Likewise.
963         * config/linux/mutex.c: Likewise.
964         * config/linux/mutex.h: Likewise.
965         * config/linux/powerpc/futex.h: Likewise.
966         * config/linux/proc.c: Likewise.
967         * config/linux/ptrlock.c: Likewise.
968         * config/linux/ptrlock.h: Likewise.
969         * config/linux/s390/futex.h: Likewise.
970         * config/linux/sem.c: Likewise.
971         * config/linux/sem.h: Likewise.
972         * config/linux/sparc/futex.h: Likewise.
973         * config/linux/wait.h: Likewise.
974         * config/linux/x86/futex.h: Likewise.
975         * config/mingw32/proc.c: Likewise.
976         * config/mingw32/time.c: Likewise.
977         * config/posix/affinity.c: Likewise.
978         * config/posix/bar.c: Likewise.
979         * config/posix/bar.h: Likewise.
980         * config/posix/lock.c: Likewise.
981         * config/posix/mutex.h: Likewise.
982         * config/posix/proc.c: Likewise.
983         * config/posix/ptrlock.h: Likewise.
984         * config/posix/sem.c: Likewise.
985         * config/posix/sem.h: Likewise.
986         * config/posix/time.c: Likewise.
987         * config/posix95/lock.c: Likewise.
988         * critical.c: Likewise.
989         * env.c: Likewise.
990         * error.c: Likewise.
991         * fortran.c: Likewise.
992         * iter_ull.c: Likewise.
993         * libgomp.h: Likewise.
994         * libgomp_f.h.in: Likewise.
995         * libgomp_g.h: Likewise.
996         * loop.c: Likewise.
997         * loop_ull.c: Likewise.
998         * omp.h.in: Likewise.
999         * omp_lib.f90.in: Likewise.
1000         * omp_lib.h.in: Likewise.
1001         * ordered.c: Likewise.
1002         * parallel.c: Likewise.
1003         * sections.c: Likewise.
1004         * single.c: Likewise.
1005         * task.c: Likewise.
1006         * team.c: Likewise.
1007         * work.c: Likewise.
1009 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1011         * testsuite/config/default.exp: Change copyright header to refer to
1012         version 3 of the GNU General Public License and to point readers
1013         at the COPYING3 file and the FSF's license web page.
1015 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1017         PR middle-end/39573
1018         * libgomp.c++/pr39573.C: New test.
1020 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1022         PR other/39591
1023         * testsuite/libgomp.c/pr39591-1.c: New test.
1024         * testsuite/libgomp.c/pr39591-2.c: New test.
1025         * testsuite/libgomp.c/pr39591-3.c: New test.
1027 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1029         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1030         * testsuite/libgomp.c/atomic-6.c: Ditto.
1032 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1034         PR c/39495
1035         * testsuite/libgomp.c/loop-12.c: New test.
1036         * testsuite/libgomp.c/loop-11.c: New test.
1037         * testsuite/libgomp.c++/loop-11.C: New test.
1038         * testsuite/libgomp.c++/loop-12.C: New test.
1039         * testsuite/libgomp.c++/for-8.C: New test.
1041 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1043         * configure: Regenerate.
1045 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1047         PR middle-end/39154
1048         * testsuite/libgomp.c/pr39154.c: New test.
1050 2009-01-30  Ian Lance Taylor  <iant@google.com>
1052         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1053         libgomp_ld_is_gold.  Get gold version number.
1054         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1055         * configure: Rebuild.
1057 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1059         * testsuite/lib/libgomp.exp: Add -B option for targets that
1060         use libgfortran.a%s in their specs.
1062 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1064         PR libgomp/38086
1065         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1066         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1067         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1068         * configure: Regenerated.
1069         * config.h.in: Likewise.
1071 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1073         PR c++/38650
1074         * testsuite/libgomp.c/pr38650.c: New test.
1075         * testsuite/libgomp.c++/pr38650.C: New test.
1077 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1079         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1081 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1083         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1085 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1087         * configure: Regenerate.
1089 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1091         PR middle-end/36802
1092         * testsuite/libgomp.c/pr36802-1.c: New test.
1093         * testsuite/libgomp.c/pr36802-2.c: New test.
1094         * testsuite/libgomp.c/pr36802-3.c: New test.
1096 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1098         PR libgomp/38270
1099         * config/linux/powerpc/mutex.h: New.
1101 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1103         PR c++/38257
1104         * testsuite/libgomp.c++/for-7.C: New test.
1106         PR c++/38348
1107         * testsuite/libgomp.c++/for-6.C: New test.
1109 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1111         PR testsuite/28870
1112         * testsuite/lib/libgomp.exp: Include new timeout library files.
1113         (libgomp_target_compile): Set timeout value from new proc.
1115 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1117         PR libgomp/37938
1118         * config/linux/ia64/mutex.h: New.
1120 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1122         PR libgomp/37935
1123         * libgomp.texi (Runtime library routines, environment variables):
1124         Update for OpenMP version 3.0.
1126 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1127             Steve Ellcey  <sje@cup.hp.com>
1129         * configure: Regenerate for new libtool.
1130         * Makefile.in: Ditto.
1131         * testsuite/Makefile.in: Ditto.
1133 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1134             Andreas Tobler  <a.tobler@schweiz.org>
1136         * config/bsd/proc.c: New file.
1137         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1138         * configure.ac: Check for header <sys/sysctl.h>
1139         * configure: Regenerate.
1140         * config.h.in: Likewise.
1142 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1144         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1146 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1148         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1149         * Makefile.in: Regenerated.
1150         * testsuite/Makefile.in: Regenerated.
1152 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1154         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1155         depend on blddir if blddir exists.
1156         (libgomp_target_compile): Likewise.
1157         * testsuite/libgomp.c++/c++.exp: Likewise.
1158         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1160 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1162         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1163         Do not list GPL as Invariant Section.
1165 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1166             Chao-ying Fu  <fu@mips.com>
1168         * configure.tgt: Enable futex for MIPS.
1169         * config/linux/mips/futex.h: New file.
1171 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1173         * team.c (gomp_team_end): Free team immediately if it has
1174         just one thread.
1176 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1178         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1179         * testsuite/libgomp.fortran/fortran.exp: Same.
1180         * testsuite/libgomp.c/c.exp: Same.
1181         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1182         directory to library path first.
1184 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1186         * env.c (parse_stacksize): Add cast to avoid warning.
1187         (parse_spincount): Likewise.
1189 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1191         * testsuite/libgomp.c/loop-10.c: New test.
1192         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1193         * libgomp.c++/loop-6.C (main): Likewise.
1195         PR debug/36617
1196         * testsuite/libgomp.c/debug-1.c: New test.
1198 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1200         * testsuite/libgomp.c/nqueens-1.c: New test.
1202         PR c++/36523
1203         * testsuite/libgomp.c++/task-7.C: New function.
1205 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1207         * configure: Regenerate.
1209 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1211         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1212         mutex when HAVE_SYNC_BUILTINS isn't defined.
1214 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1216         * libgomp.texi (omp_test_lock): Fix typo.
1218 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1220         * omp_lib.f90.in: Add "implicit none".
1222 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1224         PR middle-end/36506
1225         * testsuite/libgomp.c/reduction-5.c: New test.
1227 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1229         * libgomp.h (struct gomp_task): Add in_tied_task field.
1230         * task.c (gomp_init_task): Initialize it.
1231         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1232         unconditionally.  Don't call gomp_team_barrier_wake if
1233         current task is implicit or if(0) from implicit and number of
1234         running tasks is equal to nthreads - 1.
1236         PR libgomp/36471
1237         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1238         omp_get_team_size_8): Fix pastos.
1240         PR libgomp/36469
1241         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1242         * configure: Regenerated.
1243         * config.h.in: Regenerated.
1244         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1245         defined.
1247 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1249         PR bootstrap/36452
1250         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1251         (GOMP_loop_ull_dynamic_start): Likewise.
1252         (GOMP_loop_ull_guided_start): Likewise.
1253         (GOMP_loop_ull_ordered_static_start): Likewise.
1254         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1255         (GOMP_loop_ull_ordered_guided_start): Likewise.
1257 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1258             Richard Henderson  <rth@redhat.com>
1259             Ulrich Drepper  <drepper@redhat.com>
1260             Jakob Blomer  <jakob.blomer@ira.uka.de>
1262         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1263         Substitute also OMP_*LOCK_25*.
1264         * configure: Regenerated.
1265         * config.h.in: Regenerated.
1266         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1267         ptrlock.c and task.c.
1268         * Makefile.in: Regenerated.
1269         * testsuite/Makefile.in: Regenerated.
1270         * task.c: New file.
1271         * loop_ull.c: New file.
1272         * iter_ull.c: New file.
1273         * libgomp.h: Include ptrlock.h.
1274         (enum gomp_task_kind): New type.
1275         (struct gomp_team): Add task_lock, task_queue, task_count,
1276         task_running_count, single_count fields.  Add
1277         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1278         Remove work_share_lock, generation_mask,
1279         oldest_live_gen, num_live_gen and init_work_shares fields, add
1280         work work_share_list_alloc, work_share_list_free and work_share_chunk
1281         fields.  Change work_shares from pointer to pointers into an array.
1282         Change ordered_release field into gomp_sem_t ** from flexible array
1283         member.  Add implicit_task and initial_work_shares fields.
1284         Move close to the end of the struct.
1285         (struct gomp_team_state): Add single_count, last_work_share,
1286         active_level and level fields, remove work_share_generation.
1287         (gomp_barrier_handle_tasks): New prototype.
1288         (gomp_finish_task): New inline function.
1289         (struct gomp_work_share): Move chunk_size, end, incr into
1290         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1291         next_ll fields.  Reshuffle fields.  Add next_alloc,
1292         next_ws, next_free and inline_ordered_team_ids fields, change
1293         ordered_team_ids into pointer from flexible array member.
1294         Add mode field.  Put lock and next into a different cache line
1295         from most of the write-once fields.
1296         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1297         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1298         gomp_iter_ull_guided_next): New prototypes.
1299         (gomp_new_icv): New prototype.
1300         (struct gomp_thread): Add thread_pool and task fields.
1301         (struct gomp_thread_pool): New type.
1302         (gomp_new_team): New prototype.
1303         (gomp_team_start): Change type of last argument.
1304         (gomp_new_work_share): Removed.
1305         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1306         (gomp_work_share_init_done): New static inline.
1307         (gomp_throttled_spin_count_var, gomp_available_cpus,
1308         gomp_managed_threads): New extern decls.
1309         (gomp_init_task): New prototype.
1310         (gomp_spin_count_var): New extern var decl.
1311         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1312         or no alias support, or if not PIC.
1313         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1314         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1315         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1316         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1317         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1318         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1319         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1320         gomp_test_nest_lock_25): New prototypes.
1321         (omp_lock_symver, strong_alias): Define.
1322         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1323         decls.
1324         (gomp_end_task): New.
1325         (struct gomp_task_icv, gomp_global_icv): New.
1326         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1327         (struct gomp_task): New.
1328         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1329         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1330         (gomp_icv): New.
1331         (gomp_schedule_type): Reorder enum to match
1332         omp_sched_t.
1333         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1334         fields.
1335         (gomp_thread_start): Add gomp_team_barrier_wait call.
1336         For non-nested case remove clearing of docked thread thr fields.
1337         Use pool fields instead of global gomp_* variables.  Use
1338         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1339         Create tasks for each member thread.
1340         (free_team): Only destroy team barrier, task_lock here and free it.
1341         (gomp_free_thread): Free last_team if non-NULL.
1342         (gomp_team_end): Call gomp_team_barrier_wait instead of
1343         gomp_barrier_wait.  For nested case call one extra
1344         gomp_barrier_wait.  Move here some destruction from free_team.
1345         Call free_team on pool->last_team if any, rather than freeing
1346         current team.  Destroy work_share_list_free_lock ifndef
1347         HAVE_SYNC_BUILTINS.
1348         (gomp_new_icv): New function.
1349         (gomp_threads, gomp_threads_size, gomp_threads_used,
1350         gomp_threads_dock): Removed.
1351         (gomp_thread_destructor): New variable.
1352         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1353         functions.
1354         (gomp_team_start): Create new pool if current thread doesn't have
1355         one.  Use pool fields instead of global gomp_* variables.
1356         Initialize thread_pool field for new threads.  Clear single_count.
1357         Change last argument from ws to team, don't create
1358         new team, set ts.work_share to &team->work_shares[0] and clear
1359         ts.last_work_share.  Don't clear ts.work_share_generation.
1360         If number of threads changed, adjust atomically gomp_managed_threads.
1361         Use gomp_init_task instead of gomp_new_task,
1362         set thr->task to the corresponding implicit_task array entry.
1363         Create tasks for each member thread.  Initialize ts.level.
1364         (initialize_team): Call pthread_key_create on
1365         gomp_thread_destructor.
1366         (team_destructor): New function.
1367         (new_team): Removed.
1368         (gomp_new_team): New function.
1369         (free_team): Free gomp_work_share blocks chained through next_alloc,
1370         instead of freeing work_shares and destroying work_share_lock.
1371         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1372         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1373         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1374         of gomp_barrier_wait.
1375         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1376         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1377         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1378         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1379         of gomp_barrier_wait.
1380         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1381         gomp_work_share_init_done if gomp_work_share_start returned true.
1382         Don't unlock ws->lock.
1383         * work.c: Include stddef.h.
1384         (free_work_share): Use work_share_list_free_lock instead
1385         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1386         Call gomp_fini_work_share and then either free ws if orphaned, or
1387         put it into work_share_list_free list of the current team.
1388         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1389         functions.
1390         (gomp_work_share_start, gomp_work_share_end,
1391         gomp_work_share_end_nowait): Rewritten.
1392         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1393         (openmp_version): Set to 200805.
1394         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1395         omp_sched_guided, omp_sched_auto): New parameters.
1396         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1397         omp_set_max_active_levels, omp_get_max_active_levels,
1398         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1399         omp_get_active_level): New interfaces.
1400         * omp_lib.h.in (openmp_version): Set to 200805.
1401         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1402         omp_sched_guided, omp_sched_auto): New parameters.
1403         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1404         omp_set_max_active_levels, omp_get_max_active_levels,
1405         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1406         omp_get_active_level): New externals.
1407         * loop.c: Include limits.h.
1408         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1409         GFS_AUTO.
1410         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1411         Likewise.  Use gomp_icv.
1412         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1413         ts.static_trip here.
1414         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1415         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1416         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1417         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1418         don't unlock ws->lock, otherwise lock it.
1419         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1420         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1421         (gomp_parallel_loop_start): Call gomp_new_team instead of
1422         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1423         Adjust gomp_team_start caller.  Pass 0 as second argument to
1424         gomp_resolve_num_threads.
1425         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1426         If adding ws->chunk_size nthreads + 1 times after end won't
1427         overflow, set ws->mode to 1.
1428         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1429         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1430         GOMP_loop_ull_ordered_static_start,
1431         GOMP_loop_ull_ordered_dynamic_start,
1432         GOMP_loop_ull_ordered_guided_start,
1433         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1434         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1435         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1436         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1437         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1438         prototypes.
1439         * libgomp.map: Export lock routines also @@OMP_2.0.
1440         (GOMP_loop_ordered_dynamic_first,
1441         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1442         GOMP_loop_ordered_static_first): Remove.
1443         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1444         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1445         GOMP_loop_ull_ordered_dynamic_next,
1446         GOMP_loop_ull_ordered_dynamic_start,
1447         GOMP_loop_ull_ordered_guided_next,
1448         GOMP_loop_ull_ordered_guided_start,
1449         GOMP_loop_ull_ordered_runtime_next,
1450         GOMP_loop_ull_ordered_runtime_start,
1451         GOMP_loop_ull_ordered_static_next,
1452         GOMP_loop_ull_ordered_static_start,
1453         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1454         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1455         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1456         (omp_set_schedule, omp_get_schedule,
1457         omp_get_thread_limit, omp_set_max_active_levels,
1458         omp_get_max_active_levels, omp_get_level,
1459         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1460         omp_set_schedule_, omp_set_schedule_8_,
1461         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1462         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1463         omp_get_max_active_levels_, omp_get_level_,
1464         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1465         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1466         New exports @@OMP_3.0.
1467         * omp.h.in (omp_sched_t): New type.
1468         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1469         omp_set_max_active_levels, omp_get_max_active_levels,
1470         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1471         omp_get_active_level): New prototypes.
1472         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1473         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1474         gomp_thread_limit_var, gomp_remaining_threads_count,
1475         gomp_remaining_threads_lock): New variables.
1476         (parse_spincount): New function.
1477         (initialize_env): Call gomp_init_num_threads unconditionally.
1478         Initialize gomp_available_cpus.  Call parse_spincount,
1479         initialize gomp_{,throttled_}spin_count_var
1480         depending on presence and value of OMP_WAIT_POLICY and
1481         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1482         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1483         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1484         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1485         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1486         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1487         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1488         (gomp_global_icv): New.
1489         (parse_schedule): Use it.  Parse "auto".
1490         (omp_set_num_threads): Use gomp_icv.
1491         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1492         Likewise.
1493         (omp_get_max_threads): Move from parallel.c.
1494         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1495         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1496         add ialias.
1497         (parse_stacksize, parse_wait_policy): New functions.
1498         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1499         both wrappers for compatibility and new locks.
1500         (omp_set_schedule, omp_get_schedule,
1501         omp_get_thread_limit, omp_set_max_active_levels,
1502         omp_get_max_active_levels, omp_get_level,
1503         omp_get_ancestor_thread_num, omp_get_team_size,
1504         omp_get_active_level): New ialias_redirect.
1505         (omp_set_schedule_, omp_set_schedule_8_,
1506         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1507         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1508         omp_get_max_active_levels_, omp_get_level_,
1509         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1510         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1511         New functions.
1512         * parallel.c: Include limits.h.
1513         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1514         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1515         argument to gomp_team_start.  Pass 0 as second argument to
1516         gomp_resolve_num_threads.
1517         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1518         if gomp_thread_limit_var != ULONG_MAX.
1519         (omp_in_parallel): Implement using ts.active_level.
1520         (omp_get_max_threads): Move to env.c.
1521         (omp_get_level, omp_get_ancestor_thread_num,
1522         omp_get_team_size, omp_get_active_level): New functions,
1523         add ialias.
1524         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1525         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1526         gomp_iter_dynamic_next instead of the _locked variant and don't take
1527         lock around it, otherwise acquire it before calling
1528         gomp_iter_dynamic_next_locked.
1529         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1530         gomp_iter_dynamic_next instead of the _locked variant and don't take
1531         lock around it.
1532         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1533         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1534         Adjust gomp_team_start caller.  Pass count as second argument to
1535         gomp_resolve_num_threads, don't adjust num_threads after the call.
1536         Use gomp_icv.
1537         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1538         ws->chunk_size by incr.
1539         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1540         code.
1541         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1542         types.
1543         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1544         (omp_check_defines): Check even the compat defines.
1545         * config/linux/ptrlock.c: New file.
1546         * config/linux/ptrlock.h: New file.
1547         * config/linux/wait.h: New file.
1548         * config/posix/ptrlock.c: New file.
1549         * config/posix/ptrlock.h: New file.
1550         * config/linux/bar.h (gomp_team_barrier_wait,
1551         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1552         (gomp_team_barrier_set_task_pending,
1553         gomp_team_barrier_clear_task_pending,
1554         gomp_team_barrier_set_waiting_for_tasks,
1555         gomp_team_barrier_waiting_for_tasks,
1556         gomp_team_barrier_done): New inlines.
1557         (gomp_barrier_t): Rewritten.
1558         (gomp_barrier_state_t): New typedef.
1559         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1560         gomp_barrier_wait_start): Rewritten.
1561         (gomp_barrier_wait_end): Change second argument to
1562         gomp_barrier_state_t.
1563         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1564         inlines.
1565         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1566         futex.h.
1567         (gomp_barrier_wait_end): Rewritten.
1568         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1569         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1570         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1571         (gomp_barrier_state_t): New typedef.
1572         (gomp_team_barrier_wait,
1573         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1574         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1575         into the return value.  Return gomp_barrier_state_t.
1576         (gomp_team_barrier_set_task_pending,
1577         gomp_team_barrier_clear_task_pending,
1578         gomp_team_barrier_set_waiting_for_tasks,
1579         gomp_team_barrier_waiting_for_tasks,
1580         gomp_team_barrier_done): New inlines.
1581         (gomp_barrier_wait_end): Change second argument to
1582         gomp_barrier_state_t.
1583         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1584         inlines.
1585         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1586         (gomp_barrier_wait_end): Change second argument to
1587         gomp_barrier_state_t.
1588         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1589         gomp_team_barrier_wake): New functions.
1590         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1591         futex.h.
1592         (gomp_futex_wake, gomp_futex_wait): New variables.
1593         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1594         * config/linux/lock.c: Rewrite to make locks task owned,
1595         for backwards compatibility provide the old entrypoints
1596         if symbol versioning.  Include wait.h instead of libgomp.h and
1597         futex.h.
1598         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1599         * config/posix95/lock.c: Rewrite to make locks task owned,
1600         for backwards compatibility provide the old entrypoints
1601         if symbol versioning.
1602         * config/posix/lock.c: Rewrite to make locks task owned,
1603         for backwards compatibility provide the old entrypoints
1604         if symbol versioning.
1605         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1606         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1607         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1608         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1609         (sys_futex0): Return error code.
1610         (futex_wake, futex_wait): If ENOSYS was returned, clear
1611         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1612         (cpu_relax, atomic_write_barrier): New static inlines.
1613         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1614         (futex_wake, futex_wait): If ENOSYS was returned, clear
1615         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1616         (cpu_relax, atomic_write_barrier): New static inlines.
1617         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1618         (sys_futex0): Return error code.
1619         (futex_wake, futex_wait): If ENOSYS was returned, clear
1620         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1621         (cpu_relax, atomic_write_barrier): New static inlines.
1622         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1623         (sys_futex0): Return error code.
1624         (futex_wake, futex_wait): If ENOSYS was returned, clear
1625         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1626         (cpu_relax, atomic_write_barrier): New static inlines.
1627         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1628         (sys_futex0): Return error code.
1629         (futex_wake, futex_wait): If ENOSYS was returned, clear
1630         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1631         (cpu_relax, atomic_write_barrier): New static inlines.
1632         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1633         (sys_futex0): Return error code.
1634         (futex_wake, futex_wait): If ENOSYS was returned, clear
1635         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1636         (cpu_relax, atomic_write_barrier): New static inlines.
1637         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1638         futex.h.
1639         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1640         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1641         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1642         types.
1643         (omp_nest_lock_t): Change owner into void *, add lock field.
1644         * config/posix95/omp-lock.h: Include semaphore.h.
1645         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1646         (omp_lock_t): Use sem_t instead of mutex if semaphores
1647         aren't broken.
1648         (omp_nest_lock_t): Likewise.  Change owner to void *.
1649         * config/posix/omp-lock.h: Include semaphore.h.
1650         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1651         (omp_lock_t): Use sem_t instead of mutex if semaphores
1652         aren't broken.
1653         (omp_nest_lock_t): Likewise.  Add owner field.
1655 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1657         * testsuite/libgomp.c/collapse-1.c: New test.
1658         * testsuite/libgomp.c/collapse-2.c: New test.
1659         * testsuite/libgomp.c/collapse-3.c: New test.
1660         * testsuite/libgomp.c/icv-1.c: New test.
1661         * testsuite/libgomp.c/icv-2.c: New test.
1662         * testsuite/libgomp.c/lib-2.c: New test.
1663         * testsuite/libgomp.c/lock-1.c: New test.
1664         * testsuite/libgomp.c/lock-2.c: New test.
1665         * testsuite/libgomp.c/lock-3.c: New test.
1666         * testsuite/libgomp.c/loop-4.c: New test.
1667         * testsuite/libgomp.c/loop-5.c: New test.
1668         * testsuite/libgomp.c/loop-6.c: New test.
1669         * testsuite/libgomp.c/loop-7.c: New test.
1670         * testsuite/libgomp.c/loop-8.c: New test.
1671         * testsuite/libgomp.c/loop-9.c: New test.
1672         * testsuite/libgomp.c/nested-3.c: New test.
1673         * testsuite/libgomp.c/nestedfn-6.c: New test.
1674         * testsuite/libgomp.c/sort-1.c: New test.
1675         * testsuite/libgomp.c/task-1.c: New test.
1676         * testsuite/libgomp.c/task-2.c: New test.
1677         * testsuite/libgomp.c/task-3.c: New test.
1678         * testsuite/libgomp.c/task-4.c: New test.
1679         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1680         to C++ testsuite default compiler options.
1681         * testsuite/libgomp.c++/collapse-1.C: New test.
1682         * testsuite/libgomp.c++/collapse-2.C: New test.
1683         * testsuite/libgomp.c++/ctor-10.C: New test.
1684         * testsuite/libgomp.c++/for-1.C: New test.
1685         * testsuite/libgomp.c++/for-2.C: New test.
1686         * testsuite/libgomp.c++/for-3.C: New test.
1687         * testsuite/libgomp.c++/for-4.C: New test.
1688         * testsuite/libgomp.c++/for-5.C: New test.
1689         * testsuite/libgomp.c++/loop-8.C: New test.
1690         * testsuite/libgomp.c++/loop-9.C: New test.
1691         * testsuite/libgomp.c++/loop-10.C: New test.
1692         * testsuite/libgomp.c++/task-1.C: New test.
1693         * testsuite/libgomp.c++/task-2.C: New test.
1694         * testsuite/libgomp.c++/task-3.C: New test.
1695         * testsuite/libgomp.c++/task-4.C: New test.
1696         * testsuite/libgomp.c++/task-5.C: New test.
1697         * testsuite/libgomp.c++/task-6.C: New test.
1698         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1699         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1700         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1701         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1702         * testsuite/libgomp.fortran/collapse1.f90: New test.
1703         * testsuite/libgomp.fortran/collapse2.f90: New test.
1704         * testsuite/libgomp.fortran/collapse3.f90: New test.
1705         * testsuite/libgomp.fortran/collapse4.f90: New test.
1706         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1707         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1708         * testsuite/libgomp.fortran/lib4.f90: New test.
1709         * testsuite/libgomp.fortran/lock-1.f90: New test.
1710         * testsuite/libgomp.fortran/lock-2.f90: New test.
1711         * testsuite/libgomp.fortran/nested1.f90: New test.
1712         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1713         * testsuite/libgomp.fortran/strassen.f90: New test.
1714         * testsuite/libgomp.fortran/tabs1.f90: New test.
1715         * testsuite/libgomp.fortran/tabs2.f: New test.
1716         * testsuite/libgomp.fortran/task1.f90: New test.
1717         * testsuite/libgomp.fortran/task2.f90: New test.
1718         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1719         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1720         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1721         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1722         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1724 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1726         PR c++/36308
1727         * testsuite/libgomp.c++/ctor-11.C: New test.
1728         * testsuite/libgomp.c++/ctor-12.C: New test.
1730 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1732         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1734 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1736         PR middle-end/36106
1737         * testsuite/libgomp.c/atomic-5.c: New test.
1738         * testsuite/libgomp.c/atomic-6.c: New test.
1739         * testsuite/libgomp.c/autopar-1.c: New test.
1741 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1743         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1744         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1745         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1746         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1747         * configure: Regenerate.
1748         * Makefile.in, testsuite/Makefile.in: Likewise.
1750 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1752         PR bootstrap/35457
1753         * aclocal.m4: Regenerate.
1754         * configure: Regenerate.
1756 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1758         PR middle-end/35611
1759         * testsuite/libgomp.c/atomic-4.c: New test.
1761         PR libgomp/35625
1762         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1763         (gomp_iter_guided_next): Likewise.
1764         * testsuite/libgomp.c/pr35625.c: New test.
1766 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1768         * aclocal.m4: Regenerate.
1769         * configure: Likewise.
1770         * Makefile.in: Likewise.
1771         * testsuite/Makefile.in: Likewise.
1773 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1775         PR middle-end/35185
1776         * testsuite/libgomp.c++/pr35185.C: New test.
1778 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1780         PR middle-end/35549
1781         * testsuite/libgomp.c/pr35549.c: New test.
1783 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1785         * testsuite/libgomp.c/atomic-3.c: New test.
1787 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1789         PR fortran/33197
1790         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1791         .F08 file suffixes.
1793 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1795         PR libgomp/33131
1796         * configure.ac: Add ACX_HEADER_STRING.
1797         * env.c: Include strings.h.
1798         * aclocal.m4: Regenerate.
1799         * config.h.in: Regenerate.
1800         * configure: Regenerate.
1801         * Makefile.in: Regenerate.
1802         * testsuite/Makefile.in: Regenerate.
1804 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1806         PR middle-end/35196
1807         * testsuite/libgomp.c/pr35196.c: New test.
1809         PR middle-end/35130
1810         * testsuite/libgomp.fortran/pr35130.f90: New test.
1811         * testsuite/libgomp.c/pr35130.c: New test.
1813 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1815         PR middle-end/33880
1816         * testsuite/libgomp.c/pr33880.c: New test.
1817         * testsuite/libgomp.fortran/pr33880.f90: New test.
1819 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1821         * configure: Regenerate.
1823 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1825         * configure.ac: Move futex checking into ../config/futex.m4.
1826         * configure: Rebuilt.
1827         * aclocal.m4: Rebuilt.
1828         * Makefile.in: Rebuilt.
1830         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1831         2007-10-15 ../config/tls.m4 change.
1833 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1835         PR c++/34513
1836         * testsuite/libgomp.c/pr34513.c: New test.
1837         * testsuite/libgomp.c++/pr34513.C: New test.
1839 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1841         PR target/32765
1842         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1844 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1846         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1848 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1850         * testsuite/libgomp.c/private-1.c: New test.
1852 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1853             Paolo Bonzini  <bonzini@gnu.org>
1855         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1856         instead of 'VPATH ='.
1857         * Makefile.in: Regenerate.
1859 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1861         * configure.ac: Adjust makeinfo version check.
1862         * configure: Regenerate.
1864 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1866         PR fortran/34020
1867         * testsuite/libgomp.fortran/pr34020.f90: New test.
1869 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1871         PR c++/33894
1872         * testsuite/libgomp.c++/atomic-1.C: New test.
1874 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1876         PR libgomp/33275
1877         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1878         Make x and y integers rather than (implicit) reals.  Add private (j)
1879         clause to the last omp parallel.
1881 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1883         * configure: Regenerate following changes to ../config/tls.m4.
1885 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1887         * testsuite/libgomp.fortran/stack.f90: New test.
1889 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1891         * config/mingw32/proc.c: New file.
1893 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1895         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1896         (main): Use __get_cpuid to get i386 target fetaures.
1897         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1898         (main): Use __get_cpuid to get x86_64 target fetaures.
1900 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1902         PR target/32765
1903         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1904         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1906 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1908         PR fortran/32550
1909         * testsuite/libgomp.fortran/pr32550.f90: New test.
1910         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1912 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1914         * aclocal.m4: Regenerated.
1916 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1918         PR fortran/32359
1919         * testsuite/libgomp.fortran/pr32359.f90: New.
1921 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1923         PR libgomp/32468
1924         * sections.c (GOMP_parallel_sections_start): Only decrease
1925         number of threads to COUNT if dyn_var is true.
1926         * testsuite/libgomp.c/pr32468.c: New test.
1928 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1930         PR libgomp/26308
1931         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1933 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1935         PR middle-end/32362
1936         * testsuite/libgomp.c/pr32362-1.c: New test.
1937         * testsuite/libgomp.c/pr32362-2.c: New test.
1938         * testsuite/libgomp.c/pr32362-3.c: New test.
1940 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1942         * team.c (gomp_team_start): Fix setting up thread_attr
1943         stack size.
1945 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1947         * configure: Regenerate.
1949 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1951         * Makefile.in: Regenerate.
1952         * configure: Regenerate.
1953         * aclocal.m4: Regenerate.
1954         * testsuite/Makefile.in: Regenerate.
1956 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1958         * config/linux/proc.c: New file.
1960         PR libgomp/28482
1961         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1963 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1965         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1967 2007-04-16  Matthias Klose  <doko@debian.org>
1969         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1970         flags if not building with -m64.
1971         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1972         flag for i?86-*-* targets, if current target matches -m64.
1974 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1976         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1977         * Makefile.in: Regenerate.
1979 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1981         PR testsuite/31369
1982         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1983         ld_library_path.
1984         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1986 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1988         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1989         decls.
1990         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1991         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1992         (parse_affinity): New function.
1993         (initialize_env): Call it and gomp_init_affinity.
1994         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1995         create new pthread_attr_t and call gomp_init_thread_affinity
1996         on it for each thread before passing the attribute to pthread_create.
1997         * config/linux/affinity.c: New file.
1998         * config/posix/affinity.c: New file.
1999         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2000         * configure: Rebuilt.
2001         * config.h.in: Rebuilt.
2002         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2003         * Makefile.in: Rebuilt.
2005 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2007         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2008         *-*-darwin*.
2009         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2010         and use it if found.
2012 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2014         * testsuite/config/default.exp: New file.
2015         * testsuite/lib/libgomp.exp: New file.
2016         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2017         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2018         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2019         (libgomp_load): Remove.
2020         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2021         always_ld_library_path, not ld_library_path.  Set additional_flags
2022         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2023         (target_compile): Do not call libgomp_init.  Append lang_library_path
2024         and lang_link_flags to options.
2025         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2026         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2027         here.
2028         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2029         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2030         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2031         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2032         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2033         CX8 flag.
2034         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2035         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2036         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2037         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2038         * testsuite/libgomp.c/atomic-10.c: Ditto.
2040 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2042         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2043         dg-final cleanup-modules line.
2044         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2045         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2046         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2047         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2048         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2049         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2050         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2052 2007-03-18  Andreas Schwab  <schwab@suse.de>
2054         * acinclude.m4: Adjust regular expression for ld version
2055         extraction.
2056         * configure: Regenerate.
2058 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2060         * Makefile.am: Add install-pdf target as copied from
2061         automake v1.10 rules.
2062         * Makefile.in: Regenerate
2064 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2066         PR libgomp/28486
2067         * configure: Regenerate.
2069         PR c++/30703
2070         * testsuite/libgomp.c++/pr30703.C: New test.
2072 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2074         Revert:
2075         2006-07-05  Eric Christopher  <echristo@apple.com>
2076         * configure.ac: Depend addition of -pthread on host OS.
2077         * configure: Regenerate.
2079 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2081         * libgomp.texi: Fix spacing after abbreviations.
2083 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2085         PR libgomp/30546
2086         * configure.ac: Add check for makeinfo
2087         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2088         if an appropiate version of makeinfo is found.
2089         * aclocal.m4: Regenerated.
2090         * configure: Regenerated.
2091         * Makefile.in: Regenerated.
2092         * testsuite/Makefile.in: Regenerated.
2094 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2096         PR libgomp/30540
2097         * libgomp.texi: More about implementation-dependent settings.
2099 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2101         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2103 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2105         PR middle-end/30494
2106         * testsuite/libgomp.c/pr30494.c: New test.
2108 2007-01-15  Tom Tromey  <tromey@redhat.com>
2110         * configure: Rebuilt.
2111         * configure.ac: Fixed comment.
2113 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2115         * libgomp.texi: Document implementation specific default values of
2116         environment variables.
2118 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2120         PR libgomp/28209
2121         * libgomp.texi: New file.
2122         * configure.ac: Add --enable-generated-files-in-srcdir option.
2123         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2124         files to srcdir.
2125         * Makefile.in: Regenerated.
2126         * config.h.in: Regenerated.
2127         * testsuite/Makefile.in: Regenerated.
2128         * NOTES: Removed.
2130 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2132         PR libgomp/29949
2133         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2135 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2137         * configure: Regenerate.
2139 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2141         PR libgomp/29947
2142         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2143         start if there shouldn't be any loop iterations.
2144         (gomp_loop_ordered_static_start): Remove start == end test.
2145         * testsuite/libgomp.c/pr29947-1.c: New test.
2146         * testsuite/libgomp.c/pr29947-2.c: New test.
2148 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2150         * configure.tgt: Force initial-exec TLS model on Linux only.
2152 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2154         * configure: Regenerated.
2156 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2158         * env.c (parse_schedule): Reject out of range values.
2159         (parse_unsigned_long): Reject out of range, negative or zero values.
2161 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2163         PR fortran/29629
2164         * testsuite/libgomp.fortran/pr29629.f90: New test.
2166 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2168         PR libgomp/29494
2169         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2170         * config/posix95: New directory.
2171         * config/posix95/omp-lock.h: New file.
2172         * config/posix95/lock.c: Likewise.
2174 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2176         * aclocal.m4: Regenerate.
2177         * configure: Regenerate.
2179 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2181         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2182         '<' to '<='.
2184 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2186         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2187         test.
2188         * configure: Regenerate.
2189         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2191 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2193         PR middle-end/25261
2194         PR middle-end/28790
2195         * testsuite/libgomp.c/nestedfn-4.c: New test.
2196         * testsuite/libgomp.c/nestedfn-5.c: New test.
2197         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2199         PR fortran/29097
2200         * testsuite/libgomp.fortran/condinc1.f: New test.
2201         * testsuite/libgomp.fortran/condinc2.f: New test.
2202         * testsuite/libgomp.fortran/condinc3.f90: New test.
2203         * testsuite/libgomp.fortran/condinc4.f90: New test.
2204         * testsuite/libgomp.fortran/condinc1.inc: New file.
2206 2006-09-18  Tom Tromey  <tromey@redhat.com>
2208         * configure: Rebuilt.
2210 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2212         PR c/28768
2213         PR preprocessor/14634
2214         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2215         to AC_DEFINE.
2216         * configure: Regenerate.
2218 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2220         * testsuite/libgomp.fortran/reduction3.f90: Change
2221         -2147483648 to -huge(i)-1 to avoid overflow.
2222         * testsuite/libgomp.fortran/reduction4.f90: Change
2223         Z'ffffffff' to not(0) to avoid overflow.
2225 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2227         PR libgomp/25938
2228         * Makefile.am (libsubincludedir): New.
2229         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2230         * Makefile.in: Regenerate.
2232 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2234         PR libgomp/28725
2235         * env.c: Include ctype.h.
2236         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2237         leading and/or trailing whitespace and compare strings case
2238         insensitively.
2240 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2242         PR fortran/28390
2243         * testsuite/libgomp.fortran/pr28390.f: New test.
2245 2006-07-05  Eric Christopher  <echristo@apple.com>
2247         * configure.ac: Depend addition of -pthread on host OS.
2248         * configure: Regenerate.
2250 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2252         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2253         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2254         defined.
2256 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2258         PR libgomp/26175
2259         PR libgomp/26477
2260         * configure.ac: If neither --enable-linux-futex nor
2261         --disable-linux-futex is passed, determine the default by checking
2262         for compiling and/or running against NPTL.  With --enable-linux-futex,
2263         check if SYS_gettid and SYS_futex are defined.
2264         * configure: Rebuilt.
2266 2006-06-14  Richard Henderson  <rth@redhat.com>
2268         PR libgomp/28008
2269         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2270         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2272 2006-06-09  Richard Henderson  <rth@redhat.com>
2274         * env.c (gomp_nthreads_var): Change to unsigned long.
2275         (gomp_run_sched_chunk): Likewise.
2276         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2277         (initialize_env): Initialize gomp_thread_attr.
2278         * libgomp.h (gomp_nthreads_var): Update decl.
2279         (gomp_run_sched_chunk): Likewise.
2280         (gomp_thread_attr): Declare.
2281         * team.c (gomp_thread_attr): Export.
2282         (initialize_team): Don't initialize it.
2284 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2286         PR fortran/27916
2287         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2288         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2290 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2292         * config/mingw32/time.c: New file.
2293         * configure.tgt: Use it.
2295 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2297         * Makefile.am: Add install-html target. Add install-html to .PHONY
2298         * Makefile.in: Regenerate.
2300 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2302         PR libgomp/27612
2303         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2304         * testsuite/libgomp.c/critical-1.c: Likewise.
2305         * testsuite/libgomp.c/loop-1.c: Likewise.
2306         * testsuite/libgomp.c/loop-2.c: Likewise.
2307         * testsuite/libgomp.c/single-1.c: Likewise.
2308         * testsuite/libgomp.c/ordered-1.c: Likewise.
2309         * testsuite/libgomp.c/ordered-2.c: Likewise.
2311 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2313         PR middle-end/27416
2314         * libgomp.fortran/pr27416-1.f90: New test.
2316 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2318         PR fortran/27395
2319         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2320         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2322 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2324         PR c++/26943
2325         * testsuite/libgomp.c/pr26943-1.c: New test.
2326         * testsuite/libgomp.c/pr26943-2.c: New test.
2327         * testsuite/libgomp.c/pr26943-3.c: New test.
2328         * testsuite/libgomp.c/pr26943-4.c: New test.
2329         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2330         * testsuite/libgomp.c++/pr26943.C: New test.
2332 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2334         PR middle-end/27337
2335         * testsuite/libgomp.c++/pr27337.C: New test.
2337 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2339         PR c/26171
2340         * testsuite/libgomp.c/pr26171.c: New test.
2342 2006-04-25  Richard Henderson  <rth@redhat.com>
2344         PR libgomp/25865
2345         * configure.ac: Use GCC_CHECK_TLS.
2346         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2347         * Makefile.in, aclocal.m4, configure: Regenerate.
2349 2006-04-10  Matthias Klose  <doko@debian.org>
2351         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2352         directory names containing underscores.
2354 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2356         PR c++/26691
2357         * testsuite/libgomp.c++/pr26691.C: New test.
2359 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2361         * testsuite/libgomp.fortran/retval2.f90: New test.
2363 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2365         * testsuite/libgomp.c++: New directory.
2367 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2369         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2370         * config/posix/sem.c: Implement the above.
2372 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2374         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2375         define HAVE_BROKEN_POSIX_SEMAPHORES.
2376         * configure: Rebuilt.
2377         * config.h.in: Rebuilt.
2379 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2381         PR bootstrap/26161
2382         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2383         for the other pthread check.
2384         * configure: Regenerate.
2385         * config.h.in: Regenerate.
2387 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2389         PR libgomp/25938
2390         PR libgomp/25984
2391         * Makefile.am (fincludedir): New variable.
2392         (nodist_include_HEADERS): Remove Fortran files.
2393         (nodist_finclude_HEADERS): New variable.
2394         * Makefile.in: Regenerated.
2396 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2398         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2399         Remove tests for returning assumed character length arrays.
2401 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2402             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2404         PR libgomp/25936
2405         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2407 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2409         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2411 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2413         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2414         part of LD_LIBRARY_PATH manually.
2416 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2418         PR libgomp/25852
2419         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2420         libgomp_init.
2422 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2424         PR libgomp/25884
2425         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2426         * configure.ac (PERL): Don't set.
2427         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2428         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2429         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2430         * omp.h.in: Wrap the new configure substitutions with @ characters.
2431         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2432         * aclocal.m4, configure, Makefile.in: Regenerate.
2433         * mkomp_h.pl: Delete.
2435 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2437         PR libgomp/25259
2438         * configure.ac: Use GCC_HEADER_STDINT.
2439         * libgomp.h: Include gstdint.h.
2440         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2441         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2443 2006-01-24  Richard Henderson  <rth@redhat.com>
2445         PR libgomp/25942
2446         * configure.ac: Add AM_MAINTAINER_MODE.
2447         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2449 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2451         * Makefile.in: Regenerate.
2452         * testsuite/Makefile.in: Regenerate.
2453         * aclocal.m4: Regenerate.
2455 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2457         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2458         Solaris.
2459         * configure.ac: Add check for loadavg.h.
2460         (link_gomp): Adjust comment.
2461         * configure: Regenerate.
2462         * config.h.in: Regenerate.
2464 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2466         PR libgomp/25877
2467         * configure.ac: Remove check for alloca.h.
2468         * configure: Regenerate.
2469         * config.h.in: Regenerate.
2470         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2471         * team.c: Remove use of alloca.h.
2472         Call gomp_alloca instead of alloca.
2474 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2476         PR libgomp/25877
2477         * team.c: Add include of alloca.h.
2478         * configure.ac: Add check for alloca.h.
2479         * configure: Regenerate.
2480         * config.h.in: Regenerate.
2482 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2484         PR fortran/25219
2485         * testsuite/libgomp.fortran/pr25219.f90: New test.
2487 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2489         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2490         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2491         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2492         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2493         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2494         testsuite/libgomp.fortran/threadprivate1.f90,
2495         testsuite/libgomp.fortran/threadprivate2.f90,
2496         testsuite/libgomp.fortran/threadprivate3.f90,
2497         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2498         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2499         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2500         effective-target to TLS runtime.
2502         * testsuite/libgomp.fortran/pr25162.f: Require
2503         effective-target TLS runtime.
2505 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2507         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2508         * testsuite/libgomp.c/nestedfn-3.c: New test.
2510 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2512         PR fortran/25162
2513         * testsuite/libgomp.fortran/pr25162.f: New test.
2515 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2517         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2518         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2520 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2522         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2523         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2524         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2525         single.c, team.c, work.c, config/linux/alpha/futex.h,
2526         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2527         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2528         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2529         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2530         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2531         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2532         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2533         FSF address.
2535 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2537         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2538         to nodist_noinst_HEADERS.
2539         * Makefile.in: Rebuilt.
2541         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2542         add integer count field.
2543         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2544         omp_nest_lock_t type change.
2545         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2546         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2547         Increment count.
2548         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2549         Decrement count.
2550         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2551         Increment count if successful and return the new nesting level.
2552         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2553         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2554         * testsuite/libgomp.c/lib-1.c: New test.
2555         * testsuite/libgomp.fortran/lib1.f90: New test.
2556         * testsuite/libgomp.fortran/lib2.f: New test.
2557         * testsuite/libgomp.fortran/lib3.f: New test.
2559 2005-11-17  Richard Henderson  <rth@redhat.com>
2561         PR 24845
2562         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2563         * configure.ac (link_gomp): New.  Substitute it.
2564         (AC_CONFIG_FILES): Add libgomp.spec.
2565         * libgomp.spec.in: New file.
2566         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2567         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2569 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2571         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2572         reduction(-:var) behaving the same as reduction(+:var).
2573         * testsuite/libgomp.c/reduction-4.c: New test.
2575 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2577         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2578         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2579         testsuite/libgomp.c/copyin-3.c,
2580         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2581         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2582         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2583         testsuite/libgomp.c++/pr24455.C,
2584         testsuite/libgomp.fortran/threadprivate1.f90,
2585         testsuite/libgomp.fortran/threadprivate2.f90,
2586         testsuite/libgomp.fortran/threadprivate3.f90,
2587         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2588         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2589         testsuite/libgomp.fortran/omp_parse3.f90: Require
2590         effective-target TLS.
2592 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2594         * HEADER: Remove.
2596 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2598         PR libgomp/24797
2599         * team.c (initialize_team): Pass NULL rather than free as
2600         pthread_key_create destructor.  Initialize thread specific data
2601         pointer in initial thread to a static local variable rather than
2602         malloced memory.
2604 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2606         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2607         its location to ld_library_path.
2609 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2611         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2613 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2615         * testsuite/libgomp.c: Rename from libgomp.dg.
2617 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2619         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2620         threadprivate variable 'i'.
2622 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2624         * config/linux/s390/futex.h: New file.
2625         * configure.tgt: Use it.
2627         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2628         before the parallel.
2630 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2632         PR c++/24734
2633         * testsuite/libgomp.c++/master-1.C: New test.
2635 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2637         * testsuite/libgomp.dg/copyin-3.c: New test.
2639 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2641         * testsuite/libgomp.fortran/retval1.f90: New test.
2642         * testsuite/libgomp.fortran/vla7.f90: New test.
2644 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2646         * testsuite/libgomp.fortran/vla2.f90: New test.
2647         * testsuite/libgomp.fortran/vla3.f90: New test.
2648         * testsuite/libgomp.fortran/vla4.f90: New test.
2649         * testsuite/libgomp.fortran/vla5.f90: New test.
2650         * testsuite/libgomp.fortran/vla6.f90: New test.
2652 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2654         * config/linux/sparc/futex.h: New file.
2655         * configure.tgt: Use it.
2656         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2658         * critical.c: Include stdlib.h.
2659         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2660         ignoring return value.
2661         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2662         LIBGOMP_CHECK_SYNC_BUILTINS check.
2663         * configure: Rebuilt.
2665 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2667         * testsuite/libgomp.fortran/vla1.f90: New test.
2669 2005-10-31  Richard Henderson  <rth@redhat.com>
2671         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2672         setting 's' in different threads.
2674 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2676         * libgomp.h (attribute_hidden, ialias): Define.
2677         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2678         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2679         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2680         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2681         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2682         omp_test_lock, omp_test_nest_lock): Likewise.
2683         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2684         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2685         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2686         omp_test_lock, omp_test_nest_lock): Likewise.
2687         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2688         omp_get_dynamic, omp_get_nested): Likewise.
2689         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2690         omp_get_thread_num, omp_in_parallel): Likewise.
2691         * fortran.c (ialias_redirect): Define.
2692         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2693         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2694         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2695         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2696         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2697         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2698         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2699         omp_get_wtime): Add ialias_redirect.
2701 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2703         * fortran.c: Include stdlib.h.
2705 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2707         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2708         * Makefile.in: Regenerated.
2710 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2712         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2713         * libgomp_f.h.in (omp_check_defines): New function.
2714         * env.c: Include libgomp_f.h.
2715         (initialize_env): Call omp_check_defines.
2717         * testsuite/libgomp.dg/copyin-2.c: New test.
2718         * testsuite/libgomp.c++/copyin-2.C: New test.
2719         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2721         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2722         * testsuite/libgomp.fortran/sharing2.f90: New test.
2724         * testsuite/libgomp.dg/copyin-1.c: New test.
2725         * testsuite/libgomp.c++/copyin-1.C: New test.
2727 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2729         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2731         * testsuite/libgomp.fortran/workshare1.f90: New test.
2733         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2734         only test.
2735         * libgomp.fortran/sharing1.f90: New test.
2737 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2739         PR c++/24502
2740         * testsuite/libgomp.c++/loop-7.C: New test.
2742         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2744         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2745         * testsuite/libgomp.fortran/reduction6.f90: New test.
2746         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2748 2005-10-23  Richard Henderson  <rth@redhat.com>
2750         * testsuite/libgomp.c++/ctor-1.C: New.
2751         * testsuite/libgomp.c++/ctor-2.C: New.
2752         * testsuite/libgomp.c++/ctor-3.C: New.
2753         * testsuite/libgomp.c++/ctor-4.C: New.
2754         * testsuite/libgomp.c++/ctor-5.C: New.
2755         * testsuite/libgomp.c++/ctor-6.C: New.
2756         * testsuite/libgomp.c++/ctor-7.C: New.
2757         * testsuite/libgomp.c++/ctor-8.C: New.
2758         * testsuite/libgomp.c++/ctor-9.C: New.
2760 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2762         PR 24455
2763         * testsuite/libgomp.c++/pr24455-1.C: New test.
2764         * testsuite/libgomp.c++/pr24455.C: New test.
2765         * testsuite/libgomp.dg/pr24455-1.c: New test.
2766         * testsuite/libgomp.dg/pr24455.c: New test.
2768 2005-10-20  Richard Henderson  <rth@redhat.com>
2770         * testsuite/libgomp.c++/loop-6.C: New.
2771         * testsuite/libgomp.dg/loop-3.c: New.
2773 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2775         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2776         explicitly private.
2777         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2778         explicitly shared.
2780 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2782         * testsuite/libgomp.fortran/jacobi.f: New test.
2784 2005-10-19  Richard Henderson  <rth@redhat.com>
2786         * configure.tgt (i?86-linux): Default to with_arch instead of
2787         CFLAGS.  Add -mtune to match target_cpu.
2788         (x86_64-linux): Tune to i686.
2790         * fortran.c (omp_test_nest_lock_): Fix typo.
2792 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2794         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2795         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2796         * testsuite/libgomp.dg/ordered-3.c: New test.
2798         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2799         Remove volatile keyword.
2801         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2802         in COMMON block to avoid warnings on 64-bit targets.
2804 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2806         * testsuite/libgomp.dg/shared-3.c: New test.
2808 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2810         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2811         * testsuite/libgomp.fortran/reduction5.f90: New test.
2813 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2815         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2816         dg-options.
2817         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2818         flush loop now that __sync_synchronize has proper memory barrier.
2819         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2820         Add -ffixed-form to dg-options.
2822 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2824         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2825         from subdirectories.
2826         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2827         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2828         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2829         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2830         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2831         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2832         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2833         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2834         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2835         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2836         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2837         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2838         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2839         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2840         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2841         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2842         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2843         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2844         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2845         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2846         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2847         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2848         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2849         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2850         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2852 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2854         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2855         lang_library_path exists.  Use find instead of glob to gather tests.
2856         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2858 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2860         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2861         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2862         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2863         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2864         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2865         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2866         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2867         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2868         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2869         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2870         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2871         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2872         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2874 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2876         * testsuite/libgomp.dg/vla-1.c: New test.
2878         * testsuite/libgomp.fortran/reference2.f90: New test.
2880         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2881         declaration of omp_get_thread_num.
2882         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2883         use omp_lib.
2885         * testsuite/libgomp.fortran/reduction1.f90: New test.
2886         * testsuite/libgomp.fortran/reduction2.f90: New test.
2887         * testsuite/libgomp.fortran/reduction3.f90: New test.
2888         * testsuite/libgomp.fortran/reduction4.f90: New test.
2890 2005-10-13  Richard Henderson  <rth@redhat.com>
2892         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2893         * Makefile.in: Regenerate.
2894         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2895         * libgomp.h: Include bar.h.
2896         (struct gomp_barrier): Remove.
2897         (struct gomp_team): Add barrier.  Replace master_barrier with
2898         master_release.  Replace threads with ordered_release.
2899         (struct gomp_thread): Replace barrier with release.
2900         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2901         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2902         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2903         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2904         (GOMP_single_copy_end): Likewise.
2905         * team.c (gomp_threads_dock): New.
2906         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2907         (gomp_thread_start): Use gomp_barrier_wait.
2908         (new_team, free_team): Update for gomp_team changes.
2909         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2910         (gomp_team_end): Use gomp_barrier_wait.
2911         (initialize_team): Update for gomp_thread changes.
2912         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2913         (gomp_work_share_end_nowait): Use atomic ops when available.
2914         * config/linux/bar.c, config/linux/bar.h: New files.
2915         * config/posix/bar.c, config/posix/bar.h: New files.
2917 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2919         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2920         * testsuite/libgomp.dg/single-2.c: New test.
2922         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2923         lang_link_flags): Unset, so that they aren't inherited from previously
2924         sourced *.exp.
2926         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2928 2005-10-12  Richard Henderson  <rth@redhat.com>
2930         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2931         (libgomp_init): Use lang_test_file, lang_library_path, and
2932         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2934         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2935         (lang_test_file, lang_link_flags): New.
2936         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2938         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2939         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2940         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2941         testsuite/libgomp.c++/parallel-1.C,
2942         testsuite/libgomp.c++/reduction-1.C,
2943         testsuite/libgomp.c++/reduction-2.C,
2944         testsuite/libgomp.c++/reduction-3.C,
2945         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2946         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2947         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2948         New files, largely cribbed from the C testsuite.
2950 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2952         * testsuite/libgomp.fortran/character1.f90: New test.
2953         * testsuite/libgomp.fortran/character2.f90: New test.
2955         * testsuite/libgomp.dg/nested-1.c: New test.
2956         * testsuite/libgomp.dg/nested-2.c: New test.
2957         * testsuite/libgomp.fortran/do1.f90: New test.
2958         * testsuite/libgomp.fortran/do2.f90: New test.
2960         * testsuite/libgomp.fortran/reference1.f90: New test.
2962 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2964         * testsuite/libgomp.dg/reduction-1.c: New test.
2965         * testsuite/libgomp.dg/reduction-2.c: New test.
2966         * testsuite/libgomp.dg/reduction-3.c: New test.
2968 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2970         * testsuite/libgomp.dg/atomic-1.c: New test.
2971         * testsuite/libgomp.dg/atomic-2.c: New test.
2973 2005-10-09  Richard Henderson  <rth@redhat.com>
2975         * critical.c (atomic_lock): New.
2976         (initialize_critical): Initialize it.
2977         (GOMP_atomic_start, GOMP_atomic_end): New.
2978         * libgomp.map: Export them.
2979         * libgomp_g.h: Declare them.
2981         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2983 2005-10-02  Richard Henderson  <rth@redhat.com>
2985         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2986         to XCFLAGS instead of CFLAGS.
2988 2005-09-30  Richard Henderson  <rth@redhat.com>
2990         * configure.ac: Determine whether -pthread or -lpthread is needed.
2991         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2992         * Makefine.in, configure: Rebuild.
2994 2005-09-28  Richard Henderson  <rth@redhat.com>
2996         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2997         * testsuite/libgomp.dg/omp-single-3.c: New test.
2999 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3001         * testsuite/libgomp.dg/omp-single-2.c: New test.
3002         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3004 2005-09-27  Richard Henderson  <rth@redhat.com>
3006         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3007         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3009 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3011         * testsuite/libgomp.dg/omp-loop03.c: New test.
3013 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3015         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3017 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3019         * testsuite/libgomp.dg/omp-single-1.c: New test.
3020         * testsuite/libgomp.dg/shared-1.c: Return 0.
3021         Add prototype for abort.
3022         * testsuite/libgomp.dg/shared-2.c: Likewise.
3024 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3026         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3027         constructs.
3029 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3031         * testsuite/libgomp.dg/shared-1.c: New test.
3032         * testsuite/libgomp.dg/shared-2.c: New test.
3034 2005-09-24  Richard Henderson  <rth@redhat.com>
3036         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3038 2005-09-24  Richard Henderson  <rth@redhat.com>
3040         * iter.c (gomp_iter_static_next): Round up when computing number
3041         of iterations.  Don't bother distributing a remainder equally.
3043         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3044         Don't call srand.  Zero b before testing.
3045         (main): New.
3047 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3049         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3050         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3052 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3054         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3055         without !$omp end do, followed immediately by subroutine end.
3057 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3059         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3061 2005-09-22  Richard Henderson  <rth@redhat.com>
3063         * critical.c (GOMP_critical_name_start): Change argument to void**.
3064         Reuse the pointer space if the mutex fits.
3065         (GOMP_critical_name_end): Likewise.
3066         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3067         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3068         (GOMP_critical_name_end): Likewise.
3069         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3070         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3072 2005-09-20  Richard Henderson  <rth@redhat.com>
3074         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3075         (create_lock_lock): New.
3076         (initialize_critical): Initialize it.
3077         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3078         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3080 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3082         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3084 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3086         * testsuite/libgomp.dg/omp-loop01.c: New test.
3087         * testsuite/libgomp.dg/omp-loop02.c: New test.
3089 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3091         * configure.ac (AC_PROG_FC): Add.
3092         (USE_FORTRAN): New automake conditional.
3093         * configure: Rebuilt.
3094         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3095         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3096         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3097         Add rules to build them.
3098         * Makefile.in: Rebuilt.
3099         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3100         OMP_NEST_LOCK_KIND.
3101         * libgomp.map: Add Fortran wrappers.
3102         * libgomp_f.h.in: New file.
3103         * omp_lib.h.in: New file.
3104         * omp_lib.f90.in: New file.
3105         * fortran.c: New file.
3106         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3107         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3108         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3109         libgfortran has been built.
3110         * testsuite/libgomp.fortran/fortran.exp: New file.
3111         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3112         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3113         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3114         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3115         * testsuite/libgomp.fortran/omp_hello.f: New test.
3116         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3117         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3118         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3119         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3120         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3121         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3122         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3123         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3125 2005-08-30  Richard Henderson  <rth@redhat.com>
3127         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3128         function for when aliases are not usable.
3129         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3130         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3131         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3132         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3133         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3134         GOMP_loop_ordered_guided_next): Likewise.
3135         * ordered.c (GOMP_ordered_start): Likewise.
3137 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3139         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3140         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3141         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3142         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3143         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3144         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3145         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3146         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3147         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3149 2005-07-07  Eric Christopher  <echristo@redhat.com>
3150             Diego Novillo  <dnovillo@redhat.com>
3152         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3153         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3154         up code.
3155         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3156         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3157         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3158         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3159         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3160         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3161         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3163 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3165         * TOPLEVEL.patch: Remove.
3167 2005-05-16  Richard Henderson  <rth@redhat.com>
3169         * configure.ac: Test for clock_gettime.
3170         * config.h.in, configure: Rebuild.
3171         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3172         (omp_get_wtime): Use clock_gettime if available.
3173         (omp_get_wtick): Use clock_getres if available.
3175 2005-05-11  Richard Henderson  <rth@redhat.com>
3177         * config/linux/ia64/futex.h: New file.
3178         * configure.tgt: Use it.
3180         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3182 2005-05-07  Richard Henderson  <rth@redhat.com>
3184         * config/linux/powerpc/futex.h: New file.
3185         * configure.tgt: Use it.
3187         * config/linux/i486/futex.h: Merge ...
3188         * config/linux/x86_64/futex.h: ... into ...
3189         * config/linux/x86/futex.h: ... here.
3190         * configure.tgt: Update to match.
3192 2005-05-06  Richard Henderson  <rth@redhat.com>
3194         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3195         * config/linux/i486/futex.h: Likewise.
3196         * config/linux/x86_64/futex.h: Likewise.
3198         * config/linux/lock.c: New file.
3199         * config/linux/omp-lock.h: New file.
3201         * critical.c, env.h: Don't include omp.h
3202         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3203         * config/posix/time.c: Likewise.
3204         * config/posix/omp-lock.h: New file.
3205         * libgomp.h: Include omp-lock.h and omp.h.
3206         * Makefile.am (nodist_include_HEADERS): New.
3207         (omp.h): New rule.
3208         * configure.ac (PERL): New.
3209         * mkomp_h.pl: New file.
3210         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3211         with templates.
3212         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3214         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3215         build directory.  Re-add -march=i486 hack.
3217         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3218         (libgomp_link_flags): Remove.
3219         (libgomp_initialized): Remove.
3220         (libgomp_init): Don't protect from reinitialization.  Copy code
3221         from libstdc++ for getting the multilib set correctly.
3223 2005-05-05  Richard Henderson  <rth@redhat.com>
3225         * config/linux/alpha/futex.h: New file.
3226         * configure.tgt (alpha*-*-linux*): Use it.
3228         * config/posix/mutex.c: New file.
3229         * config/posix/sem.c: Use libgomp.h.
3231         * configure.tgt (x86_64-linux): Also test CC for -m32.
3232         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3234         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3235         after $gccpath.
3237         * Makefile.am (SUBDIRS): New.
3238         (libgomp_la_LDFLAGS): Add -lpthread.
3239         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3240         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3242         * libgomp_g.h: New file.
3243         * libgomp.h: Split out all public declarations to libgomp_g.h.
3244         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3245         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3246         * config/linux/sem.h: Likewise.
3247         * config/posix/sem.h: Likewise.
3249         * Makefile.am (AM_LDFLAGS): New.
3250         (libgomp_version_script): Split out from ...
3251         (libgomp_la_LDFLAGS): ... here.
3252         (libgomp_version_info): New.
3253         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3254         (LIBGOMP_ENABLE): New.
3255         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3256         (LIBGOMP_ENABLE_SYMVERS): New.
3257         * configure.ac (AC_INIT): Version 1.0.
3258         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3259         (enable-linux-futex): Likewise.  Rename from enable-futex.
3260         (libtool_VERSION): New.
3261         (LIBGOMP_ENABLE_SYMVERS): Use it.
3262         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3263         * Makefile.in, aclocal.m4, configure: Rebuild.
3265         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3266         (gomp_mutex_unlock_slow): Fix typo.
3267         * config/linux/sem.c: Similarly.
3268         (gomp_sem_post_slow): Fix typo.
3269         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3270         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3271         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3273         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3274         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3275         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3276         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3277         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3278         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3279         LDFLAGS.  Pull enable_futex check to top-level.
3280         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3281         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3283         First attempt at real configury.
3284         * Makefile, config.h: Remove file.
3285         * Makefile.am, Makefile.in: New file.
3286         * acinclude.m4 aclocal.m4: New file.
3287         * configure.ac, configure.tgt, configure: New file.
3289         * config/posix/lock.c: Rename from sys-lock.c.
3290         * config/posix/mutex.h: Rename from sys-mutex.h.
3291         * config/posix/sem.c: Rename from sys-sem.c.
3292         * config/posix/sem.h: Rename from sys-sem.h.
3293         * config/posix/proc.c: Rename from sys-proc.c.
3294         * config/posix/time.c: Rename from sys-proc.c.
3296         * config/linux/mutex.c: New file.
3297         * config/linux/mutex.h: New file.
3298         * config/linux/sem.c: New file.
3299         * config/linux/sem.h: New file.
3300         * config/linux/i486/futex.h: New file.
3301         * config/linux/x86_64/futex.h: New file.
3303 2005-05-04  Richard Henderson  <rth@redhat.com>
3305         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3306         * libgomp.h: Declare them.
3307         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3308         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3310 2005-05-04  Richard Henderson  <rth@redhat.com>
3312         * libgomp-1 code drop
3314 2005-05-04  Richard Henderson  <rth@redhat.com>
3316         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3317         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3318         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3319         (gomp_iter_static_next): Update.
3320         (gomp_ordered_static_next): Update.
3321         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3322         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3323         totally empty range.
3324         (gomp_loop_ordered_static_next): Refine test for calling
3325         gomp_ordered_static_next.
3326         * testsuite/ordered-1.c: Add case for more threads than iterations.
3328         * iter.c (gomp_iter_runtime_next_locked): Remove.
3329         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3330         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3331         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3332         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3333         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3334         gomp_loop_ordered_guided_next): Downcase name, make static, add
3335         an external alias with the old name.
3336         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3337         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3338         switch and call one of the above static functions.
3339         * libgomp.h: Update.
3341         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3342         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3343         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3344         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3345         GOMP_loop_ordered_guided_start): Update to match.
3346         * sections.c (GOMP_sections_start): Likewise.
3347         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3349         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3350         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3351         Use bounds check instead of modulus.
3352         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3353         (gomp_ordered_last): Don't sync with ordered_owner here.
3354         (gomp_ordered_next): Likewise.
3355         (gomp_ordered_static_loop_next): Likewise.
3356         * loop.c, libgomp.h: Update to match.
3358         * libgomp.h (GOMP_barrier): Declare.
3360         * testsuite/barrier-1.c: New file.
3361         * testsuite/critical-1.c: New file.
3362         * testsuite/ordered-2.c: New file.
3363         * testsuite/ordered-1.c: New file.
3364         * testsuite/sections-1.c: New file.
3365         * testsuite/single-1.c: New file.
3366         * testsuite/Makefile (TESTS): Add them.
3368 2005-05-04  Richard Henderson  <rth@redhat.com>
3370         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3371         * loop.c (GOMP_loop_static_start): If not the startup thread,
3372         acquire the mutex to wait for initialization complete.
3373         (GOMP_loop_ordered_static_start): Likewise.
3374         (GOMP_loop_ordered_runtime_start): Likewise.
3375         (GOMP_loop_ordered_static_first): Remove.
3376         (GOMP_loop_ordered_dynamic_first): Remove.
3377         (GOMP_loop_ordered_guided_first): Remove.
3378         (GOMP_loop_ordered_runtime_first): Remove.
3379         * ordered.c (gomp_ordered_loop_first): Post to own release when
3380         we're the first thread.
3381         (gomp_ordered_loop_last): Wait on release if not owner.
3382         (gomp_ordered_loop_next): Likewise.
3383         (gomp_ordered_static_loop_init): New.
3384         (gomp_ordered_static_loop_next): Use ordered_owner.
3385         (GOMP_ordered_start): Likewise.
3386         * work.c (gomp_new_work_share): Initialize ordered_owner.
3388 2005-05-03  Richard Henderson  <rth@redhat.com>
3390         * Makefile (OPT): New.
3391         (CFLAGS): Use it.
3393         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3394         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3395         * libgomp.h, libgomp.map, NOTES: Update to match.
3397         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3398         Add initialized and thr members.
3399         (gomp_thread_start): Pause when initially spawned to wait for
3400         the whole team to be created.
3401         (gomp_team_start): Release team members at the end.
3403         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3404         (f_foo_1): Use GOMP_loop_end.
3405         (f_foo_2): Use GOMP_loop_end_nowait.
3407         * testsuite/loop-2.c: New file.
3408         * testsuite/Makefile (TESTS): Add it.
3410 2005-05-03  Richard Henderson  <rth@redhat.com>
3412         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3413         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3414         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3415         initial work_share.
3417         * testsuite/Makefile: New file.
3418         * testsuite/loop-1.c: New file.
3420 2005-05-03  Richard Henderson  <rth@redhat.com>
3422         Initial implementation and checkin.