* g++.dg/cpp0x/constexpr-53094-2.C: Ignore non-standard ABI
[official-gcc.git] / libgomp / ChangeLog
blob266a66e7b8f1567a4e44d16e09b5a08956991499
1 2013-01-22  Alan Modra  <amodra@gmail.com>
3         PR libgomp/51376
4         PR libgomp/56073
5         * task.c (GOMP_task): Revert 2011-12-09 change.
6         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
7         barrier to read task->children..
8         (gomp_barrier_handle_tasks): ..and matching atomic store with
9         release barrier here when setting parent->children to NULL.
11 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
12             Tobias Burnus  <burnus@net-b.de>
14         PR driver/55884
15         * testsuite/libgomp.fortran/fortran.exp: Use
16         -fintrinsic-modules-path= instead of
17         -fintrinsic-modules-path.
19 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
21         Update copyright years.
23 2012-12-19  Tobias Burnus  <burnus@net-b.de>
25         * testsuite/libgomp.fortran/fortran.exp: Set
26         -fintrinsic-modules-path.
28 2012-12-19  Tobias Burnus  <burnus@net-b.de>
30         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
31         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
33 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
35         PR libgomp/55411
36         * team.c (gomp_free_thread): Decrease gomp_managed_threads
37         if pool had any threads_used.
39 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
41         * testsuite/libgomp.c++/pr24455.C: Use
42         -Wl,-undefined,dynamic_lookup on darwin.
44 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
46         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
48 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
50         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
52 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
53             Jim MacArthur  <jim.macarthur@arm.com>
54             Marcus Shawcroft  <marcus.shawcroft@arm.com>
55             Nigel Stephens  <nigel.stephens@arm.com>
56             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
57             Richard Earnshaw  <rearnsha@arm.com>
58             Sofiane Naci  <sofiane.naci@arm.com>
59             Stephen Thomas  <stephen.thomas@arm.com>
60             Tejas Belagod  <tejas.belagod@arm.com>
61             Yufeng Zhang  <yufeng.zhang@arm.com>
63         * configure.tgt: Add AArch64.
65 2012-10-04  Jason Merrill  <jason@redhat.com>
67         * testsuite/libgomp.c++/tls-init1.C: New.
69 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
71         * configure: Regenerated.
73 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
75         * config/linux/mips/futex.h (sys_futex0): Change to static
76         function with noinline, nomips16 attributes under MIPS16. Adjust
77         asm statement to place 'li v0,SYS_futex' immediately before
78         syscall insn.
80 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
82         * libgomp.texi (Library Index): Renamed from "Index" to prevent
83         conflict with index.html on case-insensitive file systems.
85 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
87         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
88         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
90 2012-07-02  Richard Guenther  <rguenther@suse.de>
91             Michael Matz  <matz@suse.de>
92             Tobias Grosser <tobias@grosser.es>
93             Sebastian Pop <sebpop@gmail.com>
95         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
96         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
97         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
98         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
100 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
102         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
104 2012-06-22  Richard Guenther  <rguenther@suse.de>
106         Merge from graphite branch
107         2012-01-13  Tobias Grosser  <tobias@grosser.es>
109         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
110         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
112 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
114         PR middle-end/53580
115         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
116         use GOMP_barrier () call instead.
117         * testsuite/libgomp.c/pr26943-3.c: Likewise.
118         * testsuite/libgomp.c/pr26943-4.c: Likewise.
119         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
120         call GOMP_barrier instead.
121         * testsuite/libgomp.fortran/vla5.f90: Likewise.
123 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
125         PR libgomp/52993
126         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
127         argument to memset call.
129 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
131         * configure: Regenerated.
133 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
135         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
137 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
139         PR bootstrap/52812
140         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
142 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
144         PR middle-end/52547
145         * testsuite/libgomp.c/pr52547.c: New test.
147 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
149         * testsuite/lib/libgomp.exp: load fortran-modules.exp
151 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
153         * configure.tgt (mips-sgi-irix6*): Remove.
155 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
157         * configure.tgt (alpha*-dec-osf*): Remove.
159         * config/osf/sem.h: Remove.
160         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
162 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
164         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
166 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
168         PR libstdc++/52188
169         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
170         Remove ENABLE_SYMVERS_SOL2.
171         * configure: Regenerate.
172         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
173         (PREPROCESS): New variable.
174         (libgomp.ver): New target.
175         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
176         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
177         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
178         Use libgomp.ver.
179         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
180         * Makefile.in: Regenerate.
182 2012-02-14  Walter Lee  <walt@tilera.com>
184         * configure.tgt: Handle tilegx and tilepro.
185         * config/linux/tile/futex.h: New file.
187 2012-02-08  Richard Guenther  <rguenther@suse.de>
189         PR tree-optimization/46886
190         * testsuite/libgomp.c/pr46886.c: New testcase.
192 2012-01-25  Matthias Klose  <doko@ubuntu.com>
194         * config/linux/arm: Remove empty directory.
195         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
197 2011-12-09  Alan Modra  <amodra@gmail.com>
199         PR libgomp/51376
200         * task.c (GOMP_taskwait): Don't access task->children outside of
201         task_lock mutex region.
202         (GOMP_task): Likewise.
204 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
206         PR libgomp/51132
207         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
208         to file scope.
209         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
210         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
211         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
212         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
213         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
215 2011-12-02  Alan Modra  <amodra@gmail.com>
217         * config/linux/affinity.c: Use atomic rather than sync builtin.
218         * config/linux/lock.c: Likewise.
219         * config/linux/ptrlock.h: Likewise.
220         * config/linux/ptrlock.c: Likewise.
221         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
222         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
223         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
224         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
225         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
226         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
227         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
228         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
229         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
230         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
232 2011-11-30  Alan Modra  <amodra@gmail.com>
234         PR libgomp/51298
235         * config/linux/bar.h: Use atomic rather than sync builtins.
236         * config/linux/bar.c: Likewise.  Add missing acquire
237         synchronisation on generation field.
238         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
239         double unlock.
241 2011-11-30  Alan Modra  <amodra@gmail.com>
243         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
244         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
245         * config/linux/mutex.h: Use atomic rather than sync builtins.
246         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
247         * config/linux/omp-lock.h: Comment fix.
248         * config/linux/arm/mutex.h: Delete.
249         * config/linux/powerpc/mutex.h: Delete.
250         * config/linux/ia64/mutex.h: Delete.
251         * config/linux/mips/mutex.h: Delete.
253 2011-11-30  Alan Modra  <amodra@gmail.com>
255         PR libgomp/51249
256         * config/linux/sem.h: Rewrite.
257         * config/linux/sem.c: Rewrite.
259 2011-11-28  Richard Henderson  <rth@redhat.com>
261         * libgomp.h (enum memmodel): New.
263 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
265         * configure: Regenerate.
267 2011-10-10  Matthias Klose  <doko@ubuntu.com>
269         * config/posix95: Remove empty directory.
271 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
273         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
275 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
277         PR fortran/49792
278         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
279         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
281 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
283         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
285 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
287         PR libgomp/49965
288         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
290 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
292         * config/linux/proc.h: New.
293         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
294         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
295         (gomp_init_num_threads): Update call to cpuset_popcount.
296         (get_num_procs): Ditto.
297         * config/linux/affinity.c (gomp_init_affinity): Call
298         gomp_cpuset_popcount.
300 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
302         PR fortran/42041
303         PR fortran/46752
304         * omp.h.in (omp_in_final): New prototype.
305         * omp_lib.f90.in (omp_in_final): New interface.
306         (omp_integer_kind, omp_logical_kind): Remove
307         and replace all its uses in the module with 4.
308         (openmp_version): Change to 201107.
309         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
310         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
311         kind for the parameters.
312         (omp_in_final): New external.
313         (openmp_version): Change to 201107.
314         * task.c (omp_in_final): New function.
315         (gomp_init_task): Initialize final_task.
316         (GOMP_task): Remove unused attribute from flags.  Handle final
317         tasks.
318         (GOMP_taskyield): New function.
319         (omp_in_final): Return true if if (false) or final (true) task
320         or descendant of final (true).
321         * fortran.c (omp_in_final_): New function.
322         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
323         (GOMP_3.0): Export GOMP_taskyield.
324         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
325         variables.
326         (parse_unsigned_long_list): New function.
327         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
328         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
329         even if parse_affinity returned false.
330         * config/linux/affinity.c (gomp_init_affinity): Handle
331         gomp_cpu_affinity_len == 0.
332         * libgomp_g.h (GOMP_taskyield): New prototype.
333         * libgomp.h (struct gomp_task): Add final_task field.
334         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
335         * team.c (gomp_team_start): Override new task's nthreads_var icv
336         if list form OMP_NUM_THREADS has been used and it has value for
337         the new nesting level.
339         * testsuite/libgomp.c/atomic-11.c: New test.
340         * testsuite/libgomp.c/atomic-12.c: New test.
341         * testsuite/libgomp.c/atomic-13.c: New test.
342         * testsuite/libgomp.c/atomic-14.c: New test.
343         * testsuite/libgomp.c/reduction-6.c: New test.
344         * testsuite/libgomp.c/task-5.c: New test.
345         * testsuite/libgomp.c++/atomic-2.C: New test.
346         * testsuite/libgomp.c++/atomic-3.C: New test.
347         * testsuite/libgomp.c++/atomic-4.C: New test.
348         * testsuite/libgomp.c++/atomic-5.C: New test.
349         * testsuite/libgomp.c++/atomic-6.C: New test.
350         * testsuite/libgomp.c++/atomic-7.C: New test.
351         * testsuite/libgomp.c++/atomic-8.C: New test.
352         * testsuite/libgomp.c++/atomic-9.C: New test.
353         * testsuite/libgomp.c++/task-8.C: New test.
354         * testsuite/libgomp.c++/reduction-4.C: New test.
355         * testsuite/libgomp.fortran/allocatable7.f90: New test.
356         * testsuite/libgomp.fortran/allocatable8.f90: New test.
357         * testsuite/libgomp.fortran/crayptr3.f90: New test.
358         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
359         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
360         * testsuite/libgomp.fortran/pointer1.f90: New test.
361         * testsuite/libgomp.fortran/pointer2.f90: New test.
362         * testsuite/libgomp.fortran/task4.f90: New test.
364 2011-08-02  Tobias Burnus  <burnus@net-b.de>
366         * libgomp.texi: Update OpenMP spec references to 3.1.
367         (omp_in_final,OMP_PROC_BIND): New sections.
368         (OMP_NUM_THREADS): Document that the value can be now a list.
369         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
371 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
373         * config/linux/x86/futex.h: Check __x86_64__ instead of
374         __LP64__.
376 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
378         PR middle-end/49897
379         PR middle-end/49898
380         * testsuite/libgomp.c/pr49897-1.c: New test.
381         * testsuite/libgomp.c/pr49897-2.c: New test.
382         * testsuite/libgomp.c/pr49898-1.c: New test.
383         * testsuite/libgomp.c/pr49898-2.c: New test.
385 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
387         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
388         for ia32 instead of ilp32.
390         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
391         * testsuite/libgomp.c/atomic-6.c: Likewise.
393 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
395         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
396         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
398 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
400         PR libgomp/45351
401         * config/osf/sem.h: New file.
402         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
404 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
406         PR target/49541
407         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
408         ldflags.
410 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
412         * config/linux/wait.h (do_spin): New inline, largely copied
413         from do_wait, just don't do futex_wait here, instead return true if
414         it should be done.
415         (do_wait): Implement using do_spin.
416         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
417         to prototype.
418         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
419         __sync_bool_compare_and_swap, pass the oldval to
420         gomp_mutex_lock_slow.
421         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
422         If all mutex contenders are just spinning and not sleeping, don't
423         change state to 2 unnecessarily.  Optimize the loop when state has
424         already become 2 to use just one atomic operation per loop instead
425         of two.
426         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
427         to prototype.
428         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
429         __sync_bool_compare_and_swap, pass the oldval to
430         gomp_mutex_lock_slow.
432 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
434         PR libgomp/49490
435         * iter.c (gomp_iter_static_next): For chunk size 0
436         only use n ceil/ nthreads size for the first
437         n % nthreads threads in the team instead of
438         all threads except for the last few ones which
439         get less work or none at all.
440         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
441         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
442         chunk argument, set run_sched_modifier to 0 for static
443         resp. 1 for other kinds.  If chunk argument is 0
444         and not static, set value to 1.
446 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
448         PR c++/49043
449         * testsuite/libgomp.c++/pr49043.C: New test.
451         PR c++/48869
452         * testsuite/libgomp.c++/pr48869.C: New test.
454 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
456         PR fortran/48894
457         * fortran.c: Include limits.h.
458         (TO_INT): Define.
459         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
460         *set.
461         (omp_set_num_threads_8_, omp_set_schedule_8_,
462         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
463         omp_get_team_size_8_): Use TO_INT macro.
464         * testsuite/libgomp.fortran/pr48894.f90: New test.
466 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
468         PR middle-end/48591
469         * testsuite/libgomp.c/pr48591.c: New test.
471 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
473         PR bootstrap/48135
474         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
475         * configure: Regenerate.
477 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
479         PR fortran/47886
480         * testsuite/libgomp.fortran/task3.f90: New test.
482 2011-02-24  Tobias Burnus  <burnus@net-b.de>
484         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
486 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
488         PR libgomp/47854
489         * libgomp.texi (omp_get_wtime): Don't say time in the past
490         must be Unix Epoch.
492 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
494         PR libgomp/47804
495         * testsuite/libgomp.fortran/fortran.exp: Check for both
496         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
497         but $blddir != "", still append ${blddir}/${lang_library_path}
498         to ld_library_path.
500 2011-02-16  Tobias Burnus  <burnus@net-b.de>
502         PR libgomp/47758
503         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
504         of libquadmath.a before adding its libpath to ldflags.
506 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
508         PR libgomp/47731
509         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
510         to FUTEX_WAIT futex syscall.
511         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
513 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
515         * configure: Regenerate.
517 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
519         PR libstdc++/36104
520         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
522 2011-01-16  Gerald Pfeifer
524         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
526 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
528         PR fortran/46874
529         * libgomp.fortran/allocatable6.f90: New test.
531 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
533         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
534         * configure: Regenerate.
536 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
538         PR target/40125
539         PR lto/46695
540         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
541         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
542         * aclocal.m4: Regenerate.
543         * configure: Regenerate.
544         * Makefile.in: Regenerate.
545         * testsuite/Makefile.in: Regenerate.
547 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
549         PR fortran/46753
550         * libgomp.fortran/pr46753.f90: New test.
552         PR libgomp/43706
553         * env.c (initialize_env): Default to spin count 300000
554         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
555         is specified.
557         PR libgomp/45240
558         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
559         at the end if sync builtins aren't supported.
561 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
563         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
565 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
567         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
569 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
571         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
573 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
574             Tobias Burnus  <burnus@net-b.de>
576         PR fortran/32049
577         * configure.ac:
578         * configure: Regenerate.
580 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
582         * config/linux/futex.h: New.
583         * config/linux/arm/mutex.h: New.
584         * configure.tgt (arm*-*-linux*): Add config path.
586 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
588         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
590 2010-09-23  Tobias Burnus  <burnus@net-b.de>
592         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
593         Change Fortran datatype to LOGICAL.
594         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
595         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
597 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
599         * configure: Regenerate.
601 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
603         * libgomp.texi: Add function keyword to a couple of Fortran
604         interfaces, use integer instead of int for Fortran.
606 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
608         * libgomp.texi: Fix spelling and pasto problems throughout.
609         Adjust prototypes to match code.
611 2010-07-24  Tobias Burnus  <burnus@net-b.de>
613         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
614         silence -fwhole-file warning.
616 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
618         * configure.tgt (*-*-solaris2.[56]*): Removed.
620 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
622         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
623         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
624         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
625         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
626         targetting solaris2*.
627         * configure: Regenerate.
628         * config.h.in: Regenerate.
630         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
631         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
632         Add libgomp_version_dep.
633         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
634         versioning.
635         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
636         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
637         * Makefile.in: Regenerate.
639         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
640         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
641         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
642         to common block, protected by
643         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
645 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
647         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
649 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
651         PR bootstrap/43170
652         * configure: Regenerate.
654 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
656         PR other/43620
657         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
658         * configure: Regenerate.
659         * Makefile.in: Regenerate.
660         * testsuite/Makefile.in: Regenerate.
662 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
664         PR c/43893
665         * testsuite/libgomp.c/pr43893.c: New test.
666         * testsuite/libgomp.c++/pr43893.C: New test.
668 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
670         PR middle-end/43570
671         * testsuite/libgomp.fortran/vla8.f90: New test.
673 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
675         PR libgomp/43706
676         * config/linux/affinity.c (gomp_init_affinity): Decrease
677         gomp_available_cpus if affinity mask confines the process to fewer
678         CPUs.
679         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
680         non-NULL, just return gomp_available_cpus.
682         PR libgomp/43569
683         * sections.c (gomp_sections_init): Initialize ws->mode.
685 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
687         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
688         not unused bar variable.
689         * configure: Regenerate.
691 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
693         * Makefile.in: Regenerate.
694         * aclocal.m4: Regenerate.
695         * testsuite/Makefile.in: Regenerate.
697 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
699         PR libgomp/42942
700         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
701         (initialize_env): Adjust callers.
702         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
703         when the argument is 0.
705         * testsuite/libgomp.c/pr42942.c: New test.
707 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
709         PR middle-end/42644
710         PR middle-end/42130
711         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
712         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
714 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
716         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
717         * testsuite/libgomp.c++/task-6.C: Likewise.
719 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
721         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
723 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
725         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
726         * configure: Regenerate.
728 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
730         PR fortran/42866
731         * testsuite/libgomp.fortran/allocatable5.f90: New test.
733 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
735         * configure.ac: Test for executability of GFORTRAN.
736         * configure: Regenerate.
738 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
740         * configure: Regenerate.
742 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
744         PR libgomp/42602
745         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
747 2010-01-03  Richard Guenther  <rguenther@suse.de>
749         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
751 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
753         * testsuite/libgomp.graphite/pr4118.c: New.
755 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
757         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
758         for darwin, protect the test with require-effective-target tls_runtime.
759         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
761 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
763         PR target/41605
764         * testsuite/lib/libgomp.exp: Provide -B options to allow for
765         link spec %s substitutions for static libraries.
767 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
769         PR testsuite/42135
770         * libgomp.graphite/force-parallel-2.c: Reduce array size.
772 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
774         * Makefile.in: Regenerate.
775         * configure: Regenerate.
776         * testsuite/Makefile.in: Regenerate.
778 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
780         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
781         settings for LC_ALL and LANG.
783 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
785         PR fortran/42162
786         * testsuite/libgomp.fortran/pr42162.f90: New test.
788 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
790         PR middle-end/42029
791         * testsuite/libgomp.c/pr42029.c: New test.
793 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
795         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
796         *s.  Accept ld version without text in ()s.
797         * configure: Regenerated.
799 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
801         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
803 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
805         PR libgomp/41418
806         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
807         or a hyphen (happens with fortran language disabled).
808         * configure: Regenerate.
810 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
812         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
813         use sed script portable to Solaris /bin/sed for extracting ld
814         version.
815         * configure: Regenerate.
817 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
819         * testsuite/libgomp.graphite/bounds.c: New test.
821 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
823         * Makefile.am (libgomp_la_LINK): New.
824         * Makefile.in: Regenerate.
826 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
828         * configure.ac (AC_PREREQ): Bump to 2.64.
830 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
832         * Makefile.am (install-html, install-pdf): Remove.
833         * Makefile.in: Regenerate.
835         * Makefile.in: Regenerate.
836         * aclocal.m4: Regenerate.
837         * config.h.in: Regenerate.
838         * configure: Regenerate.
839         * testsuite/Makefile.in: Regenerate.
841 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
843         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
844         * Makefile.in: Regenerate.
846 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
848         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
849         * Makefile.in: Regenerate.
851 2009-08-19  Tobias Burnus  <burnus@net-b.de>
853         PR fortran/41102
854         omp_lib.h.in: Fix -std=f95 errors.
857 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
859         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
860         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
861         * testsuite/libgomp.graphite/graphite.exp: New.
863 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
865         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
866         only build.
868 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
870         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
871         needed memory barrier semantics.
872         * config/linux/mips/mutex.h: New file.
874 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
876         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
878 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
880         * configure: Regenerate.
882 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
884         PR testsuite/40699
885         PR testsuite/40707
886         PR testsuite/40709
887         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
888         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
889         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
891 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
893         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
894         options when choosing a multilib.
896 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
898         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
899         ld_library_path.  Use add_path.  Add just find_libgcc_s to
900         ld_library_path, not every libgcc multilib directory.
901         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
902         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
903         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
904         Use add_path.
905         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
907 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
909         * Makefile.am (LTLDFLAGS): Define.
910         (LINK): Define.
911         * Makefile.in: Regenerate.
913 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
915         PR fortran/39718
916         * testsuite/libgomp.fortran/fortran.exp: Don't link with
917         libgfortranbegin, check existence of libgfortran.a instead of
918         libgfortranbegin.a.
920 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
922         PR libgomp/40174
923         * team.c (gomp_thread_start): Destroy thr->release semaphore.
924         (gomp_free_pool_helper): Likewise.
926 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
927             Jakub Jelinek  <jakub@redhat.com>
929         PR fortran/35423
930         * testsuite/libgomp.fortran/workshare2.f90: New test.
932 2009-04-09  Nick Clifton  <nickc@redhat.com>
934         * iter.c: Change copyright header to refer to version 3 of the
935         GNU General Public License with version 3.1 of the GCC Runtime
936         Library Exception and to point readers at the COPYING3 and
937         COPYING3.RUNTIME files and the FSF's license web page.
938         * alloc.c: Likewise.
939         * barrier.c: Likewise.
940         * config/bsd/proc.c: Likewise.
941         * config/linux/affinity.c: Likewise.
942         * config/linux/alpha/futex.h: Likewise.
943         * config/linux/bar.c: Likewise.
944         * config/linux/bar.h: Likewise.
945         * config/linux/ia64/futex.h: Likewise.
946         * config/linux/ia64/mutex.h: Likewise.
947         * config/linux/lock.c: Likewise.
948         * config/linux/mips/futex.h: Likewise.
949         * config/linux/mutex.c: Likewise.
950         * config/linux/mutex.h: Likewise.
951         * config/linux/powerpc/futex.h: Likewise.
952         * config/linux/proc.c: Likewise.
953         * config/linux/ptrlock.c: Likewise.
954         * config/linux/ptrlock.h: Likewise.
955         * config/linux/s390/futex.h: Likewise.
956         * config/linux/sem.c: Likewise.
957         * config/linux/sem.h: Likewise.
958         * config/linux/sparc/futex.h: Likewise.
959         * config/linux/wait.h: Likewise.
960         * config/linux/x86/futex.h: Likewise.
961         * config/mingw32/proc.c: Likewise.
962         * config/mingw32/time.c: Likewise.
963         * config/posix/affinity.c: Likewise.
964         * config/posix/bar.c: Likewise.
965         * config/posix/bar.h: Likewise.
966         * config/posix/lock.c: Likewise.
967         * config/posix/mutex.h: Likewise.
968         * config/posix/proc.c: Likewise.
969         * config/posix/ptrlock.h: Likewise.
970         * config/posix/sem.c: Likewise.
971         * config/posix/sem.h: Likewise.
972         * config/posix/time.c: Likewise.
973         * config/posix95/lock.c: Likewise.
974         * critical.c: Likewise.
975         * env.c: Likewise.
976         * error.c: Likewise.
977         * fortran.c: Likewise.
978         * iter_ull.c: Likewise.
979         * libgomp.h: Likewise.
980         * libgomp_f.h.in: Likewise.
981         * libgomp_g.h: Likewise.
982         * loop.c: Likewise.
983         * loop_ull.c: Likewise.
984         * omp.h.in: Likewise.
985         * omp_lib.f90.in: Likewise.
986         * omp_lib.h.in: Likewise.
987         * ordered.c: Likewise.
988         * parallel.c: Likewise.
989         * sections.c: Likewise.
990         * single.c: Likewise.
991         * task.c: Likewise.
992         * team.c: Likewise.
993         * work.c: Likewise.
995 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
997         * testsuite/config/default.exp: Change copyright header to refer to
998         version 3 of the GNU General Public License and to point readers
999         at the COPYING3 file and the FSF's license web page.
1001 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1003         PR middle-end/39573
1004         * libgomp.c++/pr39573.C: New test.
1006 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1008         PR other/39591
1009         * testsuite/libgomp.c/pr39591-1.c: New test.
1010         * testsuite/libgomp.c/pr39591-2.c: New test.
1011         * testsuite/libgomp.c/pr39591-3.c: New test.
1013 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1015         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1016         * testsuite/libgomp.c/atomic-6.c: Ditto.
1018 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1020         PR c/39495
1021         * testsuite/libgomp.c/loop-12.c: New test.
1022         * testsuite/libgomp.c/loop-11.c: New test.
1023         * testsuite/libgomp.c++/loop-11.C: New test.
1024         * testsuite/libgomp.c++/loop-12.C: New test.
1025         * testsuite/libgomp.c++/for-8.C: New test.
1027 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1029         * configure: Regenerate.
1031 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1033         PR middle-end/39154
1034         * testsuite/libgomp.c/pr39154.c: New test.
1036 2009-01-30  Ian Lance Taylor  <iant@google.com>
1038         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1039         libgomp_ld_is_gold.  Get gold version number.
1040         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1041         * configure: Rebuild.
1043 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1045         * testsuite/lib/libgomp.exp: Add -B option for targets that
1046         use libgfortran.a%s in their specs.
1048 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1050         PR libgomp/38086
1051         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1052         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1053         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1054         * configure: Regenerated.
1055         * config.h.in: Likewise.
1057 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1059         PR c++/38650
1060         * testsuite/libgomp.c/pr38650.c: New test.
1061         * testsuite/libgomp.c++/pr38650.C: New test.
1063 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1065         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1067 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1069         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1071 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1073         * configure: Regenerate.
1075 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1077         PR middle-end/36802
1078         * testsuite/libgomp.c/pr36802-1.c: New test.
1079         * testsuite/libgomp.c/pr36802-2.c: New test.
1080         * testsuite/libgomp.c/pr36802-3.c: New test.
1082 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1084         PR libgomp/38270
1085         * config/linux/powerpc/mutex.h: New.
1087 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1089         PR c++/38257
1090         * testsuite/libgomp.c++/for-7.C: New test.
1092         PR c++/38348
1093         * testsuite/libgomp.c++/for-6.C: New test.
1095 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1097         PR testsuite/28870
1098         * testsuite/lib/libgomp.exp: Include new timeout library files.
1099         (libgomp_target_compile): Set timeout value from new proc.
1101 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1103         PR libgomp/37938
1104         * config/linux/ia64/mutex.h: New.
1106 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1108         PR libgomp/37935
1109         * libgomp.texi (Runtime library routines, environment variables):
1110         Update for OpenMP version 3.0.
1112 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1113             Steve Ellcey  <sje@cup.hp.com>
1115         * configure: Regenerate for new libtool.
1116         * Makefile.in: Ditto.
1117         * testsuite/Makefile.in: Ditto.
1119 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1120             Andreas Tobler  <a.tobler@schweiz.org>
1122         * config/bsd/proc.c: New file.
1123         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1124         * configure.ac: Check for header <sys/sysctl.h>
1125         * configure: Regenerate.
1126         * config.h.in: Likewise.
1128 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1130         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1132 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1134         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1135         * Makefile.in: Regenerated.
1136         * testsuite/Makefile.in: Regenerated.
1138 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1140         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1141         depend on blddir if blddir exists.
1142         (libgomp_target_compile): Likewise.
1143         * testsuite/libgomp.c++/c++.exp: Likewise.
1144         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1146 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1148         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1149         Do not list GPL as Invariant Section.
1151 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1152             Chao-ying Fu  <fu@mips.com>
1154         * configure.tgt: Enable futex for MIPS.
1155         * config/linux/mips/futex.h: New file.
1157 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1159         * team.c (gomp_team_end): Free team immediately if it has
1160         just one thread.
1162 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1164         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1165         * testsuite/libgomp.fortran/fortran.exp: Same.
1166         * testsuite/libgomp.c/c.exp: Same.
1167         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1168         directory to library path first.
1170 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1172         * env.c (parse_stacksize): Add cast to avoid warning.
1173         (parse_spincount): Likewise.
1175 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1177         * testsuite/libgomp.c/loop-10.c: New test.
1178         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1179         * libgomp.c++/loop-6.C (main): Likewise.
1181         PR debug/36617
1182         * testsuite/libgomp.c/debug-1.c: New test.
1184 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1186         * testsuite/libgomp.c/nqueens-1.c: New test.
1188         PR c++/36523
1189         * testsuite/libgomp.c++/task-7.C: New function.
1191 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1193         * configure: Regenerate.
1195 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1197         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1198         mutex when HAVE_SYNC_BUILTINS isn't defined.
1200 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1202         * libgomp.texi (omp_test_lock): Fix typo.
1204 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1206         * omp_lib.f90.in: Add "implicit none".
1208 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1210         PR middle-end/36506
1211         * testsuite/libgomp.c/reduction-5.c: New test.
1213 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1215         * libgomp.h (struct gomp_task): Add in_tied_task field.
1216         * task.c (gomp_init_task): Initialize it.
1217         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1218         unconditionally.  Don't call gomp_team_barrier_wake if
1219         current task is implicit or if(0) from implicit and number of
1220         running tasks is equal to nthreads - 1.
1222         PR libgomp/36471
1223         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1224         omp_get_team_size_8): Fix pastos.
1226         PR libgomp/36469
1227         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1228         * configure: Regenerated.
1229         * config.h.in: Regenerated.
1230         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1231         defined.
1233 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1235         PR bootstrap/36452
1236         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1237         (GOMP_loop_ull_dynamic_start): Likewise.
1238         (GOMP_loop_ull_guided_start): Likewise.
1239         (GOMP_loop_ull_ordered_static_start): Likewise.
1240         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1241         (GOMP_loop_ull_ordered_guided_start): Likewise.
1243 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1244             Richard Henderson  <rth@redhat.com>
1245             Ulrich Drepper  <drepper@redhat.com>
1246             Jakob Blomer  <jakob.blomer@ira.uka.de>
1248         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1249         Substitute also OMP_*LOCK_25*.
1250         * configure: Regenerated.
1251         * config.h.in: Regenerated.
1252         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1253         ptrlock.c and task.c.
1254         * Makefile.in: Regenerated.
1255         * testsuite/Makefile.in: Regenerated.
1256         * task.c: New file.
1257         * loop_ull.c: New file.
1258         * iter_ull.c: New file.
1259         * libgomp.h: Include ptrlock.h.
1260         (enum gomp_task_kind): New type.
1261         (struct gomp_team): Add task_lock, task_queue, task_count,
1262         task_running_count, single_count fields.  Add
1263         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1264         Remove work_share_lock, generation_mask,
1265         oldest_live_gen, num_live_gen and init_work_shares fields, add
1266         work work_share_list_alloc, work_share_list_free and work_share_chunk
1267         fields.  Change work_shares from pointer to pointers into an array.
1268         Change ordered_release field into gomp_sem_t ** from flexible array
1269         member.  Add implicit_task and initial_work_shares fields.
1270         Move close to the end of the struct.
1271         (struct gomp_team_state): Add single_count, last_work_share,
1272         active_level and level fields, remove work_share_generation.
1273         (gomp_barrier_handle_tasks): New prototype.
1274         (gomp_finish_task): New inline function.
1275         (struct gomp_work_share): Move chunk_size, end, incr into
1276         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1277         next_ll fields.  Reshuffle fields.  Add next_alloc,
1278         next_ws, next_free and inline_ordered_team_ids fields, change
1279         ordered_team_ids into pointer from flexible array member.
1280         Add mode field.  Put lock and next into a different cache line
1281         from most of the write-once fields.
1282         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1283         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1284         gomp_iter_ull_guided_next): New prototypes.
1285         (gomp_new_icv): New prototype.
1286         (struct gomp_thread): Add thread_pool and task fields.
1287         (struct gomp_thread_pool): New type.
1288         (gomp_new_team): New prototype.
1289         (gomp_team_start): Change type of last argument.
1290         (gomp_new_work_share): Removed.
1291         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1292         (gomp_work_share_init_done): New static inline.
1293         (gomp_throttled_spin_count_var, gomp_available_cpus,
1294         gomp_managed_threads): New extern decls.
1295         (gomp_init_task): New prototype.
1296         (gomp_spin_count_var): New extern var decl.
1297         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1298         or no alias support, or if not PIC.
1299         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1300         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1301         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1302         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1303         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1304         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1305         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1306         gomp_test_nest_lock_25): New prototypes.
1307         (omp_lock_symver, strong_alias): Define.
1308         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1309         decls.
1310         (gomp_end_task): New.
1311         (struct gomp_task_icv, gomp_global_icv): New.
1312         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1313         (struct gomp_task): New.
1314         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1315         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1316         (gomp_icv): New.
1317         (gomp_schedule_type): Reorder enum to match
1318         omp_sched_t.
1319         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1320         fields.
1321         (gomp_thread_start): Add gomp_team_barrier_wait call.
1322         For non-nested case remove clearing of docked thread thr fields.
1323         Use pool fields instead of global gomp_* variables.  Use
1324         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1325         Create tasks for each member thread.
1326         (free_team): Only destroy team barrier, task_lock here and free it.
1327         (gomp_free_thread): Free last_team if non-NULL.
1328         (gomp_team_end): Call gomp_team_barrier_wait instead of
1329         gomp_barrier_wait.  For nested case call one extra
1330         gomp_barrier_wait.  Move here some destruction from free_team.
1331         Call free_team on pool->last_team if any, rather than freeing
1332         current team.  Destroy work_share_list_free_lock ifndef
1333         HAVE_SYNC_BUILTINS.
1334         (gomp_new_icv): New function.
1335         (gomp_threads, gomp_threads_size, gomp_threads_used,
1336         gomp_threads_dock): Removed.
1337         (gomp_thread_destructor): New variable.
1338         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1339         functions.
1340         (gomp_team_start): Create new pool if current thread doesn't have
1341         one.  Use pool fields instead of global gomp_* variables.
1342         Initialize thread_pool field for new threads.  Clear single_count.
1343         Change last argument from ws to team, don't create
1344         new team, set ts.work_share to &team->work_shares[0] and clear
1345         ts.last_work_share.  Don't clear ts.work_share_generation.
1346         If number of threads changed, adjust atomically gomp_managed_threads.
1347         Use gomp_init_task instead of gomp_new_task,
1348         set thr->task to the corresponding implicit_task array entry.
1349         Create tasks for each member thread.  Initialize ts.level.
1350         (initialize_team): Call pthread_key_create on
1351         gomp_thread_destructor.
1352         (team_destructor): New function.
1353         (new_team): Removed.
1354         (gomp_new_team): New function.
1355         (free_team): Free gomp_work_share blocks chained through next_alloc,
1356         instead of freeing work_shares and destroying work_share_lock.
1357         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1358         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1359         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1360         of gomp_barrier_wait.
1361         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1362         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1363         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1364         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1365         of gomp_barrier_wait.
1366         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1367         gomp_work_share_init_done if gomp_work_share_start returned true.
1368         Don't unlock ws->lock.
1369         * work.c: Include stddef.h.
1370         (free_work_share): Use work_share_list_free_lock instead
1371         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1372         Call gomp_fini_work_share and then either free ws if orphaned, or
1373         put it into work_share_list_free list of the current team.
1374         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1375         functions.
1376         (gomp_work_share_start, gomp_work_share_end,
1377         gomp_work_share_end_nowait): Rewritten.
1378         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1379         (openmp_version): Set to 200805.
1380         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1381         omp_sched_guided, omp_sched_auto): New parameters.
1382         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1383         omp_set_max_active_levels, omp_get_max_active_levels,
1384         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1385         omp_get_active_level): New interfaces.
1386         * omp_lib.h.in (openmp_version): Set to 200805.
1387         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1388         omp_sched_guided, omp_sched_auto): New parameters.
1389         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1390         omp_set_max_active_levels, omp_get_max_active_levels,
1391         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1392         omp_get_active_level): New externals.
1393         * loop.c: Include limits.h.
1394         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1395         GFS_AUTO.
1396         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1397         Likewise.  Use gomp_icv.
1398         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1399         ts.static_trip here.
1400         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1401         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1402         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1403         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1404         don't unlock ws->lock, otherwise lock it.
1405         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1406         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1407         (gomp_parallel_loop_start): Call gomp_new_team instead of
1408         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1409         Adjust gomp_team_start caller.  Pass 0 as second argument to
1410         gomp_resolve_num_threads.
1411         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1412         If adding ws->chunk_size nthreads + 1 times after end won't
1413         overflow, set ws->mode to 1.
1414         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1415         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1416         GOMP_loop_ull_ordered_static_start,
1417         GOMP_loop_ull_ordered_dynamic_start,
1418         GOMP_loop_ull_ordered_guided_start,
1419         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1420         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1421         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1422         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1423         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1424         prototypes.
1425         * libgomp.map: Export lock routines also @@OMP_2.0.
1426         (GOMP_loop_ordered_dynamic_first,
1427         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1428         GOMP_loop_ordered_static_first): Remove.
1429         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1430         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1431         GOMP_loop_ull_ordered_dynamic_next,
1432         GOMP_loop_ull_ordered_dynamic_start,
1433         GOMP_loop_ull_ordered_guided_next,
1434         GOMP_loop_ull_ordered_guided_start,
1435         GOMP_loop_ull_ordered_runtime_next,
1436         GOMP_loop_ull_ordered_runtime_start,
1437         GOMP_loop_ull_ordered_static_next,
1438         GOMP_loop_ull_ordered_static_start,
1439         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1440         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1441         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1442         (omp_set_schedule, omp_get_schedule,
1443         omp_get_thread_limit, omp_set_max_active_levels,
1444         omp_get_max_active_levels, omp_get_level,
1445         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1446         omp_set_schedule_, omp_set_schedule_8_,
1447         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1448         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1449         omp_get_max_active_levels_, omp_get_level_,
1450         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1451         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1452         New exports @@OMP_3.0.
1453         * omp.h.in (omp_sched_t): New type.
1454         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1455         omp_set_max_active_levels, omp_get_max_active_levels,
1456         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1457         omp_get_active_level): New prototypes.
1458         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1459         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1460         gomp_thread_limit_var, gomp_remaining_threads_count,
1461         gomp_remaining_threads_lock): New variables.
1462         (parse_spincount): New function.
1463         (initialize_env): Call gomp_init_num_threads unconditionally.
1464         Initialize gomp_available_cpus.  Call parse_spincount,
1465         initialize gomp_{,throttled_}spin_count_var
1466         depending on presence and value of OMP_WAIT_POLICY and
1467         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1468         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1469         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1470         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1471         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1472         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1473         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1474         (gomp_global_icv): New.
1475         (parse_schedule): Use it.  Parse "auto".
1476         (omp_set_num_threads): Use gomp_icv.
1477         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1478         Likewise.
1479         (omp_get_max_threads): Move from parallel.c.
1480         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1481         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1482         add ialias.
1483         (parse_stacksize, parse_wait_policy): New functions.
1484         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1485         both wrappers for compatibility and new locks.
1486         (omp_set_schedule, omp_get_schedule,
1487         omp_get_thread_limit, omp_set_max_active_levels,
1488         omp_get_max_active_levels, omp_get_level,
1489         omp_get_ancestor_thread_num, omp_get_team_size,
1490         omp_get_active_level): New ialias_redirect.
1491         (omp_set_schedule_, omp_set_schedule_8_,
1492         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1493         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1494         omp_get_max_active_levels_, omp_get_level_,
1495         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1496         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1497         New functions.
1498         * parallel.c: Include limits.h.
1499         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1500         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1501         argument to gomp_team_start.  Pass 0 as second argument to
1502         gomp_resolve_num_threads.
1503         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1504         if gomp_thread_limit_var != ULONG_MAX.
1505         (omp_in_parallel): Implement using ts.active_level.
1506         (omp_get_max_threads): Move to env.c.
1507         (omp_get_level, omp_get_ancestor_thread_num,
1508         omp_get_team_size, omp_get_active_level): New functions,
1509         add ialias.
1510         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1511         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1512         gomp_iter_dynamic_next instead of the _locked variant and don't take
1513         lock around it, otherwise acquire it before calling
1514         gomp_iter_dynamic_next_locked.
1515         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1516         gomp_iter_dynamic_next instead of the _locked variant and don't take
1517         lock around it.
1518         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1519         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1520         Adjust gomp_team_start caller.  Pass count as second argument to
1521         gomp_resolve_num_threads, don't adjust num_threads after the call.
1522         Use gomp_icv.
1523         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1524         ws->chunk_size by incr.
1525         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1526         code.
1527         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1528         types.
1529         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1530         (omp_check_defines): Check even the compat defines.
1531         * config/linux/ptrlock.c: New file.
1532         * config/linux/ptrlock.h: New file.
1533         * config/linux/wait.h: New file.
1534         * config/posix/ptrlock.c: New file.
1535         * config/posix/ptrlock.h: New file.
1536         * config/linux/bar.h (gomp_team_barrier_wait,
1537         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1538         (gomp_team_barrier_set_task_pending,
1539         gomp_team_barrier_clear_task_pending,
1540         gomp_team_barrier_set_waiting_for_tasks,
1541         gomp_team_barrier_waiting_for_tasks,
1542         gomp_team_barrier_done): New inlines.
1543         (gomp_barrier_t): Rewritten.
1544         (gomp_barrier_state_t): New typedef.
1545         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1546         gomp_barrier_wait_start): Rewritten.
1547         (gomp_barrier_wait_end): Change second argument to
1548         gomp_barrier_state_t.
1549         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1550         inlines.
1551         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1552         futex.h.
1553         (gomp_barrier_wait_end): Rewritten.
1554         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1555         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1556         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1557         (gomp_barrier_state_t): New typedef.
1558         (gomp_team_barrier_wait,
1559         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1560         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1561         into the return value.  Return gomp_barrier_state_t.
1562         (gomp_team_barrier_set_task_pending,
1563         gomp_team_barrier_clear_task_pending,
1564         gomp_team_barrier_set_waiting_for_tasks,
1565         gomp_team_barrier_waiting_for_tasks,
1566         gomp_team_barrier_done): New inlines.
1567         (gomp_barrier_wait_end): Change second argument to
1568         gomp_barrier_state_t.
1569         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1570         inlines.
1571         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1572         (gomp_barrier_wait_end): Change second argument to
1573         gomp_barrier_state_t.
1574         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1575         gomp_team_barrier_wake): New functions.
1576         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1577         futex.h.
1578         (gomp_futex_wake, gomp_futex_wait): New variables.
1579         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1580         * config/linux/lock.c: Rewrite to make locks task owned,
1581         for backwards compatibility provide the old entrypoints
1582         if symbol versioning.  Include wait.h instead of libgomp.h and
1583         futex.h.
1584         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1585         * config/posix95/lock.c: Rewrite to make locks task owned,
1586         for backwards compatibility provide the old entrypoints
1587         if symbol versioning.
1588         * config/posix/lock.c: Rewrite to make locks task owned,
1589         for backwards compatibility provide the old entrypoints
1590         if symbol versioning.
1591         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1592         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1593         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1594         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1595         (sys_futex0): Return error code.
1596         (futex_wake, futex_wait): If ENOSYS was returned, clear
1597         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1598         (cpu_relax, atomic_write_barrier): New static inlines.
1599         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1600         (futex_wake, futex_wait): If ENOSYS was returned, clear
1601         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1602         (cpu_relax, atomic_write_barrier): New static inlines.
1603         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1604         (sys_futex0): Return error code.
1605         (futex_wake, futex_wait): If ENOSYS was returned, clear
1606         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1607         (cpu_relax, atomic_write_barrier): New static inlines.
1608         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1609         (sys_futex0): Return error code.
1610         (futex_wake, futex_wait): If ENOSYS was returned, clear
1611         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1612         (cpu_relax, atomic_write_barrier): New static inlines.
1613         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1614         (sys_futex0): Return error code.
1615         (futex_wake, futex_wait): If ENOSYS was returned, clear
1616         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1617         (cpu_relax, atomic_write_barrier): New static inlines.
1618         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1619         (sys_futex0): Return error code.
1620         (futex_wake, futex_wait): If ENOSYS was returned, clear
1621         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1622         (cpu_relax, atomic_write_barrier): New static inlines.
1623         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1624         futex.h.
1625         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1626         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1627         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1628         types.
1629         (omp_nest_lock_t): Change owner into void *, add lock field.
1630         * config/posix95/omp-lock.h: Include semaphore.h.
1631         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1632         (omp_lock_t): Use sem_t instead of mutex if semaphores
1633         aren't broken.
1634         (omp_nest_lock_t): Likewise.  Change owner to void *.
1635         * config/posix/omp-lock.h: Include semaphore.h.
1636         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1637         (omp_lock_t): Use sem_t instead of mutex if semaphores
1638         aren't broken.
1639         (omp_nest_lock_t): Likewise.  Add owner field.
1641 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1643         * testsuite/libgomp.c/collapse-1.c: New test.
1644         * testsuite/libgomp.c/collapse-2.c: New test.
1645         * testsuite/libgomp.c/collapse-3.c: New test.
1646         * testsuite/libgomp.c/icv-1.c: New test.
1647         * testsuite/libgomp.c/icv-2.c: New test.
1648         * testsuite/libgomp.c/lib-2.c: New test.
1649         * testsuite/libgomp.c/lock-1.c: New test.
1650         * testsuite/libgomp.c/lock-2.c: New test.
1651         * testsuite/libgomp.c/lock-3.c: New test.
1652         * testsuite/libgomp.c/loop-4.c: New test.
1653         * testsuite/libgomp.c/loop-5.c: New test.
1654         * testsuite/libgomp.c/loop-6.c: New test.
1655         * testsuite/libgomp.c/loop-7.c: New test.
1656         * testsuite/libgomp.c/loop-8.c: New test.
1657         * testsuite/libgomp.c/loop-9.c: New test.
1658         * testsuite/libgomp.c/nested-3.c: New test.
1659         * testsuite/libgomp.c/nestedfn-6.c: New test.
1660         * testsuite/libgomp.c/sort-1.c: New test.
1661         * testsuite/libgomp.c/task-1.c: New test.
1662         * testsuite/libgomp.c/task-2.c: New test.
1663         * testsuite/libgomp.c/task-3.c: New test.
1664         * testsuite/libgomp.c/task-4.c: New test.
1665         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1666         to C++ testsuite default compiler options.
1667         * testsuite/libgomp.c++/collapse-1.C: New test.
1668         * testsuite/libgomp.c++/collapse-2.C: New test.
1669         * testsuite/libgomp.c++/ctor-10.C: New test.
1670         * testsuite/libgomp.c++/for-1.C: New test.
1671         * testsuite/libgomp.c++/for-2.C: New test.
1672         * testsuite/libgomp.c++/for-3.C: New test.
1673         * testsuite/libgomp.c++/for-4.C: New test.
1674         * testsuite/libgomp.c++/for-5.C: New test.
1675         * testsuite/libgomp.c++/loop-8.C: New test.
1676         * testsuite/libgomp.c++/loop-9.C: New test.
1677         * testsuite/libgomp.c++/loop-10.C: New test.
1678         * testsuite/libgomp.c++/task-1.C: New test.
1679         * testsuite/libgomp.c++/task-2.C: New test.
1680         * testsuite/libgomp.c++/task-3.C: New test.
1681         * testsuite/libgomp.c++/task-4.C: New test.
1682         * testsuite/libgomp.c++/task-5.C: New test.
1683         * testsuite/libgomp.c++/task-6.C: New test.
1684         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1685         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1686         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1687         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1688         * testsuite/libgomp.fortran/collapse1.f90: New test.
1689         * testsuite/libgomp.fortran/collapse2.f90: New test.
1690         * testsuite/libgomp.fortran/collapse3.f90: New test.
1691         * testsuite/libgomp.fortran/collapse4.f90: New test.
1692         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1693         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1694         * testsuite/libgomp.fortran/lib4.f90: New test.
1695         * testsuite/libgomp.fortran/lock-1.f90: New test.
1696         * testsuite/libgomp.fortran/lock-2.f90: New test.
1697         * testsuite/libgomp.fortran/nested1.f90: New test.
1698         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1699         * testsuite/libgomp.fortran/strassen.f90: New test.
1700         * testsuite/libgomp.fortran/tabs1.f90: New test.
1701         * testsuite/libgomp.fortran/tabs2.f: New test.
1702         * testsuite/libgomp.fortran/task1.f90: New test.
1703         * testsuite/libgomp.fortran/task2.f90: New test.
1704         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1705         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1706         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1707         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1708         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1710 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1712         PR c++/36308
1713         * testsuite/libgomp.c++/ctor-11.C: New test.
1714         * testsuite/libgomp.c++/ctor-12.C: New test.
1716 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1718         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1720 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1722         PR middle-end/36106
1723         * testsuite/libgomp.c/atomic-5.c: New test.
1724         * testsuite/libgomp.c/atomic-6.c: New test.
1725         * testsuite/libgomp.c/autopar-1.c: New test.
1727 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1729         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1730         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1731         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1732         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1733         * configure: Regenerate.
1734         * Makefile.in, testsuite/Makefile.in: Likewise.
1736 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1738         PR bootstrap/35457
1739         * aclocal.m4: Regenerate.
1740         * configure: Regenerate.
1742 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1744         PR middle-end/35611
1745         * testsuite/libgomp.c/atomic-4.c: New test.
1747         PR libgomp/35625
1748         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1749         (gomp_iter_guided_next): Likewise.
1750         * testsuite/libgomp.c/pr35625.c: New test.
1752 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1754         * aclocal.m4: Regenerate.
1755         * configure: Likewise.
1756         * Makefile.in: Likewise.
1757         * testsuite/Makefile.in: Likewise.
1759 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1761         PR middle-end/35185
1762         * testsuite/libgomp.c++/pr35185.C: New test.
1764 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1766         PR middle-end/35549
1767         * testsuite/libgomp.c/pr35549.c: New test.
1769 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1771         * testsuite/libgomp.c/atomic-3.c: New test.
1773 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1775         PR fortran/33197
1776         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1777         .F08 file suffixes.
1779 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1781         PR libgomp/33131
1782         * configure.ac: Add ACX_HEADER_STRING.
1783         * env.c: Include strings.h.
1784         * aclocal.m4: Regenerate.
1785         * config.h.in: Regenerate.
1786         * configure: Regenerate.
1787         * Makefile.in: Regenerate.
1788         * testsuite/Makefile.in: Regenerate.
1790 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1792         PR middle-end/35196
1793         * testsuite/libgomp.c/pr35196.c: New test.
1795         PR middle-end/35130
1796         * testsuite/libgomp.fortran/pr35130.f90: New test.
1797         * testsuite/libgomp.c/pr35130.c: New test.
1799 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1801         PR middle-end/33880
1802         * testsuite/libgomp.c/pr33880.c: New test.
1803         * testsuite/libgomp.fortran/pr33880.f90: New test.
1805 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1807         * configure: Regenerate.
1809 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1811         * configure.ac: Move futex checking into ../config/futex.m4.
1812         * configure: Rebuilt.
1813         * aclocal.m4: Rebuilt.
1814         * Makefile.in: Rebuilt.
1816         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1817         2007-10-15 ../config/tls.m4 change.
1819 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1821         PR c++/34513
1822         * testsuite/libgomp.c/pr34513.c: New test.
1823         * testsuite/libgomp.c++/pr34513.C: New test.
1825 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1827         PR target/32765
1828         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1830 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1832         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1834 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1836         * testsuite/libgomp.c/private-1.c: New test.
1838 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1839             Paolo Bonzini  <bonzini@gnu.org>
1841         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1842         instead of 'VPATH ='.
1843         * Makefile.in: Regenerate.
1845 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1847         * configure.ac: Adjust makeinfo version check.
1848         * configure: Regenerate.
1850 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1852         PR fortran/34020
1853         * testsuite/libgomp.fortran/pr34020.f90: New test.
1855 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1857         PR c++/33894
1858         * testsuite/libgomp.c++/atomic-1.C: New test.
1860 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1862         PR libgomp/33275
1863         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1864         Make x and y integers rather than (implicit) reals.  Add private (j)
1865         clause to the last omp parallel.
1867 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1869         * configure: Regenerate following changes to ../config/tls.m4.
1871 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1873         * testsuite/libgomp.fortran/stack.f90: New test.
1875 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1877         * config/mingw32/proc.c: New file.
1879 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1881         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1882         (main): Use __get_cpuid to get i386 target fetaures.
1883         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1884         (main): Use __get_cpuid to get x86_64 target fetaures.
1886 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1888         PR target/32765
1889         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1890         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1892 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1894         PR fortran/32550
1895         * testsuite/libgomp.fortran/pr32550.f90: New test.
1896         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1898 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1900         * aclocal.m4: Regenerated.
1902 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1904         PR fortran/32359
1905         * testsuite/libgomp.fortran/pr32359.f90: New.
1907 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1909         PR libgomp/32468
1910         * sections.c (GOMP_parallel_sections_start): Only decrease
1911         number of threads to COUNT if dyn_var is true.
1912         * testsuite/libgomp.c/pr32468.c: New test.
1914 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1916         PR libgomp/26308
1917         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1919 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1921         PR middle-end/32362
1922         * testsuite/libgomp.c/pr32362-1.c: New test.
1923         * testsuite/libgomp.c/pr32362-2.c: New test.
1924         * testsuite/libgomp.c/pr32362-3.c: New test.
1926 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1928         * team.c (gomp_team_start): Fix setting up thread_attr
1929         stack size.
1931 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1933         * configure: Regenerate.
1935 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1937         * Makefile.in: Regenerate.
1938         * configure: Regenerate.
1939         * aclocal.m4: Regenerate.
1940         * testsuite/Makefile.in: Regenerate.
1942 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1944         * config/linux/proc.c: New file.
1946         PR libgomp/28482
1947         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1949 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1951         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1953 2007-04-16  Matthias Klose  <doko@debian.org>
1955         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1956         flags if not building with -m64.
1957         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1958         flag for i?86-*-* targets, if current target matches -m64.
1960 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1962         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1963         * Makefile.in: Regenerate.
1965 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1967         PR testsuite/31369
1968         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1969         ld_library_path.
1970         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1972 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1974         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1975         decls.
1976         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1977         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1978         (parse_affinity): New function.
1979         (initialize_env): Call it and gomp_init_affinity.
1980         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1981         create new pthread_attr_t and call gomp_init_thread_affinity
1982         on it for each thread before passing the attribute to pthread_create.
1983         * config/linux/affinity.c: New file.
1984         * config/posix/affinity.c: New file.
1985         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1986         * configure: Rebuilt.
1987         * config.h.in: Rebuilt.
1988         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1989         * Makefile.in: Rebuilt.
1991 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1993         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1994         *-*-darwin*.
1995         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1996         and use it if found.
1998 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2000         * testsuite/config/default.exp: New file.
2001         * testsuite/lib/libgomp.exp: New file.
2002         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2003         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2004         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2005         (libgomp_load): Remove.
2006         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2007         always_ld_library_path, not ld_library_path.  Set additional_flags
2008         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2009         (target_compile): Do not call libgomp_init.  Append lang_library_path
2010         and lang_link_flags to options.
2011         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2012         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2013         here.
2014         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2015         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2016         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2017         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2018         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2019         CX8 flag.
2020         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2021         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2022         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2023         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2024         * testsuite/libgomp.c/atomic-10.c: Ditto.
2026 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2028         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2029         dg-final cleanup-modules line.
2030         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2031         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2032         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2033         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2034         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2035         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2036         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2038 2007-03-18  Andreas Schwab  <schwab@suse.de>
2040         * acinclude.m4: Adjust regular expression for ld version
2041         extraction.
2042         * configure: Regenerate.
2044 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2046         * Makefile.am: Add install-pdf target as copied from
2047         automake v1.10 rules.
2048         * Makefile.in: Regenerate
2050 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2052         PR libgomp/28486
2053         * configure: Regenerate.
2055         PR c++/30703
2056         * testsuite/libgomp.c++/pr30703.C: New test.
2058 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2060         Revert:
2061         2006-07-05  Eric Christopher  <echristo@apple.com>
2062         * configure.ac: Depend addition of -pthread on host OS.
2063         * configure: Regenerate.
2065 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2067         * libgomp.texi: Fix spacing after abbreviations.
2069 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2071         PR libgomp/30546
2072         * configure.ac: Add check for makeinfo
2073         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2074         if an appropiate version of makeinfo is found.
2075         * aclocal.m4: Regenerated.
2076         * configure: Regenerated.
2077         * Makefile.in: Regenerated.
2078         * testsuite/Makefile.in: Regenerated.
2080 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2082         PR libgomp/30540
2083         * libgomp.texi: More about implementation-dependent settings.
2085 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2087         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2089 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2091         PR middle-end/30494
2092         * testsuite/libgomp.c/pr30494.c: New test.
2094 2007-01-15  Tom Tromey  <tromey@redhat.com>
2096         * configure: Rebuilt.
2097         * configure.ac: Fixed comment.
2099 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2101         * libgomp.texi: Document implementation specific default values of
2102         environment variables.
2104 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2106         PR libgomp/28209
2107         * libgomp.texi: New file.
2108         * configure.ac: Add --enable-generated-files-in-srcdir option.
2109         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2110         files to srcdir.
2111         * Makefile.in: Regenerated.
2112         * config.h.in: Regenerated.
2113         * testsuite/Makefile.in: Regenerated.
2114         * NOTES: Removed.
2116 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2118         PR libgomp/29949
2119         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2121 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2123         * configure: Regenerate.
2125 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2127         PR libgomp/29947
2128         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2129         start if there shouldn't be any loop iterations.
2130         (gomp_loop_ordered_static_start): Remove start == end test.
2131         * testsuite/libgomp.c/pr29947-1.c: New test.
2132         * testsuite/libgomp.c/pr29947-2.c: New test.
2134 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2136         * configure.tgt: Force initial-exec TLS model on Linux only.
2138 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2140         * configure: Regenerated.
2142 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2144         * env.c (parse_schedule): Reject out of range values.
2145         (parse_unsigned_long): Reject out of range, negative or zero values.
2147 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2149         PR fortran/29629
2150         * testsuite/libgomp.fortran/pr29629.f90: New test.
2152 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2154         PR libgomp/29494
2155         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2156         * config/posix95: New directory.
2157         * config/posix95/omp-lock.h: New file.
2158         * config/posix95/lock.c: Likewise.
2160 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2162         * aclocal.m4: Regenerate.
2163         * configure: Regenerate.
2165 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2167         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2168         '<' to '<='.
2170 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2172         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2173         test.
2174         * configure: Regenerate.
2175         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2177 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2179         PR middle-end/25261
2180         PR middle-end/28790
2181         * testsuite/libgomp.c/nestedfn-4.c: New test.
2182         * testsuite/libgomp.c/nestedfn-5.c: New test.
2183         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2185         PR fortran/29097
2186         * testsuite/libgomp.fortran/condinc1.f: New test.
2187         * testsuite/libgomp.fortran/condinc2.f: New test.
2188         * testsuite/libgomp.fortran/condinc3.f90: New test.
2189         * testsuite/libgomp.fortran/condinc4.f90: New test.
2190         * testsuite/libgomp.fortran/condinc1.inc: New file.
2192 2006-09-18  Tom Tromey  <tromey@redhat.com>
2194         * configure: Rebuilt.
2196 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2198         PR c/28768
2199         PR preprocessor/14634
2200         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2201         to AC_DEFINE.
2202         * configure: Regenerate.
2204 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2206         * testsuite/libgomp.fortran/reduction3.f90: Change
2207         -2147483648 to -huge(i)-1 to avoid overflow.
2208         * testsuite/libgomp.fortran/reduction4.f90: Change
2209         Z'ffffffff' to not(0) to avoid overflow.
2211 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2213         PR libgomp/25938
2214         * Makefile.am (libsubincludedir): New.
2215         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2216         * Makefile.in: Regenerate.
2218 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2220         PR libgomp/28725
2221         * env.c: Include ctype.h.
2222         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2223         leading and/or trailing whitespace and compare strings case
2224         insensitively.
2226 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2228         PR fortran/28390
2229         * testsuite/libgomp.fortran/pr28390.f: New test.
2231 2006-07-05  Eric Christopher  <echristo@apple.com>
2233         * configure.ac: Depend addition of -pthread on host OS.
2234         * configure: Regenerate.
2236 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2238         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2239         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2240         defined.
2242 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2244         PR libgomp/26175
2245         PR libgomp/26477
2246         * configure.ac: If neither --enable-linux-futex nor
2247         --disable-linux-futex is passed, determine the default by checking
2248         for compiling and/or running against NPTL.  With --enable-linux-futex,
2249         check if SYS_gettid and SYS_futex are defined.
2250         * configure: Rebuilt.
2252 2006-06-14  Richard Henderson  <rth@redhat.com>
2254         PR libgomp/28008
2255         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2256         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2258 2006-06-09  Richard Henderson  <rth@redhat.com>
2260         * env.c (gomp_nthreads_var): Change to unsigned long.
2261         (gomp_run_sched_chunk): Likewise.
2262         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2263         (initialize_env): Initialize gomp_thread_attr.
2264         * libgomp.h (gomp_nthreads_var): Update decl.
2265         (gomp_run_sched_chunk): Likewise.
2266         (gomp_thread_attr): Declare.
2267         * team.c (gomp_thread_attr): Export.
2268         (initialize_team): Don't initialize it.
2270 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2272         PR fortran/27916
2273         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2274         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2276 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2278         * config/mingw32/time.c: New file.
2279         * configure.tgt: Use it.
2281 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2283         * Makefile.am: Add install-html target. Add install-html to .PHONY
2284         * Makefile.in: Regenerate.
2286 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2288         PR libgomp/27612
2289         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2290         * testsuite/libgomp.c/critical-1.c: Likewise.
2291         * testsuite/libgomp.c/loop-1.c: Likewise.
2292         * testsuite/libgomp.c/loop-2.c: Likewise.
2293         * testsuite/libgomp.c/single-1.c: Likewise.
2294         * testsuite/libgomp.c/ordered-1.c: Likewise.
2295         * testsuite/libgomp.c/ordered-2.c: Likewise.
2297 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2299         PR middle-end/27416
2300         * libgomp.fortran/pr27416-1.f90: New test.
2302 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2304         PR fortran/27395
2305         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2306         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2308 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2310         PR c++/26943
2311         * testsuite/libgomp.c/pr26943-1.c: New test.
2312         * testsuite/libgomp.c/pr26943-2.c: New test.
2313         * testsuite/libgomp.c/pr26943-3.c: New test.
2314         * testsuite/libgomp.c/pr26943-4.c: New test.
2315         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2316         * testsuite/libgomp.c++/pr26943.C: New test.
2318 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2320         PR middle-end/27337
2321         * testsuite/libgomp.c++/pr27337.C: New test.
2323 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2325         PR c/26171
2326         * testsuite/libgomp.c/pr26171.c: New test.
2328 2006-04-25  Richard Henderson  <rth@redhat.com>
2330         PR libgomp/25865
2331         * configure.ac: Use GCC_CHECK_TLS.
2332         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2333         * Makefile.in, aclocal.m4, configure: Regenerate.
2335 2006-04-10  Matthias Klose  <doko@debian.org>
2337         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2338         directory names containing underscores.
2340 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2342         PR c++/26691
2343         * testsuite/libgomp.c++/pr26691.C: New test.
2345 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2347         * testsuite/libgomp.fortran/retval2.f90: New test.
2349 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2351         * testsuite/libgomp.c++: New directory.
2353 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2355         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2356         * config/posix/sem.c: Implement the above.
2358 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2360         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2361         define HAVE_BROKEN_POSIX_SEMAPHORES.
2362         * configure: Rebuilt.
2363         * config.h.in: Rebuilt.
2365 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2367         PR bootstrap/26161
2368         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2369         for the other pthread check.
2370         * configure: Regenerate.
2371         * config.h.in: Regenerate.
2373 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2375         PR libgomp/25938
2376         PR libgomp/25984
2377         * Makefile.am (fincludedir): New variable.
2378         (nodist_include_HEADERS): Remove Fortran files.
2379         (nodist_finclude_HEADERS): New variable.
2380         * Makefile.in: Regenerated.
2382 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2384         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2385         Remove tests for returning assumed character length arrays.
2387 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2388             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2390         PR libgomp/25936
2391         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2393 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2395         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2397 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2399         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2400         part of LD_LIBRARY_PATH manually.
2402 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2404         PR libgomp/25852
2405         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2406         libgomp_init.
2408 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2410         PR libgomp/25884
2411         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2412         * configure.ac (PERL): Don't set.
2413         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2414         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2415         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2416         * omp.h.in: Wrap the new configure substitutions with @ characters.
2417         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2418         * aclocal.m4, configure, Makefile.in: Regenerate.
2419         * mkomp_h.pl: Delete.
2421 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2423         PR libgomp/25259
2424         * configure.ac: Use GCC_HEADER_STDINT.
2425         * libgomp.h: Include gstdint.h.
2426         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2427         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2429 2006-01-24  Richard Henderson  <rth@redhat.com>
2431         PR libgomp/25942
2432         * configure.ac: Add AM_MAINTAINER_MODE.
2433         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2435 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2437         * Makefile.in: Regenerate.
2438         * testsuite/Makefile.in: Regenerate.
2439         * aclocal.m4: Regenerate.
2441 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2443         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2444         Solaris.
2445         * configure.ac: Add check for loadavg.h.
2446         (link_gomp): Adjust comment.
2447         * configure: Regenerate.
2448         * config.h.in: Regenerate.
2450 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2452         PR libgomp/25877
2453         * configure.ac: Remove check for alloca.h.
2454         * configure: Regenerate.
2455         * config.h.in: Regenerate.
2456         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2457         * team.c: Remove use of alloca.h.
2458         Call gomp_alloca instead of alloca.
2460 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2462         PR libgomp/25877
2463         * team.c: Add include of alloca.h.
2464         * configure.ac: Add check for alloca.h.
2465         * configure: Regenerate.
2466         * config.h.in: Regenerate.
2468 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2470         PR fortran/25219
2471         * testsuite/libgomp.fortran/pr25219.f90: New test.
2473 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2475         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2476         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2477         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2478         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2479         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2480         testsuite/libgomp.fortran/threadprivate1.f90,
2481         testsuite/libgomp.fortran/threadprivate2.f90,
2482         testsuite/libgomp.fortran/threadprivate3.f90,
2483         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2484         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2485         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2486         effective-target to TLS runtime.
2488         * testsuite/libgomp.fortran/pr25162.f: Require
2489         effective-target TLS runtime.
2491 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2493         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2494         * testsuite/libgomp.c/nestedfn-3.c: New test.
2496 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2498         PR fortran/25162
2499         * testsuite/libgomp.fortran/pr25162.f: New test.
2501 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2503         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2504         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2506 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2508         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2509         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2510         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2511         single.c, team.c, work.c, config/linux/alpha/futex.h,
2512         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2513         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2514         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2515         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2516         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2517         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2518         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2519         FSF address.
2521 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2523         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2524         to nodist_noinst_HEADERS.
2525         * Makefile.in: Rebuilt.
2527         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2528         add integer count field.
2529         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2530         omp_nest_lock_t type change.
2531         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2532         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2533         Increment count.
2534         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2535         Decrement count.
2536         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2537         Increment count if successful and return the new nesting level.
2538         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2539         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2540         * testsuite/libgomp.c/lib-1.c: New test.
2541         * testsuite/libgomp.fortran/lib1.f90: New test.
2542         * testsuite/libgomp.fortran/lib2.f: New test.
2543         * testsuite/libgomp.fortran/lib3.f: New test.
2545 2005-11-17  Richard Henderson  <rth@redhat.com>
2547         PR 24845
2548         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2549         * configure.ac (link_gomp): New.  Substitute it.
2550         (AC_CONFIG_FILES): Add libgomp.spec.
2551         * libgomp.spec.in: New file.
2552         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2553         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2555 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2557         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2558         reduction(-:var) behaving the same as reduction(+:var).
2559         * testsuite/libgomp.c/reduction-4.c: New test.
2561 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2563         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2564         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2565         testsuite/libgomp.c/copyin-3.c,
2566         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2567         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2568         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2569         testsuite/libgomp.c++/pr24455.C,
2570         testsuite/libgomp.fortran/threadprivate1.f90,
2571         testsuite/libgomp.fortran/threadprivate2.f90,
2572         testsuite/libgomp.fortran/threadprivate3.f90,
2573         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2574         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2575         testsuite/libgomp.fortran/omp_parse3.f90: Require
2576         effective-target TLS.
2578 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2580         * HEADER: Remove.
2582 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2584         PR libgomp/24797
2585         * team.c (initialize_team): Pass NULL rather than free as
2586         pthread_key_create destructor.  Initialize thread specific data
2587         pointer in initial thread to a static local variable rather than
2588         malloced memory.
2590 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2592         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2593         its location to ld_library_path.
2595 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2597         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2599 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2601         * testsuite/libgomp.c: Rename from libgomp.dg.
2603 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2605         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2606         threadprivate variable 'i'.
2608 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2610         * config/linux/s390/futex.h: New file.
2611         * configure.tgt: Use it.
2613         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2614         before the parallel.
2616 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2618         PR c++/24734
2619         * testsuite/libgomp.c++/master-1.C: New test.
2621 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2623         * testsuite/libgomp.dg/copyin-3.c: New test.
2625 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2627         * testsuite/libgomp.fortran/retval1.f90: New test.
2628         * testsuite/libgomp.fortran/vla7.f90: New test.
2630 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2632         * testsuite/libgomp.fortran/vla2.f90: New test.
2633         * testsuite/libgomp.fortran/vla3.f90: New test.
2634         * testsuite/libgomp.fortran/vla4.f90: New test.
2635         * testsuite/libgomp.fortran/vla5.f90: New test.
2636         * testsuite/libgomp.fortran/vla6.f90: New test.
2638 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2640         * config/linux/sparc/futex.h: New file.
2641         * configure.tgt: Use it.
2642         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2644         * critical.c: Include stdlib.h.
2645         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2646         ignoring return value.
2647         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2648         LIBGOMP_CHECK_SYNC_BUILTINS check.
2649         * configure: Rebuilt.
2651 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2653         * testsuite/libgomp.fortran/vla1.f90: New test.
2655 2005-10-31  Richard Henderson  <rth@redhat.com>
2657         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2658         setting 's' in different threads.
2660 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2662         * libgomp.h (attribute_hidden, ialias): Define.
2663         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2664         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2665         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2666         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2667         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2668         omp_test_lock, omp_test_nest_lock): Likewise.
2669         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2670         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2671         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2672         omp_test_lock, omp_test_nest_lock): Likewise.
2673         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2674         omp_get_dynamic, omp_get_nested): Likewise.
2675         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2676         omp_get_thread_num, omp_in_parallel): Likewise.
2677         * fortran.c (ialias_redirect): Define.
2678         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2679         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2680         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2681         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2682         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2683         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2684         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2685         omp_get_wtime): Add ialias_redirect.
2687 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2689         * fortran.c: Include stdlib.h.
2691 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2693         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2694         * Makefile.in: Regenerated.
2696 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2698         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2699         * libgomp_f.h.in (omp_check_defines): New function.
2700         * env.c: Include libgomp_f.h.
2701         (initialize_env): Call omp_check_defines.
2703         * testsuite/libgomp.dg/copyin-2.c: New test.
2704         * testsuite/libgomp.c++/copyin-2.C: New test.
2705         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2707         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2708         * testsuite/libgomp.fortran/sharing2.f90: New test.
2710         * testsuite/libgomp.dg/copyin-1.c: New test.
2711         * testsuite/libgomp.c++/copyin-1.C: New test.
2713 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2715         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2717         * testsuite/libgomp.fortran/workshare1.f90: New test.
2719         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2720         only test.
2721         * libgomp.fortran/sharing1.f90: New test.
2723 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2725         PR c++/24502
2726         * testsuite/libgomp.c++/loop-7.C: New test.
2728         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2730         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2731         * testsuite/libgomp.fortran/reduction6.f90: New test.
2732         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2734 2005-10-23  Richard Henderson  <rth@redhat.com>
2736         * testsuite/libgomp.c++/ctor-1.C: New.
2737         * testsuite/libgomp.c++/ctor-2.C: New.
2738         * testsuite/libgomp.c++/ctor-3.C: New.
2739         * testsuite/libgomp.c++/ctor-4.C: New.
2740         * testsuite/libgomp.c++/ctor-5.C: New.
2741         * testsuite/libgomp.c++/ctor-6.C: New.
2742         * testsuite/libgomp.c++/ctor-7.C: New.
2743         * testsuite/libgomp.c++/ctor-8.C: New.
2744         * testsuite/libgomp.c++/ctor-9.C: New.
2746 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2748         PR 24455
2749         * testsuite/libgomp.c++/pr24455-1.C: New test.
2750         * testsuite/libgomp.c++/pr24455.C: New test.
2751         * testsuite/libgomp.dg/pr24455-1.c: New test.
2752         * testsuite/libgomp.dg/pr24455.c: New test.
2754 2005-10-20  Richard Henderson  <rth@redhat.com>
2756         * testsuite/libgomp.c++/loop-6.C: New.
2757         * testsuite/libgomp.dg/loop-3.c: New.
2759 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2761         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2762         explicitly private.
2763         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2764         explicitly shared.
2766 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2768         * testsuite/libgomp.fortran/jacobi.f: New test.
2770 2005-10-19  Richard Henderson  <rth@redhat.com>
2772         * configure.tgt (i?86-linux): Default to with_arch instead of
2773         CFLAGS.  Add -mtune to match target_cpu.
2774         (x86_64-linux): Tune to i686.
2776         * fortran.c (omp_test_nest_lock_): Fix typo.
2778 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2780         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2781         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2782         * testsuite/libgomp.dg/ordered-3.c: New test.
2784         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2785         Remove volatile keyword.
2787         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2788         in COMMON block to avoid warnings on 64-bit targets.
2790 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2792         * testsuite/libgomp.dg/shared-3.c: New test.
2794 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2796         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2797         * testsuite/libgomp.fortran/reduction5.f90: New test.
2799 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2801         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2802         dg-options.
2803         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2804         flush loop now that __sync_synchronize has proper memory barrier.
2805         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2806         Add -ffixed-form to dg-options.
2808 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2810         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2811         from subdirectories.
2812         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2813         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2814         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2815         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2816         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2817         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2818         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2819         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2820         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2821         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2822         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2823         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2824         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2825         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2826         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2827         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2828         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2829         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2830         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2831         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2832         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2833         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2834         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2835         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2836         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2838 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2840         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2841         lang_library_path exists.  Use find instead of glob to gather tests.
2842         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2844 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2846         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2847         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2848         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2849         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2850         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2851         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2852         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2853         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2854         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2855         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2856         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2857         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2858         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2860 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2862         * testsuite/libgomp.dg/vla-1.c: New test.
2864         * testsuite/libgomp.fortran/reference2.f90: New test.
2866         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2867         declaration of omp_get_thread_num.
2868         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2869         use omp_lib.
2871         * testsuite/libgomp.fortran/reduction1.f90: New test.
2872         * testsuite/libgomp.fortran/reduction2.f90: New test.
2873         * testsuite/libgomp.fortran/reduction3.f90: New test.
2874         * testsuite/libgomp.fortran/reduction4.f90: New test.
2876 2005-10-13  Richard Henderson  <rth@redhat.com>
2878         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2879         * Makefile.in: Regenerate.
2880         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2881         * libgomp.h: Include bar.h.
2882         (struct gomp_barrier): Remove.
2883         (struct gomp_team): Add barrier.  Replace master_barrier with
2884         master_release.  Replace threads with ordered_release.
2885         (struct gomp_thread): Replace barrier with release.
2886         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2887         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2888         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2889         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2890         (GOMP_single_copy_end): Likewise.
2891         * team.c (gomp_threads_dock): New.
2892         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2893         (gomp_thread_start): Use gomp_barrier_wait.
2894         (new_team, free_team): Update for gomp_team changes.
2895         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2896         (gomp_team_end): Use gomp_barrier_wait.
2897         (initialize_team): Update for gomp_thread changes.
2898         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2899         (gomp_work_share_end_nowait): Use atomic ops when available.
2900         * config/linux/bar.c, config/linux/bar.h: New files.
2901         * config/posix/bar.c, config/posix/bar.h: New files.
2903 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2905         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2906         * testsuite/libgomp.dg/single-2.c: New test.
2908         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2909         lang_link_flags): Unset, so that they aren't inherited from previously
2910         sourced *.exp.
2912         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2914 2005-10-12  Richard Henderson  <rth@redhat.com>
2916         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2917         (libgomp_init): Use lang_test_file, lang_library_path, and
2918         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2920         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2921         (lang_test_file, lang_link_flags): New.
2922         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2924         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2925         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2926         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2927         testsuite/libgomp.c++/parallel-1.C,
2928         testsuite/libgomp.c++/reduction-1.C,
2929         testsuite/libgomp.c++/reduction-2.C,
2930         testsuite/libgomp.c++/reduction-3.C,
2931         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2932         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2933         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2934         New files, largely cribbed from the C testsuite.
2936 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2938         * testsuite/libgomp.fortran/character1.f90: New test.
2939         * testsuite/libgomp.fortran/character2.f90: New test.
2941         * testsuite/libgomp.dg/nested-1.c: New test.
2942         * testsuite/libgomp.dg/nested-2.c: New test.
2943         * testsuite/libgomp.fortran/do1.f90: New test.
2944         * testsuite/libgomp.fortran/do2.f90: New test.
2946         * testsuite/libgomp.fortran/reference1.f90: New test.
2948 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2950         * testsuite/libgomp.dg/reduction-1.c: New test.
2951         * testsuite/libgomp.dg/reduction-2.c: New test.
2952         * testsuite/libgomp.dg/reduction-3.c: New test.
2954 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2956         * testsuite/libgomp.dg/atomic-1.c: New test.
2957         * testsuite/libgomp.dg/atomic-2.c: New test.
2959 2005-10-09  Richard Henderson  <rth@redhat.com>
2961         * critical.c (atomic_lock): New.
2962         (initialize_critical): Initialize it.
2963         (GOMP_atomic_start, GOMP_atomic_end): New.
2964         * libgomp.map: Export them.
2965         * libgomp_g.h: Declare them.
2967         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2969 2005-10-02  Richard Henderson  <rth@redhat.com>
2971         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2972         to XCFLAGS instead of CFLAGS.
2974 2005-09-30  Richard Henderson  <rth@redhat.com>
2976         * configure.ac: Determine whether -pthread or -lpthread is needed.
2977         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2978         * Makefine.in, configure: Rebuild.
2980 2005-09-28  Richard Henderson  <rth@redhat.com>
2982         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2983         * testsuite/libgomp.dg/omp-single-3.c: New test.
2985 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2987         * testsuite/libgomp.dg/omp-single-2.c: New test.
2988         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2990 2005-09-27  Richard Henderson  <rth@redhat.com>
2992         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2993         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2995 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2997         * testsuite/libgomp.dg/omp-loop03.c: New test.
2999 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3001         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3003 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3005         * testsuite/libgomp.dg/omp-single-1.c: New test.
3006         * testsuite/libgomp.dg/shared-1.c: Return 0.
3007         Add prototype for abort.
3008         * testsuite/libgomp.dg/shared-2.c: Likewise.
3010 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3012         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3013         constructs.
3015 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3017         * testsuite/libgomp.dg/shared-1.c: New test.
3018         * testsuite/libgomp.dg/shared-2.c: New test.
3020 2005-09-24  Richard Henderson  <rth@redhat.com>
3022         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3024 2005-09-24  Richard Henderson  <rth@redhat.com>
3026         * iter.c (gomp_iter_static_next): Round up when computing number
3027         of iterations.  Don't bother distributing a remainder equally.
3029         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3030         Don't call srand.  Zero b before testing.
3031         (main): New.
3033 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3035         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3036         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3038 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3040         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3041         without !$omp end do, followed immediately by subroutine end.
3043 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3045         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3047 2005-09-22  Richard Henderson  <rth@redhat.com>
3049         * critical.c (GOMP_critical_name_start): Change argument to void**.
3050         Reuse the pointer space if the mutex fits.
3051         (GOMP_critical_name_end): Likewise.
3052         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3053         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3054         (GOMP_critical_name_end): Likewise.
3055         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3056         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3058 2005-09-20  Richard Henderson  <rth@redhat.com>
3060         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3061         (create_lock_lock): New.
3062         (initialize_critical): Initialize it.
3063         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3064         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3066 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3068         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3070 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3072         * testsuite/libgomp.dg/omp-loop01.c: New test.
3073         * testsuite/libgomp.dg/omp-loop02.c: New test.
3075 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3077         * configure.ac (AC_PROG_FC): Add.
3078         (USE_FORTRAN): New automake conditional.
3079         * configure: Rebuilt.
3080         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3081         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3082         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3083         Add rules to build them.
3084         * Makefile.in: Rebuilt.
3085         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3086         OMP_NEST_LOCK_KIND.
3087         * libgomp.map: Add Fortran wrappers.
3088         * libgomp_f.h.in: New file.
3089         * omp_lib.h.in: New file.
3090         * omp_lib.f90.in: New file.
3091         * fortran.c: New file.
3092         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3093         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3094         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3095         libgfortran has been built.
3096         * testsuite/libgomp.fortran/fortran.exp: New file.
3097         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3098         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3099         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3100         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3101         * testsuite/libgomp.fortran/omp_hello.f: New test.
3102         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3103         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3104         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3105         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3106         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3107         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3108         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3109         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3111 2005-08-30  Richard Henderson  <rth@redhat.com>
3113         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3114         function for when aliases are not usable.
3115         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3116         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3117         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3118         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3119         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3120         GOMP_loop_ordered_guided_next): Likewise.
3121         * ordered.c (GOMP_ordered_start): Likewise.
3123 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3125         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3126         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3127         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3128         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3129         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3130         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3131         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3132         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3133         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3135 2005-07-07  Eric Christopher  <echristo@redhat.com>
3136             Diego Novillo  <dnovillo@redhat.com>
3138         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3139         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3140         up code.
3141         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3142         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3143         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3144         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3145         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3146         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3147         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3149 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3151         * TOPLEVEL.patch: Remove.
3153 2005-05-16  Richard Henderson  <rth@redhat.com>
3155         * configure.ac: Test for clock_gettime.
3156         * config.h.in, configure: Rebuild.
3157         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3158         (omp_get_wtime): Use clock_gettime if available.
3159         (omp_get_wtick): Use clock_getres if available.
3161 2005-05-11  Richard Henderson  <rth@redhat.com>
3163         * config/linux/ia64/futex.h: New file.
3164         * configure.tgt: Use it.
3166         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3168 2005-05-07  Richard Henderson  <rth@redhat.com>
3170         * config/linux/powerpc/futex.h: New file.
3171         * configure.tgt: Use it.
3173         * config/linux/i486/futex.h: Merge ...
3174         * config/linux/x86_64/futex.h: ... into ...
3175         * config/linux/x86/futex.h: ... here.
3176         * configure.tgt: Update to match.
3178 2005-05-06  Richard Henderson  <rth@redhat.com>
3180         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3181         * config/linux/i486/futex.h: Likewise.
3182         * config/linux/x86_64/futex.h: Likewise.
3184         * config/linux/lock.c: New file.
3185         * config/linux/omp-lock.h: New file.
3187         * critical.c, env.h: Don't include omp.h
3188         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3189         * config/posix/time.c: Likewise.
3190         * config/posix/omp-lock.h: New file.
3191         * libgomp.h: Include omp-lock.h and omp.h.
3192         * Makefile.am (nodist_include_HEADERS): New.
3193         (omp.h): New rule.
3194         * configure.ac (PERL): New.
3195         * mkomp_h.pl: New file.
3196         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3197         with templates.
3198         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3200         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3201         build directory.  Re-add -march=i486 hack.
3203         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3204         (libgomp_link_flags): Remove.
3205         (libgomp_initialized): Remove.
3206         (libgomp_init): Don't protect from reinitialization.  Copy code
3207         from libstdc++ for getting the multilib set correctly.
3209 2005-05-05  Richard Henderson  <rth@redhat.com>
3211         * config/linux/alpha/futex.h: New file.
3212         * configure.tgt (alpha*-*-linux*): Use it.
3214         * config/posix/mutex.c: New file.
3215         * config/posix/sem.c: Use libgomp.h.
3217         * configure.tgt (x86_64-linux): Also test CC for -m32.
3218         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3220         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3221         after $gccpath.
3223         * Makefile.am (SUBDIRS): New.
3224         (libgomp_la_LDFLAGS): Add -lpthread.
3225         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3226         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3228         * libgomp_g.h: New file.
3229         * libgomp.h: Split out all public declarations to libgomp_g.h.
3230         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3231         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3232         * config/linux/sem.h: Likewise.
3233         * config/posix/sem.h: Likewise.
3235         * Makefile.am (AM_LDFLAGS): New.
3236         (libgomp_version_script): Split out from ...
3237         (libgomp_la_LDFLAGS): ... here.
3238         (libgomp_version_info): New.
3239         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3240         (LIBGOMP_ENABLE): New.
3241         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3242         (LIBGOMP_ENABLE_SYMVERS): New.
3243         * configure.ac (AC_INIT): Version 1.0.
3244         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3245         (enable-linux-futex): Likewise.  Rename from enable-futex.
3246         (libtool_VERSION): New.
3247         (LIBGOMP_ENABLE_SYMVERS): Use it.
3248         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3249         * Makefile.in, aclocal.m4, configure: Rebuild.
3251         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3252         (gomp_mutex_unlock_slow): Fix typo.
3253         * config/linux/sem.c: Similarly.
3254         (gomp_sem_post_slow): Fix typo.
3255         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3256         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3257         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3259         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3260         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3261         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3262         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3263         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3264         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3265         LDFLAGS.  Pull enable_futex check to top-level.
3266         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3267         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3269         First attempt at real configury.
3270         * Makefile, config.h: Remove file.
3271         * Makefile.am, Makefile.in: New file.
3272         * acinclude.m4 aclocal.m4: New file.
3273         * configure.ac, configure.tgt, configure: New file.
3275         * config/posix/lock.c: Rename from sys-lock.c.
3276         * config/posix/mutex.h: Rename from sys-mutex.h.
3277         * config/posix/sem.c: Rename from sys-sem.c.
3278         * config/posix/sem.h: Rename from sys-sem.h.
3279         * config/posix/proc.c: Rename from sys-proc.c.
3280         * config/posix/time.c: Rename from sys-proc.c.
3282         * config/linux/mutex.c: New file.
3283         * config/linux/mutex.h: New file.
3284         * config/linux/sem.c: New file.
3285         * config/linux/sem.h: New file.
3286         * config/linux/i486/futex.h: New file.
3287         * config/linux/x86_64/futex.h: New file.
3289 2005-05-04  Richard Henderson  <rth@redhat.com>
3291         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3292         * libgomp.h: Declare them.
3293         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3294         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3296 2005-05-04  Richard Henderson  <rth@redhat.com>
3298         * libgomp-1 code drop
3300 2005-05-04  Richard Henderson  <rth@redhat.com>
3302         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3303         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3304         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3305         (gomp_iter_static_next): Update.
3306         (gomp_ordered_static_next): Update.
3307         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3308         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3309         totally empty range.
3310         (gomp_loop_ordered_static_next): Refine test for calling
3311         gomp_ordered_static_next.
3312         * testsuite/ordered-1.c: Add case for more threads than iterations.
3314         * iter.c (gomp_iter_runtime_next_locked): Remove.
3315         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3316         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3317         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3318         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3319         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3320         gomp_loop_ordered_guided_next): Downcase name, make static, add
3321         an external alias with the old name.
3322         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3323         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3324         switch and call one of the above static functions.
3325         * libgomp.h: Update.
3327         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3328         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3329         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3330         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3331         GOMP_loop_ordered_guided_start): Update to match.
3332         * sections.c (GOMP_sections_start): Likewise.
3333         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3335         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3336         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3337         Use bounds check instead of modulus.
3338         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3339         (gomp_ordered_last): Don't sync with ordered_owner here.
3340         (gomp_ordered_next): Likewise.
3341         (gomp_ordered_static_loop_next): Likewise.
3342         * loop.c, libgomp.h: Update to match.
3344         * libgomp.h (GOMP_barrier): Declare.
3346         * testsuite/barrier-1.c: New file.
3347         * testsuite/critical-1.c: New file.
3348         * testsuite/ordered-2.c: New file.
3349         * testsuite/ordered-1.c: New file.
3350         * testsuite/sections-1.c: New file.
3351         * testsuite/single-1.c: New file.
3352         * testsuite/Makefile (TESTS): Add them.
3354 2005-05-04  Richard Henderson  <rth@redhat.com>
3356         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3357         * loop.c (GOMP_loop_static_start): If not the startup thread,
3358         acquire the mutex to wait for initialization complete.
3359         (GOMP_loop_ordered_static_start): Likewise.
3360         (GOMP_loop_ordered_runtime_start): Likewise.
3361         (GOMP_loop_ordered_static_first): Remove.
3362         (GOMP_loop_ordered_dynamic_first): Remove.
3363         (GOMP_loop_ordered_guided_first): Remove.
3364         (GOMP_loop_ordered_runtime_first): Remove.
3365         * ordered.c (gomp_ordered_loop_first): Post to own release when
3366         we're the first thread.
3367         (gomp_ordered_loop_last): Wait on release if not owner.
3368         (gomp_ordered_loop_next): Likewise.
3369         (gomp_ordered_static_loop_init): New.
3370         (gomp_ordered_static_loop_next): Use ordered_owner.
3371         (GOMP_ordered_start): Likewise.
3372         * work.c (gomp_new_work_share): Initialize ordered_owner.
3374 2005-05-03  Richard Henderson  <rth@redhat.com>
3376         * Makefile (OPT): New.
3377         (CFLAGS): Use it.
3379         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3380         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3381         * libgomp.h, libgomp.map, NOTES: Update to match.
3383         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3384         Add initialized and thr members.
3385         (gomp_thread_start): Pause when initially spawned to wait for
3386         the whole team to be created.
3387         (gomp_team_start): Release team members at the end.
3389         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3390         (f_foo_1): Use GOMP_loop_end.
3391         (f_foo_2): Use GOMP_loop_end_nowait.
3393         * testsuite/loop-2.c: New file.
3394         * testsuite/Makefile (TESTS): Add it.
3396 2005-05-03  Richard Henderson  <rth@redhat.com>
3398         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3399         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3400         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3401         initial work_share.
3403         * testsuite/Makefile: New file.
3404         * testsuite/loop-1.c: New file.
3406 2005-05-03  Richard Henderson  <rth@redhat.com>
3408         Initial implementation and checkin.