2013-02-25 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / libgomp / ChangeLog
blobb0dc764c9c1d74d81b20a7f245d90eb52f3f93f4
1 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
3         PR middle-end/56217
4         * testsuite/libgomp.c++/pr56217.C: New test.
6 2013-02-01  Alan Modra  <amodra@gmail.com>
8         * task.c (GOMP_task, GOMP_taskwait): Comment.
10 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
11             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
13         PR libgomp/55561
14         * config/linux/wait.h (do_spin): Use atomic load for addr.
15         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16         for intptr and ptrlock.
17         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
18         for ptrlock.
20 2013-01-22  Alan Modra  <amodra@gmail.com>
22         PR libgomp/51376
23         PR libgomp/56073
24         * task.c (GOMP_task): Revert 2011-12-09 change.
25         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
26         barrier to read task->children..
27         (gomp_barrier_handle_tasks): ..and matching atomic store with
28         release barrier here when setting parent->children to NULL.
30 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
31             Tobias Burnus  <burnus@net-b.de>
33         PR driver/55884
34         * testsuite/libgomp.fortran/fortran.exp: Use
35         -fintrinsic-modules-path= instead of
36         -fintrinsic-modules-path.
38 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
40         Update copyright years.
42 2012-12-19  Tobias Burnus  <burnus@net-b.de>
44         * testsuite/libgomp.fortran/fortran.exp: Set
45         -fintrinsic-modules-path.
47 2012-12-19  Tobias Burnus  <burnus@net-b.de>
49         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
50         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
52 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
54         PR libgomp/55411
55         * team.c (gomp_free_thread): Decrease gomp_managed_threads
56         if pool had any threads_used.
58 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
60         * testsuite/libgomp.c++/pr24455.C: Use
61         -Wl,-undefined,dynamic_lookup on darwin.
63 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
65         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
67 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
69         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
71 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
72             Jim MacArthur  <jim.macarthur@arm.com>
73             Marcus Shawcroft  <marcus.shawcroft@arm.com>
74             Nigel Stephens  <nigel.stephens@arm.com>
75             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
76             Richard Earnshaw  <rearnsha@arm.com>
77             Sofiane Naci  <sofiane.naci@arm.com>
78             Stephen Thomas  <stephen.thomas@arm.com>
79             Tejas Belagod  <tejas.belagod@arm.com>
80             Yufeng Zhang  <yufeng.zhang@arm.com>
82         * configure.tgt: Add AArch64.
84 2012-10-04  Jason Merrill  <jason@redhat.com>
86         * testsuite/libgomp.c++/tls-init1.C: New.
88 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
90         * configure: Regenerated.
92 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
94         * config/linux/mips/futex.h (sys_futex0): Change to static
95         function with noinline, nomips16 attributes under MIPS16. Adjust
96         asm statement to place 'li v0,SYS_futex' immediately before
97         syscall insn.
99 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
101         * libgomp.texi (Library Index): Renamed from "Index" to prevent
102         conflict with index.html on case-insensitive file systems.
104 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
106         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
107         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
109 2012-07-02  Richard Guenther  <rguenther@suse.de>
110             Michael Matz  <matz@suse.de>
111             Tobias Grosser <tobias@grosser.es>
112             Sebastian Pop <sebpop@gmail.com>
114         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
115         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
116         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
117         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
119 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
121         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
123 2012-06-22  Richard Guenther  <rguenther@suse.de>
125         Merge from graphite branch
126         2012-01-13  Tobias Grosser  <tobias@grosser.es>
128         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
129         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
131 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
133         PR middle-end/53580
134         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
135         use GOMP_barrier () call instead.
136         * testsuite/libgomp.c/pr26943-3.c: Likewise.
137         * testsuite/libgomp.c/pr26943-4.c: Likewise.
138         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
139         call GOMP_barrier instead.
140         * testsuite/libgomp.fortran/vla5.f90: Likewise.
142 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
144         PR libgomp/52993
145         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
146         argument to memset call.
148 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
150         * configure: Regenerated.
152 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
154         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
156 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
158         PR bootstrap/52812
159         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
161 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
163         PR middle-end/52547
164         * testsuite/libgomp.c/pr52547.c: New test.
166 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
168         * testsuite/lib/libgomp.exp: load fortran-modules.exp
170 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
172         * configure.tgt (mips-sgi-irix6*): Remove.
174 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
176         * configure.tgt (alpha*-dec-osf*): Remove.
178         * config/osf/sem.h: Remove.
179         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
181 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
183         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
185 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
187         PR libstdc++/52188
188         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
189         Remove ENABLE_SYMVERS_SOL2.
190         * configure: Regenerate.
191         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
192         (PREPROCESS): New variable.
193         (libgomp.ver): New target.
194         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
195         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
196         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
197         Use libgomp.ver.
198         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
199         * Makefile.in: Regenerate.
201 2012-02-14  Walter Lee  <walt@tilera.com>
203         * configure.tgt: Handle tilegx and tilepro.
204         * config/linux/tile/futex.h: New file.
206 2012-02-08  Richard Guenther  <rguenther@suse.de>
208         PR tree-optimization/46886
209         * testsuite/libgomp.c/pr46886.c: New testcase.
211 2012-01-25  Matthias Klose  <doko@ubuntu.com>
213         * config/linux/arm: Remove empty directory.
214         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
216 2011-12-09  Alan Modra  <amodra@gmail.com>
218         PR libgomp/51376
219         * task.c (GOMP_taskwait): Don't access task->children outside of
220         task_lock mutex region.
221         (GOMP_task): Likewise.
223 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
225         PR libgomp/51132
226         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
227         to file scope.
228         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
229         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
230         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
231         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
232         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
234 2011-12-02  Alan Modra  <amodra@gmail.com>
236         * config/linux/affinity.c: Use atomic rather than sync builtin.
237         * config/linux/lock.c: Likewise.
238         * config/linux/ptrlock.h: Likewise.
239         * config/linux/ptrlock.c: Likewise.
240         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
241         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
242         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
243         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
244         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
245         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
246         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
247         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
248         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
249         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
251 2011-11-30  Alan Modra  <amodra@gmail.com>
253         PR libgomp/51298
254         * config/linux/bar.h: Use atomic rather than sync builtins.
255         * config/linux/bar.c: Likewise.  Add missing acquire
256         synchronisation on generation field.
257         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
258         double unlock.
260 2011-11-30  Alan Modra  <amodra@gmail.com>
262         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
263         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
264         * config/linux/mutex.h: Use atomic rather than sync builtins.
265         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
266         * config/linux/omp-lock.h: Comment fix.
267         * config/linux/arm/mutex.h: Delete.
268         * config/linux/powerpc/mutex.h: Delete.
269         * config/linux/ia64/mutex.h: Delete.
270         * config/linux/mips/mutex.h: Delete.
272 2011-11-30  Alan Modra  <amodra@gmail.com>
274         PR libgomp/51249
275         * config/linux/sem.h: Rewrite.
276         * config/linux/sem.c: Rewrite.
278 2011-11-28  Richard Henderson  <rth@redhat.com>
280         * libgomp.h (enum memmodel): New.
282 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
284         * configure: Regenerate.
286 2011-10-10  Matthias Klose  <doko@ubuntu.com>
288         * config/posix95: Remove empty directory.
290 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
292         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
294 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
296         PR fortran/49792
297         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
298         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
300 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
302         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
304 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
306         PR libgomp/49965
307         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
309 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
311         * config/linux/proc.h: New.
312         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
313         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
314         (gomp_init_num_threads): Update call to cpuset_popcount.
315         (get_num_procs): Ditto.
316         * config/linux/affinity.c (gomp_init_affinity): Call
317         gomp_cpuset_popcount.
319 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
321         PR fortran/42041
322         PR fortran/46752
323         * omp.h.in (omp_in_final): New prototype.
324         * omp_lib.f90.in (omp_in_final): New interface.
325         (omp_integer_kind, omp_logical_kind): Remove
326         and replace all its uses in the module with 4.
327         (openmp_version): Change to 201107.
328         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
329         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
330         kind for the parameters.
331         (omp_in_final): New external.
332         (openmp_version): Change to 201107.
333         * task.c (omp_in_final): New function.
334         (gomp_init_task): Initialize final_task.
335         (GOMP_task): Remove unused attribute from flags.  Handle final
336         tasks.
337         (GOMP_taskyield): New function.
338         (omp_in_final): Return true if if (false) or final (true) task
339         or descendant of final (true).
340         * fortran.c (omp_in_final_): New function.
341         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
342         (GOMP_3.0): Export GOMP_taskyield.
343         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
344         variables.
345         (parse_unsigned_long_list): New function.
346         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
347         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
348         even if parse_affinity returned false.
349         * config/linux/affinity.c (gomp_init_affinity): Handle
350         gomp_cpu_affinity_len == 0.
351         * libgomp_g.h (GOMP_taskyield): New prototype.
352         * libgomp.h (struct gomp_task): Add final_task field.
353         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
354         * team.c (gomp_team_start): Override new task's nthreads_var icv
355         if list form OMP_NUM_THREADS has been used and it has value for
356         the new nesting level.
358         * testsuite/libgomp.c/atomic-11.c: New test.
359         * testsuite/libgomp.c/atomic-12.c: New test.
360         * testsuite/libgomp.c/atomic-13.c: New test.
361         * testsuite/libgomp.c/atomic-14.c: New test.
362         * testsuite/libgomp.c/reduction-6.c: New test.
363         * testsuite/libgomp.c/task-5.c: New test.
364         * testsuite/libgomp.c++/atomic-2.C: New test.
365         * testsuite/libgomp.c++/atomic-3.C: New test.
366         * testsuite/libgomp.c++/atomic-4.C: New test.
367         * testsuite/libgomp.c++/atomic-5.C: New test.
368         * testsuite/libgomp.c++/atomic-6.C: New test.
369         * testsuite/libgomp.c++/atomic-7.C: New test.
370         * testsuite/libgomp.c++/atomic-8.C: New test.
371         * testsuite/libgomp.c++/atomic-9.C: New test.
372         * testsuite/libgomp.c++/task-8.C: New test.
373         * testsuite/libgomp.c++/reduction-4.C: New test.
374         * testsuite/libgomp.fortran/allocatable7.f90: New test.
375         * testsuite/libgomp.fortran/allocatable8.f90: New test.
376         * testsuite/libgomp.fortran/crayptr3.f90: New test.
377         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
378         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
379         * testsuite/libgomp.fortran/pointer1.f90: New test.
380         * testsuite/libgomp.fortran/pointer2.f90: New test.
381         * testsuite/libgomp.fortran/task4.f90: New test.
383 2011-08-02  Tobias Burnus  <burnus@net-b.de>
385         * libgomp.texi: Update OpenMP spec references to 3.1.
386         (omp_in_final,OMP_PROC_BIND): New sections.
387         (OMP_NUM_THREADS): Document that the value can be now a list.
388         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
390 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
392         * config/linux/x86/futex.h: Check __x86_64__ instead of
393         __LP64__.
395 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
397         PR middle-end/49897
398         PR middle-end/49898
399         * testsuite/libgomp.c/pr49897-1.c: New test.
400         * testsuite/libgomp.c/pr49897-2.c: New test.
401         * testsuite/libgomp.c/pr49898-1.c: New test.
402         * testsuite/libgomp.c/pr49898-2.c: New test.
404 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
406         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
407         for ia32 instead of ilp32.
409         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
410         * testsuite/libgomp.c/atomic-6.c: Likewise.
412 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
414         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
415         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
417 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
419         PR libgomp/45351
420         * config/osf/sem.h: New file.
421         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
423 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
425         PR target/49541
426         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
427         ldflags.
429 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
431         * config/linux/wait.h (do_spin): New inline, largely copied
432         from do_wait, just don't do futex_wait here, instead return true if
433         it should be done.
434         (do_wait): Implement using do_spin.
435         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
436         to prototype.
437         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
438         __sync_bool_compare_and_swap, pass the oldval to
439         gomp_mutex_lock_slow.
440         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
441         If all mutex contenders are just spinning and not sleeping, don't
442         change state to 2 unnecessarily.  Optimize the loop when state has
443         already become 2 to use just one atomic operation per loop instead
444         of two.
445         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
446         to prototype.
447         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
448         __sync_bool_compare_and_swap, pass the oldval to
449         gomp_mutex_lock_slow.
451 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
453         PR libgomp/49490
454         * iter.c (gomp_iter_static_next): For chunk size 0
455         only use n ceil/ nthreads size for the first
456         n % nthreads threads in the team instead of
457         all threads except for the last few ones which
458         get less work or none at all.
459         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
460         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
461         chunk argument, set run_sched_modifier to 0 for static
462         resp. 1 for other kinds.  If chunk argument is 0
463         and not static, set value to 1.
465 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
467         PR c++/49043
468         * testsuite/libgomp.c++/pr49043.C: New test.
470         PR c++/48869
471         * testsuite/libgomp.c++/pr48869.C: New test.
473 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
475         PR fortran/48894
476         * fortran.c: Include limits.h.
477         (TO_INT): Define.
478         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
479         *set.
480         (omp_set_num_threads_8_, omp_set_schedule_8_,
481         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
482         omp_get_team_size_8_): Use TO_INT macro.
483         * testsuite/libgomp.fortran/pr48894.f90: New test.
485 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
487         PR middle-end/48591
488         * testsuite/libgomp.c/pr48591.c: New test.
490 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
492         PR bootstrap/48135
493         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
494         * configure: Regenerate.
496 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
498         PR fortran/47886
499         * testsuite/libgomp.fortran/task3.f90: New test.
501 2011-02-24  Tobias Burnus  <burnus@net-b.de>
503         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
505 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
507         PR libgomp/47854
508         * libgomp.texi (omp_get_wtime): Don't say time in the past
509         must be Unix Epoch.
511 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
513         PR libgomp/47804
514         * testsuite/libgomp.fortran/fortran.exp: Check for both
515         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
516         but $blddir != "", still append ${blddir}/${lang_library_path}
517         to ld_library_path.
519 2011-02-16  Tobias Burnus  <burnus@net-b.de>
521         PR libgomp/47758
522         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
523         of libquadmath.a before adding its libpath to ldflags.
525 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
527         PR libgomp/47731
528         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
529         to FUTEX_WAIT futex syscall.
530         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
532 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
534         * configure: Regenerate.
536 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
538         PR libstdc++/36104
539         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
541 2011-01-16  Gerald Pfeifer
543         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
545 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
547         PR fortran/46874
548         * libgomp.fortran/allocatable6.f90: New test.
550 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
552         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
553         * configure: Regenerate.
555 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
557         PR target/40125
558         PR lto/46695
559         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
560         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
561         * aclocal.m4: Regenerate.
562         * configure: Regenerate.
563         * Makefile.in: Regenerate.
564         * testsuite/Makefile.in: Regenerate.
566 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
568         PR fortran/46753
569         * libgomp.fortran/pr46753.f90: New test.
571         PR libgomp/43706
572         * env.c (initialize_env): Default to spin count 300000
573         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
574         is specified.
576         PR libgomp/45240
577         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
578         at the end if sync builtins aren't supported.
580 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
582         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
584 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
586         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
588 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
590         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
592 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
593             Tobias Burnus  <burnus@net-b.de>
595         PR fortran/32049
596         * configure.ac:
597         * configure: Regenerate.
599 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
601         * config/linux/futex.h: New.
602         * config/linux/arm/mutex.h: New.
603         * configure.tgt (arm*-*-linux*): Add config path.
605 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
607         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
609 2010-09-23  Tobias Burnus  <burnus@net-b.de>
611         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
612         Change Fortran datatype to LOGICAL.
613         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
614         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
616 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
618         * configure: Regenerate.
620 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
622         * libgomp.texi: Add function keyword to a couple of Fortran
623         interfaces, use integer instead of int for Fortran.
625 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
627         * libgomp.texi: Fix spelling and pasto problems throughout.
628         Adjust prototypes to match code.
630 2010-07-24  Tobias Burnus  <burnus@net-b.de>
632         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
633         silence -fwhole-file warning.
635 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
637         * configure.tgt (*-*-solaris2.[56]*): Removed.
639 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
641         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
642         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
643         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
644         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
645         targetting solaris2*.
646         * configure: Regenerate.
647         * config.h.in: Regenerate.
649         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
650         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
651         Add libgomp_version_dep.
652         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
653         versioning.
654         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
655         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
656         * Makefile.in: Regenerate.
658         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
659         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
660         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
661         to common block, protected by
662         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
664 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
666         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
668 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
670         PR bootstrap/43170
671         * configure: Regenerate.
673 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
675         PR other/43620
676         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
677         * configure: Regenerate.
678         * Makefile.in: Regenerate.
679         * testsuite/Makefile.in: Regenerate.
681 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
683         PR c/43893
684         * testsuite/libgomp.c/pr43893.c: New test.
685         * testsuite/libgomp.c++/pr43893.C: New test.
687 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
689         PR middle-end/43570
690         * testsuite/libgomp.fortran/vla8.f90: New test.
692 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
694         PR libgomp/43706
695         * config/linux/affinity.c (gomp_init_affinity): Decrease
696         gomp_available_cpus if affinity mask confines the process to fewer
697         CPUs.
698         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
699         non-NULL, just return gomp_available_cpus.
701         PR libgomp/43569
702         * sections.c (gomp_sections_init): Initialize ws->mode.
704 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
706         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
707         not unused bar variable.
708         * configure: Regenerate.
710 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
712         * Makefile.in: Regenerate.
713         * aclocal.m4: Regenerate.
714         * testsuite/Makefile.in: Regenerate.
716 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
718         PR libgomp/42942
719         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
720         (initialize_env): Adjust callers.
721         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
722         when the argument is 0.
724         * testsuite/libgomp.c/pr42942.c: New test.
726 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
728         PR middle-end/42644
729         PR middle-end/42130
730         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
731         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
733 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
735         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
736         * testsuite/libgomp.c++/task-6.C: Likewise.
738 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
740         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
742 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
744         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
745         * configure: Regenerate.
747 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
749         PR fortran/42866
750         * testsuite/libgomp.fortran/allocatable5.f90: New test.
752 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
754         * configure.ac: Test for executability of GFORTRAN.
755         * configure: Regenerate.
757 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
759         * configure: Regenerate.
761 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
763         PR libgomp/42602
764         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
766 2010-01-03  Richard Guenther  <rguenther@suse.de>
768         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
770 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
772         * testsuite/libgomp.graphite/pr4118.c: New.
774 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
776         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
777         for darwin, protect the test with require-effective-target tls_runtime.
778         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
780 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
782         PR target/41605
783         * testsuite/lib/libgomp.exp: Provide -B options to allow for
784         link spec %s substitutions for static libraries.
786 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
788         PR testsuite/42135
789         * libgomp.graphite/force-parallel-2.c: Reduce array size.
791 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
793         * Makefile.in: Regenerate.
794         * configure: Regenerate.
795         * testsuite/Makefile.in: Regenerate.
797 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
799         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
800         settings for LC_ALL and LANG.
802 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
804         PR fortran/42162
805         * testsuite/libgomp.fortran/pr42162.f90: New test.
807 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
809         PR middle-end/42029
810         * testsuite/libgomp.c/pr42029.c: New test.
812 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
814         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
815         *s.  Accept ld version without text in ()s.
816         * configure: Regenerated.
818 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
820         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
822 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
824         PR libgomp/41418
825         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
826         or a hyphen (happens with fortran language disabled).
827         * configure: Regenerate.
829 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
831         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
832         use sed script portable to Solaris /bin/sed for extracting ld
833         version.
834         * configure: Regenerate.
836 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
838         * testsuite/libgomp.graphite/bounds.c: New test.
840 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
842         * Makefile.am (libgomp_la_LINK): New.
843         * Makefile.in: Regenerate.
845 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
847         * configure.ac (AC_PREREQ): Bump to 2.64.
849 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
851         * Makefile.am (install-html, install-pdf): Remove.
852         * Makefile.in: Regenerate.
854         * Makefile.in: Regenerate.
855         * aclocal.m4: Regenerate.
856         * config.h.in: Regenerate.
857         * configure: Regenerate.
858         * testsuite/Makefile.in: Regenerate.
860 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
862         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
863         * Makefile.in: Regenerate.
865 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
867         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
868         * Makefile.in: Regenerate.
870 2009-08-19  Tobias Burnus  <burnus@net-b.de>
872         PR fortran/41102
873         omp_lib.h.in: Fix -std=f95 errors.
876 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
878         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
879         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
880         * testsuite/libgomp.graphite/graphite.exp: New.
882 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
884         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
885         only build.
887 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
889         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
890         needed memory barrier semantics.
891         * config/linux/mips/mutex.h: New file.
893 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
895         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
897 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
899         * configure: Regenerate.
901 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
903         PR testsuite/40699
904         PR testsuite/40707
905         PR testsuite/40709
906         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
907         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
908         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
910 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
912         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
913         options when choosing a multilib.
915 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
917         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
918         ld_library_path.  Use add_path.  Add just find_libgcc_s to
919         ld_library_path, not every libgcc multilib directory.
920         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
921         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
922         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
923         Use add_path.
924         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
926 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
928         * Makefile.am (LTLDFLAGS): Define.
929         (LINK): Define.
930         * Makefile.in: Regenerate.
932 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
934         PR fortran/39718
935         * testsuite/libgomp.fortran/fortran.exp: Don't link with
936         libgfortranbegin, check existence of libgfortran.a instead of
937         libgfortranbegin.a.
939 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
941         PR libgomp/40174
942         * team.c (gomp_thread_start): Destroy thr->release semaphore.
943         (gomp_free_pool_helper): Likewise.
945 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
946             Jakub Jelinek  <jakub@redhat.com>
948         PR fortran/35423
949         * testsuite/libgomp.fortran/workshare2.f90: New test.
951 2009-04-09  Nick Clifton  <nickc@redhat.com>
953         * iter.c: Change copyright header to refer to version 3 of the
954         GNU General Public License with version 3.1 of the GCC Runtime
955         Library Exception and to point readers at the COPYING3 and
956         COPYING3.RUNTIME files and the FSF's license web page.
957         * alloc.c: Likewise.
958         * barrier.c: Likewise.
959         * config/bsd/proc.c: Likewise.
960         * config/linux/affinity.c: Likewise.
961         * config/linux/alpha/futex.h: Likewise.
962         * config/linux/bar.c: Likewise.
963         * config/linux/bar.h: Likewise.
964         * config/linux/ia64/futex.h: Likewise.
965         * config/linux/ia64/mutex.h: Likewise.
966         * config/linux/lock.c: Likewise.
967         * config/linux/mips/futex.h: Likewise.
968         * config/linux/mutex.c: Likewise.
969         * config/linux/mutex.h: Likewise.
970         * config/linux/powerpc/futex.h: Likewise.
971         * config/linux/proc.c: Likewise.
972         * config/linux/ptrlock.c: Likewise.
973         * config/linux/ptrlock.h: Likewise.
974         * config/linux/s390/futex.h: Likewise.
975         * config/linux/sem.c: Likewise.
976         * config/linux/sem.h: Likewise.
977         * config/linux/sparc/futex.h: Likewise.
978         * config/linux/wait.h: Likewise.
979         * config/linux/x86/futex.h: Likewise.
980         * config/mingw32/proc.c: Likewise.
981         * config/mingw32/time.c: Likewise.
982         * config/posix/affinity.c: Likewise.
983         * config/posix/bar.c: Likewise.
984         * config/posix/bar.h: Likewise.
985         * config/posix/lock.c: Likewise.
986         * config/posix/mutex.h: Likewise.
987         * config/posix/proc.c: Likewise.
988         * config/posix/ptrlock.h: Likewise.
989         * config/posix/sem.c: Likewise.
990         * config/posix/sem.h: Likewise.
991         * config/posix/time.c: Likewise.
992         * config/posix95/lock.c: Likewise.
993         * critical.c: Likewise.
994         * env.c: Likewise.
995         * error.c: Likewise.
996         * fortran.c: Likewise.
997         * iter_ull.c: Likewise.
998         * libgomp.h: Likewise.
999         * libgomp_f.h.in: Likewise.
1000         * libgomp_g.h: Likewise.
1001         * loop.c: Likewise.
1002         * loop_ull.c: Likewise.
1003         * omp.h.in: Likewise.
1004         * omp_lib.f90.in: Likewise.
1005         * omp_lib.h.in: Likewise.
1006         * ordered.c: Likewise.
1007         * parallel.c: Likewise.
1008         * sections.c: Likewise.
1009         * single.c: Likewise.
1010         * task.c: Likewise.
1011         * team.c: Likewise.
1012         * work.c: Likewise.
1014 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1016         * testsuite/config/default.exp: Change copyright header to refer to
1017         version 3 of the GNU General Public License and to point readers
1018         at the COPYING3 file and the FSF's license web page.
1020 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1022         PR middle-end/39573
1023         * libgomp.c++/pr39573.C: New test.
1025 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1027         PR other/39591
1028         * testsuite/libgomp.c/pr39591-1.c: New test.
1029         * testsuite/libgomp.c/pr39591-2.c: New test.
1030         * testsuite/libgomp.c/pr39591-3.c: New test.
1032 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1034         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1035         * testsuite/libgomp.c/atomic-6.c: Ditto.
1037 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1039         PR c/39495
1040         * testsuite/libgomp.c/loop-12.c: New test.
1041         * testsuite/libgomp.c/loop-11.c: New test.
1042         * testsuite/libgomp.c++/loop-11.C: New test.
1043         * testsuite/libgomp.c++/loop-12.C: New test.
1044         * testsuite/libgomp.c++/for-8.C: New test.
1046 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1048         * configure: Regenerate.
1050 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1052         PR middle-end/39154
1053         * testsuite/libgomp.c/pr39154.c: New test.
1055 2009-01-30  Ian Lance Taylor  <iant@google.com>
1057         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1058         libgomp_ld_is_gold.  Get gold version number.
1059         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1060         * configure: Rebuild.
1062 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1064         * testsuite/lib/libgomp.exp: Add -B option for targets that
1065         use libgfortran.a%s in their specs.
1067 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1069         PR libgomp/38086
1070         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1071         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1072         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1073         * configure: Regenerated.
1074         * config.h.in: Likewise.
1076 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1078         PR c++/38650
1079         * testsuite/libgomp.c/pr38650.c: New test.
1080         * testsuite/libgomp.c++/pr38650.C: New test.
1082 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1084         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1086 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1088         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1090 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1092         * configure: Regenerate.
1094 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1096         PR middle-end/36802
1097         * testsuite/libgomp.c/pr36802-1.c: New test.
1098         * testsuite/libgomp.c/pr36802-2.c: New test.
1099         * testsuite/libgomp.c/pr36802-3.c: New test.
1101 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1103         PR libgomp/38270
1104         * config/linux/powerpc/mutex.h: New.
1106 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1108         PR c++/38257
1109         * testsuite/libgomp.c++/for-7.C: New test.
1111         PR c++/38348
1112         * testsuite/libgomp.c++/for-6.C: New test.
1114 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1116         PR testsuite/28870
1117         * testsuite/lib/libgomp.exp: Include new timeout library files.
1118         (libgomp_target_compile): Set timeout value from new proc.
1120 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1122         PR libgomp/37938
1123         * config/linux/ia64/mutex.h: New.
1125 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1127         PR libgomp/37935
1128         * libgomp.texi (Runtime library routines, environment variables):
1129         Update for OpenMP version 3.0.
1131 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1132             Steve Ellcey  <sje@cup.hp.com>
1134         * configure: Regenerate for new libtool.
1135         * Makefile.in: Ditto.
1136         * testsuite/Makefile.in: Ditto.
1138 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1139             Andreas Tobler  <a.tobler@schweiz.org>
1141         * config/bsd/proc.c: New file.
1142         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1143         * configure.ac: Check for header <sys/sysctl.h>
1144         * configure: Regenerate.
1145         * config.h.in: Likewise.
1147 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1149         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1151 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1153         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1154         * Makefile.in: Regenerated.
1155         * testsuite/Makefile.in: Regenerated.
1157 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1159         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1160         depend on blddir if blddir exists.
1161         (libgomp_target_compile): Likewise.
1162         * testsuite/libgomp.c++/c++.exp: Likewise.
1163         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1165 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1167         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1168         Do not list GPL as Invariant Section.
1170 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1171             Chao-ying Fu  <fu@mips.com>
1173         * configure.tgt: Enable futex for MIPS.
1174         * config/linux/mips/futex.h: New file.
1176 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1178         * team.c (gomp_team_end): Free team immediately if it has
1179         just one thread.
1181 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1183         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1184         * testsuite/libgomp.fortran/fortran.exp: Same.
1185         * testsuite/libgomp.c/c.exp: Same.
1186         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1187         directory to library path first.
1189 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1191         * env.c (parse_stacksize): Add cast to avoid warning.
1192         (parse_spincount): Likewise.
1194 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1196         * testsuite/libgomp.c/loop-10.c: New test.
1197         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1198         * libgomp.c++/loop-6.C (main): Likewise.
1200         PR debug/36617
1201         * testsuite/libgomp.c/debug-1.c: New test.
1203 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1205         * testsuite/libgomp.c/nqueens-1.c: New test.
1207         PR c++/36523
1208         * testsuite/libgomp.c++/task-7.C: New function.
1210 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1212         * configure: Regenerate.
1214 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1216         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1217         mutex when HAVE_SYNC_BUILTINS isn't defined.
1219 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1221         * libgomp.texi (omp_test_lock): Fix typo.
1223 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1225         * omp_lib.f90.in: Add "implicit none".
1227 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1229         PR middle-end/36506
1230         * testsuite/libgomp.c/reduction-5.c: New test.
1232 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1234         * libgomp.h (struct gomp_task): Add in_tied_task field.
1235         * task.c (gomp_init_task): Initialize it.
1236         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1237         unconditionally.  Don't call gomp_team_barrier_wake if
1238         current task is implicit or if(0) from implicit and number of
1239         running tasks is equal to nthreads - 1.
1241         PR libgomp/36471
1242         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1243         omp_get_team_size_8): Fix pastos.
1245         PR libgomp/36469
1246         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1247         * configure: Regenerated.
1248         * config.h.in: Regenerated.
1249         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1250         defined.
1252 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1254         PR bootstrap/36452
1255         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1256         (GOMP_loop_ull_dynamic_start): Likewise.
1257         (GOMP_loop_ull_guided_start): Likewise.
1258         (GOMP_loop_ull_ordered_static_start): Likewise.
1259         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1260         (GOMP_loop_ull_ordered_guided_start): Likewise.
1262 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1263             Richard Henderson  <rth@redhat.com>
1264             Ulrich Drepper  <drepper@redhat.com>
1265             Jakob Blomer  <jakob.blomer@ira.uka.de>
1267         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1268         Substitute also OMP_*LOCK_25*.
1269         * configure: Regenerated.
1270         * config.h.in: Regenerated.
1271         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1272         ptrlock.c and task.c.
1273         * Makefile.in: Regenerated.
1274         * testsuite/Makefile.in: Regenerated.
1275         * task.c: New file.
1276         * loop_ull.c: New file.
1277         * iter_ull.c: New file.
1278         * libgomp.h: Include ptrlock.h.
1279         (enum gomp_task_kind): New type.
1280         (struct gomp_team): Add task_lock, task_queue, task_count,
1281         task_running_count, single_count fields.  Add
1282         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1283         Remove work_share_lock, generation_mask,
1284         oldest_live_gen, num_live_gen and init_work_shares fields, add
1285         work work_share_list_alloc, work_share_list_free and work_share_chunk
1286         fields.  Change work_shares from pointer to pointers into an array.
1287         Change ordered_release field into gomp_sem_t ** from flexible array
1288         member.  Add implicit_task and initial_work_shares fields.
1289         Move close to the end of the struct.
1290         (struct gomp_team_state): Add single_count, last_work_share,
1291         active_level and level fields, remove work_share_generation.
1292         (gomp_barrier_handle_tasks): New prototype.
1293         (gomp_finish_task): New inline function.
1294         (struct gomp_work_share): Move chunk_size, end, incr into
1295         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1296         next_ll fields.  Reshuffle fields.  Add next_alloc,
1297         next_ws, next_free and inline_ordered_team_ids fields, change
1298         ordered_team_ids into pointer from flexible array member.
1299         Add mode field.  Put lock and next into a different cache line
1300         from most of the write-once fields.
1301         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1302         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1303         gomp_iter_ull_guided_next): New prototypes.
1304         (gomp_new_icv): New prototype.
1305         (struct gomp_thread): Add thread_pool and task fields.
1306         (struct gomp_thread_pool): New type.
1307         (gomp_new_team): New prototype.
1308         (gomp_team_start): Change type of last argument.
1309         (gomp_new_work_share): Removed.
1310         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1311         (gomp_work_share_init_done): New static inline.
1312         (gomp_throttled_spin_count_var, gomp_available_cpus,
1313         gomp_managed_threads): New extern decls.
1314         (gomp_init_task): New prototype.
1315         (gomp_spin_count_var): New extern var decl.
1316         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1317         or no alias support, or if not PIC.
1318         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1319         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1320         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1321         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1322         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1323         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1324         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1325         gomp_test_nest_lock_25): New prototypes.
1326         (omp_lock_symver, strong_alias): Define.
1327         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1328         decls.
1329         (gomp_end_task): New.
1330         (struct gomp_task_icv, gomp_global_icv): New.
1331         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1332         (struct gomp_task): New.
1333         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1334         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1335         (gomp_icv): New.
1336         (gomp_schedule_type): Reorder enum to match
1337         omp_sched_t.
1338         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1339         fields.
1340         (gomp_thread_start): Add gomp_team_barrier_wait call.
1341         For non-nested case remove clearing of docked thread thr fields.
1342         Use pool fields instead of global gomp_* variables.  Use
1343         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1344         Create tasks for each member thread.
1345         (free_team): Only destroy team barrier, task_lock here and free it.
1346         (gomp_free_thread): Free last_team if non-NULL.
1347         (gomp_team_end): Call gomp_team_barrier_wait instead of
1348         gomp_barrier_wait.  For nested case call one extra
1349         gomp_barrier_wait.  Move here some destruction from free_team.
1350         Call free_team on pool->last_team if any, rather than freeing
1351         current team.  Destroy work_share_list_free_lock ifndef
1352         HAVE_SYNC_BUILTINS.
1353         (gomp_new_icv): New function.
1354         (gomp_threads, gomp_threads_size, gomp_threads_used,
1355         gomp_threads_dock): Removed.
1356         (gomp_thread_destructor): New variable.
1357         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1358         functions.
1359         (gomp_team_start): Create new pool if current thread doesn't have
1360         one.  Use pool fields instead of global gomp_* variables.
1361         Initialize thread_pool field for new threads.  Clear single_count.
1362         Change last argument from ws to team, don't create
1363         new team, set ts.work_share to &team->work_shares[0] and clear
1364         ts.last_work_share.  Don't clear ts.work_share_generation.
1365         If number of threads changed, adjust atomically gomp_managed_threads.
1366         Use gomp_init_task instead of gomp_new_task,
1367         set thr->task to the corresponding implicit_task array entry.
1368         Create tasks for each member thread.  Initialize ts.level.
1369         (initialize_team): Call pthread_key_create on
1370         gomp_thread_destructor.
1371         (team_destructor): New function.
1372         (new_team): Removed.
1373         (gomp_new_team): New function.
1374         (free_team): Free gomp_work_share blocks chained through next_alloc,
1375         instead of freeing work_shares and destroying work_share_lock.
1376         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1377         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1378         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1379         of gomp_barrier_wait.
1380         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1381         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1382         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1383         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1384         of gomp_barrier_wait.
1385         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1386         gomp_work_share_init_done if gomp_work_share_start returned true.
1387         Don't unlock ws->lock.
1388         * work.c: Include stddef.h.
1389         (free_work_share): Use work_share_list_free_lock instead
1390         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1391         Call gomp_fini_work_share and then either free ws if orphaned, or
1392         put it into work_share_list_free list of the current team.
1393         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1394         functions.
1395         (gomp_work_share_start, gomp_work_share_end,
1396         gomp_work_share_end_nowait): Rewritten.
1397         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1398         (openmp_version): Set to 200805.
1399         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1400         omp_sched_guided, omp_sched_auto): New parameters.
1401         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1402         omp_set_max_active_levels, omp_get_max_active_levels,
1403         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1404         omp_get_active_level): New interfaces.
1405         * omp_lib.h.in (openmp_version): Set to 200805.
1406         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1407         omp_sched_guided, omp_sched_auto): New parameters.
1408         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1409         omp_set_max_active_levels, omp_get_max_active_levels,
1410         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1411         omp_get_active_level): New externals.
1412         * loop.c: Include limits.h.
1413         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1414         GFS_AUTO.
1415         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1416         Likewise.  Use gomp_icv.
1417         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1418         ts.static_trip here.
1419         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1420         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1421         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1422         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1423         don't unlock ws->lock, otherwise lock it.
1424         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1425         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1426         (gomp_parallel_loop_start): Call gomp_new_team instead of
1427         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1428         Adjust gomp_team_start caller.  Pass 0 as second argument to
1429         gomp_resolve_num_threads.
1430         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1431         If adding ws->chunk_size nthreads + 1 times after end won't
1432         overflow, set ws->mode to 1.
1433         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1434         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1435         GOMP_loop_ull_ordered_static_start,
1436         GOMP_loop_ull_ordered_dynamic_start,
1437         GOMP_loop_ull_ordered_guided_start,
1438         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1439         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1440         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1441         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1442         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1443         prototypes.
1444         * libgomp.map: Export lock routines also @@OMP_2.0.
1445         (GOMP_loop_ordered_dynamic_first,
1446         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1447         GOMP_loop_ordered_static_first): Remove.
1448         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1449         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1450         GOMP_loop_ull_ordered_dynamic_next,
1451         GOMP_loop_ull_ordered_dynamic_start,
1452         GOMP_loop_ull_ordered_guided_next,
1453         GOMP_loop_ull_ordered_guided_start,
1454         GOMP_loop_ull_ordered_runtime_next,
1455         GOMP_loop_ull_ordered_runtime_start,
1456         GOMP_loop_ull_ordered_static_next,
1457         GOMP_loop_ull_ordered_static_start,
1458         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1459         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1460         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1461         (omp_set_schedule, omp_get_schedule,
1462         omp_get_thread_limit, omp_set_max_active_levels,
1463         omp_get_max_active_levels, omp_get_level,
1464         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1465         omp_set_schedule_, omp_set_schedule_8_,
1466         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1467         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1468         omp_get_max_active_levels_, omp_get_level_,
1469         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1470         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1471         New exports @@OMP_3.0.
1472         * omp.h.in (omp_sched_t): New type.
1473         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1474         omp_set_max_active_levels, omp_get_max_active_levels,
1475         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1476         omp_get_active_level): New prototypes.
1477         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1478         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1479         gomp_thread_limit_var, gomp_remaining_threads_count,
1480         gomp_remaining_threads_lock): New variables.
1481         (parse_spincount): New function.
1482         (initialize_env): Call gomp_init_num_threads unconditionally.
1483         Initialize gomp_available_cpus.  Call parse_spincount,
1484         initialize gomp_{,throttled_}spin_count_var
1485         depending on presence and value of OMP_WAIT_POLICY and
1486         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1487         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1488         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1489         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1490         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1491         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1492         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1493         (gomp_global_icv): New.
1494         (parse_schedule): Use it.  Parse "auto".
1495         (omp_set_num_threads): Use gomp_icv.
1496         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1497         Likewise.
1498         (omp_get_max_threads): Move from parallel.c.
1499         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1500         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1501         add ialias.
1502         (parse_stacksize, parse_wait_policy): New functions.
1503         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1504         both wrappers for compatibility and new locks.
1505         (omp_set_schedule, omp_get_schedule,
1506         omp_get_thread_limit, omp_set_max_active_levels,
1507         omp_get_max_active_levels, omp_get_level,
1508         omp_get_ancestor_thread_num, omp_get_team_size,
1509         omp_get_active_level): New ialias_redirect.
1510         (omp_set_schedule_, omp_set_schedule_8_,
1511         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1512         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1513         omp_get_max_active_levels_, omp_get_level_,
1514         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1515         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1516         New functions.
1517         * parallel.c: Include limits.h.
1518         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1519         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1520         argument to gomp_team_start.  Pass 0 as second argument to
1521         gomp_resolve_num_threads.
1522         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1523         if gomp_thread_limit_var != ULONG_MAX.
1524         (omp_in_parallel): Implement using ts.active_level.
1525         (omp_get_max_threads): Move to env.c.
1526         (omp_get_level, omp_get_ancestor_thread_num,
1527         omp_get_team_size, omp_get_active_level): New functions,
1528         add ialias.
1529         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1530         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1531         gomp_iter_dynamic_next instead of the _locked variant and don't take
1532         lock around it, otherwise acquire it before calling
1533         gomp_iter_dynamic_next_locked.
1534         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1535         gomp_iter_dynamic_next instead of the _locked variant and don't take
1536         lock around it.
1537         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1538         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1539         Adjust gomp_team_start caller.  Pass count as second argument to
1540         gomp_resolve_num_threads, don't adjust num_threads after the call.
1541         Use gomp_icv.
1542         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1543         ws->chunk_size by incr.
1544         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1545         code.
1546         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1547         types.
1548         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1549         (omp_check_defines): Check even the compat defines.
1550         * config/linux/ptrlock.c: New file.
1551         * config/linux/ptrlock.h: New file.
1552         * config/linux/wait.h: New file.
1553         * config/posix/ptrlock.c: New file.
1554         * config/posix/ptrlock.h: New file.
1555         * config/linux/bar.h (gomp_team_barrier_wait,
1556         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1557         (gomp_team_barrier_set_task_pending,
1558         gomp_team_barrier_clear_task_pending,
1559         gomp_team_barrier_set_waiting_for_tasks,
1560         gomp_team_barrier_waiting_for_tasks,
1561         gomp_team_barrier_done): New inlines.
1562         (gomp_barrier_t): Rewritten.
1563         (gomp_barrier_state_t): New typedef.
1564         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1565         gomp_barrier_wait_start): Rewritten.
1566         (gomp_barrier_wait_end): Change second argument to
1567         gomp_barrier_state_t.
1568         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1569         inlines.
1570         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1571         futex.h.
1572         (gomp_barrier_wait_end): Rewritten.
1573         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1574         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1575         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1576         (gomp_barrier_state_t): New typedef.
1577         (gomp_team_barrier_wait,
1578         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1579         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1580         into the return value.  Return gomp_barrier_state_t.
1581         (gomp_team_barrier_set_task_pending,
1582         gomp_team_barrier_clear_task_pending,
1583         gomp_team_barrier_set_waiting_for_tasks,
1584         gomp_team_barrier_waiting_for_tasks,
1585         gomp_team_barrier_done): New inlines.
1586         (gomp_barrier_wait_end): Change second argument to
1587         gomp_barrier_state_t.
1588         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1589         inlines.
1590         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1591         (gomp_barrier_wait_end): Change second argument to
1592         gomp_barrier_state_t.
1593         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1594         gomp_team_barrier_wake): New functions.
1595         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1596         futex.h.
1597         (gomp_futex_wake, gomp_futex_wait): New variables.
1598         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1599         * config/linux/lock.c: Rewrite to make locks task owned,
1600         for backwards compatibility provide the old entrypoints
1601         if symbol versioning.  Include wait.h instead of libgomp.h and
1602         futex.h.
1603         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1604         * config/posix95/lock.c: Rewrite to make locks task owned,
1605         for backwards compatibility provide the old entrypoints
1606         if symbol versioning.
1607         * config/posix/lock.c: Rewrite to make locks task owned,
1608         for backwards compatibility provide the old entrypoints
1609         if symbol versioning.
1610         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1611         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1612         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1613         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1614         (sys_futex0): Return error code.
1615         (futex_wake, futex_wait): If ENOSYS was returned, clear
1616         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1617         (cpu_relax, atomic_write_barrier): New static inlines.
1618         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/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/s390/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/ia64/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/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1638         (sys_futex0): Return error code.
1639         (futex_wake, futex_wait): If ENOSYS was returned, clear
1640         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1641         (cpu_relax, atomic_write_barrier): New static inlines.
1642         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1643         futex.h.
1644         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1645         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1646         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1647         types.
1648         (omp_nest_lock_t): Change owner into void *, add lock field.
1649         * config/posix95/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.  Change owner to void *.
1654         * config/posix/omp-lock.h: Include semaphore.h.
1655         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1656         (omp_lock_t): Use sem_t instead of mutex if semaphores
1657         aren't broken.
1658         (omp_nest_lock_t): Likewise.  Add owner field.
1660 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1662         * testsuite/libgomp.c/collapse-1.c: New test.
1663         * testsuite/libgomp.c/collapse-2.c: New test.
1664         * testsuite/libgomp.c/collapse-3.c: New test.
1665         * testsuite/libgomp.c/icv-1.c: New test.
1666         * testsuite/libgomp.c/icv-2.c: New test.
1667         * testsuite/libgomp.c/lib-2.c: New test.
1668         * testsuite/libgomp.c/lock-1.c: New test.
1669         * testsuite/libgomp.c/lock-2.c: New test.
1670         * testsuite/libgomp.c/lock-3.c: New test.
1671         * testsuite/libgomp.c/loop-4.c: New test.
1672         * testsuite/libgomp.c/loop-5.c: New test.
1673         * testsuite/libgomp.c/loop-6.c: New test.
1674         * testsuite/libgomp.c/loop-7.c: New test.
1675         * testsuite/libgomp.c/loop-8.c: New test.
1676         * testsuite/libgomp.c/loop-9.c: New test.
1677         * testsuite/libgomp.c/nested-3.c: New test.
1678         * testsuite/libgomp.c/nestedfn-6.c: New test.
1679         * testsuite/libgomp.c/sort-1.c: New test.
1680         * testsuite/libgomp.c/task-1.c: New test.
1681         * testsuite/libgomp.c/task-2.c: New test.
1682         * testsuite/libgomp.c/task-3.c: New test.
1683         * testsuite/libgomp.c/task-4.c: New test.
1684         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1685         to C++ testsuite default compiler options.
1686         * testsuite/libgomp.c++/collapse-1.C: New test.
1687         * testsuite/libgomp.c++/collapse-2.C: New test.
1688         * testsuite/libgomp.c++/ctor-10.C: New test.
1689         * testsuite/libgomp.c++/for-1.C: New test.
1690         * testsuite/libgomp.c++/for-2.C: New test.
1691         * testsuite/libgomp.c++/for-3.C: New test.
1692         * testsuite/libgomp.c++/for-4.C: New test.
1693         * testsuite/libgomp.c++/for-5.C: New test.
1694         * testsuite/libgomp.c++/loop-8.C: New test.
1695         * testsuite/libgomp.c++/loop-9.C: New test.
1696         * testsuite/libgomp.c++/loop-10.C: New test.
1697         * testsuite/libgomp.c++/task-1.C: New test.
1698         * testsuite/libgomp.c++/task-2.C: New test.
1699         * testsuite/libgomp.c++/task-3.C: New test.
1700         * testsuite/libgomp.c++/task-4.C: New test.
1701         * testsuite/libgomp.c++/task-5.C: New test.
1702         * testsuite/libgomp.c++/task-6.C: New test.
1703         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1704         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1705         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1706         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1707         * testsuite/libgomp.fortran/collapse1.f90: New test.
1708         * testsuite/libgomp.fortran/collapse2.f90: New test.
1709         * testsuite/libgomp.fortran/collapse3.f90: New test.
1710         * testsuite/libgomp.fortran/collapse4.f90: New test.
1711         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1712         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1713         * testsuite/libgomp.fortran/lib4.f90: New test.
1714         * testsuite/libgomp.fortran/lock-1.f90: New test.
1715         * testsuite/libgomp.fortran/lock-2.f90: New test.
1716         * testsuite/libgomp.fortran/nested1.f90: New test.
1717         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1718         * testsuite/libgomp.fortran/strassen.f90: New test.
1719         * testsuite/libgomp.fortran/tabs1.f90: New test.
1720         * testsuite/libgomp.fortran/tabs2.f: New test.
1721         * testsuite/libgomp.fortran/task1.f90: New test.
1722         * testsuite/libgomp.fortran/task2.f90: New test.
1723         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1724         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1725         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1726         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1727         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1729 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1731         PR c++/36308
1732         * testsuite/libgomp.c++/ctor-11.C: New test.
1733         * testsuite/libgomp.c++/ctor-12.C: New test.
1735 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1737         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1739 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1741         PR middle-end/36106
1742         * testsuite/libgomp.c/atomic-5.c: New test.
1743         * testsuite/libgomp.c/atomic-6.c: New test.
1744         * testsuite/libgomp.c/autopar-1.c: New test.
1746 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1748         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1749         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1750         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1751         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1752         * configure: Regenerate.
1753         * Makefile.in, testsuite/Makefile.in: Likewise.
1755 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1757         PR bootstrap/35457
1758         * aclocal.m4: Regenerate.
1759         * configure: Regenerate.
1761 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1763         PR middle-end/35611
1764         * testsuite/libgomp.c/atomic-4.c: New test.
1766         PR libgomp/35625
1767         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1768         (gomp_iter_guided_next): Likewise.
1769         * testsuite/libgomp.c/pr35625.c: New test.
1771 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1773         * aclocal.m4: Regenerate.
1774         * configure: Likewise.
1775         * Makefile.in: Likewise.
1776         * testsuite/Makefile.in: Likewise.
1778 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1780         PR middle-end/35185
1781         * testsuite/libgomp.c++/pr35185.C: New test.
1783 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1785         PR middle-end/35549
1786         * testsuite/libgomp.c/pr35549.c: New test.
1788 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1790         * testsuite/libgomp.c/atomic-3.c: New test.
1792 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1794         PR fortran/33197
1795         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1796         .F08 file suffixes.
1798 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1800         PR libgomp/33131
1801         * configure.ac: Add ACX_HEADER_STRING.
1802         * env.c: Include strings.h.
1803         * aclocal.m4: Regenerate.
1804         * config.h.in: Regenerate.
1805         * configure: Regenerate.
1806         * Makefile.in: Regenerate.
1807         * testsuite/Makefile.in: Regenerate.
1809 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1811         PR middle-end/35196
1812         * testsuite/libgomp.c/pr35196.c: New test.
1814         PR middle-end/35130
1815         * testsuite/libgomp.fortran/pr35130.f90: New test.
1816         * testsuite/libgomp.c/pr35130.c: New test.
1818 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1820         PR middle-end/33880
1821         * testsuite/libgomp.c/pr33880.c: New test.
1822         * testsuite/libgomp.fortran/pr33880.f90: New test.
1824 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1826         * configure: Regenerate.
1828 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1830         * configure.ac: Move futex checking into ../config/futex.m4.
1831         * configure: Rebuilt.
1832         * aclocal.m4: Rebuilt.
1833         * Makefile.in: Rebuilt.
1835         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1836         2007-10-15 ../config/tls.m4 change.
1838 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1840         PR c++/34513
1841         * testsuite/libgomp.c/pr34513.c: New test.
1842         * testsuite/libgomp.c++/pr34513.C: New test.
1844 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1846         PR target/32765
1847         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1849 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1851         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1853 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1855         * testsuite/libgomp.c/private-1.c: New test.
1857 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1858             Paolo Bonzini  <bonzini@gnu.org>
1860         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1861         instead of 'VPATH ='.
1862         * Makefile.in: Regenerate.
1864 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1866         * configure.ac: Adjust makeinfo version check.
1867         * configure: Regenerate.
1869 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1871         PR fortran/34020
1872         * testsuite/libgomp.fortran/pr34020.f90: New test.
1874 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1876         PR c++/33894
1877         * testsuite/libgomp.c++/atomic-1.C: New test.
1879 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1881         PR libgomp/33275
1882         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1883         Make x and y integers rather than (implicit) reals.  Add private (j)
1884         clause to the last omp parallel.
1886 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1888         * configure: Regenerate following changes to ../config/tls.m4.
1890 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1892         * testsuite/libgomp.fortran/stack.f90: New test.
1894 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1896         * config/mingw32/proc.c: New file.
1898 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1900         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1901         (main): Use __get_cpuid to get i386 target fetaures.
1902         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1903         (main): Use __get_cpuid to get x86_64 target fetaures.
1905 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1907         PR target/32765
1908         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1909         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1911 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1913         PR fortran/32550
1914         * testsuite/libgomp.fortran/pr32550.f90: New test.
1915         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1917 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1919         * aclocal.m4: Regenerated.
1921 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1923         PR fortran/32359
1924         * testsuite/libgomp.fortran/pr32359.f90: New.
1926 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1928         PR libgomp/32468
1929         * sections.c (GOMP_parallel_sections_start): Only decrease
1930         number of threads to COUNT if dyn_var is true.
1931         * testsuite/libgomp.c/pr32468.c: New test.
1933 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1935         PR libgomp/26308
1936         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1938 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1940         PR middle-end/32362
1941         * testsuite/libgomp.c/pr32362-1.c: New test.
1942         * testsuite/libgomp.c/pr32362-2.c: New test.
1943         * testsuite/libgomp.c/pr32362-3.c: New test.
1945 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1947         * team.c (gomp_team_start): Fix setting up thread_attr
1948         stack size.
1950 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1952         * configure: Regenerate.
1954 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1956         * Makefile.in: Regenerate.
1957         * configure: Regenerate.
1958         * aclocal.m4: Regenerate.
1959         * testsuite/Makefile.in: Regenerate.
1961 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1963         * config/linux/proc.c: New file.
1965         PR libgomp/28482
1966         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1968 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1970         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1972 2007-04-16  Matthias Klose  <doko@debian.org>
1974         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1975         flags if not building with -m64.
1976         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1977         flag for i?86-*-* targets, if current target matches -m64.
1979 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1981         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1982         * Makefile.in: Regenerate.
1984 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1986         PR testsuite/31369
1987         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1988         ld_library_path.
1989         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1991 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1993         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1994         decls.
1995         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1996         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1997         (parse_affinity): New function.
1998         (initialize_env): Call it and gomp_init_affinity.
1999         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2000         create new pthread_attr_t and call gomp_init_thread_affinity
2001         on it for each thread before passing the attribute to pthread_create.
2002         * config/linux/affinity.c: New file.
2003         * config/posix/affinity.c: New file.
2004         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2005         * configure: Rebuilt.
2006         * config.h.in: Rebuilt.
2007         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2008         * Makefile.in: Rebuilt.
2010 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2012         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2013         *-*-darwin*.
2014         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2015         and use it if found.
2017 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2019         * testsuite/config/default.exp: New file.
2020         * testsuite/lib/libgomp.exp: New file.
2021         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2022         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2023         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2024         (libgomp_load): Remove.
2025         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2026         always_ld_library_path, not ld_library_path.  Set additional_flags
2027         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2028         (target_compile): Do not call libgomp_init.  Append lang_library_path
2029         and lang_link_flags to options.
2030         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2031         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2032         here.
2033         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2034         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2035         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2036         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2037         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2038         CX8 flag.
2039         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2040         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2041         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2042         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2043         * testsuite/libgomp.c/atomic-10.c: Ditto.
2045 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2047         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2048         dg-final cleanup-modules line.
2049         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2050         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2051         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2052         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2053         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2054         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2055         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2057 2007-03-18  Andreas Schwab  <schwab@suse.de>
2059         * acinclude.m4: Adjust regular expression for ld version
2060         extraction.
2061         * configure: Regenerate.
2063 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2065         * Makefile.am: Add install-pdf target as copied from
2066         automake v1.10 rules.
2067         * Makefile.in: Regenerate
2069 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2071         PR libgomp/28486
2072         * configure: Regenerate.
2074         PR c++/30703
2075         * testsuite/libgomp.c++/pr30703.C: New test.
2077 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2079         Revert:
2080         2006-07-05  Eric Christopher  <echristo@apple.com>
2081         * configure.ac: Depend addition of -pthread on host OS.
2082         * configure: Regenerate.
2084 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2086         * libgomp.texi: Fix spacing after abbreviations.
2088 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2090         PR libgomp/30546
2091         * configure.ac: Add check for makeinfo
2092         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2093         if an appropiate version of makeinfo is found.
2094         * aclocal.m4: Regenerated.
2095         * configure: Regenerated.
2096         * Makefile.in: Regenerated.
2097         * testsuite/Makefile.in: Regenerated.
2099 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2101         PR libgomp/30540
2102         * libgomp.texi: More about implementation-dependent settings.
2104 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2106         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2108 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2110         PR middle-end/30494
2111         * testsuite/libgomp.c/pr30494.c: New test.
2113 2007-01-15  Tom Tromey  <tromey@redhat.com>
2115         * configure: Rebuilt.
2116         * configure.ac: Fixed comment.
2118 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2120         * libgomp.texi: Document implementation specific default values of
2121         environment variables.
2123 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2125         PR libgomp/28209
2126         * libgomp.texi: New file.
2127         * configure.ac: Add --enable-generated-files-in-srcdir option.
2128         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2129         files to srcdir.
2130         * Makefile.in: Regenerated.
2131         * config.h.in: Regenerated.
2132         * testsuite/Makefile.in: Regenerated.
2133         * NOTES: Removed.
2135 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2137         PR libgomp/29949
2138         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2140 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2142         * configure: Regenerate.
2144 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2146         PR libgomp/29947
2147         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2148         start if there shouldn't be any loop iterations.
2149         (gomp_loop_ordered_static_start): Remove start == end test.
2150         * testsuite/libgomp.c/pr29947-1.c: New test.
2151         * testsuite/libgomp.c/pr29947-2.c: New test.
2153 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2155         * configure.tgt: Force initial-exec TLS model on Linux only.
2157 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2159         * configure: Regenerated.
2161 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2163         * env.c (parse_schedule): Reject out of range values.
2164         (parse_unsigned_long): Reject out of range, negative or zero values.
2166 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2168         PR fortran/29629
2169         * testsuite/libgomp.fortran/pr29629.f90: New test.
2171 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2173         PR libgomp/29494
2174         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2175         * config/posix95: New directory.
2176         * config/posix95/omp-lock.h: New file.
2177         * config/posix95/lock.c: Likewise.
2179 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2181         * aclocal.m4: Regenerate.
2182         * configure: Regenerate.
2184 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2186         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2187         '<' to '<='.
2189 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2191         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2192         test.
2193         * configure: Regenerate.
2194         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2196 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2198         PR middle-end/25261
2199         PR middle-end/28790
2200         * testsuite/libgomp.c/nestedfn-4.c: New test.
2201         * testsuite/libgomp.c/nestedfn-5.c: New test.
2202         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2204         PR fortran/29097
2205         * testsuite/libgomp.fortran/condinc1.f: New test.
2206         * testsuite/libgomp.fortran/condinc2.f: New test.
2207         * testsuite/libgomp.fortran/condinc3.f90: New test.
2208         * testsuite/libgomp.fortran/condinc4.f90: New test.
2209         * testsuite/libgomp.fortran/condinc1.inc: New file.
2211 2006-09-18  Tom Tromey  <tromey@redhat.com>
2213         * configure: Rebuilt.
2215 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2217         PR c/28768
2218         PR preprocessor/14634
2219         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2220         to AC_DEFINE.
2221         * configure: Regenerate.
2223 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2225         * testsuite/libgomp.fortran/reduction3.f90: Change
2226         -2147483648 to -huge(i)-1 to avoid overflow.
2227         * testsuite/libgomp.fortran/reduction4.f90: Change
2228         Z'ffffffff' to not(0) to avoid overflow.
2230 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2232         PR libgomp/25938
2233         * Makefile.am (libsubincludedir): New.
2234         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2235         * Makefile.in: Regenerate.
2237 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2239         PR libgomp/28725
2240         * env.c: Include ctype.h.
2241         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2242         leading and/or trailing whitespace and compare strings case
2243         insensitively.
2245 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2247         PR fortran/28390
2248         * testsuite/libgomp.fortran/pr28390.f: New test.
2250 2006-07-05  Eric Christopher  <echristo@apple.com>
2252         * configure.ac: Depend addition of -pthread on host OS.
2253         * configure: Regenerate.
2255 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2257         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2258         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2259         defined.
2261 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2263         PR libgomp/26175
2264         PR libgomp/26477
2265         * configure.ac: If neither --enable-linux-futex nor
2266         --disable-linux-futex is passed, determine the default by checking
2267         for compiling and/or running against NPTL.  With --enable-linux-futex,
2268         check if SYS_gettid and SYS_futex are defined.
2269         * configure: Rebuilt.
2271 2006-06-14  Richard Henderson  <rth@redhat.com>
2273         PR libgomp/28008
2274         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2275         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2277 2006-06-09  Richard Henderson  <rth@redhat.com>
2279         * env.c (gomp_nthreads_var): Change to unsigned long.
2280         (gomp_run_sched_chunk): Likewise.
2281         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2282         (initialize_env): Initialize gomp_thread_attr.
2283         * libgomp.h (gomp_nthreads_var): Update decl.
2284         (gomp_run_sched_chunk): Likewise.
2285         (gomp_thread_attr): Declare.
2286         * team.c (gomp_thread_attr): Export.
2287         (initialize_team): Don't initialize it.
2289 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2291         PR fortran/27916
2292         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2293         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2295 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2297         * config/mingw32/time.c: New file.
2298         * configure.tgt: Use it.
2300 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2302         * Makefile.am: Add install-html target. Add install-html to .PHONY
2303         * Makefile.in: Regenerate.
2305 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2307         PR libgomp/27612
2308         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2309         * testsuite/libgomp.c/critical-1.c: Likewise.
2310         * testsuite/libgomp.c/loop-1.c: Likewise.
2311         * testsuite/libgomp.c/loop-2.c: Likewise.
2312         * testsuite/libgomp.c/single-1.c: Likewise.
2313         * testsuite/libgomp.c/ordered-1.c: Likewise.
2314         * testsuite/libgomp.c/ordered-2.c: Likewise.
2316 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2318         PR middle-end/27416
2319         * libgomp.fortran/pr27416-1.f90: New test.
2321 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2323         PR fortran/27395
2324         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2325         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2327 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2329         PR c++/26943
2330         * testsuite/libgomp.c/pr26943-1.c: New test.
2331         * testsuite/libgomp.c/pr26943-2.c: New test.
2332         * testsuite/libgomp.c/pr26943-3.c: New test.
2333         * testsuite/libgomp.c/pr26943-4.c: New test.
2334         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2335         * testsuite/libgomp.c++/pr26943.C: New test.
2337 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2339         PR middle-end/27337
2340         * testsuite/libgomp.c++/pr27337.C: New test.
2342 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2344         PR c/26171
2345         * testsuite/libgomp.c/pr26171.c: New test.
2347 2006-04-25  Richard Henderson  <rth@redhat.com>
2349         PR libgomp/25865
2350         * configure.ac: Use GCC_CHECK_TLS.
2351         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2352         * Makefile.in, aclocal.m4, configure: Regenerate.
2354 2006-04-10  Matthias Klose  <doko@debian.org>
2356         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2357         directory names containing underscores.
2359 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2361         PR c++/26691
2362         * testsuite/libgomp.c++/pr26691.C: New test.
2364 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2366         * testsuite/libgomp.fortran/retval2.f90: New test.
2368 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2370         * testsuite/libgomp.c++: New directory.
2372 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2374         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2375         * config/posix/sem.c: Implement the above.
2377 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2379         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2380         define HAVE_BROKEN_POSIX_SEMAPHORES.
2381         * configure: Rebuilt.
2382         * config.h.in: Rebuilt.
2384 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2386         PR bootstrap/26161
2387         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2388         for the other pthread check.
2389         * configure: Regenerate.
2390         * config.h.in: Regenerate.
2392 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2394         PR libgomp/25938
2395         PR libgomp/25984
2396         * Makefile.am (fincludedir): New variable.
2397         (nodist_include_HEADERS): Remove Fortran files.
2398         (nodist_finclude_HEADERS): New variable.
2399         * Makefile.in: Regenerated.
2401 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2403         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2404         Remove tests for returning assumed character length arrays.
2406 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2407             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2409         PR libgomp/25936
2410         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2412 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2414         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2416 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2418         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2419         part of LD_LIBRARY_PATH manually.
2421 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2423         PR libgomp/25852
2424         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2425         libgomp_init.
2427 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2429         PR libgomp/25884
2430         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2431         * configure.ac (PERL): Don't set.
2432         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2433         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2434         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2435         * omp.h.in: Wrap the new configure substitutions with @ characters.
2436         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2437         * aclocal.m4, configure, Makefile.in: Regenerate.
2438         * mkomp_h.pl: Delete.
2440 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2442         PR libgomp/25259
2443         * configure.ac: Use GCC_HEADER_STDINT.
2444         * libgomp.h: Include gstdint.h.
2445         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2446         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2448 2006-01-24  Richard Henderson  <rth@redhat.com>
2450         PR libgomp/25942
2451         * configure.ac: Add AM_MAINTAINER_MODE.
2452         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2454 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2456         * Makefile.in: Regenerate.
2457         * testsuite/Makefile.in: Regenerate.
2458         * aclocal.m4: Regenerate.
2460 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2462         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2463         Solaris.
2464         * configure.ac: Add check for loadavg.h.
2465         (link_gomp): Adjust comment.
2466         * configure: Regenerate.
2467         * config.h.in: Regenerate.
2469 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2471         PR libgomp/25877
2472         * configure.ac: Remove check for alloca.h.
2473         * configure: Regenerate.
2474         * config.h.in: Regenerate.
2475         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2476         * team.c: Remove use of alloca.h.
2477         Call gomp_alloca instead of alloca.
2479 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2481         PR libgomp/25877
2482         * team.c: Add include of alloca.h.
2483         * configure.ac: Add check for alloca.h.
2484         * configure: Regenerate.
2485         * config.h.in: Regenerate.
2487 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2489         PR fortran/25219
2490         * testsuite/libgomp.fortran/pr25219.f90: New test.
2492 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2494         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2495         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2496         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2497         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2498         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2499         testsuite/libgomp.fortran/threadprivate1.f90,
2500         testsuite/libgomp.fortran/threadprivate2.f90,
2501         testsuite/libgomp.fortran/threadprivate3.f90,
2502         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2503         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2504         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2505         effective-target to TLS runtime.
2507         * testsuite/libgomp.fortran/pr25162.f: Require
2508         effective-target TLS runtime.
2510 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2512         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2513         * testsuite/libgomp.c/nestedfn-3.c: New test.
2515 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2517         PR fortran/25162
2518         * testsuite/libgomp.fortran/pr25162.f: New test.
2520 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2522         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2523         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2525 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2527         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2528         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2529         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2530         single.c, team.c, work.c, config/linux/alpha/futex.h,
2531         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2532         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2533         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2534         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2535         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2536         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2537         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2538         FSF address.
2540 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2542         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2543         to nodist_noinst_HEADERS.
2544         * Makefile.in: Rebuilt.
2546         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2547         add integer count field.
2548         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2549         omp_nest_lock_t type change.
2550         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2551         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2552         Increment count.
2553         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2554         Decrement count.
2555         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2556         Increment count if successful and return the new nesting level.
2557         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2558         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2559         * testsuite/libgomp.c/lib-1.c: New test.
2560         * testsuite/libgomp.fortran/lib1.f90: New test.
2561         * testsuite/libgomp.fortran/lib2.f: New test.
2562         * testsuite/libgomp.fortran/lib3.f: New test.
2564 2005-11-17  Richard Henderson  <rth@redhat.com>
2566         PR 24845
2567         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2568         * configure.ac (link_gomp): New.  Substitute it.
2569         (AC_CONFIG_FILES): Add libgomp.spec.
2570         * libgomp.spec.in: New file.
2571         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2572         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2574 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2576         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2577         reduction(-:var) behaving the same as reduction(+:var).
2578         * testsuite/libgomp.c/reduction-4.c: New test.
2580 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2582         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2583         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2584         testsuite/libgomp.c/copyin-3.c,
2585         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2586         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2587         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2588         testsuite/libgomp.c++/pr24455.C,
2589         testsuite/libgomp.fortran/threadprivate1.f90,
2590         testsuite/libgomp.fortran/threadprivate2.f90,
2591         testsuite/libgomp.fortran/threadprivate3.f90,
2592         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2593         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2594         testsuite/libgomp.fortran/omp_parse3.f90: Require
2595         effective-target TLS.
2597 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2599         * HEADER: Remove.
2601 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2603         PR libgomp/24797
2604         * team.c (initialize_team): Pass NULL rather than free as
2605         pthread_key_create destructor.  Initialize thread specific data
2606         pointer in initial thread to a static local variable rather than
2607         malloced memory.
2609 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2611         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2612         its location to ld_library_path.
2614 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2616         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2618 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2620         * testsuite/libgomp.c: Rename from libgomp.dg.
2622 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2624         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2625         threadprivate variable 'i'.
2627 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2629         * config/linux/s390/futex.h: New file.
2630         * configure.tgt: Use it.
2632         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2633         before the parallel.
2635 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2637         PR c++/24734
2638         * testsuite/libgomp.c++/master-1.C: New test.
2640 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2642         * testsuite/libgomp.dg/copyin-3.c: New test.
2644 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2646         * testsuite/libgomp.fortran/retval1.f90: New test.
2647         * testsuite/libgomp.fortran/vla7.f90: New test.
2649 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2651         * testsuite/libgomp.fortran/vla2.f90: New test.
2652         * testsuite/libgomp.fortran/vla3.f90: New test.
2653         * testsuite/libgomp.fortran/vla4.f90: New test.
2654         * testsuite/libgomp.fortran/vla5.f90: New test.
2655         * testsuite/libgomp.fortran/vla6.f90: New test.
2657 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2659         * config/linux/sparc/futex.h: New file.
2660         * configure.tgt: Use it.
2661         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2663         * critical.c: Include stdlib.h.
2664         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2665         ignoring return value.
2666         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2667         LIBGOMP_CHECK_SYNC_BUILTINS check.
2668         * configure: Rebuilt.
2670 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2672         * testsuite/libgomp.fortran/vla1.f90: New test.
2674 2005-10-31  Richard Henderson  <rth@redhat.com>
2676         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2677         setting 's' in different threads.
2679 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2681         * libgomp.h (attribute_hidden, ialias): Define.
2682         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2683         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2684         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2685         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2686         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2687         omp_test_lock, omp_test_nest_lock): Likewise.
2688         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2689         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2690         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2691         omp_test_lock, omp_test_nest_lock): Likewise.
2692         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2693         omp_get_dynamic, omp_get_nested): Likewise.
2694         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2695         omp_get_thread_num, omp_in_parallel): Likewise.
2696         * fortran.c (ialias_redirect): Define.
2697         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2698         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2699         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2700         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2701         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2702         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2703         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2704         omp_get_wtime): Add ialias_redirect.
2706 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2708         * fortran.c: Include stdlib.h.
2710 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2712         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2713         * Makefile.in: Regenerated.
2715 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2717         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2718         * libgomp_f.h.in (omp_check_defines): New function.
2719         * env.c: Include libgomp_f.h.
2720         (initialize_env): Call omp_check_defines.
2722         * testsuite/libgomp.dg/copyin-2.c: New test.
2723         * testsuite/libgomp.c++/copyin-2.C: New test.
2724         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2726         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2727         * testsuite/libgomp.fortran/sharing2.f90: New test.
2729         * testsuite/libgomp.dg/copyin-1.c: New test.
2730         * testsuite/libgomp.c++/copyin-1.C: New test.
2732 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2734         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2736         * testsuite/libgomp.fortran/workshare1.f90: New test.
2738         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2739         only test.
2740         * libgomp.fortran/sharing1.f90: New test.
2742 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2744         PR c++/24502
2745         * testsuite/libgomp.c++/loop-7.C: New test.
2747         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2749         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2750         * testsuite/libgomp.fortran/reduction6.f90: New test.
2751         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2753 2005-10-23  Richard Henderson  <rth@redhat.com>
2755         * testsuite/libgomp.c++/ctor-1.C: New.
2756         * testsuite/libgomp.c++/ctor-2.C: New.
2757         * testsuite/libgomp.c++/ctor-3.C: New.
2758         * testsuite/libgomp.c++/ctor-4.C: New.
2759         * testsuite/libgomp.c++/ctor-5.C: New.
2760         * testsuite/libgomp.c++/ctor-6.C: New.
2761         * testsuite/libgomp.c++/ctor-7.C: New.
2762         * testsuite/libgomp.c++/ctor-8.C: New.
2763         * testsuite/libgomp.c++/ctor-9.C: New.
2765 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2767         PR 24455
2768         * testsuite/libgomp.c++/pr24455-1.C: New test.
2769         * testsuite/libgomp.c++/pr24455.C: New test.
2770         * testsuite/libgomp.dg/pr24455-1.c: New test.
2771         * testsuite/libgomp.dg/pr24455.c: New test.
2773 2005-10-20  Richard Henderson  <rth@redhat.com>
2775         * testsuite/libgomp.c++/loop-6.C: New.
2776         * testsuite/libgomp.dg/loop-3.c: New.
2778 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2780         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2781         explicitly private.
2782         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2783         explicitly shared.
2785 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2787         * testsuite/libgomp.fortran/jacobi.f: New test.
2789 2005-10-19  Richard Henderson  <rth@redhat.com>
2791         * configure.tgt (i?86-linux): Default to with_arch instead of
2792         CFLAGS.  Add -mtune to match target_cpu.
2793         (x86_64-linux): Tune to i686.
2795         * fortran.c (omp_test_nest_lock_): Fix typo.
2797 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2799         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2800         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2801         * testsuite/libgomp.dg/ordered-3.c: New test.
2803         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2804         Remove volatile keyword.
2806         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2807         in COMMON block to avoid warnings on 64-bit targets.
2809 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2811         * testsuite/libgomp.dg/shared-3.c: New test.
2813 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2815         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2816         * testsuite/libgomp.fortran/reduction5.f90: New test.
2818 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2820         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2821         dg-options.
2822         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2823         flush loop now that __sync_synchronize has proper memory barrier.
2824         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2825         Add -ffixed-form to dg-options.
2827 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2829         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2830         from subdirectories.
2831         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2832         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2833         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2834         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2835         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2836         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2837         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2838         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2839         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2840         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2841         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2842         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2843         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2844         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2845         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2846         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2847         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2848         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2849         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2850         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2851         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2852         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2853         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2854         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2855         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2857 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2859         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2860         lang_library_path exists.  Use find instead of glob to gather tests.
2861         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2863 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2865         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2866         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2867         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2868         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2869         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2870         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2871         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2872         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2873         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2874         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2875         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2876         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2877         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2879 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2881         * testsuite/libgomp.dg/vla-1.c: New test.
2883         * testsuite/libgomp.fortran/reference2.f90: New test.
2885         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2886         declaration of omp_get_thread_num.
2887         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2888         use omp_lib.
2890         * testsuite/libgomp.fortran/reduction1.f90: New test.
2891         * testsuite/libgomp.fortran/reduction2.f90: New test.
2892         * testsuite/libgomp.fortran/reduction3.f90: New test.
2893         * testsuite/libgomp.fortran/reduction4.f90: New test.
2895 2005-10-13  Richard Henderson  <rth@redhat.com>
2897         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2898         * Makefile.in: Regenerate.
2899         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2900         * libgomp.h: Include bar.h.
2901         (struct gomp_barrier): Remove.
2902         (struct gomp_team): Add barrier.  Replace master_barrier with
2903         master_release.  Replace threads with ordered_release.
2904         (struct gomp_thread): Replace barrier with release.
2905         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2906         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2907         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2908         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2909         (GOMP_single_copy_end): Likewise.
2910         * team.c (gomp_threads_dock): New.
2911         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2912         (gomp_thread_start): Use gomp_barrier_wait.
2913         (new_team, free_team): Update for gomp_team changes.
2914         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2915         (gomp_team_end): Use gomp_barrier_wait.
2916         (initialize_team): Update for gomp_thread changes.
2917         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2918         (gomp_work_share_end_nowait): Use atomic ops when available.
2919         * config/linux/bar.c, config/linux/bar.h: New files.
2920         * config/posix/bar.c, config/posix/bar.h: New files.
2922 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2924         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2925         * testsuite/libgomp.dg/single-2.c: New test.
2927         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2928         lang_link_flags): Unset, so that they aren't inherited from previously
2929         sourced *.exp.
2931         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2933 2005-10-12  Richard Henderson  <rth@redhat.com>
2935         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2936         (libgomp_init): Use lang_test_file, lang_library_path, and
2937         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2939         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2940         (lang_test_file, lang_link_flags): New.
2941         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2943         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2944         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2945         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2946         testsuite/libgomp.c++/parallel-1.C,
2947         testsuite/libgomp.c++/reduction-1.C,
2948         testsuite/libgomp.c++/reduction-2.C,
2949         testsuite/libgomp.c++/reduction-3.C,
2950         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2951         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2952         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2953         New files, largely cribbed from the C testsuite.
2955 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2957         * testsuite/libgomp.fortran/character1.f90: New test.
2958         * testsuite/libgomp.fortran/character2.f90: New test.
2960         * testsuite/libgomp.dg/nested-1.c: New test.
2961         * testsuite/libgomp.dg/nested-2.c: New test.
2962         * testsuite/libgomp.fortran/do1.f90: New test.
2963         * testsuite/libgomp.fortran/do2.f90: New test.
2965         * testsuite/libgomp.fortran/reference1.f90: New test.
2967 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2969         * testsuite/libgomp.dg/reduction-1.c: New test.
2970         * testsuite/libgomp.dg/reduction-2.c: New test.
2971         * testsuite/libgomp.dg/reduction-3.c: New test.
2973 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2975         * testsuite/libgomp.dg/atomic-1.c: New test.
2976         * testsuite/libgomp.dg/atomic-2.c: New test.
2978 2005-10-09  Richard Henderson  <rth@redhat.com>
2980         * critical.c (atomic_lock): New.
2981         (initialize_critical): Initialize it.
2982         (GOMP_atomic_start, GOMP_atomic_end): New.
2983         * libgomp.map: Export them.
2984         * libgomp_g.h: Declare them.
2986         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2988 2005-10-02  Richard Henderson  <rth@redhat.com>
2990         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2991         to XCFLAGS instead of CFLAGS.
2993 2005-09-30  Richard Henderson  <rth@redhat.com>
2995         * configure.ac: Determine whether -pthread or -lpthread is needed.
2996         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2997         * Makefine.in, configure: Rebuild.
2999 2005-09-28  Richard Henderson  <rth@redhat.com>
3001         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3002         * testsuite/libgomp.dg/omp-single-3.c: New test.
3004 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3006         * testsuite/libgomp.dg/omp-single-2.c: New test.
3007         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3009 2005-09-27  Richard Henderson  <rth@redhat.com>
3011         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3012         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3014 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3016         * testsuite/libgomp.dg/omp-loop03.c: New test.
3018 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3020         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3022 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3024         * testsuite/libgomp.dg/omp-single-1.c: New test.
3025         * testsuite/libgomp.dg/shared-1.c: Return 0.
3026         Add prototype for abort.
3027         * testsuite/libgomp.dg/shared-2.c: Likewise.
3029 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3031         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3032         constructs.
3034 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3036         * testsuite/libgomp.dg/shared-1.c: New test.
3037         * testsuite/libgomp.dg/shared-2.c: New test.
3039 2005-09-24  Richard Henderson  <rth@redhat.com>
3041         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3043 2005-09-24  Richard Henderson  <rth@redhat.com>
3045         * iter.c (gomp_iter_static_next): Round up when computing number
3046         of iterations.  Don't bother distributing a remainder equally.
3048         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3049         Don't call srand.  Zero b before testing.
3050         (main): New.
3052 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3054         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3055         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3057 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3059         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3060         without !$omp end do, followed immediately by subroutine end.
3062 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3064         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3066 2005-09-22  Richard Henderson  <rth@redhat.com>
3068         * critical.c (GOMP_critical_name_start): Change argument to void**.
3069         Reuse the pointer space if the mutex fits.
3070         (GOMP_critical_name_end): Likewise.
3071         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3072         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3073         (GOMP_critical_name_end): Likewise.
3074         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3075         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3077 2005-09-20  Richard Henderson  <rth@redhat.com>
3079         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3080         (create_lock_lock): New.
3081         (initialize_critical): Initialize it.
3082         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3083         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3085 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3087         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3089 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3091         * testsuite/libgomp.dg/omp-loop01.c: New test.
3092         * testsuite/libgomp.dg/omp-loop02.c: New test.
3094 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3096         * configure.ac (AC_PROG_FC): Add.
3097         (USE_FORTRAN): New automake conditional.
3098         * configure: Rebuilt.
3099         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3100         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3101         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3102         Add rules to build them.
3103         * Makefile.in: Rebuilt.
3104         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3105         OMP_NEST_LOCK_KIND.
3106         * libgomp.map: Add Fortran wrappers.
3107         * libgomp_f.h.in: New file.
3108         * omp_lib.h.in: New file.
3109         * omp_lib.f90.in: New file.
3110         * fortran.c: New file.
3111         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3112         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3113         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3114         libgfortran has been built.
3115         * testsuite/libgomp.fortran/fortran.exp: New file.
3116         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3117         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3118         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3119         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3120         * testsuite/libgomp.fortran/omp_hello.f: New test.
3121         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3122         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3123         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3124         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3125         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3126         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3127         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3128         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3130 2005-08-30  Richard Henderson  <rth@redhat.com>
3132         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3133         function for when aliases are not usable.
3134         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3135         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3136         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3137         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3138         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3139         GOMP_loop_ordered_guided_next): Likewise.
3140         * ordered.c (GOMP_ordered_start): Likewise.
3142 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3144         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3145         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3146         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3147         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3148         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3149         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3150         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3151         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3152         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3154 2005-07-07  Eric Christopher  <echristo@redhat.com>
3155             Diego Novillo  <dnovillo@redhat.com>
3157         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3158         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3159         up code.
3160         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3161         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3162         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3163         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3164         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3165         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3166         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3168 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3170         * TOPLEVEL.patch: Remove.
3172 2005-05-16  Richard Henderson  <rth@redhat.com>
3174         * configure.ac: Test for clock_gettime.
3175         * config.h.in, configure: Rebuild.
3176         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3177         (omp_get_wtime): Use clock_gettime if available.
3178         (omp_get_wtick): Use clock_getres if available.
3180 2005-05-11  Richard Henderson  <rth@redhat.com>
3182         * config/linux/ia64/futex.h: New file.
3183         * configure.tgt: Use it.
3185         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3187 2005-05-07  Richard Henderson  <rth@redhat.com>
3189         * config/linux/powerpc/futex.h: New file.
3190         * configure.tgt: Use it.
3192         * config/linux/i486/futex.h: Merge ...
3193         * config/linux/x86_64/futex.h: ... into ...
3194         * config/linux/x86/futex.h: ... here.
3195         * configure.tgt: Update to match.
3197 2005-05-06  Richard Henderson  <rth@redhat.com>
3199         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3200         * config/linux/i486/futex.h: Likewise.
3201         * config/linux/x86_64/futex.h: Likewise.
3203         * config/linux/lock.c: New file.
3204         * config/linux/omp-lock.h: New file.
3206         * critical.c, env.h: Don't include omp.h
3207         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3208         * config/posix/time.c: Likewise.
3209         * config/posix/omp-lock.h: New file.
3210         * libgomp.h: Include omp-lock.h and omp.h.
3211         * Makefile.am (nodist_include_HEADERS): New.
3212         (omp.h): New rule.
3213         * configure.ac (PERL): New.
3214         * mkomp_h.pl: New file.
3215         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3216         with templates.
3217         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3219         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3220         build directory.  Re-add -march=i486 hack.
3222         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3223         (libgomp_link_flags): Remove.
3224         (libgomp_initialized): Remove.
3225         (libgomp_init): Don't protect from reinitialization.  Copy code
3226         from libstdc++ for getting the multilib set correctly.
3228 2005-05-05  Richard Henderson  <rth@redhat.com>
3230         * config/linux/alpha/futex.h: New file.
3231         * configure.tgt (alpha*-*-linux*): Use it.
3233         * config/posix/mutex.c: New file.
3234         * config/posix/sem.c: Use libgomp.h.
3236         * configure.tgt (x86_64-linux): Also test CC for -m32.
3237         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3239         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3240         after $gccpath.
3242         * Makefile.am (SUBDIRS): New.
3243         (libgomp_la_LDFLAGS): Add -lpthread.
3244         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3245         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3247         * libgomp_g.h: New file.
3248         * libgomp.h: Split out all public declarations to libgomp_g.h.
3249         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3250         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3251         * config/linux/sem.h: Likewise.
3252         * config/posix/sem.h: Likewise.
3254         * Makefile.am (AM_LDFLAGS): New.
3255         (libgomp_version_script): Split out from ...
3256         (libgomp_la_LDFLAGS): ... here.
3257         (libgomp_version_info): New.
3258         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3259         (LIBGOMP_ENABLE): New.
3260         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3261         (LIBGOMP_ENABLE_SYMVERS): New.
3262         * configure.ac (AC_INIT): Version 1.0.
3263         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3264         (enable-linux-futex): Likewise.  Rename from enable-futex.
3265         (libtool_VERSION): New.
3266         (LIBGOMP_ENABLE_SYMVERS): Use it.
3267         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3268         * Makefile.in, aclocal.m4, configure: Rebuild.
3270         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3271         (gomp_mutex_unlock_slow): Fix typo.
3272         * config/linux/sem.c: Similarly.
3273         (gomp_sem_post_slow): Fix typo.
3274         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3275         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3276         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3278         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3279         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3280         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3281         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3282         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3283         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3284         LDFLAGS.  Pull enable_futex check to top-level.
3285         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3286         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3288         First attempt at real configury.
3289         * Makefile, config.h: Remove file.
3290         * Makefile.am, Makefile.in: New file.
3291         * acinclude.m4 aclocal.m4: New file.
3292         * configure.ac, configure.tgt, configure: New file.
3294         * config/posix/lock.c: Rename from sys-lock.c.
3295         * config/posix/mutex.h: Rename from sys-mutex.h.
3296         * config/posix/sem.c: Rename from sys-sem.c.
3297         * config/posix/sem.h: Rename from sys-sem.h.
3298         * config/posix/proc.c: Rename from sys-proc.c.
3299         * config/posix/time.c: Rename from sys-proc.c.
3301         * config/linux/mutex.c: New file.
3302         * config/linux/mutex.h: New file.
3303         * config/linux/sem.c: New file.
3304         * config/linux/sem.h: New file.
3305         * config/linux/i486/futex.h: New file.
3306         * config/linux/x86_64/futex.h: New file.
3308 2005-05-04  Richard Henderson  <rth@redhat.com>
3310         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3311         * libgomp.h: Declare them.
3312         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3313         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3315 2005-05-04  Richard Henderson  <rth@redhat.com>
3317         * libgomp-1 code drop
3319 2005-05-04  Richard Henderson  <rth@redhat.com>
3321         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3322         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3323         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3324         (gomp_iter_static_next): Update.
3325         (gomp_ordered_static_next): Update.
3326         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3327         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3328         totally empty range.
3329         (gomp_loop_ordered_static_next): Refine test for calling
3330         gomp_ordered_static_next.
3331         * testsuite/ordered-1.c: Add case for more threads than iterations.
3333         * iter.c (gomp_iter_runtime_next_locked): Remove.
3334         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3335         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3336         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3337         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3338         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3339         gomp_loop_ordered_guided_next): Downcase name, make static, add
3340         an external alias with the old name.
3341         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3342         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3343         switch and call one of the above static functions.
3344         * libgomp.h: Update.
3346         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3347         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3348         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3349         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3350         GOMP_loop_ordered_guided_start): Update to match.
3351         * sections.c (GOMP_sections_start): Likewise.
3352         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3354         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3355         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3356         Use bounds check instead of modulus.
3357         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3358         (gomp_ordered_last): Don't sync with ordered_owner here.
3359         (gomp_ordered_next): Likewise.
3360         (gomp_ordered_static_loop_next): Likewise.
3361         * loop.c, libgomp.h: Update to match.
3363         * libgomp.h (GOMP_barrier): Declare.
3365         * testsuite/barrier-1.c: New file.
3366         * testsuite/critical-1.c: New file.
3367         * testsuite/ordered-2.c: New file.
3368         * testsuite/ordered-1.c: New file.
3369         * testsuite/sections-1.c: New file.
3370         * testsuite/single-1.c: New file.
3371         * testsuite/Makefile (TESTS): Add them.
3373 2005-05-04  Richard Henderson  <rth@redhat.com>
3375         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3376         * loop.c (GOMP_loop_static_start): If not the startup thread,
3377         acquire the mutex to wait for initialization complete.
3378         (GOMP_loop_ordered_static_start): Likewise.
3379         (GOMP_loop_ordered_runtime_start): Likewise.
3380         (GOMP_loop_ordered_static_first): Remove.
3381         (GOMP_loop_ordered_dynamic_first): Remove.
3382         (GOMP_loop_ordered_guided_first): Remove.
3383         (GOMP_loop_ordered_runtime_first): Remove.
3384         * ordered.c (gomp_ordered_loop_first): Post to own release when
3385         we're the first thread.
3386         (gomp_ordered_loop_last): Wait on release if not owner.
3387         (gomp_ordered_loop_next): Likewise.
3388         (gomp_ordered_static_loop_init): New.
3389         (gomp_ordered_static_loop_next): Use ordered_owner.
3390         (GOMP_ordered_start): Likewise.
3391         * work.c (gomp_new_work_share): Initialize ordered_owner.
3393 2005-05-03  Richard Henderson  <rth@redhat.com>
3395         * Makefile (OPT): New.
3396         (CFLAGS): Use it.
3398         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3399         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3400         * libgomp.h, libgomp.map, NOTES: Update to match.
3402         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3403         Add initialized and thr members.
3404         (gomp_thread_start): Pause when initially spawned to wait for
3405         the whole team to be created.
3406         (gomp_team_start): Release team members at the end.
3408         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3409         (f_foo_1): Use GOMP_loop_end.
3410         (f_foo_2): Use GOMP_loop_end_nowait.
3412         * testsuite/loop-2.c: New file.
3413         * testsuite/Makefile (TESTS): Add it.
3415 2005-05-03  Richard Henderson  <rth@redhat.com>
3417         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3418         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3419         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3420         initial work_share.
3422         * testsuite/Makefile: New file.
3423         * testsuite/loop-1.c: New file.
3425 2005-05-03  Richard Henderson  <rth@redhat.com>
3427         Initial implementation and checkin.