2013-01-03 Janus Weil <janus@gcc.gnu.org>
[official-gcc.git] / libgomp / ChangeLog
blobddc8b915e0edcff560289544d4a62657d7f9fa76
1 2012-12-19  Tobias Burnus  <burnus@net-b.de>
3         * testsuite/libgomp.fortran/fortran.exp: Set
4         -fintrinsic-modules-path.
6 2012-12-19  Tobias Burnus  <burnus@net-b.de>
8         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
11 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
13         PR libgomp/55411
14         * team.c (gomp_free_thread): Decrease gomp_managed_threads
15         if pool had any threads_used.
17 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
19         * testsuite/libgomp.c++/pr24455.C: Use
20         -Wl,-undefined,dynamic_lookup on darwin.
22 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
24         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
26 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
28         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
30 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
31             Jim MacArthur  <jim.macarthur@arm.com>
32             Marcus Shawcroft  <marcus.shawcroft@arm.com>
33             Nigel Stephens  <nigel.stephens@arm.com>
34             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35             Richard Earnshaw  <rearnsha@arm.com>
36             Sofiane Naci  <sofiane.naci@arm.com>
37             Stephen Thomas  <stephen.thomas@arm.com>
38             Tejas Belagod  <tejas.belagod@arm.com>
39             Yufeng Zhang  <yufeng.zhang@arm.com>
41         * configure.tgt: Add AArch64.
43 2012-10-04  Jason Merrill  <jason@redhat.com>
45         * testsuite/libgomp.c++/tls-init1.C: New.
47 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
49         * configure: Regenerated.
51 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
53         * config/linux/mips/futex.h (sys_futex0): Change to static
54         function with noinline, nomips16 attributes under MIPS16. Adjust
55         asm statement to place 'li v0,SYS_futex' immediately before
56         syscall insn.
58 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
60         * libgomp.texi (Library Index): Renamed from "Index" to prevent
61         conflict with index.html on case-insensitive file systems.
63 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
65         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
66         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
68 2012-07-02  Richard Guenther  <rguenther@suse.de>
69             Michael Matz  <matz@suse.de>
70             Tobias Grosser <tobias@grosser.es>
71             Sebastian Pop <sebpop@gmail.com>
73         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
74         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
75         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
76         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
78 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
80         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
82 2012-06-22  Richard Guenther  <rguenther@suse.de>
84         Merge from graphite branch
85         2012-01-13  Tobias Grosser  <tobias@grosser.es>
87         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
88         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
90 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
92         PR middle-end/53580
93         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
94         use GOMP_barrier () call instead.
95         * testsuite/libgomp.c/pr26943-3.c: Likewise.
96         * testsuite/libgomp.c/pr26943-4.c: Likewise.
97         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
98         call GOMP_barrier instead.
99         * testsuite/libgomp.fortran/vla5.f90: Likewise.
101 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
103         PR libgomp/52993
104         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
105         argument to memset call.
107 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
109         * configure: Regenerated.
111 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
113         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
115 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
117         PR bootstrap/52812
118         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
120 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
122         PR middle-end/52547
123         * testsuite/libgomp.c/pr52547.c: New test.
125 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
127         * testsuite/lib/libgomp.exp: load fortran-modules.exp
129 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
131         * configure.tgt (mips-sgi-irix6*): Remove.
133 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
135         * configure.tgt (alpha*-dec-osf*): Remove.
137         * config/osf/sem.h: Remove.
138         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
140 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
142         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
144 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
146         PR libstdc++/52188
147         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
148         Remove ENABLE_SYMVERS_SOL2.
149         * configure: Regenerate.
150         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
151         (PREPROCESS): New variable.
152         (libgomp.ver): New target.
153         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
154         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
155         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
156         Use libgomp.ver.
157         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
158         * Makefile.in: Regenerate.
160 2012-02-14  Walter Lee  <walt@tilera.com>
162         * configure.tgt: Handle tilegx and tilepro.
163         * config/linux/tile/futex.h: New file.
165 2012-02-08  Richard Guenther  <rguenther@suse.de>
167         PR tree-optimization/46886
168         * testsuite/libgomp.c/pr46886.c: New testcase.
170 2012-01-25  Matthias Klose  <doko@ubuntu.com>
172         * config/linux/arm: Remove empty directory.
173         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
175 2011-12-09  Alan Modra  <amodra@gmail.com>
177         PR libgomp/51376
178         * task.c (GOMP_taskwait): Don't access task->children outside of
179         task_lock mutex region.
180         (GOMP_task): Likewise.
182 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
184         PR libgomp/51132
185         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
186         to file scope.
187         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
188         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
189         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
190         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
191         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
193 2011-12-02  Alan Modra  <amodra@gmail.com>
195         * config/linux/affinity.c: Use atomic rather than sync builtin.
196         * config/linux/lock.c: Likewise.
197         * config/linux/ptrlock.h: Likewise.
198         * config/linux/ptrlock.c: Likewise.
199         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
200         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
201         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
202         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
203         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
204         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
205         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
206         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
207         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
208         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
210 2011-11-30  Alan Modra  <amodra@gmail.com>
212         PR libgomp/51298
213         * config/linux/bar.h: Use atomic rather than sync builtins.
214         * config/linux/bar.c: Likewise.  Add missing acquire
215         synchronisation on generation field.
216         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
217         double unlock.
219 2011-11-30  Alan Modra  <amodra@gmail.com>
221         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
222         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
223         * config/linux/mutex.h: Use atomic rather than sync builtins.
224         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
225         * config/linux/omp-lock.h: Comment fix.
226         * config/linux/arm/mutex.h: Delete.
227         * config/linux/powerpc/mutex.h: Delete.
228         * config/linux/ia64/mutex.h: Delete.
229         * config/linux/mips/mutex.h: Delete.
231 2011-11-30  Alan Modra  <amodra@gmail.com>
233         PR libgomp/51249
234         * config/linux/sem.h: Rewrite.
235         * config/linux/sem.c: Rewrite.
237 2011-11-28  Richard Henderson  <rth@redhat.com>
239         * libgomp.h (enum memmodel): New.
241 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
243         * configure: Regenerate.
245 2011-10-10  Matthias Klose  <doko@ubuntu.com>
247         * config/posix95: Remove empty directory.
249 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
251         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
253 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
255         PR fortran/49792
256         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
257         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
259 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
261         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
263 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
265         PR libgomp/49965
266         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
268 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
270         * config/linux/proc.h: New.
271         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
272         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
273         (gomp_init_num_threads): Update call to cpuset_popcount.
274         (get_num_procs): Ditto.
275         * config/linux/affinity.c (gomp_init_affinity): Call
276         gomp_cpuset_popcount.
278 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
280         PR fortran/42041
281         PR fortran/46752
282         * omp.h.in (omp_in_final): New prototype.
283         * omp_lib.f90.in (omp_in_final): New interface.
284         (omp_integer_kind, omp_logical_kind): Remove
285         and replace all its uses in the module with 4.
286         (openmp_version): Change to 201107.
287         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
288         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
289         kind for the parameters.
290         (omp_in_final): New external.
291         (openmp_version): Change to 201107.
292         * task.c (omp_in_final): New function.
293         (gomp_init_task): Initialize final_task.
294         (GOMP_task): Remove unused attribute from flags.  Handle final
295         tasks.
296         (GOMP_taskyield): New function.
297         (omp_in_final): Return true if if (false) or final (true) task
298         or descendant of final (true).
299         * fortran.c (omp_in_final_): New function.
300         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
301         (GOMP_3.0): Export GOMP_taskyield.
302         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
303         variables.
304         (parse_unsigned_long_list): New function.
305         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
306         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
307         even if parse_affinity returned false.
308         * config/linux/affinity.c (gomp_init_affinity): Handle
309         gomp_cpu_affinity_len == 0.
310         * libgomp_g.h (GOMP_taskyield): New prototype.
311         * libgomp.h (struct gomp_task): Add final_task field.
312         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
313         * team.c (gomp_team_start): Override new task's nthreads_var icv
314         if list form OMP_NUM_THREADS has been used and it has value for
315         the new nesting level.
317         * testsuite/libgomp.c/atomic-11.c: New test.
318         * testsuite/libgomp.c/atomic-12.c: New test.
319         * testsuite/libgomp.c/atomic-13.c: New test.
320         * testsuite/libgomp.c/atomic-14.c: New test.
321         * testsuite/libgomp.c/reduction-6.c: New test.
322         * testsuite/libgomp.c/task-5.c: New test.
323         * testsuite/libgomp.c++/atomic-2.C: New test.
324         * testsuite/libgomp.c++/atomic-3.C: New test.
325         * testsuite/libgomp.c++/atomic-4.C: New test.
326         * testsuite/libgomp.c++/atomic-5.C: New test.
327         * testsuite/libgomp.c++/atomic-6.C: New test.
328         * testsuite/libgomp.c++/atomic-7.C: New test.
329         * testsuite/libgomp.c++/atomic-8.C: New test.
330         * testsuite/libgomp.c++/atomic-9.C: New test.
331         * testsuite/libgomp.c++/task-8.C: New test.
332         * testsuite/libgomp.c++/reduction-4.C: New test.
333         * testsuite/libgomp.fortran/allocatable7.f90: New test.
334         * testsuite/libgomp.fortran/allocatable8.f90: New test.
335         * testsuite/libgomp.fortran/crayptr3.f90: New test.
336         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
337         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
338         * testsuite/libgomp.fortran/pointer1.f90: New test.
339         * testsuite/libgomp.fortran/pointer2.f90: New test.
340         * testsuite/libgomp.fortran/task4.f90: New test.
342 2011-08-02  Tobias Burnus  <burnus@net-b.de>
344         * libgomp.texi: Update OpenMP spec references to 3.1.
345         (omp_in_final,OMP_PROC_BIND): New sections.
346         (OMP_NUM_THREADS): Document that the value can be now a list.
347         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
349 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
351         * config/linux/x86/futex.h: Check __x86_64__ instead of
352         __LP64__.
354 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
356         PR middle-end/49897
357         PR middle-end/49898
358         * testsuite/libgomp.c/pr49897-1.c: New test.
359         * testsuite/libgomp.c/pr49897-2.c: New test.
360         * testsuite/libgomp.c/pr49898-1.c: New test.
361         * testsuite/libgomp.c/pr49898-2.c: New test.
363 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
365         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
366         for ia32 instead of ilp32.
368         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
369         * testsuite/libgomp.c/atomic-6.c: Likewise.
371 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
373         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
374         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
376 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
378         PR libgomp/45351
379         * config/osf/sem.h: New file.
380         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
382 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
384         PR target/49541
385         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
386         ldflags.
388 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
390         * config/linux/wait.h (do_spin): New inline, largely copied
391         from do_wait, just don't do futex_wait here, instead return true if
392         it should be done.
393         (do_wait): Implement using do_spin.
394         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
395         to prototype.
396         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
397         __sync_bool_compare_and_swap, pass the oldval to
398         gomp_mutex_lock_slow.
399         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
400         If all mutex contenders are just spinning and not sleeping, don't
401         change state to 2 unnecessarily.  Optimize the loop when state has
402         already become 2 to use just one atomic operation per loop instead
403         of two.
404         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
405         to prototype.
406         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
407         __sync_bool_compare_and_swap, pass the oldval to
408         gomp_mutex_lock_slow.
410 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
412         PR libgomp/49490
413         * iter.c (gomp_iter_static_next): For chunk size 0
414         only use n ceil/ nthreads size for the first
415         n % nthreads threads in the team instead of
416         all threads except for the last few ones which
417         get less work or none at all.
418         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
419         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
420         chunk argument, set run_sched_modifier to 0 for static
421         resp. 1 for other kinds.  If chunk argument is 0
422         and not static, set value to 1.
424 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
426         PR c++/49043
427         * testsuite/libgomp.c++/pr49043.C: New test.
429         PR c++/48869
430         * testsuite/libgomp.c++/pr48869.C: New test.
432 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
434         PR fortran/48894
435         * fortran.c: Include limits.h.
436         (TO_INT): Define.
437         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
438         *set.
439         (omp_set_num_threads_8_, omp_set_schedule_8_,
440         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
441         omp_get_team_size_8_): Use TO_INT macro.
442         * testsuite/libgomp.fortran/pr48894.f90: New test.
444 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
446         PR middle-end/48591
447         * testsuite/libgomp.c/pr48591.c: New test.
449 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
451         PR bootstrap/48135
452         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
453         * configure: Regenerate.
455 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
457         PR fortran/47886
458         * testsuite/libgomp.fortran/task3.f90: New test.
460 2011-02-24  Tobias Burnus  <burnus@net-b.de>
462         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
464 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
466         PR libgomp/47854
467         * libgomp.texi (omp_get_wtime): Don't say time in the past
468         must be Unix Epoch.
470 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
472         PR libgomp/47804
473         * testsuite/libgomp.fortran/fortran.exp: Check for both
474         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
475         but $blddir != "", still append ${blddir}/${lang_library_path}
476         to ld_library_path.
478 2011-02-16  Tobias Burnus  <burnus@net-b.de>
480         PR libgomp/47758
481         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
482         of libquadmath.a before adding its libpath to ldflags.
484 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
486         PR libgomp/47731
487         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
488         to FUTEX_WAIT futex syscall.
489         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
491 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
493         * configure: Regenerate.
495 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
497         PR libstdc++/36104
498         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
500 2011-01-16  Gerald Pfeifer
502         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
504 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
506         PR fortran/46874
507         * libgomp.fortran/allocatable6.f90: New test.
509 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
511         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
512         * configure: Regenerate.
514 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
516         PR target/40125
517         PR lto/46695
518         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
519         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
520         * aclocal.m4: Regenerate.
521         * configure: Regenerate.
522         * Makefile.in: Regenerate.
523         * testsuite/Makefile.in: Regenerate.
525 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
527         PR fortran/46753
528         * libgomp.fortran/pr46753.f90: New test.
530         PR libgomp/43706
531         * env.c (initialize_env): Default to spin count 300000
532         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
533         is specified.
535         PR libgomp/45240
536         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
537         at the end if sync builtins aren't supported.
539 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
541         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
543 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
545         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
547 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
549         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
551 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
552             Tobias Burnus  <burnus@net-b.de>
554         PR fortran/32049
555         * configure.ac:
556         * configure: Regenerate.
558 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
560         * config/linux/futex.h: New.
561         * config/linux/arm/mutex.h: New.
562         * configure.tgt (arm*-*-linux*): Add config path.
564 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
566         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
568 2010-09-23  Tobias Burnus  <burnus@net-b.de>
570         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
571         Change Fortran datatype to LOGICAL.
572         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
573         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
575 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
577         * configure: Regenerate.
579 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
581         * libgomp.texi: Add function keyword to a couple of Fortran
582         interfaces, use integer instead of int for Fortran.
584 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
586         * libgomp.texi: Fix spelling and pasto problems throughout.
587         Adjust prototypes to match code.
589 2010-07-24  Tobias Burnus  <burnus@net-b.de>
591         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
592         silence -fwhole-file warning.
594 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
596         * configure.tgt (*-*-solaris2.[56]*): Removed.
598 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
600         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
601         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
602         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
603         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
604         targetting solaris2*.
605         * configure: Regenerate.
606         * config.h.in: Regenerate.
608         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
609         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
610         Add libgomp_version_dep.
611         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
612         versioning.
613         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
614         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
615         * Makefile.in: Regenerate.
617         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
618         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
619         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
620         to common block, protected by
621         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
623 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
625         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
627 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
629         PR bootstrap/43170
630         * configure: Regenerate.
632 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
634         PR other/43620
635         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
636         * configure: Regenerate.
637         * Makefile.in: Regenerate.
638         * testsuite/Makefile.in: Regenerate.
640 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
642         PR c/43893
643         * testsuite/libgomp.c/pr43893.c: New test.
644         * testsuite/libgomp.c++/pr43893.C: New test.
646 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
648         PR middle-end/43570
649         * testsuite/libgomp.fortran/vla8.f90: New test.
651 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
653         PR libgomp/43706
654         * config/linux/affinity.c (gomp_init_affinity): Decrease
655         gomp_available_cpus if affinity mask confines the process to fewer
656         CPUs.
657         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
658         non-NULL, just return gomp_available_cpus.
660         PR libgomp/43569
661         * sections.c (gomp_sections_init): Initialize ws->mode.
663 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
665         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
666         not unused bar variable.
667         * configure: Regenerate.
669 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
671         * Makefile.in: Regenerate.
672         * aclocal.m4: Regenerate.
673         * testsuite/Makefile.in: Regenerate.
675 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
677         PR libgomp/42942
678         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
679         (initialize_env): Adjust callers.
680         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
681         when the argument is 0.
683         * testsuite/libgomp.c/pr42942.c: New test.
685 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
687         PR middle-end/42644
688         PR middle-end/42130
689         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
690         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
692 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
694         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
695         * testsuite/libgomp.c++/task-6.C: Likewise.
697 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
699         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
701 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
703         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
704         * configure: Regenerate.
706 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
708         PR fortran/42866
709         * testsuite/libgomp.fortran/allocatable5.f90: New test.
711 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
713         * configure.ac: Test for executability of GFORTRAN.
714         * configure: Regenerate.
716 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
718         * configure: Regenerate.
720 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
722         PR libgomp/42602
723         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
725 2010-01-03  Richard Guenther  <rguenther@suse.de>
727         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
729 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
731         * testsuite/libgomp.graphite/pr4118.c: New.
733 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
735         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
736         for darwin, protect the test with require-effective-target tls_runtime.
737         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
739 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
741         PR target/41605
742         * testsuite/lib/libgomp.exp: Provide -B options to allow for
743         link spec %s substitutions for static libraries.
745 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
747         PR testsuite/42135
748         * libgomp.graphite/force-parallel-2.c: Reduce array size.
750 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
752         * Makefile.in: Regenerate.
753         * configure: Regenerate.
754         * testsuite/Makefile.in: Regenerate.
756 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
758         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
759         settings for LC_ALL and LANG.
761 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
763         PR fortran/42162
764         * testsuite/libgomp.fortran/pr42162.f90: New test.
766 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
768         PR middle-end/42029
769         * testsuite/libgomp.c/pr42029.c: New test.
771 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
773         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
774         *s.  Accept ld version without text in ()s.
775         * configure: Regenerated.
777 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
779         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
781 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
783         PR libgomp/41418
784         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
785         or a hyphen (happens with fortran language disabled).
786         * configure: Regenerate.
788 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
790         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
791         use sed script portable to Solaris /bin/sed for extracting ld
792         version.
793         * configure: Regenerate.
795 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
797         * testsuite/libgomp.graphite/bounds.c: New test.
799 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
801         * Makefile.am (libgomp_la_LINK): New.
802         * Makefile.in: Regenerate.
804 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
806         * configure.ac (AC_PREREQ): Bump to 2.64.
808 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
810         * Makefile.am (install-html, install-pdf): Remove.
811         * Makefile.in: Regenerate.
813         * Makefile.in: Regenerate.
814         * aclocal.m4: Regenerate.
815         * config.h.in: Regenerate.
816         * configure: Regenerate.
817         * testsuite/Makefile.in: Regenerate.
819 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
821         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
822         * Makefile.in: Regenerate.
824 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
826         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
827         * Makefile.in: Regenerate.
829 2009-08-19  Tobias Burnus  <burnus@net-b.de>
831         PR fortran/41102
832         omp_lib.h.in: Fix -std=f95 errors.
835 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
837         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
838         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
839         * testsuite/libgomp.graphite/graphite.exp: New.
841 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
843         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
844         only build.
846 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
848         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
849         needed memory barrier semantics.
850         * config/linux/mips/mutex.h: New file.
852 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
854         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
856 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
858         * configure: Regenerate.
860 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
862         PR testsuite/40699
863         PR testsuite/40707
864         PR testsuite/40709
865         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
866         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
867         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
869 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
871         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
872         options when choosing a multilib.
874 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
876         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
877         ld_library_path.  Use add_path.  Add just find_libgcc_s to
878         ld_library_path, not every libgcc multilib directory.
879         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
880         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
881         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
882         Use add_path.
883         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
885 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
887         * Makefile.am (LTLDFLAGS): Define.
888         (LINK): Define.
889         * Makefile.in: Regenerate.
891 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
893         PR fortran/39718
894         * testsuite/libgomp.fortran/fortran.exp: Don't link with
895         libgfortranbegin, check existence of libgfortran.a instead of
896         libgfortranbegin.a.
898 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
900         PR libgomp/40174
901         * team.c (gomp_thread_start): Destroy thr->release semaphore.
902         (gomp_free_pool_helper): Likewise.
904 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
905             Jakub Jelinek  <jakub@redhat.com>
907         PR fortran/35423
908         * testsuite/libgomp.fortran/workshare2.f90: New test.
910 2009-04-09  Nick Clifton  <nickc@redhat.com>
912         * iter.c: Change copyright header to refer to version 3 of the
913         GNU General Public License with version 3.1 of the GCC Runtime
914         Library Exception and to point readers at the COPYING3 and
915         COPYING3.RUNTIME files and the FSF's license web page.
916         * alloc.c: Likewise.
917         * barrier.c: Likewise.
918         * config/bsd/proc.c: Likewise.
919         * config/linux/affinity.c: Likewise.
920         * config/linux/alpha/futex.h: Likewise.
921         * config/linux/bar.c: Likewise.
922         * config/linux/bar.h: Likewise.
923         * config/linux/ia64/futex.h: Likewise.
924         * config/linux/ia64/mutex.h: Likewise.
925         * config/linux/lock.c: Likewise.
926         * config/linux/mips/futex.h: Likewise.
927         * config/linux/mutex.c: Likewise.
928         * config/linux/mutex.h: Likewise.
929         * config/linux/powerpc/futex.h: Likewise.
930         * config/linux/proc.c: Likewise.
931         * config/linux/ptrlock.c: Likewise.
932         * config/linux/ptrlock.h: Likewise.
933         * config/linux/s390/futex.h: Likewise.
934         * config/linux/sem.c: Likewise.
935         * config/linux/sem.h: Likewise.
936         * config/linux/sparc/futex.h: Likewise.
937         * config/linux/wait.h: Likewise.
938         * config/linux/x86/futex.h: Likewise.
939         * config/mingw32/proc.c: Likewise.
940         * config/mingw32/time.c: Likewise.
941         * config/posix/affinity.c: Likewise.
942         * config/posix/bar.c: Likewise.
943         * config/posix/bar.h: Likewise.
944         * config/posix/lock.c: Likewise.
945         * config/posix/mutex.h: Likewise.
946         * config/posix/proc.c: Likewise.
947         * config/posix/ptrlock.h: Likewise.
948         * config/posix/sem.c: Likewise.
949         * config/posix/sem.h: Likewise.
950         * config/posix/time.c: Likewise.
951         * config/posix95/lock.c: Likewise.
952         * critical.c: Likewise.
953         * env.c: Likewise.
954         * error.c: Likewise.
955         * fortran.c: Likewise.
956         * iter_ull.c: Likewise.
957         * libgomp.h: Likewise.
958         * libgomp_f.h.in: Likewise.
959         * libgomp_g.h: Likewise.
960         * loop.c: Likewise.
961         * loop_ull.c: Likewise.
962         * omp.h.in: Likewise.
963         * omp_lib.f90.in: Likewise.
964         * omp_lib.h.in: Likewise.
965         * ordered.c: Likewise.
966         * parallel.c: Likewise.
967         * sections.c: Likewise.
968         * single.c: Likewise.
969         * task.c: Likewise.
970         * team.c: Likewise.
971         * work.c: Likewise.
973 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
975         * testsuite/config/default.exp: Change copyright header to refer to
976         version 3 of the GNU General Public License and to point readers
977         at the COPYING3 file and the FSF's license web page.
979 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
981         PR middle-end/39573
982         * libgomp.c++/pr39573.C: New test.
984 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
986         PR other/39591
987         * testsuite/libgomp.c/pr39591-1.c: New test.
988         * testsuite/libgomp.c/pr39591-2.c: New test.
989         * testsuite/libgomp.c/pr39591-3.c: New test.
991 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
993         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
994         * testsuite/libgomp.c/atomic-6.c: Ditto.
996 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
998         PR c/39495
999         * testsuite/libgomp.c/loop-12.c: New test.
1000         * testsuite/libgomp.c/loop-11.c: New test.
1001         * testsuite/libgomp.c++/loop-11.C: New test.
1002         * testsuite/libgomp.c++/loop-12.C: New test.
1003         * testsuite/libgomp.c++/for-8.C: New test.
1005 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1007         * configure: Regenerate.
1009 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1011         PR middle-end/39154
1012         * testsuite/libgomp.c/pr39154.c: New test.
1014 2009-01-30  Ian Lance Taylor  <iant@google.com>
1016         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1017         libgomp_ld_is_gold.  Get gold version number.
1018         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1019         * configure: Rebuild.
1021 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1023         * testsuite/lib/libgomp.exp: Add -B option for targets that
1024         use libgfortran.a%s in their specs.
1026 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1028         PR libgomp/38086
1029         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1030         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1031         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1032         * configure: Regenerated.
1033         * config.h.in: Likewise.
1035 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1037         PR c++/38650
1038         * testsuite/libgomp.c/pr38650.c: New test.
1039         * testsuite/libgomp.c++/pr38650.C: New test.
1041 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1043         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1045 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1047         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1049 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1051         * configure: Regenerate.
1053 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1055         PR middle-end/36802
1056         * testsuite/libgomp.c/pr36802-1.c: New test.
1057         * testsuite/libgomp.c/pr36802-2.c: New test.
1058         * testsuite/libgomp.c/pr36802-3.c: New test.
1060 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1062         PR libgomp/38270
1063         * config/linux/powerpc/mutex.h: New.
1065 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1067         PR c++/38257
1068         * testsuite/libgomp.c++/for-7.C: New test.
1070         PR c++/38348
1071         * testsuite/libgomp.c++/for-6.C: New test.
1073 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1075         PR testsuite/28870
1076         * testsuite/lib/libgomp.exp: Include new timeout library files.
1077         (libgomp_target_compile): Set timeout value from new proc.
1079 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1081         PR libgomp/37938
1082         * config/linux/ia64/mutex.h: New.
1084 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1086         PR libgomp/37935
1087         * libgomp.texi (Runtime library routines, environment variables):
1088         Update for OpenMP version 3.0.
1090 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1091             Steve Ellcey  <sje@cup.hp.com>
1093         * configure: Regenerate for new libtool.
1094         * Makefile.in: Ditto.
1095         * testsuite/Makefile.in: Ditto.
1097 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1098             Andreas Tobler  <a.tobler@schweiz.org>
1100         * config/bsd/proc.c: New file.
1101         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1102         * configure.ac: Check for header <sys/sysctl.h>
1103         * configure: Regenerate.
1104         * config.h.in: Likewise.
1106 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1108         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1110 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1112         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1113         * Makefile.in: Regenerated.
1114         * testsuite/Makefile.in: Regenerated.
1116 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1118         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1119         depend on blddir if blddir exists.
1120         (libgomp_target_compile): Likewise.
1121         * testsuite/libgomp.c++/c++.exp: Likewise.
1122         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1124 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1126         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1127         Do not list GPL as Invariant Section.
1129 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1130             Chao-ying Fu  <fu@mips.com>
1132         * configure.tgt: Enable futex for MIPS.
1133         * config/linux/mips/futex.h: New file.
1135 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1137         * team.c (gomp_team_end): Free team immediately if it has
1138         just one thread.
1140 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1142         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1143         * testsuite/libgomp.fortran/fortran.exp: Same.
1144         * testsuite/libgomp.c/c.exp: Same.
1145         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1146         directory to library path first.
1148 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1150         * env.c (parse_stacksize): Add cast to avoid warning.
1151         (parse_spincount): Likewise.
1153 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1155         * testsuite/libgomp.c/loop-10.c: New test.
1156         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1157         * libgomp.c++/loop-6.C (main): Likewise.
1159         PR debug/36617
1160         * testsuite/libgomp.c/debug-1.c: New test.
1162 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1164         * testsuite/libgomp.c/nqueens-1.c: New test.
1166         PR c++/36523
1167         * testsuite/libgomp.c++/task-7.C: New function.
1169 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1171         * configure: Regenerate.
1173 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1175         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1176         mutex when HAVE_SYNC_BUILTINS isn't defined.
1178 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1180         * libgomp.texi (omp_test_lock): Fix typo.
1182 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1184         * omp_lib.f90.in: Add "implicit none".
1186 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1188         PR middle-end/36506
1189         * testsuite/libgomp.c/reduction-5.c: New test.
1191 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1193         * libgomp.h (struct gomp_task): Add in_tied_task field.
1194         * task.c (gomp_init_task): Initialize it.
1195         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1196         unconditionally.  Don't call gomp_team_barrier_wake if
1197         current task is implicit or if(0) from implicit and number of
1198         running tasks is equal to nthreads - 1.
1200         PR libgomp/36471
1201         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1202         omp_get_team_size_8): Fix pastos.
1204         PR libgomp/36469
1205         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1206         * configure: Regenerated.
1207         * config.h.in: Regenerated.
1208         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1209         defined.
1211 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1213         PR bootstrap/36452
1214         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1215         (GOMP_loop_ull_dynamic_start): Likewise.
1216         (GOMP_loop_ull_guided_start): Likewise.
1217         (GOMP_loop_ull_ordered_static_start): Likewise.
1218         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1219         (GOMP_loop_ull_ordered_guided_start): Likewise.
1221 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1222             Richard Henderson  <rth@redhat.com>
1223             Ulrich Drepper  <drepper@redhat.com>
1224             Jakob Blomer  <jakob.blomer@ira.uka.de>
1226         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1227         Substitute also OMP_*LOCK_25*.
1228         * configure: Regenerated.
1229         * config.h.in: Regenerated.
1230         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1231         ptrlock.c and task.c.
1232         * Makefile.in: Regenerated.
1233         * testsuite/Makefile.in: Regenerated.
1234         * task.c: New file.
1235         * loop_ull.c: New file.
1236         * iter_ull.c: New file.
1237         * libgomp.h: Include ptrlock.h.
1238         (enum gomp_task_kind): New type.
1239         (struct gomp_team): Add task_lock, task_queue, task_count,
1240         task_running_count, single_count fields.  Add
1241         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1242         Remove work_share_lock, generation_mask,
1243         oldest_live_gen, num_live_gen and init_work_shares fields, add
1244         work work_share_list_alloc, work_share_list_free and work_share_chunk
1245         fields.  Change work_shares from pointer to pointers into an array.
1246         Change ordered_release field into gomp_sem_t ** from flexible array
1247         member.  Add implicit_task and initial_work_shares fields.
1248         Move close to the end of the struct.
1249         (struct gomp_team_state): Add single_count, last_work_share,
1250         active_level and level fields, remove work_share_generation.
1251         (gomp_barrier_handle_tasks): New prototype.
1252         (gomp_finish_task): New inline function.
1253         (struct gomp_work_share): Move chunk_size, end, incr into
1254         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1255         next_ll fields.  Reshuffle fields.  Add next_alloc,
1256         next_ws, next_free and inline_ordered_team_ids fields, change
1257         ordered_team_ids into pointer from flexible array member.
1258         Add mode field.  Put lock and next into a different cache line
1259         from most of the write-once fields.
1260         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1261         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1262         gomp_iter_ull_guided_next): New prototypes.
1263         (gomp_new_icv): New prototype.
1264         (struct gomp_thread): Add thread_pool and task fields.
1265         (struct gomp_thread_pool): New type.
1266         (gomp_new_team): New prototype.
1267         (gomp_team_start): Change type of last argument.
1268         (gomp_new_work_share): Removed.
1269         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1270         (gomp_work_share_init_done): New static inline.
1271         (gomp_throttled_spin_count_var, gomp_available_cpus,
1272         gomp_managed_threads): New extern decls.
1273         (gomp_init_task): New prototype.
1274         (gomp_spin_count_var): New extern var decl.
1275         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1276         or no alias support, or if not PIC.
1277         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1278         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1279         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1280         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1281         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1282         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1283         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1284         gomp_test_nest_lock_25): New prototypes.
1285         (omp_lock_symver, strong_alias): Define.
1286         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1287         decls.
1288         (gomp_end_task): New.
1289         (struct gomp_task_icv, gomp_global_icv): New.
1290         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1291         (struct gomp_task): New.
1292         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1293         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1294         (gomp_icv): New.
1295         (gomp_schedule_type): Reorder enum to match
1296         omp_sched_t.
1297         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1298         fields.
1299         (gomp_thread_start): Add gomp_team_barrier_wait call.
1300         For non-nested case remove clearing of docked thread thr fields.
1301         Use pool fields instead of global gomp_* variables.  Use
1302         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1303         Create tasks for each member thread.
1304         (free_team): Only destroy team barrier, task_lock here and free it.
1305         (gomp_free_thread): Free last_team if non-NULL.
1306         (gomp_team_end): Call gomp_team_barrier_wait instead of
1307         gomp_barrier_wait.  For nested case call one extra
1308         gomp_barrier_wait.  Move here some destruction from free_team.
1309         Call free_team on pool->last_team if any, rather than freeing
1310         current team.  Destroy work_share_list_free_lock ifndef
1311         HAVE_SYNC_BUILTINS.
1312         (gomp_new_icv): New function.
1313         (gomp_threads, gomp_threads_size, gomp_threads_used,
1314         gomp_threads_dock): Removed.
1315         (gomp_thread_destructor): New variable.
1316         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1317         functions.
1318         (gomp_team_start): Create new pool if current thread doesn't have
1319         one.  Use pool fields instead of global gomp_* variables.
1320         Initialize thread_pool field for new threads.  Clear single_count.
1321         Change last argument from ws to team, don't create
1322         new team, set ts.work_share to &team->work_shares[0] and clear
1323         ts.last_work_share.  Don't clear ts.work_share_generation.
1324         If number of threads changed, adjust atomically gomp_managed_threads.
1325         Use gomp_init_task instead of gomp_new_task,
1326         set thr->task to the corresponding implicit_task array entry.
1327         Create tasks for each member thread.  Initialize ts.level.
1328         (initialize_team): Call pthread_key_create on
1329         gomp_thread_destructor.
1330         (team_destructor): New function.
1331         (new_team): Removed.
1332         (gomp_new_team): New function.
1333         (free_team): Free gomp_work_share blocks chained through next_alloc,
1334         instead of freeing work_shares and destroying work_share_lock.
1335         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1336         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1337         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1338         of gomp_barrier_wait.
1339         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1340         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1341         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1342         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1343         of gomp_barrier_wait.
1344         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1345         gomp_work_share_init_done if gomp_work_share_start returned true.
1346         Don't unlock ws->lock.
1347         * work.c: Include stddef.h.
1348         (free_work_share): Use work_share_list_free_lock instead
1349         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1350         Call gomp_fini_work_share and then either free ws if orphaned, or
1351         put it into work_share_list_free list of the current team.
1352         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1353         functions.
1354         (gomp_work_share_start, gomp_work_share_end,
1355         gomp_work_share_end_nowait): Rewritten.
1356         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1357         (openmp_version): Set to 200805.
1358         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1359         omp_sched_guided, omp_sched_auto): New parameters.
1360         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1361         omp_set_max_active_levels, omp_get_max_active_levels,
1362         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1363         omp_get_active_level): New interfaces.
1364         * omp_lib.h.in (openmp_version): Set to 200805.
1365         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1366         omp_sched_guided, omp_sched_auto): New parameters.
1367         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1368         omp_set_max_active_levels, omp_get_max_active_levels,
1369         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1370         omp_get_active_level): New externals.
1371         * loop.c: Include limits.h.
1372         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1373         GFS_AUTO.
1374         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1375         Likewise.  Use gomp_icv.
1376         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1377         ts.static_trip here.
1378         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1379         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1380         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1381         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1382         don't unlock ws->lock, otherwise lock it.
1383         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1384         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1385         (gomp_parallel_loop_start): Call gomp_new_team instead of
1386         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1387         Adjust gomp_team_start caller.  Pass 0 as second argument to
1388         gomp_resolve_num_threads.
1389         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1390         If adding ws->chunk_size nthreads + 1 times after end won't
1391         overflow, set ws->mode to 1.
1392         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1393         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1394         GOMP_loop_ull_ordered_static_start,
1395         GOMP_loop_ull_ordered_dynamic_start,
1396         GOMP_loop_ull_ordered_guided_start,
1397         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1398         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1399         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1400         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1401         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1402         prototypes.
1403         * libgomp.map: Export lock routines also @@OMP_2.0.
1404         (GOMP_loop_ordered_dynamic_first,
1405         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1406         GOMP_loop_ordered_static_first): Remove.
1407         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1408         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1409         GOMP_loop_ull_ordered_dynamic_next,
1410         GOMP_loop_ull_ordered_dynamic_start,
1411         GOMP_loop_ull_ordered_guided_next,
1412         GOMP_loop_ull_ordered_guided_start,
1413         GOMP_loop_ull_ordered_runtime_next,
1414         GOMP_loop_ull_ordered_runtime_start,
1415         GOMP_loop_ull_ordered_static_next,
1416         GOMP_loop_ull_ordered_static_start,
1417         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1418         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1419         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1420         (omp_set_schedule, omp_get_schedule,
1421         omp_get_thread_limit, omp_set_max_active_levels,
1422         omp_get_max_active_levels, omp_get_level,
1423         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1424         omp_set_schedule_, omp_set_schedule_8_,
1425         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1426         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1427         omp_get_max_active_levels_, omp_get_level_,
1428         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1429         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1430         New exports @@OMP_3.0.
1431         * omp.h.in (omp_sched_t): New type.
1432         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1433         omp_set_max_active_levels, omp_get_max_active_levels,
1434         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1435         omp_get_active_level): New prototypes.
1436         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1437         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1438         gomp_thread_limit_var, gomp_remaining_threads_count,
1439         gomp_remaining_threads_lock): New variables.
1440         (parse_spincount): New function.
1441         (initialize_env): Call gomp_init_num_threads unconditionally.
1442         Initialize gomp_available_cpus.  Call parse_spincount,
1443         initialize gomp_{,throttled_}spin_count_var
1444         depending on presence and value of OMP_WAIT_POLICY and
1445         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1446         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1447         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1448         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1449         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1450         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1451         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1452         (gomp_global_icv): New.
1453         (parse_schedule): Use it.  Parse "auto".
1454         (omp_set_num_threads): Use gomp_icv.
1455         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1456         Likewise.
1457         (omp_get_max_threads): Move from parallel.c.
1458         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1459         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1460         add ialias.
1461         (parse_stacksize, parse_wait_policy): New functions.
1462         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1463         both wrappers for compatibility and new locks.
1464         (omp_set_schedule, omp_get_schedule,
1465         omp_get_thread_limit, omp_set_max_active_levels,
1466         omp_get_max_active_levels, omp_get_level,
1467         omp_get_ancestor_thread_num, omp_get_team_size,
1468         omp_get_active_level): New ialias_redirect.
1469         (omp_set_schedule_, omp_set_schedule_8_,
1470         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1471         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1472         omp_get_max_active_levels_, omp_get_level_,
1473         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1474         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1475         New functions.
1476         * parallel.c: Include limits.h.
1477         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1478         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1479         argument to gomp_team_start.  Pass 0 as second argument to
1480         gomp_resolve_num_threads.
1481         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1482         if gomp_thread_limit_var != ULONG_MAX.
1483         (omp_in_parallel): Implement using ts.active_level.
1484         (omp_get_max_threads): Move to env.c.
1485         (omp_get_level, omp_get_ancestor_thread_num,
1486         omp_get_team_size, omp_get_active_level): New functions,
1487         add ialias.
1488         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1489         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1490         gomp_iter_dynamic_next instead of the _locked variant and don't take
1491         lock around it, otherwise acquire it before calling
1492         gomp_iter_dynamic_next_locked.
1493         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1494         gomp_iter_dynamic_next instead of the _locked variant and don't take
1495         lock around it.
1496         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1497         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1498         Adjust gomp_team_start caller.  Pass count as second argument to
1499         gomp_resolve_num_threads, don't adjust num_threads after the call.
1500         Use gomp_icv.
1501         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1502         ws->chunk_size by incr.
1503         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1504         code.
1505         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1506         types.
1507         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1508         (omp_check_defines): Check even the compat defines.
1509         * config/linux/ptrlock.c: New file.
1510         * config/linux/ptrlock.h: New file.
1511         * config/linux/wait.h: New file.
1512         * config/posix/ptrlock.c: New file.
1513         * config/posix/ptrlock.h: New file.
1514         * config/linux/bar.h (gomp_team_barrier_wait,
1515         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1516         (gomp_team_barrier_set_task_pending,
1517         gomp_team_barrier_clear_task_pending,
1518         gomp_team_barrier_set_waiting_for_tasks,
1519         gomp_team_barrier_waiting_for_tasks,
1520         gomp_team_barrier_done): New inlines.
1521         (gomp_barrier_t): Rewritten.
1522         (gomp_barrier_state_t): New typedef.
1523         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1524         gomp_barrier_wait_start): Rewritten.
1525         (gomp_barrier_wait_end): Change second argument to
1526         gomp_barrier_state_t.
1527         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1528         inlines.
1529         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1530         futex.h.
1531         (gomp_barrier_wait_end): Rewritten.
1532         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1533         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1534         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1535         (gomp_barrier_state_t): New typedef.
1536         (gomp_team_barrier_wait,
1537         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1538         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1539         into the return value.  Return gomp_barrier_state_t.
1540         (gomp_team_barrier_set_task_pending,
1541         gomp_team_barrier_clear_task_pending,
1542         gomp_team_barrier_set_waiting_for_tasks,
1543         gomp_team_barrier_waiting_for_tasks,
1544         gomp_team_barrier_done): New inlines.
1545         (gomp_barrier_wait_end): Change second argument to
1546         gomp_barrier_state_t.
1547         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1548         inlines.
1549         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1550         (gomp_barrier_wait_end): Change second argument to
1551         gomp_barrier_state_t.
1552         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1553         gomp_team_barrier_wake): New functions.
1554         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1555         futex.h.
1556         (gomp_futex_wake, gomp_futex_wait): New variables.
1557         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1558         * config/linux/lock.c: Rewrite to make locks task owned,
1559         for backwards compatibility provide the old entrypoints
1560         if symbol versioning.  Include wait.h instead of libgomp.h and
1561         futex.h.
1562         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1563         * config/posix95/lock.c: Rewrite to make locks task owned,
1564         for backwards compatibility provide the old entrypoints
1565         if symbol versioning.
1566         * config/posix/lock.c: Rewrite to make locks task owned,
1567         for backwards compatibility provide the old entrypoints
1568         if symbol versioning.
1569         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1570         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1571         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1572         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1573         (sys_futex0): Return error code.
1574         (futex_wake, futex_wait): If ENOSYS was returned, clear
1575         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1576         (cpu_relax, atomic_write_barrier): New static inlines.
1577         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1578         (futex_wake, futex_wait): If ENOSYS was returned, clear
1579         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1580         (cpu_relax, atomic_write_barrier): New static inlines.
1581         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1582         (sys_futex0): Return error code.
1583         (futex_wake, futex_wait): If ENOSYS was returned, clear
1584         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1585         (cpu_relax, atomic_write_barrier): New static inlines.
1586         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1587         (sys_futex0): Return error code.
1588         (futex_wake, futex_wait): If ENOSYS was returned, clear
1589         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1590         (cpu_relax, atomic_write_barrier): New static inlines.
1591         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1592         (sys_futex0): Return error code.
1593         (futex_wake, futex_wait): If ENOSYS was returned, clear
1594         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1595         (cpu_relax, atomic_write_barrier): New static inlines.
1596         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1597         (sys_futex0): Return error code.
1598         (futex_wake, futex_wait): If ENOSYS was returned, clear
1599         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1600         (cpu_relax, atomic_write_barrier): New static inlines.
1601         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1602         futex.h.
1603         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1604         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1605         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1606         types.
1607         (omp_nest_lock_t): Change owner into void *, add lock field.
1608         * config/posix95/omp-lock.h: Include semaphore.h.
1609         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1610         (omp_lock_t): Use sem_t instead of mutex if semaphores
1611         aren't broken.
1612         (omp_nest_lock_t): Likewise.  Change owner to void *.
1613         * config/posix/omp-lock.h: Include semaphore.h.
1614         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1615         (omp_lock_t): Use sem_t instead of mutex if semaphores
1616         aren't broken.
1617         (omp_nest_lock_t): Likewise.  Add owner field.
1619 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1621         * testsuite/libgomp.c/collapse-1.c: New test.
1622         * testsuite/libgomp.c/collapse-2.c: New test.
1623         * testsuite/libgomp.c/collapse-3.c: New test.
1624         * testsuite/libgomp.c/icv-1.c: New test.
1625         * testsuite/libgomp.c/icv-2.c: New test.
1626         * testsuite/libgomp.c/lib-2.c: New test.
1627         * testsuite/libgomp.c/lock-1.c: New test.
1628         * testsuite/libgomp.c/lock-2.c: New test.
1629         * testsuite/libgomp.c/lock-3.c: New test.
1630         * testsuite/libgomp.c/loop-4.c: New test.
1631         * testsuite/libgomp.c/loop-5.c: New test.
1632         * testsuite/libgomp.c/loop-6.c: New test.
1633         * testsuite/libgomp.c/loop-7.c: New test.
1634         * testsuite/libgomp.c/loop-8.c: New test.
1635         * testsuite/libgomp.c/loop-9.c: New test.
1636         * testsuite/libgomp.c/nested-3.c: New test.
1637         * testsuite/libgomp.c/nestedfn-6.c: New test.
1638         * testsuite/libgomp.c/sort-1.c: New test.
1639         * testsuite/libgomp.c/task-1.c: New test.
1640         * testsuite/libgomp.c/task-2.c: New test.
1641         * testsuite/libgomp.c/task-3.c: New test.
1642         * testsuite/libgomp.c/task-4.c: New test.
1643         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1644         to C++ testsuite default compiler options.
1645         * testsuite/libgomp.c++/collapse-1.C: New test.
1646         * testsuite/libgomp.c++/collapse-2.C: New test.
1647         * testsuite/libgomp.c++/ctor-10.C: New test.
1648         * testsuite/libgomp.c++/for-1.C: New test.
1649         * testsuite/libgomp.c++/for-2.C: New test.
1650         * testsuite/libgomp.c++/for-3.C: New test.
1651         * testsuite/libgomp.c++/for-4.C: New test.
1652         * testsuite/libgomp.c++/for-5.C: New test.
1653         * testsuite/libgomp.c++/loop-8.C: New test.
1654         * testsuite/libgomp.c++/loop-9.C: New test.
1655         * testsuite/libgomp.c++/loop-10.C: New test.
1656         * testsuite/libgomp.c++/task-1.C: New test.
1657         * testsuite/libgomp.c++/task-2.C: New test.
1658         * testsuite/libgomp.c++/task-3.C: New test.
1659         * testsuite/libgomp.c++/task-4.C: New test.
1660         * testsuite/libgomp.c++/task-5.C: New test.
1661         * testsuite/libgomp.c++/task-6.C: New test.
1662         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1663         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1664         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1665         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1666         * testsuite/libgomp.fortran/collapse1.f90: New test.
1667         * testsuite/libgomp.fortran/collapse2.f90: New test.
1668         * testsuite/libgomp.fortran/collapse3.f90: New test.
1669         * testsuite/libgomp.fortran/collapse4.f90: New test.
1670         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1671         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1672         * testsuite/libgomp.fortran/lib4.f90: New test.
1673         * testsuite/libgomp.fortran/lock-1.f90: New test.
1674         * testsuite/libgomp.fortran/lock-2.f90: New test.
1675         * testsuite/libgomp.fortran/nested1.f90: New test.
1676         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1677         * testsuite/libgomp.fortran/strassen.f90: New test.
1678         * testsuite/libgomp.fortran/tabs1.f90: New test.
1679         * testsuite/libgomp.fortran/tabs2.f: New test.
1680         * testsuite/libgomp.fortran/task1.f90: New test.
1681         * testsuite/libgomp.fortran/task2.f90: New test.
1682         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1683         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1684         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1685         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1686         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1688 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1690         PR c++/36308
1691         * testsuite/libgomp.c++/ctor-11.C: New test.
1692         * testsuite/libgomp.c++/ctor-12.C: New test.
1694 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1696         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1698 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1700         PR middle-end/36106
1701         * testsuite/libgomp.c/atomic-5.c: New test.
1702         * testsuite/libgomp.c/atomic-6.c: New test.
1703         * testsuite/libgomp.c/autopar-1.c: New test.
1705 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1707         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1708         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1709         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1710         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1711         * configure: Regenerate.
1712         * Makefile.in, testsuite/Makefile.in: Likewise.
1714 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1716         PR bootstrap/35457
1717         * aclocal.m4: Regenerate.
1718         * configure: Regenerate.
1720 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1722         PR middle-end/35611
1723         * testsuite/libgomp.c/atomic-4.c: New test.
1725         PR libgomp/35625
1726         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1727         (gomp_iter_guided_next): Likewise.
1728         * testsuite/libgomp.c/pr35625.c: New test.
1730 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1732         * aclocal.m4: Regenerate.
1733         * configure: Likewise.
1734         * Makefile.in: Likewise.
1735         * testsuite/Makefile.in: Likewise.
1737 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1739         PR middle-end/35185
1740         * testsuite/libgomp.c++/pr35185.C: New test.
1742 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1744         PR middle-end/35549
1745         * testsuite/libgomp.c/pr35549.c: New test.
1747 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1749         * testsuite/libgomp.c/atomic-3.c: New test.
1751 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1753         PR fortran/33197
1754         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1755         .F08 file suffixes.
1757 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1759         PR libgomp/33131
1760         * configure.ac: Add ACX_HEADER_STRING.
1761         * env.c: Include strings.h.
1762         * aclocal.m4: Regenerate.
1763         * config.h.in: Regenerate.
1764         * configure: Regenerate.
1765         * Makefile.in: Regenerate.
1766         * testsuite/Makefile.in: Regenerate.
1768 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1770         PR middle-end/35196
1771         * testsuite/libgomp.c/pr35196.c: New test.
1773         PR middle-end/35130
1774         * testsuite/libgomp.fortran/pr35130.f90: New test.
1775         * testsuite/libgomp.c/pr35130.c: New test.
1777 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1779         PR middle-end/33880
1780         * testsuite/libgomp.c/pr33880.c: New test.
1781         * testsuite/libgomp.fortran/pr33880.f90: New test.
1783 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1785         * configure: Regenerate.
1787 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1789         * configure.ac: Move futex checking into ../config/futex.m4.
1790         * configure: Rebuilt.
1791         * aclocal.m4: Rebuilt.
1792         * Makefile.in: Rebuilt.
1794         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1795         2007-10-15 ../config/tls.m4 change.
1797 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1799         PR c++/34513
1800         * testsuite/libgomp.c/pr34513.c: New test.
1801         * testsuite/libgomp.c++/pr34513.C: New test.
1803 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1805         PR target/32765
1806         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1808 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1810         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1812 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1814         * testsuite/libgomp.c/private-1.c: New test.
1816 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1817             Paolo Bonzini  <bonzini@gnu.org>
1819         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1820         instead of 'VPATH ='.
1821         * Makefile.in: Regenerate.
1823 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1825         * configure.ac: Adjust makeinfo version check.
1826         * configure: Regenerate.
1828 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1830         PR fortran/34020
1831         * testsuite/libgomp.fortran/pr34020.f90: New test.
1833 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1835         PR c++/33894
1836         * testsuite/libgomp.c++/atomic-1.C: New test.
1838 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1840         PR libgomp/33275
1841         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1842         Make x and y integers rather than (implicit) reals.  Add private (j)
1843         clause to the last omp parallel.
1845 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1847         * configure: Regenerate following changes to ../config/tls.m4.
1849 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1851         * testsuite/libgomp.fortran/stack.f90: New test.
1853 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1855         * config/mingw32/proc.c: New file.
1857 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1859         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1860         (main): Use __get_cpuid to get i386 target fetaures.
1861         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1862         (main): Use __get_cpuid to get x86_64 target fetaures.
1864 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1866         PR target/32765
1867         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1868         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1870 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1872         PR fortran/32550
1873         * testsuite/libgomp.fortran/pr32550.f90: New test.
1874         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1876 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1878         * aclocal.m4: Regenerated.
1880 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1882         PR fortran/32359
1883         * testsuite/libgomp.fortran/pr32359.f90: New.
1885 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1887         PR libgomp/32468
1888         * sections.c (GOMP_parallel_sections_start): Only decrease
1889         number of threads to COUNT if dyn_var is true.
1890         * testsuite/libgomp.c/pr32468.c: New test.
1892 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1894         PR libgomp/26308
1895         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1897 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1899         PR middle-end/32362
1900         * testsuite/libgomp.c/pr32362-1.c: New test.
1901         * testsuite/libgomp.c/pr32362-2.c: New test.
1902         * testsuite/libgomp.c/pr32362-3.c: New test.
1904 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1906         * team.c (gomp_team_start): Fix setting up thread_attr
1907         stack size.
1909 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1911         * configure: Regenerate.
1913 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1915         * Makefile.in: Regenerate.
1916         * configure: Regenerate.
1917         * aclocal.m4: Regenerate.
1918         * testsuite/Makefile.in: Regenerate.
1920 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1922         * config/linux/proc.c: New file.
1924         PR libgomp/28482
1925         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1927 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1929         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1931 2007-04-16  Matthias Klose  <doko@debian.org>
1933         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1934         flags if not building with -m64.
1935         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1936         flag for i?86-*-* targets, if current target matches -m64.
1938 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1940         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1941         * Makefile.in: Regenerate.
1943 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1945         PR testsuite/31369
1946         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1947         ld_library_path.
1948         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1950 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1952         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1953         decls.
1954         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1955         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1956         (parse_affinity): New function.
1957         (initialize_env): Call it and gomp_init_affinity.
1958         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1959         create new pthread_attr_t and call gomp_init_thread_affinity
1960         on it for each thread before passing the attribute to pthread_create.
1961         * config/linux/affinity.c: New file.
1962         * config/posix/affinity.c: New file.
1963         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1964         * configure: Rebuilt.
1965         * config.h.in: Rebuilt.
1966         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1967         * Makefile.in: Rebuilt.
1969 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1971         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1972         *-*-darwin*.
1973         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1974         and use it if found.
1976 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1978         * testsuite/config/default.exp: New file.
1979         * testsuite/lib/libgomp.exp: New file.
1980         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1981         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1982         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1983         (libgomp_load): Remove.
1984         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1985         always_ld_library_path, not ld_library_path.  Set additional_flags
1986         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1987         (target_compile): Do not call libgomp_init.  Append lang_library_path
1988         and lang_link_flags to options.
1989         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1990         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1991         here.
1992         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1993         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1994         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1995         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1996         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1997         CX8 flag.
1998         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1999         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2000         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2001         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2002         * testsuite/libgomp.c/atomic-10.c: Ditto.
2004 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2006         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2007         dg-final cleanup-modules line.
2008         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2009         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2010         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2011         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2012         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2013         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2014         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2016 2007-03-18  Andreas Schwab  <schwab@suse.de>
2018         * acinclude.m4: Adjust regular expression for ld version
2019         extraction.
2020         * configure: Regenerate.
2022 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2024         * Makefile.am: Add install-pdf target as copied from
2025         automake v1.10 rules.
2026         * Makefile.in: Regenerate
2028 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2030         PR libgomp/28486
2031         * configure: Regenerate.
2033         PR c++/30703
2034         * testsuite/libgomp.c++/pr30703.C: New test.
2036 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2038         Revert:
2039         2006-07-05  Eric Christopher  <echristo@apple.com>
2040         * configure.ac: Depend addition of -pthread on host OS.
2041         * configure: Regenerate.
2043 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2045         * libgomp.texi: Fix spacing after abbreviations.
2047 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2049         PR libgomp/30546
2050         * configure.ac: Add check for makeinfo
2051         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2052         if an appropiate version of makeinfo is found.
2053         * aclocal.m4: Regenerated.
2054         * configure: Regenerated.
2055         * Makefile.in: Regenerated.
2056         * testsuite/Makefile.in: Regenerated.
2058 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2060         PR libgomp/30540
2061         * libgomp.texi: More about implementation-dependent settings.
2063 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2065         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2067 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2069         PR middle-end/30494
2070         * testsuite/libgomp.c/pr30494.c: New test.
2072 2007-01-15  Tom Tromey  <tromey@redhat.com>
2074         * configure: Rebuilt.
2075         * configure.ac: Fixed comment.
2077 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2079         * libgomp.texi: Document implementation specific default values of
2080         environment variables.
2082 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2084         PR libgomp/28209
2085         * libgomp.texi: New file.
2086         * configure.ac: Add --enable-generated-files-in-srcdir option.
2087         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2088         files to srcdir.
2089         * Makefile.in: Regenerated.
2090         * config.h.in: Regenerated.
2091         * testsuite/Makefile.in: Regenerated.
2092         * NOTES: Removed.
2094 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2096         PR libgomp/29949
2097         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2099 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2101         * configure: Regenerate.
2103 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2105         PR libgomp/29947
2106         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2107         start if there shouldn't be any loop iterations.
2108         (gomp_loop_ordered_static_start): Remove start == end test.
2109         * testsuite/libgomp.c/pr29947-1.c: New test.
2110         * testsuite/libgomp.c/pr29947-2.c: New test.
2112 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2114         * configure.tgt: Force initial-exec TLS model on Linux only.
2116 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2118         * configure: Regenerated.
2120 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2122         * env.c (parse_schedule): Reject out of range values.
2123         (parse_unsigned_long): Reject out of range, negative or zero values.
2125 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2127         PR fortran/29629
2128         * testsuite/libgomp.fortran/pr29629.f90: New test.
2130 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2132         PR libgomp/29494
2133         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2134         * config/posix95: New directory.
2135         * config/posix95/omp-lock.h: New file.
2136         * config/posix95/lock.c: Likewise.
2138 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2140         * aclocal.m4: Regenerate.
2141         * configure: Regenerate.
2143 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2145         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2146         '<' to '<='.
2148 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2150         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2151         test.
2152         * configure: Regenerate.
2153         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2155 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2157         PR middle-end/25261
2158         PR middle-end/28790
2159         * testsuite/libgomp.c/nestedfn-4.c: New test.
2160         * testsuite/libgomp.c/nestedfn-5.c: New test.
2161         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2163         PR fortran/29097
2164         * testsuite/libgomp.fortran/condinc1.f: New test.
2165         * testsuite/libgomp.fortran/condinc2.f: New test.
2166         * testsuite/libgomp.fortran/condinc3.f90: New test.
2167         * testsuite/libgomp.fortran/condinc4.f90: New test.
2168         * testsuite/libgomp.fortran/condinc1.inc: New file.
2170 2006-09-18  Tom Tromey  <tromey@redhat.com>
2172         * configure: Rebuilt.
2174 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2176         PR c/28768
2177         PR preprocessor/14634
2178         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2179         to AC_DEFINE.
2180         * configure: Regenerate.
2182 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2184         * testsuite/libgomp.fortran/reduction3.f90: Change
2185         -2147483648 to -huge(i)-1 to avoid overflow.
2186         * testsuite/libgomp.fortran/reduction4.f90: Change
2187         Z'ffffffff' to not(0) to avoid overflow.
2189 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2191         PR libgomp/25938
2192         * Makefile.am (libsubincludedir): New.
2193         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2194         * Makefile.in: Regenerate.
2196 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2198         PR libgomp/28725
2199         * env.c: Include ctype.h.
2200         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2201         leading and/or trailing whitespace and compare strings case
2202         insensitively.
2204 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2206         PR fortran/28390
2207         * testsuite/libgomp.fortran/pr28390.f: New test.
2209 2006-07-05  Eric Christopher  <echristo@apple.com>
2211         * configure.ac: Depend addition of -pthread on host OS.
2212         * configure: Regenerate.
2214 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2216         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2217         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2218         defined.
2220 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2222         PR libgomp/26175
2223         PR libgomp/26477
2224         * configure.ac: If neither --enable-linux-futex nor
2225         --disable-linux-futex is passed, determine the default by checking
2226         for compiling and/or running against NPTL.  With --enable-linux-futex,
2227         check if SYS_gettid and SYS_futex are defined.
2228         * configure: Rebuilt.
2230 2006-06-14  Richard Henderson  <rth@redhat.com>
2232         PR libgomp/28008
2233         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2234         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2236 2006-06-09  Richard Henderson  <rth@redhat.com>
2238         * env.c (gomp_nthreads_var): Change to unsigned long.
2239         (gomp_run_sched_chunk): Likewise.
2240         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2241         (initialize_env): Initialize gomp_thread_attr.
2242         * libgomp.h (gomp_nthreads_var): Update decl.
2243         (gomp_run_sched_chunk): Likewise.
2244         (gomp_thread_attr): Declare.
2245         * team.c (gomp_thread_attr): Export.
2246         (initialize_team): Don't initialize it.
2248 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2250         PR fortran/27916
2251         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2252         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2254 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2256         * config/mingw32/time.c: New file.
2257         * configure.tgt: Use it.
2259 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2261         * Makefile.am: Add install-html target. Add install-html to .PHONY
2262         * Makefile.in: Regenerate.
2264 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2266         PR libgomp/27612
2267         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2268         * testsuite/libgomp.c/critical-1.c: Likewise.
2269         * testsuite/libgomp.c/loop-1.c: Likewise.
2270         * testsuite/libgomp.c/loop-2.c: Likewise.
2271         * testsuite/libgomp.c/single-1.c: Likewise.
2272         * testsuite/libgomp.c/ordered-1.c: Likewise.
2273         * testsuite/libgomp.c/ordered-2.c: Likewise.
2275 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2277         PR middle-end/27416
2278         * libgomp.fortran/pr27416-1.f90: New test.
2280 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2282         PR fortran/27395
2283         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2284         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2286 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2288         PR c++/26943
2289         * testsuite/libgomp.c/pr26943-1.c: New test.
2290         * testsuite/libgomp.c/pr26943-2.c: New test.
2291         * testsuite/libgomp.c/pr26943-3.c: New test.
2292         * testsuite/libgomp.c/pr26943-4.c: New test.
2293         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2294         * testsuite/libgomp.c++/pr26943.C: New test.
2296 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2298         PR middle-end/27337
2299         * testsuite/libgomp.c++/pr27337.C: New test.
2301 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2303         PR c/26171
2304         * testsuite/libgomp.c/pr26171.c: New test.
2306 2006-04-25  Richard Henderson  <rth@redhat.com>
2308         PR libgomp/25865
2309         * configure.ac: Use GCC_CHECK_TLS.
2310         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2311         * Makefile.in, aclocal.m4, configure: Regenerate.
2313 2006-04-10  Matthias Klose  <doko@debian.org>
2315         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2316         directory names containing underscores.
2318 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2320         PR c++/26691
2321         * testsuite/libgomp.c++/pr26691.C: New test.
2323 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2325         * testsuite/libgomp.fortran/retval2.f90: New test.
2327 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2329         * testsuite/libgomp.c++: New directory.
2331 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2333         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2334         * config/posix/sem.c: Implement the above.
2336 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2338         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2339         define HAVE_BROKEN_POSIX_SEMAPHORES.
2340         * configure: Rebuilt.
2341         * config.h.in: Rebuilt.
2343 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2345         PR bootstrap/26161
2346         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2347         for the other pthread check.
2348         * configure: Regenerate.
2349         * config.h.in: Regenerate.
2351 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2353         PR libgomp/25938
2354         PR libgomp/25984
2355         * Makefile.am (fincludedir): New variable.
2356         (nodist_include_HEADERS): Remove Fortran files.
2357         (nodist_finclude_HEADERS): New variable.
2358         * Makefile.in: Regenerated.
2360 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2362         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2363         Remove tests for returning assumed character length arrays.
2365 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2366             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2368         PR libgomp/25936
2369         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2371 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2373         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2375 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2377         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2378         part of LD_LIBRARY_PATH manually.
2380 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2382         PR libgomp/25852
2383         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2384         libgomp_init.
2386 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2388         PR libgomp/25884
2389         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2390         * configure.ac (PERL): Don't set.
2391         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2392         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2393         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2394         * omp.h.in: Wrap the new configure substitutions with @ characters.
2395         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2396         * aclocal.m4, configure, Makefile.in: Regenerate.
2397         * mkomp_h.pl: Delete.
2399 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2401         PR libgomp/25259
2402         * configure.ac: Use GCC_HEADER_STDINT.
2403         * libgomp.h: Include gstdint.h.
2404         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2405         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2407 2006-01-24  Richard Henderson  <rth@redhat.com>
2409         PR libgomp/25942
2410         * configure.ac: Add AM_MAINTAINER_MODE.
2411         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2413 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2415         * Makefile.in: Regenerate.
2416         * testsuite/Makefile.in: Regenerate.
2417         * aclocal.m4: Regenerate.
2419 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2421         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2422         Solaris.
2423         * configure.ac: Add check for loadavg.h.
2424         (link_gomp): Adjust comment.
2425         * configure: Regenerate.
2426         * config.h.in: Regenerate.
2428 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2430         PR libgomp/25877
2431         * configure.ac: Remove check for alloca.h.
2432         * configure: Regenerate.
2433         * config.h.in: Regenerate.
2434         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2435         * team.c: Remove use of alloca.h.
2436         Call gomp_alloca instead of alloca.
2438 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2440         PR libgomp/25877
2441         * team.c: Add include of alloca.h.
2442         * configure.ac: Add check for alloca.h.
2443         * configure: Regenerate.
2444         * config.h.in: Regenerate.
2446 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2448         PR fortran/25219
2449         * testsuite/libgomp.fortran/pr25219.f90: New test.
2451 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2453         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2454         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2455         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2456         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2457         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2458         testsuite/libgomp.fortran/threadprivate1.f90,
2459         testsuite/libgomp.fortran/threadprivate2.f90,
2460         testsuite/libgomp.fortran/threadprivate3.f90,
2461         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2462         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2463         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2464         effective-target to TLS runtime.
2466         * testsuite/libgomp.fortran/pr25162.f: Require
2467         effective-target TLS runtime.
2469 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2471         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2472         * testsuite/libgomp.c/nestedfn-3.c: New test.
2474 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2476         PR fortran/25162
2477         * testsuite/libgomp.fortran/pr25162.f: New test.
2479 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2481         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2482         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2484 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2486         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2487         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2488         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2489         single.c, team.c, work.c, config/linux/alpha/futex.h,
2490         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2491         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2492         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2493         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2494         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2495         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2496         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2497         FSF address.
2499 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2501         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2502         to nodist_noinst_HEADERS.
2503         * Makefile.in: Rebuilt.
2505         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2506         add integer count field.
2507         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2508         omp_nest_lock_t type change.
2509         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2510         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2511         Increment count.
2512         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2513         Decrement count.
2514         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2515         Increment count if successful and return the new nesting level.
2516         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2517         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2518         * testsuite/libgomp.c/lib-1.c: New test.
2519         * testsuite/libgomp.fortran/lib1.f90: New test.
2520         * testsuite/libgomp.fortran/lib2.f: New test.
2521         * testsuite/libgomp.fortran/lib3.f: New test.
2523 2005-11-17  Richard Henderson  <rth@redhat.com>
2525         PR 24845
2526         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2527         * configure.ac (link_gomp): New.  Substitute it.
2528         (AC_CONFIG_FILES): Add libgomp.spec.
2529         * libgomp.spec.in: New file.
2530         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2531         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2533 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2535         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2536         reduction(-:var) behaving the same as reduction(+:var).
2537         * testsuite/libgomp.c/reduction-4.c: New test.
2539 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2541         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2542         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2543         testsuite/libgomp.c/copyin-3.c,
2544         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2545         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2546         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2547         testsuite/libgomp.c++/pr24455.C,
2548         testsuite/libgomp.fortran/threadprivate1.f90,
2549         testsuite/libgomp.fortran/threadprivate2.f90,
2550         testsuite/libgomp.fortran/threadprivate3.f90,
2551         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2552         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2553         testsuite/libgomp.fortran/omp_parse3.f90: Require
2554         effective-target TLS.
2556 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2558         * HEADER: Remove.
2560 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2562         PR libgomp/24797
2563         * team.c (initialize_team): Pass NULL rather than free as
2564         pthread_key_create destructor.  Initialize thread specific data
2565         pointer in initial thread to a static local variable rather than
2566         malloced memory.
2568 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2570         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2571         its location to ld_library_path.
2573 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2575         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2577 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2579         * testsuite/libgomp.c: Rename from libgomp.dg.
2581 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2583         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2584         threadprivate variable 'i'.
2586 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2588         * config/linux/s390/futex.h: New file.
2589         * configure.tgt: Use it.
2591         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2592         before the parallel.
2594 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2596         PR c++/24734
2597         * testsuite/libgomp.c++/master-1.C: New test.
2599 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2601         * testsuite/libgomp.dg/copyin-3.c: New test.
2603 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2605         * testsuite/libgomp.fortran/retval1.f90: New test.
2606         * testsuite/libgomp.fortran/vla7.f90: New test.
2608 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2610         * testsuite/libgomp.fortran/vla2.f90: New test.
2611         * testsuite/libgomp.fortran/vla3.f90: New test.
2612         * testsuite/libgomp.fortran/vla4.f90: New test.
2613         * testsuite/libgomp.fortran/vla5.f90: New test.
2614         * testsuite/libgomp.fortran/vla6.f90: New test.
2616 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2618         * config/linux/sparc/futex.h: New file.
2619         * configure.tgt: Use it.
2620         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2622         * critical.c: Include stdlib.h.
2623         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2624         ignoring return value.
2625         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2626         LIBGOMP_CHECK_SYNC_BUILTINS check.
2627         * configure: Rebuilt.
2629 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2631         * testsuite/libgomp.fortran/vla1.f90: New test.
2633 2005-10-31  Richard Henderson  <rth@redhat.com>
2635         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2636         setting 's' in different threads.
2638 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2640         * libgomp.h (attribute_hidden, ialias): Define.
2641         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2642         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2643         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2644         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2645         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2646         omp_test_lock, omp_test_nest_lock): Likewise.
2647         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2648         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2649         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2650         omp_test_lock, omp_test_nest_lock): Likewise.
2651         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2652         omp_get_dynamic, omp_get_nested): Likewise.
2653         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2654         omp_get_thread_num, omp_in_parallel): Likewise.
2655         * fortran.c (ialias_redirect): Define.
2656         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2657         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2658         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2659         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2660         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2661         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2662         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2663         omp_get_wtime): Add ialias_redirect.
2665 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2667         * fortran.c: Include stdlib.h.
2669 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2671         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2672         * Makefile.in: Regenerated.
2674 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2676         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2677         * libgomp_f.h.in (omp_check_defines): New function.
2678         * env.c: Include libgomp_f.h.
2679         (initialize_env): Call omp_check_defines.
2681         * testsuite/libgomp.dg/copyin-2.c: New test.
2682         * testsuite/libgomp.c++/copyin-2.C: New test.
2683         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2685         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2686         * testsuite/libgomp.fortran/sharing2.f90: New test.
2688         * testsuite/libgomp.dg/copyin-1.c: New test.
2689         * testsuite/libgomp.c++/copyin-1.C: New test.
2691 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2693         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2695         * testsuite/libgomp.fortran/workshare1.f90: New test.
2697         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2698         only test.
2699         * libgomp.fortran/sharing1.f90: New test.
2701 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2703         PR c++/24502
2704         * testsuite/libgomp.c++/loop-7.C: New test.
2706         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2708         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2709         * testsuite/libgomp.fortran/reduction6.f90: New test.
2710         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2712 2005-10-23  Richard Henderson  <rth@redhat.com>
2714         * testsuite/libgomp.c++/ctor-1.C: New.
2715         * testsuite/libgomp.c++/ctor-2.C: New.
2716         * testsuite/libgomp.c++/ctor-3.C: New.
2717         * testsuite/libgomp.c++/ctor-4.C: New.
2718         * testsuite/libgomp.c++/ctor-5.C: New.
2719         * testsuite/libgomp.c++/ctor-6.C: New.
2720         * testsuite/libgomp.c++/ctor-7.C: New.
2721         * testsuite/libgomp.c++/ctor-8.C: New.
2722         * testsuite/libgomp.c++/ctor-9.C: New.
2724 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2726         PR 24455
2727         * testsuite/libgomp.c++/pr24455-1.C: New test.
2728         * testsuite/libgomp.c++/pr24455.C: New test.
2729         * testsuite/libgomp.dg/pr24455-1.c: New test.
2730         * testsuite/libgomp.dg/pr24455.c: New test.
2732 2005-10-20  Richard Henderson  <rth@redhat.com>
2734         * testsuite/libgomp.c++/loop-6.C: New.
2735         * testsuite/libgomp.dg/loop-3.c: New.
2737 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2739         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2740         explicitly private.
2741         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2742         explicitly shared.
2744 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2746         * testsuite/libgomp.fortran/jacobi.f: New test.
2748 2005-10-19  Richard Henderson  <rth@redhat.com>
2750         * configure.tgt (i?86-linux): Default to with_arch instead of
2751         CFLAGS.  Add -mtune to match target_cpu.
2752         (x86_64-linux): Tune to i686.
2754         * fortran.c (omp_test_nest_lock_): Fix typo.
2756 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2758         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2759         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2760         * testsuite/libgomp.dg/ordered-3.c: New test.
2762         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2763         Remove volatile keyword.
2765         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2766         in COMMON block to avoid warnings on 64-bit targets.
2768 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2770         * testsuite/libgomp.dg/shared-3.c: New test.
2772 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2774         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2775         * testsuite/libgomp.fortran/reduction5.f90: New test.
2777 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2779         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2780         dg-options.
2781         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2782         flush loop now that __sync_synchronize has proper memory barrier.
2783         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2784         Add -ffixed-form to dg-options.
2786 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2788         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2789         from subdirectories.
2790         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2791         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2792         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2793         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2794         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2795         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2796         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2797         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2798         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2799         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2800         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2801         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2802         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2803         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2804         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2805         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2806         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2807         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2808         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2809         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2810         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2811         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2812         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2813         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2814         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2816 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2818         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2819         lang_library_path exists.  Use find instead of glob to gather tests.
2820         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2822 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2824         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2825         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2826         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2827         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2828         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2829         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2830         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2831         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2832         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2833         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2834         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2835         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2836         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2838 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2840         * testsuite/libgomp.dg/vla-1.c: New test.
2842         * testsuite/libgomp.fortran/reference2.f90: New test.
2844         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2845         declaration of omp_get_thread_num.
2846         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2847         use omp_lib.
2849         * testsuite/libgomp.fortran/reduction1.f90: New test.
2850         * testsuite/libgomp.fortran/reduction2.f90: New test.
2851         * testsuite/libgomp.fortran/reduction3.f90: New test.
2852         * testsuite/libgomp.fortran/reduction4.f90: New test.
2854 2005-10-13  Richard Henderson  <rth@redhat.com>
2856         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2857         * Makefile.in: Regenerate.
2858         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2859         * libgomp.h: Include bar.h.
2860         (struct gomp_barrier): Remove.
2861         (struct gomp_team): Add barrier.  Replace master_barrier with
2862         master_release.  Replace threads with ordered_release.
2863         (struct gomp_thread): Replace barrier with release.
2864         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2865         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2866         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2867         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2868         (GOMP_single_copy_end): Likewise.
2869         * team.c (gomp_threads_dock): New.
2870         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2871         (gomp_thread_start): Use gomp_barrier_wait.
2872         (new_team, free_team): Update for gomp_team changes.
2873         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2874         (gomp_team_end): Use gomp_barrier_wait.
2875         (initialize_team): Update for gomp_thread changes.
2876         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2877         (gomp_work_share_end_nowait): Use atomic ops when available.
2878         * config/linux/bar.c, config/linux/bar.h: New files.
2879         * config/posix/bar.c, config/posix/bar.h: New files.
2881 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2883         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2884         * testsuite/libgomp.dg/single-2.c: New test.
2886         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2887         lang_link_flags): Unset, so that they aren't inherited from previously
2888         sourced *.exp.
2890         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2892 2005-10-12  Richard Henderson  <rth@redhat.com>
2894         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2895         (libgomp_init): Use lang_test_file, lang_library_path, and
2896         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2898         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2899         (lang_test_file, lang_link_flags): New.
2900         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2902         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2903         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2904         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2905         testsuite/libgomp.c++/parallel-1.C,
2906         testsuite/libgomp.c++/reduction-1.C,
2907         testsuite/libgomp.c++/reduction-2.C,
2908         testsuite/libgomp.c++/reduction-3.C,
2909         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2910         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2911         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2912         New files, largely cribbed from the C testsuite.
2914 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2916         * testsuite/libgomp.fortran/character1.f90: New test.
2917         * testsuite/libgomp.fortran/character2.f90: New test.
2919         * testsuite/libgomp.dg/nested-1.c: New test.
2920         * testsuite/libgomp.dg/nested-2.c: New test.
2921         * testsuite/libgomp.fortran/do1.f90: New test.
2922         * testsuite/libgomp.fortran/do2.f90: New test.
2924         * testsuite/libgomp.fortran/reference1.f90: New test.
2926 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2928         * testsuite/libgomp.dg/reduction-1.c: New test.
2929         * testsuite/libgomp.dg/reduction-2.c: New test.
2930         * testsuite/libgomp.dg/reduction-3.c: New test.
2932 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2934         * testsuite/libgomp.dg/atomic-1.c: New test.
2935         * testsuite/libgomp.dg/atomic-2.c: New test.
2937 2005-10-09  Richard Henderson  <rth@redhat.com>
2939         * critical.c (atomic_lock): New.
2940         (initialize_critical): Initialize it.
2941         (GOMP_atomic_start, GOMP_atomic_end): New.
2942         * libgomp.map: Export them.
2943         * libgomp_g.h: Declare them.
2945         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2947 2005-10-02  Richard Henderson  <rth@redhat.com>
2949         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2950         to XCFLAGS instead of CFLAGS.
2952 2005-09-30  Richard Henderson  <rth@redhat.com>
2954         * configure.ac: Determine whether -pthread or -lpthread is needed.
2955         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2956         * Makefine.in, configure: Rebuild.
2958 2005-09-28  Richard Henderson  <rth@redhat.com>
2960         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2961         * testsuite/libgomp.dg/omp-single-3.c: New test.
2963 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2965         * testsuite/libgomp.dg/omp-single-2.c: New test.
2966         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2968 2005-09-27  Richard Henderson  <rth@redhat.com>
2970         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2971         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2973 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2975         * testsuite/libgomp.dg/omp-loop03.c: New test.
2977 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2979         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2981 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2983         * testsuite/libgomp.dg/omp-single-1.c: New test.
2984         * testsuite/libgomp.dg/shared-1.c: Return 0.
2985         Add prototype for abort.
2986         * testsuite/libgomp.dg/shared-2.c: Likewise.
2988 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2990         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2991         constructs.
2993 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2995         * testsuite/libgomp.dg/shared-1.c: New test.
2996         * testsuite/libgomp.dg/shared-2.c: New test.
2998 2005-09-24  Richard Henderson  <rth@redhat.com>
3000         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3002 2005-09-24  Richard Henderson  <rth@redhat.com>
3004         * iter.c (gomp_iter_static_next): Round up when computing number
3005         of iterations.  Don't bother distributing a remainder equally.
3007         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3008         Don't call srand.  Zero b before testing.
3009         (main): New.
3011 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3013         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3014         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3016 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3018         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3019         without !$omp end do, followed immediately by subroutine end.
3021 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3023         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3025 2005-09-22  Richard Henderson  <rth@redhat.com>
3027         * critical.c (GOMP_critical_name_start): Change argument to void**.
3028         Reuse the pointer space if the mutex fits.
3029         (GOMP_critical_name_end): Likewise.
3030         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3031         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3032         (GOMP_critical_name_end): Likewise.
3033         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3034         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3036 2005-09-20  Richard Henderson  <rth@redhat.com>
3038         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3039         (create_lock_lock): New.
3040         (initialize_critical): Initialize it.
3041         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3042         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3044 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3046         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3048 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3050         * testsuite/libgomp.dg/omp-loop01.c: New test.
3051         * testsuite/libgomp.dg/omp-loop02.c: New test.
3053 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3055         * configure.ac (AC_PROG_FC): Add.
3056         (USE_FORTRAN): New automake conditional.
3057         * configure: Rebuilt.
3058         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3059         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3060         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3061         Add rules to build them.
3062         * Makefile.in: Rebuilt.
3063         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3064         OMP_NEST_LOCK_KIND.
3065         * libgomp.map: Add Fortran wrappers.
3066         * libgomp_f.h.in: New file.
3067         * omp_lib.h.in: New file.
3068         * omp_lib.f90.in: New file.
3069         * fortran.c: New file.
3070         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3071         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3072         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3073         libgfortran has been built.
3074         * testsuite/libgomp.fortran/fortran.exp: New file.
3075         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3076         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3077         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3078         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3079         * testsuite/libgomp.fortran/omp_hello.f: New test.
3080         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3081         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3082         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3083         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3084         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3085         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3086         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3087         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3089 2005-08-30  Richard Henderson  <rth@redhat.com>
3091         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3092         function for when aliases are not usable.
3093         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3094         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3095         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3096         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3097         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3098         GOMP_loop_ordered_guided_next): Likewise.
3099         * ordered.c (GOMP_ordered_start): Likewise.
3101 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3103         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3104         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3105         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3106         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3107         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3108         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3109         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3110         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3111         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3113 2005-07-07  Eric Christopher  <echristo@redhat.com>
3114             Diego Novillo  <dnovillo@redhat.com>
3116         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3117         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3118         up code.
3119         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3120         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3121         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3122         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3123         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3124         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3125         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3127 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3129         * TOPLEVEL.patch: Remove.
3131 2005-05-16  Richard Henderson  <rth@redhat.com>
3133         * configure.ac: Test for clock_gettime.
3134         * config.h.in, configure: Rebuild.
3135         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3136         (omp_get_wtime): Use clock_gettime if available.
3137         (omp_get_wtick): Use clock_getres if available.
3139 2005-05-11  Richard Henderson  <rth@redhat.com>
3141         * config/linux/ia64/futex.h: New file.
3142         * configure.tgt: Use it.
3144         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3146 2005-05-07  Richard Henderson  <rth@redhat.com>
3148         * config/linux/powerpc/futex.h: New file.
3149         * configure.tgt: Use it.
3151         * config/linux/i486/futex.h: Merge ...
3152         * config/linux/x86_64/futex.h: ... into ...
3153         * config/linux/x86/futex.h: ... here.
3154         * configure.tgt: Update to match.
3156 2005-05-06  Richard Henderson  <rth@redhat.com>
3158         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3159         * config/linux/i486/futex.h: Likewise.
3160         * config/linux/x86_64/futex.h: Likewise.
3162         * config/linux/lock.c: New file.
3163         * config/linux/omp-lock.h: New file.
3165         * critical.c, env.h: Don't include omp.h
3166         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3167         * config/posix/time.c: Likewise.
3168         * config/posix/omp-lock.h: New file.
3169         * libgomp.h: Include omp-lock.h and omp.h.
3170         * Makefile.am (nodist_include_HEADERS): New.
3171         (omp.h): New rule.
3172         * configure.ac (PERL): New.
3173         * mkomp_h.pl: New file.
3174         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3175         with templates.
3176         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3178         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3179         build directory.  Re-add -march=i486 hack.
3181         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3182         (libgomp_link_flags): Remove.
3183         (libgomp_initialized): Remove.
3184         (libgomp_init): Don't protect from reinitialization.  Copy code
3185         from libstdc++ for getting the multilib set correctly.
3187 2005-05-05  Richard Henderson  <rth@redhat.com>
3189         * config/linux/alpha/futex.h: New file.
3190         * configure.tgt (alpha*-*-linux*): Use it.
3192         * config/posix/mutex.c: New file.
3193         * config/posix/sem.c: Use libgomp.h.
3195         * configure.tgt (x86_64-linux): Also test CC for -m32.
3196         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3198         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3199         after $gccpath.
3201         * Makefile.am (SUBDIRS): New.
3202         (libgomp_la_LDFLAGS): Add -lpthread.
3203         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3204         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3206         * libgomp_g.h: New file.
3207         * libgomp.h: Split out all public declarations to libgomp_g.h.
3208         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3209         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3210         * config/linux/sem.h: Likewise.
3211         * config/posix/sem.h: Likewise.
3213         * Makefile.am (AM_LDFLAGS): New.
3214         (libgomp_version_script): Split out from ...
3215         (libgomp_la_LDFLAGS): ... here.
3216         (libgomp_version_info): New.
3217         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3218         (LIBGOMP_ENABLE): New.
3219         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3220         (LIBGOMP_ENABLE_SYMVERS): New.
3221         * configure.ac (AC_INIT): Version 1.0.
3222         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3223         (enable-linux-futex): Likewise.  Rename from enable-futex.
3224         (libtool_VERSION): New.
3225         (LIBGOMP_ENABLE_SYMVERS): Use it.
3226         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3227         * Makefile.in, aclocal.m4, configure: Rebuild.
3229         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3230         (gomp_mutex_unlock_slow): Fix typo.
3231         * config/linux/sem.c: Similarly.
3232         (gomp_sem_post_slow): Fix typo.
3233         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3234         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3235         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3237         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3238         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3239         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3240         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3241         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3242         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3243         LDFLAGS.  Pull enable_futex check to top-level.
3244         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3245         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3247         First attempt at real configury.
3248         * Makefile, config.h: Remove file.
3249         * Makefile.am, Makefile.in: New file.
3250         * acinclude.m4 aclocal.m4: New file.
3251         * configure.ac, configure.tgt, configure: New file.
3253         * config/posix/lock.c: Rename from sys-lock.c.
3254         * config/posix/mutex.h: Rename from sys-mutex.h.
3255         * config/posix/sem.c: Rename from sys-sem.c.
3256         * config/posix/sem.h: Rename from sys-sem.h.
3257         * config/posix/proc.c: Rename from sys-proc.c.
3258         * config/posix/time.c: Rename from sys-proc.c.
3260         * config/linux/mutex.c: New file.
3261         * config/linux/mutex.h: New file.
3262         * config/linux/sem.c: New file.
3263         * config/linux/sem.h: New file.
3264         * config/linux/i486/futex.h: New file.
3265         * config/linux/x86_64/futex.h: New file.
3267 2005-05-04  Richard Henderson  <rth@redhat.com>
3269         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3270         * libgomp.h: Declare them.
3271         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3272         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3274 2005-05-04  Richard Henderson  <rth@redhat.com>
3276         * libgomp-1 code drop
3278 2005-05-04  Richard Henderson  <rth@redhat.com>
3280         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3281         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3282         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3283         (gomp_iter_static_next): Update.
3284         (gomp_ordered_static_next): Update.
3285         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3286         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3287         totally empty range.
3288         (gomp_loop_ordered_static_next): Refine test for calling
3289         gomp_ordered_static_next.
3290         * testsuite/ordered-1.c: Add case for more threads than iterations.
3292         * iter.c (gomp_iter_runtime_next_locked): Remove.
3293         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3294         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3295         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3296         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3297         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3298         gomp_loop_ordered_guided_next): Downcase name, make static, add
3299         an external alias with the old name.
3300         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3301         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3302         switch and call one of the above static functions.
3303         * libgomp.h: Update.
3305         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3306         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3307         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3308         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3309         GOMP_loop_ordered_guided_start): Update to match.
3310         * sections.c (GOMP_sections_start): Likewise.
3311         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3313         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3314         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3315         Use bounds check instead of modulus.
3316         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3317         (gomp_ordered_last): Don't sync with ordered_owner here.
3318         (gomp_ordered_next): Likewise.
3319         (gomp_ordered_static_loop_next): Likewise.
3320         * loop.c, libgomp.h: Update to match.
3322         * libgomp.h (GOMP_barrier): Declare.
3324         * testsuite/barrier-1.c: New file.
3325         * testsuite/critical-1.c: New file.
3326         * testsuite/ordered-2.c: New file.
3327         * testsuite/ordered-1.c: New file.
3328         * testsuite/sections-1.c: New file.
3329         * testsuite/single-1.c: New file.
3330         * testsuite/Makefile (TESTS): Add them.
3332 2005-05-04  Richard Henderson  <rth@redhat.com>
3334         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3335         * loop.c (GOMP_loop_static_start): If not the startup thread,
3336         acquire the mutex to wait for initialization complete.
3337         (GOMP_loop_ordered_static_start): Likewise.
3338         (GOMP_loop_ordered_runtime_start): Likewise.
3339         (GOMP_loop_ordered_static_first): Remove.
3340         (GOMP_loop_ordered_dynamic_first): Remove.
3341         (GOMP_loop_ordered_guided_first): Remove.
3342         (GOMP_loop_ordered_runtime_first): Remove.
3343         * ordered.c (gomp_ordered_loop_first): Post to own release when
3344         we're the first thread.
3345         (gomp_ordered_loop_last): Wait on release if not owner.
3346         (gomp_ordered_loop_next): Likewise.
3347         (gomp_ordered_static_loop_init): New.
3348         (gomp_ordered_static_loop_next): Use ordered_owner.
3349         (GOMP_ordered_start): Likewise.
3350         * work.c (gomp_new_work_share): Initialize ordered_owner.
3352 2005-05-03  Richard Henderson  <rth@redhat.com>
3354         * Makefile (OPT): New.
3355         (CFLAGS): Use it.
3357         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3358         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3359         * libgomp.h, libgomp.map, NOTES: Update to match.
3361         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3362         Add initialized and thr members.
3363         (gomp_thread_start): Pause when initially spawned to wait for
3364         the whole team to be created.
3365         (gomp_team_start): Release team members at the end.
3367         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3368         (f_foo_1): Use GOMP_loop_end.
3369         (f_foo_2): Use GOMP_loop_end_nowait.
3371         * testsuite/loop-2.c: New file.
3372         * testsuite/Makefile (TESTS): Add it.
3374 2005-05-03  Richard Henderson  <rth@redhat.com>
3376         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3377         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3378         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3379         initial work_share.
3381         * testsuite/Makefile: New file.
3382         * testsuite/loop-1.c: New file.
3384 2005-05-03  Richard Henderson  <rth@redhat.com>
3386         Initial implementation and checkin.