gcc/
[official-gcc.git] / libgomp / ChangeLog
blobb004551ecadb21ffca614f8d31a9abb849a3c9f6
1 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
5 2014-10-06  Marek Polacek  <polacek@redhat.com>
7         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
10         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12 2014-10-06  Marek Polacek  <polacek@redhat.com>
14         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18         * testsuite/libgomp.c/pr36802-2.c: Likewise.
19         * testsuite/libgomp.c/pr36802-3.c: Likewise.
20         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
21         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
22         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
23         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
24         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
25         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
26         * testsuite/libgomp.c/omp-single-1.c: Likewise.
27         * testsuite/libgomp.c/omp-single-2.c: Likewise.
28         * testsuite/libgomp.c/omp_matvec.c: Likewise.
29         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
30         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
31         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
32         declarations.
34 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
36         PR libgomp/61200
37         * testsuite/libgomp.c/pr61200.c: New test.
39 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
41         PR c++/63248
42         * testsuite/libgomp.c++/pr63248.C: New test.
44 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
46         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
47         is not zero, but taskgroup->children is NULL and there are
48         any task->children, schedule those instead of waiting.
49         * testsuite/libgomp.c/depend-6.c: New test.
50         * testsuite/libgomp.c/depend-7.c: New test.
51         * testsuite/libgomp.c/depend-8.c: New test.
52         * testsuite/libgomp.c/depend-9.c: New test.
53         * testsuite/libgomp.c/depend-10.c: New test.
55 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
57         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
58         (struct gomp_taskwait): New type.
59         (struct gomp_task): Add taskwait and parent_depends_on, remove
60         in_taskwait and taskwait_sem fields.
61         (gomp_finish_task): Don't destroy taskwait_sem.
62         * task.c (gomp_init_task): Don't init in_taskwait, instead init
63         taskwait and parent_depends_on.
64         (GOMP_task): For if (0) tasks with depend clause that depend on
65         earlier tasks don't defer them, instead call
66         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
67         Initialize redundant_out field, for redundant out entries just
68         move them at the end of linked list instead of removing them
69         completely, and set redundant_out flag instead of redundant.
70         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
71         that task.
72         (gomp_task_run_post_handle_dependers): If parent is in
73         gomp_task_maybe_wait_for_dependencies and newly runnable task
74         is not parent_depends_on, queue it in parent->children linked
75         list after all runnable tasks with parent_depends_on set.
76         Adjust for addition of taskwait indirection.
77         (gomp_task_run_post_remove_parent): If parent is in
78         gomp_task_maybe_wait_for_dependencies and task to be removed
79         is parent_depends_on, decrement n_depend and if needed awake
80         parent.  Adjust for addition of taskwait indirection.
81         (GOMP_taskwait): Adjust for addition of taskwait indirection.
82         (gomp_task_maybe_wait_for_dependencies): New function.
83         * testsuite/libgomp.c/depend-5.c: New test.
85 2014-07-13  Tobias Burnus  <burnus@net-b.de>
87         * testsuite/libgomp.fortran/pr34020.f90: Make compile
88         with TS 18508/Fortran 2015.
90 2014-07-06  Marek Polacek  <polacek@redhat.com>
92         PR c/6940
93         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
95 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
97         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
98         matches regex $lang_source_re, add $lang_include_flags to options.
99         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
100         * testsuite/libgomp.c++/c++.exp: Likewise.
101         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
102         and lang_include_flags instead of adding -fintrinsic-modules-path= to
103         ALWAYS_CFLAGS.
104         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
106 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
108         * testsuite/libgomp.fortran/fortran.exp: Explain
109         gfortran-dg-runtest usage.
111 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
113         * testsuite/libgomp.fortran/simd5.f90: New test.
114         * testsuite/libgomp.fortran/simd6.f90: New test.
115         * testsuite/libgomp.fortran/simd7.f90: New test.
117 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
119         * testsuite/libgomp.c/for-2.c: Define SC to static for
120         #pragma omp for simd testing.
121         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
122         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
123         SC macro.
124         * testsuite/libgomp.c/simd-14.c: New test.
125         * testsuite/libgomp.c/simd-15.c: New test.
126         * testsuite/libgomp.c/simd-16.c: New test.
127         * testsuite/libgomp.c/simd-17.c: New test.
128         * testsuite/libgomp.c++/for-10.C: Define SC to static for
129         #pragma omp for simd testing.
130         * testsuite/libgomp.c++/simd10.C: New test.
131         * testsuite/libgomp.c++/simd11.C: New test.
132         * testsuite/libgomp.c++/simd12.C: New test.
133         * testsuite/libgomp.c++/simd13.C: New test.
135         * testsuite/libgomp.fortran/aligned1.f03: New test.
136         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
137         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
138         tasks with !$omp parallel !$omp single.
139         * testsuite/libgomp.fortran/target8.f90: New test.
140         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
141         not to use trim in the combiner, instead call elemental function.
142         (fn): New elemental function.
143         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
144         Make elemental.
145         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
146         omp_in): Likewise.
147         * testsuite/libgomp.fortran/udr12.f90: New test.
148         * testsuite/libgomp.fortran/udr13.f90: New test.
149         * testsuite/libgomp.fortran/udr14.f90: New test.
150         * testsuite/libgomp.fortran/udr15.f90: New test.
152 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
154         * omp_lib.f90.in (openmp_version): Set to 201307.
155         * omp_lib.h.in (openmp_version): Likewise.
156         * testsuite/libgomp.c/target-8.c: New test.
157         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
158         and inbranch clauses.
159         * testsuite/libgomp.fortran/depend-3.f90: New test.
160         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
161         openmp_version.
162         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
163         * testsuite/libgomp.fortran/target1.f90: New test.
164         * testsuite/libgomp.fortran/target2.f90: New test.
165         * testsuite/libgomp.fortran/target3.f90: New test.
166         * testsuite/libgomp.fortran/target4.f90: New test.
167         * testsuite/libgomp.fortran/target5.f90: New test.
168         * testsuite/libgomp.fortran/target6.f90: New test.
169         * testsuite/libgomp.fortran/target7.f90: New test.
171 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
173         PR fortran/60928
174         * testsuite/libgomp.fortran/allocatable9.f90: New test.
175         * testsuite/libgomp.fortran/allocatable10.f90: New test.
176         * testsuite/libgomp.fortran/allocatable11.f90: New test.
177         * testsuite/libgomp.fortran/allocatable12.f90: New test.
178         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
179         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
180         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
181         * testsuite/libgomp.fortran/associate1.f90: New test.
182         * testsuite/libgomp.fortran/associate2.f90: New test.
183         * testsuite/libgomp.fortran/procptr1.f90: New test.
185 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
187         * testsuite/libgomp.fortran/simd1.f90: New test.
188         * testsuite/libgomp.fortran/udr1.f90: New test.
189         * testsuite/libgomp.fortran/udr2.f90: New test.
190         * testsuite/libgomp.fortran/udr3.f90: New test.
191         * testsuite/libgomp.fortran/udr4.f90: New test.
192         * testsuite/libgomp.fortran/udr5.f90: New test.
193         * testsuite/libgomp.fortran/udr6.f90: New test.
194         * testsuite/libgomp.fortran/udr7.f90: New test.
195         * testsuite/libgomp.fortran/udr8.f90: New test.
196         * testsuite/libgomp.fortran/udr9.f90: New test.
197         * testsuite/libgomp.fortran/udr10.f90: New test.
198         * testsuite/libgomp.fortran/udr11.f90: New test.
200 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
202         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
203         vect_simd_clones effective target.
204         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
206 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
208         PR middle-end/61252
209         * testsuite/libgomp.c++/simd-9.C: New test.
211 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
213         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
214         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
215         texts according to their @menu entry positions.
217 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
219         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
220         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
221         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
222         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
223         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
224         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
225         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
226         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
227         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
228         * testsuite/libgomp.fortran/depend-1.f90: New test.
229         * testsuite/libgomp.fortran/depend-2.f90: New test.
230         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
231         * testsuite/libgomp.fortran/simd1.f90: New test.
232         * testsuite/libgomp.fortran/simd2.f90: New test.
233         * testsuite/libgomp.fortran/simd3.f90: New test.
234         * testsuite/libgomp.fortran/simd4.f90: New test.
235         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
237 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
239         * testsuite/libgomp.c/simd-10.c: New test.
240         * testsuite/libgomp.c/simd-11.c: New test.
241         * testsuite/libgomp.c/simd-12.c: New test.
242         * testsuite/libgomp.c/simd-13.c: New test.
244 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
246         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
247         atomic type clauses in any order and optional comma in between.
248         * testsuite/libgomp.c++/atomic-15.C: Likewise.
249         * testsuite/libgomp.c/atomic-17.c: Likewise.
251         * testsuite/libgomp.c/simd-7.c: New test.
252         * testsuite/libgomp.c/simd-8.c: New test.
253         * testsuite/libgomp.c/simd-9.c: New test.
254         * testsuite/libgomp.c/loop-16.c: New test.
256 2014-04-02  Richard Henderson  <rth@redhat.com>
258         * config/linux/futex.h (futex_wait): Get error value from errno.
259         (futex_wake): Likewise.
261 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
263         PR c++/60331
264         * testsuite/libgomp.c++/udr-11.C: New test.
265         * testsuite/libgomp.c++/udr-12.C: New test.
266         * testsuite/libgomp.c++/udr-13.C: New test.
267         * testsuite/libgomp.c++/udr-14.C: New test.
268         * testsuite/libgomp.c++/udr-15.C: New test.
269         * testsuite/libgomp.c++/udr-16.C: New test.
270         * testsuite/libgomp.c++/udr-17.C: New test.
271         * testsuite/libgomp.c++/udr-18.C: New test.
272         * testsuite/libgomp.c++/udr-19.C: New test.
274 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
276         Update copyright years
278 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
280         * hashtab.h: Use the standard form for the copyright notice.
282 2014-01-02  Tobias Burnus  <burnus@net-b.de>
284         * libgomp.texi: Bump @copying's copyright year.
286 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
288         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
289         alloca () with __builtin_alloca ().
290         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
291         * testsuite/libgomp.c/lock-3.c: Likewise.
292         * testsuite/libgomp.c/pr48591.c: Likewise.
294 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
296         PR testsuite/59534
297         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
298         comparisons.
300 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
302         PR libgomp/58756
303         * testsuite/libgomp.c/pr58756.c: New test.
305 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
307         PR libgomp/59467
308         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
309         !$omp parallel.
311 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
313         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
314         ALWAYS_CFLAGS.
315         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
316         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
317         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
318         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
319         Likewise.
321         * libgomp_g.h: Include <stddef.h> for size_t.
323         * libgomp.spec.in: Update comment about libgomp's dependencies.
324         * configure.ac: Likewise.
325         * configure: Regenerate.
327 2013-10-16  Tobias Burnus  <burnus@net-b.de>
329         * libgomp.texi: (Runtime Library Routines): Update references for
330         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
331         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
332         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
333         (Environment Variables): Update references for OpenMP 4.0. Add
334         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
335         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
336         order.
338 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
340         * env.c (parse_bind_var): Initialize value to avoid
341         (false positive) warning.
343 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
345         PR libgomp/58691
346         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
347         to check variable.
348         (gomp_init_num_threads): Move i variable declaration into
349         #ifdef CPU_ALLOC_SIZE block.
350         * config/linux/affinity.c (gomp_affinity_init_level): Test
351         gomp_places_list_len == 0 rather than gomp_places_list == 0
352         when checking for topology reading error.
353         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
354         * env.c (parse_affinity): Add ignore argument, if true, don't populate
355         gomp_places_list, only parse env var and always return false.
356         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
357         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
358         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
359         and either of these variables were parsed correctly into a places
360         list.
362 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
363             Jakub Jelinek  <jakub@redhat.com>
365         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
366         of 5 loopfn matches.
367         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
368         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
369         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
370         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
371         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
372         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
373         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
374         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
376 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
378         * Makefile.am (omp_lib.mod): Streamline rule.
379         * Makefile.in: Regenerate.
381         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
382         exceptions.
384         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
385         * testsuite/libgomp.fortran/lib1.f90: Likewise.
386         * testsuite/libgomp.fortran/lib2.f: Likewise.
387         * testsuite/libgomp.fortran/lib3.f: Likewise.
389         * configure.ac: Typo fix.
390         * configure: Regenerate.
392         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
393         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
395         * omp.h.in: Don't touch the user's namespace.
397 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
398             Tobias Burnus  <burnus@net-b.de>
399             Richard Henderson  <rth@redhat.com>
401         * target.c: New file.
402         * Makefile.am (libgomp_la_SOURCES): Add target.c.
403         * Makefile.in: Regenerated.
404         * libgomp_g.h (GOMP_task): Add depend argument.
405         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
406         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
407         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
408         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
409         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
410         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
411         GOMP_taskgroup_start, GOMP_taskgroup_end,
412         GOMP_parallel_sections): New prototypes.
413         * fortran.c (omp_is_initial_device): Add ialias_redirect.
414         (omp_is_initial_device_): New function.
415         (ULP, STR1, STR2, ialias_redirect): Removed.
416         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
417         omp_set_default_device_8_, omp_get_default_device_,
418         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
419         functions.
420         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
421         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
422         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
423         @@GOMP_4.0.
424         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
425         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
426         omp_set_default_device, omp_set_default_device_,
427         omp_set_default_device_8_, omp_get_default_device,
428         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
429         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
430         omp_get_team_num_): Export @@OMP_4.0.
431         * team.c (struct gomp_thread_start_data): Add place field.
432         (gomp_thread_start): Clear thr->thread_pool and
433         thr->task before returning.  Use gomp_team_barrier_wait_final
434         instead of gomp_team_barrier_wait.  Initialize thr->place.
435         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
436         team_cancelled and task_queued_count fields.
437         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
438         before calling pthread_exit.
439         (gomp_free_thread): No longer static.  Use
440         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
441         (gomp_team_start): Add flags argument.  Set
442         thr->thread_pool->threads_busy to nthreads immediately after creating
443         new pool.  Use gomp_managed_threads_lock instead of
444         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
445         (gomp_team_end): Use gomp_managed_threads_lock instead of
446         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
447         of gomp_team_barrier_wait.  If team->team_cancelled, call
448         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
449         rather than thr->ts.work_share.
450         (initialize_team): Don't call gomp_sem_init here.
451         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
452         caller.
453         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
454         * env.c (gomp_global_icv): Add default_device_var, target_data and
455         bind_var initializers.
456         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
457         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
458         gomp_places_list_len): New variables.
459         (parse_bind_var, parse_one_place, parse_places_var): New functions.
460         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
461         sized places.
462         (gomp_cancel_var): New global variable.
463         (parse_int): New function.
464         (handle_omp_display_env): New function.
465         (initialize_env): Use it.  Initialize default_device_var.
466         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
467         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
468         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
469         been successfully parsed (and call gomp_init_affinity in that case).
470         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
471         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
472         omp_get_team_num, omp_is_initial_device): New functions.
473         * libgomp.h: Include stdlib.h.
474         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
475         Define.
476         (struct target_mem_desc): Forward declare.
477         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
478         and thread_limit_var fields.
479         (gomp_get_num_devices): New prototype.
480         (gomp_cancel_var): New extern decl.
481         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
482         team_cancelled and task_queued_count fields.  Add comments about
483         task_{,queued_,running_}count.
484         (gomp_cancel_kind): New enum.
485         (gomp_work_share_end_cancel): New prototype.
486         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
487         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
488         and depend fields.
489         (struct gomp_taskgroup): New type.
490         (struct gomp_task_depend_entry,
491         struct gomp_dependers_vec): New types.
492         (gomp_finish_task): Free depend_hash if non-NULL.
493         (struct gomp_team_state): Add place_partition_off
494         and place_partition_len fields.
495         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
496         gomp_places_list_len): New extern decls.
497         (struct gomp_thread): Add place field.
498         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
499         (gomp_init_thread_affinity): Add place argument.
500         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
501         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
502         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
503         gomp_affinity_init_level, gomp_affinity_print_place): New
504         prototypes.
505         (gomp_team_start): Add flags argument.
506         (gomp_thread_limit_var, gomp_remaining_threads_count,
507         gomp_remaining_threads_lock): Remove.
508         (gomp_managed_threads_lock): New variable.
509         (struct gomp_thread_pool): Add threads_busy field.
510         (gomp_free_thread): New prototype.
511         * task.c: Include hashtab.h.
512         (hash_entry_type): New typedef.
513         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
514         (gomp_init_task): Clear dependers, depend_hash, depend_count,
515         copy_ctors_done and taskgroup fields.
516         (GOMP_task): Add depend argument, handle depend clauses.  If
517         gomp_team_barrier_cancelled or if it's taskgroup has been
518         cancelled, don't queue or start new tasks.  Set copy_ctors_done
519         field if needed.  Initialize taskgroup field.  If copy_ctors_done
520         and already cancelled, don't discard the task.  If taskgroup is
521         non-NULL, enqueue the task into taskgroup queue.  Increment
522         num_children field in taskgroup.  Increment task_queued_count.
523         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
524         gomp_task_run_post_remove_taskgroup): New inline functions.
525         (gomp_task_run_post_handle_depend_hash,
526         gomp_task_run_post_handle_dependers,
527         gomp_task_run_post_handle_depend): New functions.
528         (GOMP_taskwait): Use them.  If more than one new tasks
529         have been queued, wake other threads if needed.
530         (gomp_barrier_handle_tasks): Likewise.  If
531         gomp_team_barrier_cancelled, don't start any new tasks, just free
532         all tasks.
533         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
534         * omp_lib.f90.in
535         (omp_proc_bind_kind, omp_proc_bind_false,
536         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
537         omp_proc_bind_spread): New params.
538         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
539         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
540         omp_get_team_num, omp_is_initial_device): New interfaces.
541         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
542         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
543         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
544         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
545         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
546         useless use omp_lib_kinds.
547         * omp.h.in (omp_proc_bind_t): New typedef.
548         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
549         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
550         omp_get_team_num, omp_is_initial_device): New prototypes.
551         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
552         through to gomp_team_start.
553         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
554         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
555         Adjust gomp_parallel_loop_start callers.
556         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
557         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
558         GOMP_loop_end_cancel): New functions.
559         (GOMP_parallel_end): Add ialias_redirect.
560         * hashtab.h: New file.
561         * libgomp.texi (Environment Variables): Minor cleanup,
562         update section refs to OpenMP 4.0rc2.
563         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
564         environment variables.
565         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
566         team->work_shares_to_free to thr->ts.work_share before calling
567         free_work_share.
568         (gomp_work_share_end_cancel): New function.
569         * config/linux/proc.c: Include errno.h.
570         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
571         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
572         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
573         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
574         gomp_cpuset_size is sizeof (cpu_set_t).
575         (gomp_init_num_threads): Initialize gomp_cpuset_size,
576         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
577         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
578         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
579         contain any logical CPUs.
580         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
581         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
582         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
583         pthread_getaffinity_np.  Check gomp_places_list instead of
584         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
585         * config/linux/bar.c (gomp_barrier_wait_end,
586         gomp_barrier_wait_last): Use BAR_* defines.
587         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
588         from state where needed.  Set work_share_cancelled to 0 on last
589         thread.
590         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
591         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
592         functions.
593         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
594         Add cpusetsize argument.
595         (gomp_cpuset_size, gomp_cpusetp): Declare.
596         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
597         (affinity_counter): Remove.
598         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
599         if CPU_ALLOC_SIZE isn't defined.
600         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
601         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
602         bind current thread to the first place.
603         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
604         pthread_setaffinity_np to gomp_places_list[place].
605         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
606         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
607         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
608         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
609         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
610         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
611         (gomp_barrier_t): Add awaited_final field.
612         (gomp_barrier_init): Initialize awaited_final field.
613         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
614         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
615         prototypes.
616         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
617         defines.
618         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
619         gomp_team_barrier_cancelled): New inline functions.
620         (gomp_barrier_last_thread,
621         gomp_team_barrier_set_task_pending,
622         gomp_team_barrier_clear_task_pending,
623         gomp_team_barrier_set_waiting_for_tasks,
624         gomp_team_barrier_waiting_for_tasks,
625         gomp_team_barrier_done): Use BAR_* defines.
626         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
627         (gomp_barrier_wait_end): Use BAR_* defines.
628         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
629         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
630         Use BAR_* defines.
631         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
632         gomp_team_barrier_cancel): New functions.
633         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
634         argument.
635         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
636         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
637         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
638         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
639         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
640         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
641         (gomp_barrier_t): Add cancellable field.
642         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
643         gomp_team_barrier_cancel): New prototypes.
644         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
645         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
646         gomp_team_barrier_cancelled): New inline functions.
647         (gomp_barrier_wait_start, gomp_barrier_last_thread,
648         gomp_team_barrier_set_task_pending,
649         gomp_team_barrier_clear_task_pending,
650         gomp_team_barrier_set_waiting_for_tasks,
651         gomp_team_barrier_waiting_for_tasks,
652         gomp_team_barrier_done): Use BAR_* defines.
653         * barrier.c (GOMP_barrier_cancel): New function.
654         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
655         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
656         omp_proc_bind_spread): New params.
657         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
658         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
659         omp_get_team_num, omp_is_initial_device): New externals.
660         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
661         New functions.
662         (gomp_resolve_num_threads): Adjust for thread_limit now being in
663         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
664         infinity.  If not nested, just return minimum of max_num_threads
665         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
666         to the returned value.  Otherwise, don't update atomically
667         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
668         (GOMP_parallel_end): Adjust for thread_limit now being in
669         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
670         infinity.  Adjust threads_busy in the pool rather than
671         gomp_remaining_threads_count.  Remember team->nthreads and call
672         gomp_team_end before adjusting threads_busy, if not nested
673         afterwards, just set it to 1 non-atomically.  Add ialias.
674         (GOMP_parallel_start): Adjust gomp_team_start caller.
675         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
676         * testsuite/libgomp.c/affinity-1.c: New test.
677         * testsuite/libgomp.c/atomic-15.c: New test.
678         * testsuite/libgomp.c/atomic-16.c: New test.
679         * testsuite/libgomp.c/atomic-17.c: New test.
680         * testsuite/libgomp.c/cancel-for-1.c: New test.
681         * testsuite/libgomp.c/cancel-for-2.c: New test.
682         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
683         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
684         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
685         * testsuite/libgomp.c/cancel-sections-1.c: New test.
686         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
687         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
688         * testsuite/libgomp.c/depend-1.c: New test.
689         * testsuite/libgomp.c/depend-2.c: New test.
690         * testsuite/libgomp.c/depend-3.c: New test.
691         * testsuite/libgomp.c/depend-4.c: New test.
692         * testsuite/libgomp.c/for-1.c: New test.
693         * testsuite/libgomp.c/for-1.h: New file.
694         * testsuite/libgomp.c/for-2.c: New test.
695         * testsuite/libgomp.c/for-2.h: New file.
696         * testsuite/libgomp.c/for-3.c: New test.
697         * testsuite/libgomp.c/pr58392.c: New test.
698         * testsuite/libgomp.c/simd-1.c: New test.
699         * testsuite/libgomp.c/simd-2.c: New test.
700         * testsuite/libgomp.c/simd-3.c: New test.
701         * testsuite/libgomp.c/simd-4.c: New test.
702         * testsuite/libgomp.c/simd-5.c: New test.
703         * testsuite/libgomp.c/simd-6.c: New test.
704         * testsuite/libgomp.c/target-1.c: New test.
705         * testsuite/libgomp.c/target-2.c: New test.
706         * testsuite/libgomp.c/target-3.c: New test.
707         * testsuite/libgomp.c/target-4.c: New test.
708         * testsuite/libgomp.c/target-5.c: New test.
709         * testsuite/libgomp.c/target-6.c: New test.
710         * testsuite/libgomp.c/target-7.c: New test.
711         * testsuite/libgomp.c/taskgroup-1.c: New test.
712         * testsuite/libgomp.c/thread-limit-1.c: New test.
713         * testsuite/libgomp.c/thread-limit-2.c: New test.
714         * testsuite/libgomp.c/thread-limit-3.c: New test.
715         * testsuite/libgomp.c/udr-1.c: New test.
716         * testsuite/libgomp.c/udr-2.c: New test.
717         * testsuite/libgomp.c/udr-3.c: New test.
718         * testsuite/libgomp.c++/affinity-1.C: New test.
719         * testsuite/libgomp.c++/atomic-10.C: New test.
720         * testsuite/libgomp.c++/atomic-11.C: New test.
721         * testsuite/libgomp.c++/atomic-12.C: New test.
722         * testsuite/libgomp.c++/atomic-13.C: New test.
723         * testsuite/libgomp.c++/atomic-14.C: New test.
724         * testsuite/libgomp.c++/atomic-15.C: New test.
725         * testsuite/libgomp.c++/cancel-for-1.C: New test.
726         * testsuite/libgomp.c++/cancel-for-2.C: New test.
727         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
728         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
729         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
730         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
731         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
732         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
733         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
734         * testsuite/libgomp.c++/cancel-test.h: New file.
735         * testsuite/libgomp.c++/for-9.C: New test.
736         * testsuite/libgomp.c++/for-10.C: New test.
737         * testsuite/libgomp.c++/for-11.C: New test.
738         * testsuite/libgomp.c++/simd-1.C: New test.
739         * testsuite/libgomp.c++/simd-2.C: New test.
740         * testsuite/libgomp.c++/simd-3.C: New test.
741         * testsuite/libgomp.c++/simd-4.C: New test.
742         * testsuite/libgomp.c++/simd-5.C: New test.
743         * testsuite/libgomp.c++/simd-6.C: New test.
744         * testsuite/libgomp.c++/simd-7.C: New test.
745         * testsuite/libgomp.c++/simd-8.C: New test.
746         * testsuite/libgomp.c++/target-1.C: New test.
747         * testsuite/libgomp.c++/target-2.C: New test.
748         * testsuite/libgomp.c++/target-2-aux.cc: New file.
749         * testsuite/libgomp.c++/target-3.C: New test.
750         * testsuite/libgomp.c++/taskgroup-1.C: New test.
751         * testsuite/libgomp.c++/udr-1.C: New test.
752         * testsuite/libgomp.c++/udr-2.C: New test.
753         * testsuite/libgomp.c++/udr-3.C: New test.
754         * testsuite/libgomp.c++/udr-4.C: New test.
755         * testsuite/libgomp.c++/udr-5.C: New test.
756         * testsuite/libgomp.c++/udr-6.C: New test.
757         * testsuite/libgomp.c++/udr-7.C: New test.
758         * testsuite/libgomp.c++/udr-8.C: New test.
759         * testsuite/libgomp.c++/udr-9.C: New test.
761 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
763         PR testsuite/57605
764         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
765         ALWAYS_CFLAGS.
767 2013-09-20  Alan Modra  <amodra@gmail.com>
769         * configure: Regenerate.
771 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
773         * testsuite/libgomp.c/sections-2.c: New test.
775 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
777         * testsuite/libgomp.fortran/strassen.f90:
778         Add dg-skip-if aarch64_tiny.
780 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
781             Cesar Philippidis  <cesar@codesourcery.com>
783         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
784         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
785         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
786         * testsuite/libgomp.fortran/fortran.exp: Likewise.
787         * testsuite/libgomp.graphite/graphite.exp: Likewise.
788         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
789         Use dg-runtest rather than gfortran-dg-runtest.
791 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
793         * testsuite/libgomp.c/icv-2.c: Extend current handling of
794         Linux-based x86 systems to cover all GNU systems.
795         * testsuite/libgomp.c/lock-3.c: Likewise.
796         * testsuite/libgomp.c/pr48591.c: Likewise.
798 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
800         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
801         GNU/Hurd, as done for Linux-based systems.
803         * config/posix/ptrlock.h: Fix comment.
805 2013-05-27  Tobias Burnus  <burnus@net-b.de>
807         PR fortran/57423
808         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
809         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
810         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
811         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
812         omp_destroy_nest_lock): Correct arguments to match the one in
813         the OpenMP spec.
814         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
815         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
816         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
817         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
819 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
821         * testsuite/libgomp.c/loop-13.c: New test.
822         * testsuite/libgomp.c/loop-14.c: New test.
823         * testsuite/libgomp.c/loop-15.c: New test.
824         * testsuite/libgomp.c++/loop-13.C: New test.
825         * testsuite/libgomp.c++/loop-14.C: New test.
826         * testsuite/libgomp.c++/loop-15.C: New test.
828 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
830         PR middle-end/56217
831         * testsuite/libgomp.c++/pr56217.C: New test.
833 2013-02-01  Alan Modra  <amodra@gmail.com>
835         * task.c (GOMP_task, GOMP_taskwait): Comment.
837 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
838             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
840         PR libgomp/55561
841         * config/linux/wait.h (do_spin): Use atomic load for addr.
842         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
843         for intptr and ptrlock.
844         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
845         for ptrlock.
847 2013-01-22  Alan Modra  <amodra@gmail.com>
849         PR libgomp/51376
850         PR libgomp/56073
851         * task.c (GOMP_task): Revert 2011-12-09 change.
852         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
853         barrier to read task->children..
854         (gomp_barrier_handle_tasks): ..and matching atomic store with
855         release barrier here when setting parent->children to NULL.
857 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
858             Tobias Burnus  <burnus@net-b.de>
860         PR driver/55884
861         * testsuite/libgomp.fortran/fortran.exp: Use
862         -fintrinsic-modules-path= instead of
863         -fintrinsic-modules-path.
865 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
867         Update copyright years.
869 2012-12-19  Tobias Burnus  <burnus@net-b.de>
871         * testsuite/libgomp.fortran/fortran.exp: Set
872         -fintrinsic-modules-path.
874 2012-12-19  Tobias Burnus  <burnus@net-b.de>
876         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
877         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
879 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
881         PR libgomp/55411
882         * team.c (gomp_free_thread): Decrease gomp_managed_threads
883         if pool had any threads_used.
885 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
887         * testsuite/libgomp.c++/pr24455.C: Use
888         -Wl,-undefined,dynamic_lookup on darwin.
890 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
892         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
894 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
896         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
898 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
899             Jim MacArthur  <jim.macarthur@arm.com>
900             Marcus Shawcroft  <marcus.shawcroft@arm.com>
901             Nigel Stephens  <nigel.stephens@arm.com>
902             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
903             Richard Earnshaw  <rearnsha@arm.com>
904             Sofiane Naci  <sofiane.naci@arm.com>
905             Stephen Thomas  <stephen.thomas@arm.com>
906             Tejas Belagod  <tejas.belagod@arm.com>
907             Yufeng Zhang  <yufeng.zhang@arm.com>
909         * configure.tgt: Add AArch64.
911 2012-10-04  Jason Merrill  <jason@redhat.com>
913         * testsuite/libgomp.c++/tls-init1.C: New.
915 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
917         * configure: Regenerated.
919 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
921         * config/linux/mips/futex.h (sys_futex0): Change to static
922         function with noinline, nomips16 attributes under MIPS16. Adjust
923         asm statement to place 'li v0,SYS_futex' immediately before
924         syscall insn.
926 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
928         * libgomp.texi (Library Index): Renamed from "Index" to prevent
929         conflict with index.html on case-insensitive file systems.
931 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
933         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
934         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
936 2012-07-02  Richard Guenther  <rguenther@suse.de>
937             Michael Matz  <matz@suse.de>
938             Tobias Grosser <tobias@grosser.es>
939             Sebastian Pop <sebpop@gmail.com>
941         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
942         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
943         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
944         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
946 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
948         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
950 2012-06-22  Richard Guenther  <rguenther@suse.de>
952         Merge from graphite branch
953         2012-01-13  Tobias Grosser  <tobias@grosser.es>
955         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
956         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
958 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
960         PR middle-end/53580
961         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
962         use GOMP_barrier () call instead.
963         * testsuite/libgomp.c/pr26943-3.c: Likewise.
964         * testsuite/libgomp.c/pr26943-4.c: Likewise.
965         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
966         call GOMP_barrier instead.
967         * testsuite/libgomp.fortran/vla5.f90: Likewise.
969 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
971         PR libgomp/52993
972         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
973         argument to memset call.
975 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
977         * configure: Regenerated.
979 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
981         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
983 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
985         PR bootstrap/52812
986         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
988 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
990         PR middle-end/52547
991         * testsuite/libgomp.c/pr52547.c: New test.
993 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
995         * testsuite/lib/libgomp.exp: load fortran-modules.exp
997 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
999         * configure.tgt (mips-sgi-irix6*): Remove.
1001 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1003         * configure.tgt (alpha*-dec-osf*): Remove.
1005         * config/osf/sem.h: Remove.
1006         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1008 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1010         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1012 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1014         PR libstdc++/52188
1015         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1016         Remove ENABLE_SYMVERS_SOL2.
1017         * configure: Regenerate.
1018         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1019         (PREPROCESS): New variable.
1020         (libgomp.ver): New target.
1021         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1022         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1023         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1024         Use libgomp.ver.
1025         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1026         * Makefile.in: Regenerate.
1028 2012-02-14  Walter Lee  <walt@tilera.com>
1030         * configure.tgt: Handle tilegx and tilepro.
1031         * config/linux/tile/futex.h: New file.
1033 2012-02-08  Richard Guenther  <rguenther@suse.de>
1035         PR tree-optimization/46886
1036         * testsuite/libgomp.c/pr46886.c: New testcase.
1038 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1040         * config/linux/arm: Remove empty directory.
1041         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1043 2011-12-09  Alan Modra  <amodra@gmail.com>
1045         PR libgomp/51376
1046         * task.c (GOMP_taskwait): Don't access task->children outside of
1047         task_lock mutex region.
1048         (GOMP_task): Likewise.
1050 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
1052         PR libgomp/51132
1053         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1054         to file scope.
1055         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1056         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1057         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1058         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1059         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1061 2011-12-02  Alan Modra  <amodra@gmail.com>
1063         * config/linux/affinity.c: Use atomic rather than sync builtin.
1064         * config/linux/lock.c: Likewise.
1065         * config/linux/ptrlock.h: Likewise.
1066         * config/linux/ptrlock.c: Likewise.
1067         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1068         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1069         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1070         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1071         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1072         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1073         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1074         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1075         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1076         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1078 2011-11-30  Alan Modra  <amodra@gmail.com>
1080         PR libgomp/51298
1081         * config/linux/bar.h: Use atomic rather than sync builtins.
1082         * config/linux/bar.c: Likewise.  Add missing acquire
1083         synchronisation on generation field.
1084         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1085         double unlock.
1087 2011-11-30  Alan Modra  <amodra@gmail.com>
1089         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1090         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1091         * config/linux/mutex.h: Use atomic rather than sync builtins.
1092         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
1093         * config/linux/omp-lock.h: Comment fix.
1094         * config/linux/arm/mutex.h: Delete.
1095         * config/linux/powerpc/mutex.h: Delete.
1096         * config/linux/ia64/mutex.h: Delete.
1097         * config/linux/mips/mutex.h: Delete.
1099 2011-11-30  Alan Modra  <amodra@gmail.com>
1101         PR libgomp/51249
1102         * config/linux/sem.h: Rewrite.
1103         * config/linux/sem.c: Rewrite.
1105 2011-11-28  Richard Henderson  <rth@redhat.com>
1107         * libgomp.h (enum memmodel): New.
1109 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1111         * configure: Regenerate.
1113 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1115         * config/posix95: Remove empty directory.
1117 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1119         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1121 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
1123         PR fortran/49792
1124         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1125         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1127 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1129         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1131 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1133         PR libgomp/49965
1134         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1136 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
1138         * config/linux/proc.h: New.
1139         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
1140         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
1141         (gomp_init_num_threads): Update call to cpuset_popcount.
1142         (get_num_procs): Ditto.
1143         * config/linux/affinity.c (gomp_init_affinity): Call
1144         gomp_cpuset_popcount.
1146 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1148         PR fortran/42041
1149         PR fortran/46752
1150         * omp.h.in (omp_in_final): New prototype.
1151         * omp_lib.f90.in (omp_in_final): New interface.
1152         (omp_integer_kind, omp_logical_kind): Remove
1153         and replace all its uses in the module with 4.
1154         (openmp_version): Change to 201107.
1155         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1156         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1157         kind for the parameters.
1158         (omp_in_final): New external.
1159         (openmp_version): Change to 201107.
1160         * task.c (omp_in_final): New function.
1161         (gomp_init_task): Initialize final_task.
1162         (GOMP_task): Remove unused attribute from flags.  Handle final
1163         tasks.
1164         (GOMP_taskyield): New function.
1165         (omp_in_final): Return true if if (false) or final (true) task
1166         or descendant of final (true).
1167         * fortran.c (omp_in_final_): New function.
1168         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1169         (GOMP_3.0): Export GOMP_taskyield.
1170         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1171         variables.
1172         (parse_unsigned_long_list): New function.
1173         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1174         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1175         even if parse_affinity returned false.
1176         * config/linux/affinity.c (gomp_init_affinity): Handle
1177         gomp_cpu_affinity_len == 0.
1178         * libgomp_g.h (GOMP_taskyield): New prototype.
1179         * libgomp.h (struct gomp_task): Add final_task field.
1180         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1181         * team.c (gomp_team_start): Override new task's nthreads_var icv
1182         if list form OMP_NUM_THREADS has been used and it has value for
1183         the new nesting level.
1185         * testsuite/libgomp.c/atomic-11.c: New test.
1186         * testsuite/libgomp.c/atomic-12.c: New test.
1187         * testsuite/libgomp.c/atomic-13.c: New test.
1188         * testsuite/libgomp.c/atomic-14.c: New test.
1189         * testsuite/libgomp.c/reduction-6.c: New test.
1190         * testsuite/libgomp.c/task-5.c: New test.
1191         * testsuite/libgomp.c++/atomic-2.C: New test.
1192         * testsuite/libgomp.c++/atomic-3.C: New test.
1193         * testsuite/libgomp.c++/atomic-4.C: New test.
1194         * testsuite/libgomp.c++/atomic-5.C: New test.
1195         * testsuite/libgomp.c++/atomic-6.C: New test.
1196         * testsuite/libgomp.c++/atomic-7.C: New test.
1197         * testsuite/libgomp.c++/atomic-8.C: New test.
1198         * testsuite/libgomp.c++/atomic-9.C: New test.
1199         * testsuite/libgomp.c++/task-8.C: New test.
1200         * testsuite/libgomp.c++/reduction-4.C: New test.
1201         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1202         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1203         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1204         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1205         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1206         * testsuite/libgomp.fortran/pointer1.f90: New test.
1207         * testsuite/libgomp.fortran/pointer2.f90: New test.
1208         * testsuite/libgomp.fortran/task4.f90: New test.
1210 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1212         * libgomp.texi: Update OpenMP spec references to 3.1.
1213         (omp_in_final,OMP_PROC_BIND): New sections.
1214         (OMP_NUM_THREADS): Document that the value can be now a list.
1215         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1217 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1219         * config/linux/x86/futex.h: Check __x86_64__ instead of
1220         __LP64__.
1222 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1224         PR middle-end/49897
1225         PR middle-end/49898
1226         * testsuite/libgomp.c/pr49897-1.c: New test.
1227         * testsuite/libgomp.c/pr49897-2.c: New test.
1228         * testsuite/libgomp.c/pr49898-1.c: New test.
1229         * testsuite/libgomp.c/pr49898-2.c: New test.
1231 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1233         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1234         for ia32 instead of ilp32.
1236         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1237         * testsuite/libgomp.c/atomic-6.c: Likewise.
1239 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1241         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1242         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1244 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1246         PR libgomp/45351
1247         * config/osf/sem.h: New file.
1248         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1250 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1252         PR target/49541
1253         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1254         ldflags.
1256 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1258         * config/linux/wait.h (do_spin): New inline, largely copied
1259         from do_wait, just don't do futex_wait here, instead return true if
1260         it should be done.
1261         (do_wait): Implement using do_spin.
1262         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1263         to prototype.
1264         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1265         __sync_bool_compare_and_swap, pass the oldval to
1266         gomp_mutex_lock_slow.
1267         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1268         If all mutex contenders are just spinning and not sleeping, don't
1269         change state to 2 unnecessarily.  Optimize the loop when state has
1270         already become 2 to use just one atomic operation per loop instead
1271         of two.
1272         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1273         to prototype.
1274         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1275         __sync_bool_compare_and_swap, pass the oldval to
1276         gomp_mutex_lock_slow.
1278 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1280         PR libgomp/49490
1281         * iter.c (gomp_iter_static_next): For chunk size 0
1282         only use n ceil/ nthreads size for the first
1283         n % nthreads threads in the team instead of
1284         all threads except for the last few ones which
1285         get less work or none at all.
1286         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1287         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1288         chunk argument, set run_sched_modifier to 0 for static
1289         resp. 1 for other kinds.  If chunk argument is 0
1290         and not static, set value to 1.
1292 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1294         PR c++/49043
1295         * testsuite/libgomp.c++/pr49043.C: New test.
1297         PR c++/48869
1298         * testsuite/libgomp.c++/pr48869.C: New test.
1300 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1302         PR fortran/48894
1303         * fortran.c: Include limits.h.
1304         (TO_INT): Define.
1305         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1306         *set.
1307         (omp_set_num_threads_8_, omp_set_schedule_8_,
1308         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1309         omp_get_team_size_8_): Use TO_INT macro.
1310         * testsuite/libgomp.fortran/pr48894.f90: New test.
1312 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1314         PR middle-end/48591
1315         * testsuite/libgomp.c/pr48591.c: New test.
1317 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1319         PR bootstrap/48135
1320         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1321         * configure: Regenerate.
1323 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1325         PR fortran/47886
1326         * testsuite/libgomp.fortran/task3.f90: New test.
1328 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1330         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1332 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1334         PR libgomp/47854
1335         * libgomp.texi (omp_get_wtime): Don't say time in the past
1336         must be Unix Epoch.
1338 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1340         PR libgomp/47804
1341         * testsuite/libgomp.fortran/fortran.exp: Check for both
1342         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1343         but $blddir != "", still append ${blddir}/${lang_library_path}
1344         to ld_library_path.
1346 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1348         PR libgomp/47758
1349         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1350         of libquadmath.a before adding its libpath to ldflags.
1352 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1354         PR libgomp/47731
1355         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1356         to FUTEX_WAIT futex syscall.
1357         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1359 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1361         * configure: Regenerate.
1363 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1365         PR libstdc++/36104
1366         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1368 2011-01-16  Gerald Pfeifer
1370         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1372 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1374         PR fortran/46874
1375         * libgomp.fortran/allocatable6.f90: New test.
1377 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1379         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1380         * configure: Regenerate.
1382 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1384         PR target/40125
1385         PR lto/46695
1386         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1387         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1388         * aclocal.m4: Regenerate.
1389         * configure: Regenerate.
1390         * Makefile.in: Regenerate.
1391         * testsuite/Makefile.in: Regenerate.
1393 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1395         PR fortran/46753
1396         * libgomp.fortran/pr46753.f90: New test.
1398         PR libgomp/43706
1399         * env.c (initialize_env): Default to spin count 300000
1400         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1401         is specified.
1403         PR libgomp/45240
1404         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1405         at the end if sync builtins aren't supported.
1407 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1409         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1411 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1413         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1415 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1417         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1419 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1420             Tobias Burnus  <burnus@net-b.de>
1422         PR fortran/32049
1423         * configure.ac:
1424         * configure: Regenerate.
1426 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1428         * config/linux/futex.h: New.
1429         * config/linux/arm/mutex.h: New.
1430         * configure.tgt (arm*-*-linux*): Add config path.
1432 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1434         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1436 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1438         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1439         Change Fortran datatype to LOGICAL.
1440         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1441         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1443 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1445         * configure: Regenerate.
1447 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1449         * libgomp.texi: Add function keyword to a couple of Fortran
1450         interfaces, use integer instead of int for Fortran.
1452 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1454         * libgomp.texi: Fix spelling and pasto problems throughout.
1455         Adjust prototypes to match code.
1457 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1459         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1460         silence -fwhole-file warning.
1462 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1464         * configure.tgt (*-*-solaris2.[56]*): Removed.
1466 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1468         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1469         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1470         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1471         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1472         targetting solaris2*.
1473         * configure: Regenerate.
1474         * config.h.in: Regenerate.
1476         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1477         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1478         Add libgomp_version_dep.
1479         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1480         versioning.
1481         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1482         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1483         * Makefile.in: Regenerate.
1485         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1486         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1487         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1488         to common block, protected by
1489         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1491 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1493         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1495 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1497         PR bootstrap/43170
1498         * configure: Regenerate.
1500 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1502         PR other/43620
1503         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1504         * configure: Regenerate.
1505         * Makefile.in: Regenerate.
1506         * testsuite/Makefile.in: Regenerate.
1508 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1510         PR c/43893
1511         * testsuite/libgomp.c/pr43893.c: New test.
1512         * testsuite/libgomp.c++/pr43893.C: New test.
1514 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1516         PR middle-end/43570
1517         * testsuite/libgomp.fortran/vla8.f90: New test.
1519 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1521         PR libgomp/43706
1522         * config/linux/affinity.c (gomp_init_affinity): Decrease
1523         gomp_available_cpus if affinity mask confines the process to fewer
1524         CPUs.
1525         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1526         non-NULL, just return gomp_available_cpus.
1528         PR libgomp/43569
1529         * sections.c (gomp_sections_init): Initialize ws->mode.
1531 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1533         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1534         not unused bar variable.
1535         * configure: Regenerate.
1537 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1539         * Makefile.in: Regenerate.
1540         * aclocal.m4: Regenerate.
1541         * testsuite/Makefile.in: Regenerate.
1543 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1545         PR libgomp/42942
1546         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1547         (initialize_env): Adjust callers.
1548         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1549         when the argument is 0.
1551         * testsuite/libgomp.c/pr42942.c: New test.
1553 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1555         PR middle-end/42644
1556         PR middle-end/42130
1557         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1558         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1560 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1562         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1563         * testsuite/libgomp.c++/task-6.C: Likewise.
1565 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1567         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1569 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1571         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1572         * configure: Regenerate.
1574 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1576         PR fortran/42866
1577         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1579 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1581         * configure.ac: Test for executability of GFORTRAN.
1582         * configure: Regenerate.
1584 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1586         * configure: Regenerate.
1588 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1590         PR libgomp/42602
1591         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1593 2010-01-03  Richard Guenther  <rguenther@suse.de>
1595         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1597 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1599         * testsuite/libgomp.graphite/pr4118.c: New.
1601 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1603         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1604         for darwin, protect the test with require-effective-target tls_runtime.
1605         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1607 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1609         PR target/41605
1610         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1611         link spec %s substitutions for static libraries.
1613 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1615         PR testsuite/42135
1616         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1618 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1620         * Makefile.in: Regenerate.
1621         * configure: Regenerate.
1622         * testsuite/Makefile.in: Regenerate.
1624 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1626         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1627         settings for LC_ALL and LANG.
1629 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1631         PR fortran/42162
1632         * testsuite/libgomp.fortran/pr42162.f90: New test.
1634 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1636         PR middle-end/42029
1637         * testsuite/libgomp.c/pr42029.c: New test.
1639 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1641         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1642         *s.  Accept ld version without text in ()s.
1643         * configure: Regenerated.
1645 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1647         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1649 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1651         PR libgomp/41418
1652         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1653         or a hyphen (happens with fortran language disabled).
1654         * configure: Regenerate.
1656 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1658         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1659         use sed script portable to Solaris /bin/sed for extracting ld
1660         version.
1661         * configure: Regenerate.
1663 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1665         * testsuite/libgomp.graphite/bounds.c: New test.
1667 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1669         * Makefile.am (libgomp_la_LINK): New.
1670         * Makefile.in: Regenerate.
1672 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1674         * configure.ac (AC_PREREQ): Bump to 2.64.
1676 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1678         * Makefile.am (install-html, install-pdf): Remove.
1679         * Makefile.in: Regenerate.
1681         * Makefile.in: Regenerate.
1682         * aclocal.m4: Regenerate.
1683         * config.h.in: Regenerate.
1684         * configure: Regenerate.
1685         * testsuite/Makefile.in: Regenerate.
1687 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1689         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1690         * Makefile.in: Regenerate.
1692 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1694         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1695         * Makefile.in: Regenerate.
1697 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1699         PR fortran/41102
1700         omp_lib.h.in: Fix -std=f95 errors.
1703 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1705         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1706         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1707         * testsuite/libgomp.graphite/graphite.exp: New.
1709 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1711         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1712         only build.
1714 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1716         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1717         needed memory barrier semantics.
1718         * config/linux/mips/mutex.h: New file.
1720 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1722         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1724 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1726         * configure: Regenerate.
1728 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1730         PR testsuite/40699
1731         PR testsuite/40707
1732         PR testsuite/40709
1733         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1734         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1735         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1737 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1739         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1740         options when choosing a multilib.
1742 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1744         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1745         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1746         ld_library_path, not every libgcc multilib directory.
1747         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1748         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1749         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1750         Use add_path.
1751         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1753 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1755         * Makefile.am (LTLDFLAGS): Define.
1756         (LINK): Define.
1757         * Makefile.in: Regenerate.
1759 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1761         PR fortran/39718
1762         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1763         libgfortranbegin, check existence of libgfortran.a instead of
1764         libgfortranbegin.a.
1766 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1768         PR libgomp/40174
1769         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1770         (gomp_free_pool_helper): Likewise.
1772 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1773             Jakub Jelinek  <jakub@redhat.com>
1775         PR fortran/35423
1776         * testsuite/libgomp.fortran/workshare2.f90: New test.
1778 2009-04-09  Nick Clifton  <nickc@redhat.com>
1780         * iter.c: Change copyright header to refer to version 3 of the
1781         GNU General Public License with version 3.1 of the GCC Runtime
1782         Library Exception and to point readers at the COPYING3 and
1783         COPYING3.RUNTIME files and the FSF's license web page.
1784         * alloc.c: Likewise.
1785         * barrier.c: Likewise.
1786         * config/bsd/proc.c: Likewise.
1787         * config/linux/affinity.c: Likewise.
1788         * config/linux/alpha/futex.h: Likewise.
1789         * config/linux/bar.c: Likewise.
1790         * config/linux/bar.h: Likewise.
1791         * config/linux/ia64/futex.h: Likewise.
1792         * config/linux/ia64/mutex.h: Likewise.
1793         * config/linux/lock.c: Likewise.
1794         * config/linux/mips/futex.h: Likewise.
1795         * config/linux/mutex.c: Likewise.
1796         * config/linux/mutex.h: Likewise.
1797         * config/linux/powerpc/futex.h: Likewise.
1798         * config/linux/proc.c: Likewise.
1799         * config/linux/ptrlock.c: Likewise.
1800         * config/linux/ptrlock.h: Likewise.
1801         * config/linux/s390/futex.h: Likewise.
1802         * config/linux/sem.c: Likewise.
1803         * config/linux/sem.h: Likewise.
1804         * config/linux/sparc/futex.h: Likewise.
1805         * config/linux/wait.h: Likewise.
1806         * config/linux/x86/futex.h: Likewise.
1807         * config/mingw32/proc.c: Likewise.
1808         * config/mingw32/time.c: Likewise.
1809         * config/posix/affinity.c: Likewise.
1810         * config/posix/bar.c: Likewise.
1811         * config/posix/bar.h: Likewise.
1812         * config/posix/lock.c: Likewise.
1813         * config/posix/mutex.h: Likewise.
1814         * config/posix/proc.c: Likewise.
1815         * config/posix/ptrlock.h: Likewise.
1816         * config/posix/sem.c: Likewise.
1817         * config/posix/sem.h: Likewise.
1818         * config/posix/time.c: Likewise.
1819         * config/posix95/lock.c: Likewise.
1820         * critical.c: Likewise.
1821         * env.c: Likewise.
1822         * error.c: Likewise.
1823         * fortran.c: Likewise.
1824         * iter_ull.c: Likewise.
1825         * libgomp.h: Likewise.
1826         * libgomp_f.h.in: Likewise.
1827         * libgomp_g.h: Likewise.
1828         * loop.c: Likewise.
1829         * loop_ull.c: Likewise.
1830         * omp.h.in: Likewise.
1831         * omp_lib.f90.in: Likewise.
1832         * omp_lib.h.in: Likewise.
1833         * ordered.c: Likewise.
1834         * parallel.c: Likewise.
1835         * sections.c: Likewise.
1836         * single.c: Likewise.
1837         * task.c: Likewise.
1838         * team.c: Likewise.
1839         * work.c: Likewise.
1841 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1843         * testsuite/config/default.exp: Change copyright header to refer to
1844         version 3 of the GNU General Public License and to point readers
1845         at the COPYING3 file and the FSF's license web page.
1847 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1849         PR middle-end/39573
1850         * libgomp.c++/pr39573.C: New test.
1852 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1854         PR other/39591
1855         * testsuite/libgomp.c/pr39591-1.c: New test.
1856         * testsuite/libgomp.c/pr39591-2.c: New test.
1857         * testsuite/libgomp.c/pr39591-3.c: New test.
1859 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1861         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1862         * testsuite/libgomp.c/atomic-6.c: Ditto.
1864 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1866         PR c/39495
1867         * testsuite/libgomp.c/loop-12.c: New test.
1868         * testsuite/libgomp.c/loop-11.c: New test.
1869         * testsuite/libgomp.c++/loop-11.C: New test.
1870         * testsuite/libgomp.c++/loop-12.C: New test.
1871         * testsuite/libgomp.c++/for-8.C: New test.
1873 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1875         * configure: Regenerate.
1877 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1879         PR middle-end/39154
1880         * testsuite/libgomp.c/pr39154.c: New test.
1882 2009-01-30  Ian Lance Taylor  <iant@google.com>
1884         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1885         libgomp_ld_is_gold.  Get gold version number.
1886         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1887         * configure: Rebuild.
1889 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1891         * testsuite/lib/libgomp.exp: Add -B option for targets that
1892         use libgfortran.a%s in their specs.
1894 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1896         PR libgomp/38086
1897         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1898         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1899         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1900         * configure: Regenerated.
1901         * config.h.in: Likewise.
1903 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1905         PR c++/38650
1906         * testsuite/libgomp.c/pr38650.c: New test.
1907         * testsuite/libgomp.c++/pr38650.C: New test.
1909 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1911         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1913 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1915         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1917 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1919         * configure: Regenerate.
1921 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1923         PR middle-end/36802
1924         * testsuite/libgomp.c/pr36802-1.c: New test.
1925         * testsuite/libgomp.c/pr36802-2.c: New test.
1926         * testsuite/libgomp.c/pr36802-3.c: New test.
1928 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1930         PR libgomp/38270
1931         * config/linux/powerpc/mutex.h: New.
1933 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1935         PR c++/38257
1936         * testsuite/libgomp.c++/for-7.C: New test.
1938         PR c++/38348
1939         * testsuite/libgomp.c++/for-6.C: New test.
1941 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1943         PR testsuite/28870
1944         * testsuite/lib/libgomp.exp: Include new timeout library files.
1945         (libgomp_target_compile): Set timeout value from new proc.
1947 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1949         PR libgomp/37938
1950         * config/linux/ia64/mutex.h: New.
1952 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1954         PR libgomp/37935
1955         * libgomp.texi (Runtime library routines, environment variables):
1956         Update for OpenMP version 3.0.
1958 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1959             Steve Ellcey  <sje@cup.hp.com>
1961         * configure: Regenerate for new libtool.
1962         * Makefile.in: Ditto.
1963         * testsuite/Makefile.in: Ditto.
1965 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1966             Andreas Tobler  <a.tobler@schweiz.org>
1968         * config/bsd/proc.c: New file.
1969         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1970         * configure.ac: Check for header <sys/sysctl.h>
1971         * configure: Regenerate.
1972         * config.h.in: Likewise.
1974 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1976         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1978 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1980         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1981         * Makefile.in: Regenerated.
1982         * testsuite/Makefile.in: Regenerated.
1984 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1986         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1987         depend on blddir if blddir exists.
1988         (libgomp_target_compile): Likewise.
1989         * testsuite/libgomp.c++/c++.exp: Likewise.
1990         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1992 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1994         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1995         Do not list GPL as Invariant Section.
1997 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1998             Chao-ying Fu  <fu@mips.com>
2000         * configure.tgt: Enable futex for MIPS.
2001         * config/linux/mips/futex.h: New file.
2003 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
2005         * team.c (gomp_team_end): Free team immediately if it has
2006         just one thread.
2008 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
2010         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2011         * testsuite/libgomp.fortran/fortran.exp: Same.
2012         * testsuite/libgomp.c/c.exp: Same.
2013         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2014         directory to library path first.
2016 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
2018         * env.c (parse_stacksize): Add cast to avoid warning.
2019         (parse_spincount): Likewise.
2021 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2023         * testsuite/libgomp.c/loop-10.c: New test.
2024         * libgomp.c/loop-3.c (main): Add lastprivate clause.
2025         * libgomp.c++/loop-6.C (main): Likewise.
2027         PR debug/36617
2028         * testsuite/libgomp.c/debug-1.c: New test.
2030 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2032         * testsuite/libgomp.c/nqueens-1.c: New test.
2034         PR c++/36523
2035         * testsuite/libgomp.c++/task-7.C: New function.
2037 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2039         * configure: Regenerate.
2041 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2043         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2044         mutex when HAVE_SYNC_BUILTINS isn't defined.
2046 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2048         * libgomp.texi (omp_test_lock): Fix typo.
2050 2008-06-12  Tobias Burnus  <burnus@net-b.de>
2052         * omp_lib.f90.in: Add "implicit none".
2054 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2056         PR middle-end/36506
2057         * testsuite/libgomp.c/reduction-5.c: New test.
2059 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
2061         * libgomp.h (struct gomp_task): Add in_tied_task field.
2062         * task.c (gomp_init_task): Initialize it.
2063         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
2064         unconditionally.  Don't call gomp_team_barrier_wake if
2065         current task is implicit or if(0) from implicit and number of
2066         running tasks is equal to nthreads - 1.
2068         PR libgomp/36471
2069         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2070         omp_get_team_size_8): Fix pastos.
2072         PR libgomp/36469
2073         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2074         * configure: Regenerated.
2075         * config.h.in: Regenerated.
2076         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2077         defined.
2079 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
2081         PR bootstrap/36452
2082         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2083         (GOMP_loop_ull_dynamic_start): Likewise.
2084         (GOMP_loop_ull_guided_start): Likewise.
2085         (GOMP_loop_ull_ordered_static_start): Likewise.
2086         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2087         (GOMP_loop_ull_ordered_guided_start): Likewise.
2089 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2090             Richard Henderson  <rth@redhat.com>
2091             Ulrich Drepper  <drepper@redhat.com>
2092             Jakob Blomer  <jakob.blomer@ira.uka.de>
2094         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2095         Substitute also OMP_*LOCK_25*.
2096         * configure: Regenerated.
2097         * config.h.in: Regenerated.
2098         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2099         ptrlock.c and task.c.
2100         * Makefile.in: Regenerated.
2101         * testsuite/Makefile.in: Regenerated.
2102         * task.c: New file.
2103         * loop_ull.c: New file.
2104         * iter_ull.c: New file.
2105         * libgomp.h: Include ptrlock.h.
2106         (enum gomp_task_kind): New type.
2107         (struct gomp_team): Add task_lock, task_queue, task_count,
2108         task_running_count, single_count fields.  Add
2109         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2110         Remove work_share_lock, generation_mask,
2111         oldest_live_gen, num_live_gen and init_work_shares fields, add
2112         work work_share_list_alloc, work_share_list_free and work_share_chunk
2113         fields.  Change work_shares from pointer to pointers into an array.
2114         Change ordered_release field into gomp_sem_t ** from flexible array
2115         member.  Add implicit_task and initial_work_shares fields.
2116         Move close to the end of the struct.
2117         (struct gomp_team_state): Add single_count, last_work_share,
2118         active_level and level fields, remove work_share_generation.
2119         (gomp_barrier_handle_tasks): New prototype.
2120         (gomp_finish_task): New inline function.
2121         (struct gomp_work_share): Move chunk_size, end, incr into
2122         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2123         next_ll fields.  Reshuffle fields.  Add next_alloc,
2124         next_ws, next_free and inline_ordered_team_ids fields, change
2125         ordered_team_ids into pointer from flexible array member.
2126         Add mode field.  Put lock and next into a different cache line
2127         from most of the write-once fields.
2128         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2129         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2130         gomp_iter_ull_guided_next): New prototypes.
2131         (gomp_new_icv): New prototype.
2132         (struct gomp_thread): Add thread_pool and task fields.
2133         (struct gomp_thread_pool): New type.
2134         (gomp_new_team): New prototype.
2135         (gomp_team_start): Change type of last argument.
2136         (gomp_new_work_share): Removed.
2137         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2138         (gomp_work_share_init_done): New static inline.
2139         (gomp_throttled_spin_count_var, gomp_available_cpus,
2140         gomp_managed_threads): New extern decls.
2141         (gomp_init_task): New prototype.
2142         (gomp_spin_count_var): New extern var decl.
2143         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2144         or no alias support, or if not PIC.
2145         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2146         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2147         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2148         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2149         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2150         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2151         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2152         gomp_test_nest_lock_25): New prototypes.
2153         (omp_lock_symver, strong_alias): Define.
2154         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2155         decls.
2156         (gomp_end_task): New.
2157         (struct gomp_task_icv, gomp_global_icv): New.
2158         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2159         (struct gomp_task): New.
2160         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2161         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2162         (gomp_icv): New.
2163         (gomp_schedule_type): Reorder enum to match
2164         omp_sched_t.
2165         * team.c (struct gomp_thread_start_data): Add thread_pool and task
2166         fields.
2167         (gomp_thread_start): Add gomp_team_barrier_wait call.
2168         For non-nested case remove clearing of docked thread thr fields.
2169         Use pool fields instead of global gomp_* variables.  Use
2170         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2171         Create tasks for each member thread.
2172         (free_team): Only destroy team barrier, task_lock here and free it.
2173         (gomp_free_thread): Free last_team if non-NULL.
2174         (gomp_team_end): Call gomp_team_barrier_wait instead of
2175         gomp_barrier_wait.  For nested case call one extra
2176         gomp_barrier_wait.  Move here some destruction from free_team.
2177         Call free_team on pool->last_team if any, rather than freeing
2178         current team.  Destroy work_share_list_free_lock ifndef
2179         HAVE_SYNC_BUILTINS.
2180         (gomp_new_icv): New function.
2181         (gomp_threads, gomp_threads_size, gomp_threads_used,
2182         gomp_threads_dock): Removed.
2183         (gomp_thread_destructor): New variable.
2184         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2185         functions.
2186         (gomp_team_start): Create new pool if current thread doesn't have
2187         one.  Use pool fields instead of global gomp_* variables.
2188         Initialize thread_pool field for new threads.  Clear single_count.
2189         Change last argument from ws to team, don't create
2190         new team, set ts.work_share to &team->work_shares[0] and clear
2191         ts.last_work_share.  Don't clear ts.work_share_generation.
2192         If number of threads changed, adjust atomically gomp_managed_threads.
2193         Use gomp_init_task instead of gomp_new_task,
2194         set thr->task to the corresponding implicit_task array entry.
2195         Create tasks for each member thread.  Initialize ts.level.
2196         (initialize_team): Call pthread_key_create on
2197         gomp_thread_destructor.
2198         (team_destructor): New function.
2199         (new_team): Removed.
2200         (gomp_new_team): New function.
2201         (free_team): Free gomp_work_share blocks chained through next_alloc,
2202         instead of freeing work_shares and destroying work_share_lock.
2203         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2204         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2205         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2206         of gomp_barrier_wait.
2207         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2208         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2209         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2210         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2211         of gomp_barrier_wait.
2212         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2213         gomp_work_share_init_done if gomp_work_share_start returned true.
2214         Don't unlock ws->lock.
2215         * work.c: Include stddef.h.
2216         (free_work_share): Use work_share_list_free_lock instead
2217         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2218         Call gomp_fini_work_share and then either free ws if orphaned, or
2219         put it into work_share_list_free list of the current team.
2220         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2221         functions.
2222         (gomp_work_share_start, gomp_work_share_end,
2223         gomp_work_share_end_nowait): Rewritten.
2224         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2225         (openmp_version): Set to 200805.
2226         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2227         omp_sched_guided, omp_sched_auto): New parameters.
2228         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2229         omp_set_max_active_levels, omp_get_max_active_levels,
2230         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2231         omp_get_active_level): New interfaces.
2232         * omp_lib.h.in (openmp_version): Set to 200805.
2233         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2234         omp_sched_guided, omp_sched_auto): New parameters.
2235         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2236         omp_set_max_active_levels, omp_get_max_active_levels,
2237         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2238         omp_get_active_level): New externals.
2239         * loop.c: Include limits.h.
2240         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2241         GFS_AUTO.
2242         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2243         Likewise.  Use gomp_icv.
2244         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2245         ts.static_trip here.
2246         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2247         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2248         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2249         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2250         don't unlock ws->lock, otherwise lock it.
2251         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2252         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2253         (gomp_parallel_loop_start): Call gomp_new_team instead of
2254         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2255         Adjust gomp_team_start caller.  Pass 0 as second argument to
2256         gomp_resolve_num_threads.
2257         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2258         If adding ws->chunk_size nthreads + 1 times after end won't
2259         overflow, set ws->mode to 1.
2260         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2261         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2262         GOMP_loop_ull_ordered_static_start,
2263         GOMP_loop_ull_ordered_dynamic_start,
2264         GOMP_loop_ull_ordered_guided_start,
2265         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2266         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2267         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2268         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2269         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2270         prototypes.
2271         * libgomp.map: Export lock routines also @@OMP_2.0.
2272         (GOMP_loop_ordered_dynamic_first,
2273         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2274         GOMP_loop_ordered_static_first): Remove.
2275         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2276         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2277         GOMP_loop_ull_ordered_dynamic_next,
2278         GOMP_loop_ull_ordered_dynamic_start,
2279         GOMP_loop_ull_ordered_guided_next,
2280         GOMP_loop_ull_ordered_guided_start,
2281         GOMP_loop_ull_ordered_runtime_next,
2282         GOMP_loop_ull_ordered_runtime_start,
2283         GOMP_loop_ull_ordered_static_next,
2284         GOMP_loop_ull_ordered_static_start,
2285         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2286         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2287         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2288         (omp_set_schedule, omp_get_schedule,
2289         omp_get_thread_limit, omp_set_max_active_levels,
2290         omp_get_max_active_levels, omp_get_level,
2291         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2292         omp_set_schedule_, omp_set_schedule_8_,
2293         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2294         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2295         omp_get_max_active_levels_, omp_get_level_,
2296         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2297         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2298         New exports @@OMP_3.0.
2299         * omp.h.in (omp_sched_t): New type.
2300         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2301         omp_set_max_active_levels, omp_get_max_active_levels,
2302         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2303         omp_get_active_level): New prototypes.
2304         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2305         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2306         gomp_thread_limit_var, gomp_remaining_threads_count,
2307         gomp_remaining_threads_lock): New variables.
2308         (parse_spincount): New function.
2309         (initialize_env): Call gomp_init_num_threads unconditionally.
2310         Initialize gomp_available_cpus.  Call parse_spincount,
2311         initialize gomp_{,throttled_}spin_count_var
2312         depending on presence and value of OMP_WAIT_POLICY and
2313         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2314         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2315         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2316         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2317         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2318         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2319         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2320         (gomp_global_icv): New.
2321         (parse_schedule): Use it.  Parse "auto".
2322         (omp_set_num_threads): Use gomp_icv.
2323         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2324         Likewise.
2325         (omp_get_max_threads): Move from parallel.c.
2326         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2327         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2328         add ialias.
2329         (parse_stacksize, parse_wait_policy): New functions.
2330         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2331         both wrappers for compatibility and new locks.
2332         (omp_set_schedule, omp_get_schedule,
2333         omp_get_thread_limit, omp_set_max_active_levels,
2334         omp_get_max_active_levels, omp_get_level,
2335         omp_get_ancestor_thread_num, omp_get_team_size,
2336         omp_get_active_level): New ialias_redirect.
2337         (omp_set_schedule_, omp_set_schedule_8_,
2338         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2339         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2340         omp_get_max_active_levels_, omp_get_level_,
2341         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2342         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2343         New functions.
2344         * parallel.c: Include limits.h.
2345         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2346         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2347         argument to gomp_team_start.  Pass 0 as second argument to
2348         gomp_resolve_num_threads.
2349         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2350         if gomp_thread_limit_var != ULONG_MAX.
2351         (omp_in_parallel): Implement using ts.active_level.
2352         (omp_get_max_threads): Move to env.c.
2353         (omp_get_level, omp_get_ancestor_thread_num,
2354         omp_get_team_size, omp_get_active_level): New functions,
2355         add ialias.
2356         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2357         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2358         gomp_iter_dynamic_next instead of the _locked variant and don't take
2359         lock around it, otherwise acquire it before calling
2360         gomp_iter_dynamic_next_locked.
2361         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2362         gomp_iter_dynamic_next instead of the _locked variant and don't take
2363         lock around it.
2364         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2365         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2366         Adjust gomp_team_start caller.  Pass count as second argument to
2367         gomp_resolve_num_threads, don't adjust num_threads after the call.
2368         Use gomp_icv.
2369         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2370         ws->chunk_size by incr.
2371         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2372         code.
2373         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2374         types.
2375         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2376         (omp_check_defines): Check even the compat defines.
2377         * config/linux/ptrlock.c: New file.
2378         * config/linux/ptrlock.h: New file.
2379         * config/linux/wait.h: New file.
2380         * config/posix/ptrlock.c: New file.
2381         * config/posix/ptrlock.h: New file.
2382         * config/linux/bar.h (gomp_team_barrier_wait,
2383         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2384         (gomp_team_barrier_set_task_pending,
2385         gomp_team_barrier_clear_task_pending,
2386         gomp_team_barrier_set_waiting_for_tasks,
2387         gomp_team_barrier_waiting_for_tasks,
2388         gomp_team_barrier_done): New inlines.
2389         (gomp_barrier_t): Rewritten.
2390         (gomp_barrier_state_t): New typedef.
2391         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2392         gomp_barrier_wait_start): Rewritten.
2393         (gomp_barrier_wait_end): Change second argument to
2394         gomp_barrier_state_t.
2395         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2396         inlines.
2397         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2398         futex.h.
2399         (gomp_barrier_wait_end): Rewritten.
2400         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2401         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2402         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2403         (gomp_barrier_state_t): New typedef.
2404         (gomp_team_barrier_wait,
2405         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2406         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2407         into the return value.  Return gomp_barrier_state_t.
2408         (gomp_team_barrier_set_task_pending,
2409         gomp_team_barrier_clear_task_pending,
2410         gomp_team_barrier_set_waiting_for_tasks,
2411         gomp_team_barrier_waiting_for_tasks,
2412         gomp_team_barrier_done): New inlines.
2413         (gomp_barrier_wait_end): Change second argument to
2414         gomp_barrier_state_t.
2415         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2416         inlines.
2417         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2418         (gomp_barrier_wait_end): Change second argument to
2419         gomp_barrier_state_t.
2420         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2421         gomp_team_barrier_wake): New functions.
2422         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2423         futex.h.
2424         (gomp_futex_wake, gomp_futex_wait): New variables.
2425         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2426         * config/linux/lock.c: Rewrite to make locks task owned,
2427         for backwards compatibility provide the old entrypoints
2428         if symbol versioning.  Include wait.h instead of libgomp.h and
2429         futex.h.
2430         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2431         * config/posix95/lock.c: Rewrite to make locks task owned,
2432         for backwards compatibility provide the old entrypoints
2433         if symbol versioning.
2434         * config/posix/lock.c: Rewrite to make locks task owned,
2435         for backwards compatibility provide the old entrypoints
2436         if symbol versioning.
2437         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2438         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2439         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2440         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2441         (sys_futex0): Return error code.
2442         (futex_wake, futex_wait): If ENOSYS was returned, clear
2443         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2444         (cpu_relax, atomic_write_barrier): New static inlines.
2445         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2446         (futex_wake, futex_wait): If ENOSYS was returned, clear
2447         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2448         (cpu_relax, atomic_write_barrier): New static inlines.
2449         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2450         (sys_futex0): Return error code.
2451         (futex_wake, futex_wait): If ENOSYS was returned, clear
2452         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2453         (cpu_relax, atomic_write_barrier): New static inlines.
2454         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2455         (sys_futex0): Return error code.
2456         (futex_wake, futex_wait): If ENOSYS was returned, clear
2457         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2458         (cpu_relax, atomic_write_barrier): New static inlines.
2459         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2460         (sys_futex0): Return error code.
2461         (futex_wake, futex_wait): If ENOSYS was returned, clear
2462         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2463         (cpu_relax, atomic_write_barrier): New static inlines.
2464         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2465         (sys_futex0): Return error code.
2466         (futex_wake, futex_wait): If ENOSYS was returned, clear
2467         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2468         (cpu_relax, atomic_write_barrier): New static inlines.
2469         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2470         futex.h.
2471         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2472         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2473         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2474         types.
2475         (omp_nest_lock_t): Change owner into void *, add lock field.
2476         * config/posix95/omp-lock.h: Include semaphore.h.
2477         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2478         (omp_lock_t): Use sem_t instead of mutex if semaphores
2479         aren't broken.
2480         (omp_nest_lock_t): Likewise.  Change owner to void *.
2481         * config/posix/omp-lock.h: Include semaphore.h.
2482         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2483         (omp_lock_t): Use sem_t instead of mutex if semaphores
2484         aren't broken.
2485         (omp_nest_lock_t): Likewise.  Add owner field.
2487 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2489         * testsuite/libgomp.c/collapse-1.c: New test.
2490         * testsuite/libgomp.c/collapse-2.c: New test.
2491         * testsuite/libgomp.c/collapse-3.c: New test.
2492         * testsuite/libgomp.c/icv-1.c: New test.
2493         * testsuite/libgomp.c/icv-2.c: New test.
2494         * testsuite/libgomp.c/lib-2.c: New test.
2495         * testsuite/libgomp.c/lock-1.c: New test.
2496         * testsuite/libgomp.c/lock-2.c: New test.
2497         * testsuite/libgomp.c/lock-3.c: New test.
2498         * testsuite/libgomp.c/loop-4.c: New test.
2499         * testsuite/libgomp.c/loop-5.c: New test.
2500         * testsuite/libgomp.c/loop-6.c: New test.
2501         * testsuite/libgomp.c/loop-7.c: New test.
2502         * testsuite/libgomp.c/loop-8.c: New test.
2503         * testsuite/libgomp.c/loop-9.c: New test.
2504         * testsuite/libgomp.c/nested-3.c: New test.
2505         * testsuite/libgomp.c/nestedfn-6.c: New test.
2506         * testsuite/libgomp.c/sort-1.c: New test.
2507         * testsuite/libgomp.c/task-1.c: New test.
2508         * testsuite/libgomp.c/task-2.c: New test.
2509         * testsuite/libgomp.c/task-3.c: New test.
2510         * testsuite/libgomp.c/task-4.c: New test.
2511         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2512         to C++ testsuite default compiler options.
2513         * testsuite/libgomp.c++/collapse-1.C: New test.
2514         * testsuite/libgomp.c++/collapse-2.C: New test.
2515         * testsuite/libgomp.c++/ctor-10.C: New test.
2516         * testsuite/libgomp.c++/for-1.C: New test.
2517         * testsuite/libgomp.c++/for-2.C: New test.
2518         * testsuite/libgomp.c++/for-3.C: New test.
2519         * testsuite/libgomp.c++/for-4.C: New test.
2520         * testsuite/libgomp.c++/for-5.C: New test.
2521         * testsuite/libgomp.c++/loop-8.C: New test.
2522         * testsuite/libgomp.c++/loop-9.C: New test.
2523         * testsuite/libgomp.c++/loop-10.C: New test.
2524         * testsuite/libgomp.c++/task-1.C: New test.
2525         * testsuite/libgomp.c++/task-2.C: New test.
2526         * testsuite/libgomp.c++/task-3.C: New test.
2527         * testsuite/libgomp.c++/task-4.C: New test.
2528         * testsuite/libgomp.c++/task-5.C: New test.
2529         * testsuite/libgomp.c++/task-6.C: New test.
2530         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2531         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2532         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2533         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2534         * testsuite/libgomp.fortran/collapse1.f90: New test.
2535         * testsuite/libgomp.fortran/collapse2.f90: New test.
2536         * testsuite/libgomp.fortran/collapse3.f90: New test.
2537         * testsuite/libgomp.fortran/collapse4.f90: New test.
2538         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2539         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2540         * testsuite/libgomp.fortran/lib4.f90: New test.
2541         * testsuite/libgomp.fortran/lock-1.f90: New test.
2542         * testsuite/libgomp.fortran/lock-2.f90: New test.
2543         * testsuite/libgomp.fortran/nested1.f90: New test.
2544         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2545         * testsuite/libgomp.fortran/strassen.f90: New test.
2546         * testsuite/libgomp.fortran/tabs1.f90: New test.
2547         * testsuite/libgomp.fortran/tabs2.f: New test.
2548         * testsuite/libgomp.fortran/task1.f90: New test.
2549         * testsuite/libgomp.fortran/task2.f90: New test.
2550         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2551         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2552         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2553         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2554         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2556 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2558         PR c++/36308
2559         * testsuite/libgomp.c++/ctor-11.C: New test.
2560         * testsuite/libgomp.c++/ctor-12.C: New test.
2562 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2564         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2566 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2568         PR middle-end/36106
2569         * testsuite/libgomp.c/atomic-5.c: New test.
2570         * testsuite/libgomp.c/atomic-6.c: New test.
2571         * testsuite/libgomp.c/autopar-1.c: New test.
2573 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2575         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2576         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2577         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2578         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2579         * configure: Regenerate.
2580         * Makefile.in, testsuite/Makefile.in: Likewise.
2582 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2584         PR bootstrap/35457
2585         * aclocal.m4: Regenerate.
2586         * configure: Regenerate.
2588 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2590         PR middle-end/35611
2591         * testsuite/libgomp.c/atomic-4.c: New test.
2593         PR libgomp/35625
2594         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2595         (gomp_iter_guided_next): Likewise.
2596         * testsuite/libgomp.c/pr35625.c: New test.
2598 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2600         * aclocal.m4: Regenerate.
2601         * configure: Likewise.
2602         * Makefile.in: Likewise.
2603         * testsuite/Makefile.in: Likewise.
2605 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2607         PR middle-end/35185
2608         * testsuite/libgomp.c++/pr35185.C: New test.
2610 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2612         PR middle-end/35549
2613         * testsuite/libgomp.c/pr35549.c: New test.
2615 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2617         * testsuite/libgomp.c/atomic-3.c: New test.
2619 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2621         PR fortran/33197
2622         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2623         .F08 file suffixes.
2625 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2627         PR libgomp/33131
2628         * configure.ac: Add ACX_HEADER_STRING.
2629         * env.c: Include strings.h.
2630         * aclocal.m4: Regenerate.
2631         * config.h.in: Regenerate.
2632         * configure: Regenerate.
2633         * Makefile.in: Regenerate.
2634         * testsuite/Makefile.in: Regenerate.
2636 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2638         PR middle-end/35196
2639         * testsuite/libgomp.c/pr35196.c: New test.
2641         PR middle-end/35130
2642         * testsuite/libgomp.fortran/pr35130.f90: New test.
2643         * testsuite/libgomp.c/pr35130.c: New test.
2645 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2647         PR middle-end/33880
2648         * testsuite/libgomp.c/pr33880.c: New test.
2649         * testsuite/libgomp.fortran/pr33880.f90: New test.
2651 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2653         * configure: Regenerate.
2655 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2657         * configure.ac: Move futex checking into ../config/futex.m4.
2658         * configure: Rebuilt.
2659         * aclocal.m4: Rebuilt.
2660         * Makefile.in: Rebuilt.
2662         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2663         2007-10-15 ../config/tls.m4 change.
2665 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2667         PR c++/34513
2668         * testsuite/libgomp.c/pr34513.c: New test.
2669         * testsuite/libgomp.c++/pr34513.C: New test.
2671 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2673         PR target/32765
2674         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2676 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2678         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2680 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2682         * testsuite/libgomp.c/private-1.c: New test.
2684 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2685             Paolo Bonzini  <bonzini@gnu.org>
2687         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2688         instead of 'VPATH ='.
2689         * Makefile.in: Regenerate.
2691 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2693         * configure.ac: Adjust makeinfo version check.
2694         * configure: Regenerate.
2696 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2698         PR fortran/34020
2699         * testsuite/libgomp.fortran/pr34020.f90: New test.
2701 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2703         PR c++/33894
2704         * testsuite/libgomp.c++/atomic-1.C: New test.
2706 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2708         PR libgomp/33275
2709         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2710         Make x and y integers rather than (implicit) reals.  Add private (j)
2711         clause to the last omp parallel.
2713 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2715         * configure: Regenerate following changes to ../config/tls.m4.
2717 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2719         * testsuite/libgomp.fortran/stack.f90: New test.
2721 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2723         * config/mingw32/proc.c: New file.
2725 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2727         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2728         (main): Use __get_cpuid to get i386 target fetaures.
2729         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2730         (main): Use __get_cpuid to get x86_64 target fetaures.
2732 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2734         PR target/32765
2735         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2736         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2738 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2740         PR fortran/32550
2741         * testsuite/libgomp.fortran/pr32550.f90: New test.
2742         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2744 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2746         * aclocal.m4: Regenerated.
2748 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2750         PR fortran/32359
2751         * testsuite/libgomp.fortran/pr32359.f90: New.
2753 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2755         PR libgomp/32468
2756         * sections.c (GOMP_parallel_sections_start): Only decrease
2757         number of threads to COUNT if dyn_var is true.
2758         * testsuite/libgomp.c/pr32468.c: New test.
2760 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2762         PR libgomp/26308
2763         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2765 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2767         PR middle-end/32362
2768         * testsuite/libgomp.c/pr32362-1.c: New test.
2769         * testsuite/libgomp.c/pr32362-2.c: New test.
2770         * testsuite/libgomp.c/pr32362-3.c: New test.
2772 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2774         * team.c (gomp_team_start): Fix setting up thread_attr
2775         stack size.
2777 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2779         * configure: Regenerate.
2781 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2783         * Makefile.in: Regenerate.
2784         * configure: Regenerate.
2785         * aclocal.m4: Regenerate.
2786         * testsuite/Makefile.in: Regenerate.
2788 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2790         * config/linux/proc.c: New file.
2792         PR libgomp/28482
2793         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2795 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2797         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2799 2007-04-16  Matthias Klose  <doko@debian.org>
2801         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2802         flags if not building with -m64.
2803         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2804         flag for i?86-*-* targets, if current target matches -m64.
2806 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2808         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2809         * Makefile.in: Regenerate.
2811 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2813         PR testsuite/31369
2814         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2815         ld_library_path.
2816         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2818 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2820         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2821         decls.
2822         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2823         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2824         (parse_affinity): New function.
2825         (initialize_env): Call it and gomp_init_affinity.
2826         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2827         create new pthread_attr_t and call gomp_init_thread_affinity
2828         on it for each thread before passing the attribute to pthread_create.
2829         * config/linux/affinity.c: New file.
2830         * config/posix/affinity.c: New file.
2831         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2832         * configure: Rebuilt.
2833         * config.h.in: Rebuilt.
2834         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2835         * Makefile.in: Rebuilt.
2837 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2839         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2840         *-*-darwin*.
2841         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2842         and use it if found.
2844 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2846         * testsuite/config/default.exp: New file.
2847         * testsuite/lib/libgomp.exp: New file.
2848         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2849         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2850         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2851         (libgomp_load): Remove.
2852         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2853         always_ld_library_path, not ld_library_path.  Set additional_flags
2854         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2855         (target_compile): Do not call libgomp_init.  Append lang_library_path
2856         and lang_link_flags to options.
2857         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2858         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2859         here.
2860         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2861         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2862         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2863         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2864         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2865         CX8 flag.
2866         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2867         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2868         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2869         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2870         * testsuite/libgomp.c/atomic-10.c: Ditto.
2872 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2874         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2875         dg-final cleanup-modules line.
2876         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2877         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2878         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2879         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2880         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2881         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2882         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2884 2007-03-18  Andreas Schwab  <schwab@suse.de>
2886         * acinclude.m4: Adjust regular expression for ld version
2887         extraction.
2888         * configure: Regenerate.
2890 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2892         * Makefile.am: Add install-pdf target as copied from
2893         automake v1.10 rules.
2894         * Makefile.in: Regenerate
2896 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2898         PR libgomp/28486
2899         * configure: Regenerate.
2901         PR c++/30703
2902         * testsuite/libgomp.c++/pr30703.C: New test.
2904 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2906         Revert:
2907         2006-07-05  Eric Christopher  <echristo@apple.com>
2908         * configure.ac: Depend addition of -pthread on host OS.
2909         * configure: Regenerate.
2911 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2913         * libgomp.texi: Fix spacing after abbreviations.
2915 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2917         PR libgomp/30546
2918         * configure.ac: Add check for makeinfo
2919         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2920         if an appropiate version of makeinfo is found.
2921         * aclocal.m4: Regenerated.
2922         * configure: Regenerated.
2923         * Makefile.in: Regenerated.
2924         * testsuite/Makefile.in: Regenerated.
2926 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2928         PR libgomp/30540
2929         * libgomp.texi: More about implementation-dependent settings.
2931 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2933         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2935 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2937         PR middle-end/30494
2938         * testsuite/libgomp.c/pr30494.c: New test.
2940 2007-01-15  Tom Tromey  <tromey@redhat.com>
2942         * configure: Rebuilt.
2943         * configure.ac: Fixed comment.
2945 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2947         * libgomp.texi: Document implementation specific default values of
2948         environment variables.
2950 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2952         PR libgomp/28209
2953         * libgomp.texi: New file.
2954         * configure.ac: Add --enable-generated-files-in-srcdir option.
2955         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2956         files to srcdir.
2957         * Makefile.in: Regenerated.
2958         * config.h.in: Regenerated.
2959         * testsuite/Makefile.in: Regenerated.
2960         * NOTES: Removed.
2962 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2964         PR libgomp/29949
2965         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2967 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2969         * configure: Regenerate.
2971 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2973         PR libgomp/29947
2974         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2975         start if there shouldn't be any loop iterations.
2976         (gomp_loop_ordered_static_start): Remove start == end test.
2977         * testsuite/libgomp.c/pr29947-1.c: New test.
2978         * testsuite/libgomp.c/pr29947-2.c: New test.
2980 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2982         * configure.tgt: Force initial-exec TLS model on Linux only.
2984 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2986         * configure: Regenerated.
2988 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2990         * env.c (parse_schedule): Reject out of range values.
2991         (parse_unsigned_long): Reject out of range, negative or zero values.
2993 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2995         PR fortran/29629
2996         * testsuite/libgomp.fortran/pr29629.f90: New test.
2998 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
3000         PR libgomp/29494
3001         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3002         * config/posix95: New directory.
3003         * config/posix95/omp-lock.h: New file.
3004         * config/posix95/lock.c: Likewise.
3006 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
3008         * aclocal.m4: Regenerate.
3009         * configure: Regenerate.
3011 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3013         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3014         '<' to '<='.
3016 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3018         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3019         test.
3020         * configure: Regenerate.
3021         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3023 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
3025         PR middle-end/25261
3026         PR middle-end/28790
3027         * testsuite/libgomp.c/nestedfn-4.c: New test.
3028         * testsuite/libgomp.c/nestedfn-5.c: New test.
3029         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3031         PR fortran/29097
3032         * testsuite/libgomp.fortran/condinc1.f: New test.
3033         * testsuite/libgomp.fortran/condinc2.f: New test.
3034         * testsuite/libgomp.fortran/condinc3.f90: New test.
3035         * testsuite/libgomp.fortran/condinc4.f90: New test.
3036         * testsuite/libgomp.fortran/condinc1.inc: New file.
3038 2006-09-18  Tom Tromey  <tromey@redhat.com>
3040         * configure: Rebuilt.
3042 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
3044         PR c/28768
3045         PR preprocessor/14634
3046         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3047         to AC_DEFINE.
3048         * configure: Regenerate.
3050 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3052         * testsuite/libgomp.fortran/reduction3.f90: Change
3053         -2147483648 to -huge(i)-1 to avoid overflow.
3054         * testsuite/libgomp.fortran/reduction4.f90: Change
3055         Z'ffffffff' to not(0) to avoid overflow.
3057 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
3059         PR libgomp/25938
3060         * Makefile.am (libsubincludedir): New.
3061         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3062         * Makefile.in: Regenerate.
3064 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
3066         PR libgomp/28725
3067         * env.c: Include ctype.h.
3068         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3069         leading and/or trailing whitespace and compare strings case
3070         insensitively.
3072 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
3074         PR fortran/28390
3075         * testsuite/libgomp.fortran/pr28390.f: New test.
3077 2006-07-05  Eric Christopher  <echristo@apple.com>
3079         * configure.ac: Depend addition of -pthread on host OS.
3080         * configure: Regenerate.
3082 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3084         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3085         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3086         defined.
3088 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
3090         PR libgomp/26175
3091         PR libgomp/26477
3092         * configure.ac: If neither --enable-linux-futex nor
3093         --disable-linux-futex is passed, determine the default by checking
3094         for compiling and/or running against NPTL.  With --enable-linux-futex,
3095         check if SYS_gettid and SYS_futex are defined.
3096         * configure: Rebuilt.
3098 2006-06-14  Richard Henderson  <rth@redhat.com>
3100         PR libgomp/28008
3101         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3102         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3104 2006-06-09  Richard Henderson  <rth@redhat.com>
3106         * env.c (gomp_nthreads_var): Change to unsigned long.
3107         (gomp_run_sched_chunk): Likewise.
3108         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3109         (initialize_env): Initialize gomp_thread_attr.
3110         * libgomp.h (gomp_nthreads_var): Update decl.
3111         (gomp_run_sched_chunk): Likewise.
3112         (gomp_thread_attr): Declare.
3113         * team.c (gomp_thread_attr): Export.
3114         (initialize_team): Don't initialize it.
3116 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
3118         PR fortran/27916
3119         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3120         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3122 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3124         * config/mingw32/time.c: New file.
3125         * configure.tgt: Use it.
3127 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3129         * Makefile.am: Add install-html target. Add install-html to .PHONY
3130         * Makefile.in: Regenerate.
3132 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3134         PR libgomp/27612
3135         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3136         * testsuite/libgomp.c/critical-1.c: Likewise.
3137         * testsuite/libgomp.c/loop-1.c: Likewise.
3138         * testsuite/libgomp.c/loop-2.c: Likewise.
3139         * testsuite/libgomp.c/single-1.c: Likewise.
3140         * testsuite/libgomp.c/ordered-1.c: Likewise.
3141         * testsuite/libgomp.c/ordered-2.c: Likewise.
3143 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3145         PR middle-end/27416
3146         * libgomp.fortran/pr27416-1.f90: New test.
3148 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
3150         PR fortran/27395
3151         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3152         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3154 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3156         PR c++/26943
3157         * testsuite/libgomp.c/pr26943-1.c: New test.
3158         * testsuite/libgomp.c/pr26943-2.c: New test.
3159         * testsuite/libgomp.c/pr26943-3.c: New test.
3160         * testsuite/libgomp.c/pr26943-4.c: New test.
3161         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3162         * testsuite/libgomp.c++/pr26943.C: New test.
3164 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3166         PR middle-end/27337
3167         * testsuite/libgomp.c++/pr27337.C: New test.
3169 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3171         PR c/26171
3172         * testsuite/libgomp.c/pr26171.c: New test.
3174 2006-04-25  Richard Henderson  <rth@redhat.com>
3176         PR libgomp/25865
3177         * configure.ac: Use GCC_CHECK_TLS.
3178         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3179         * Makefile.in, aclocal.m4, configure: Regenerate.
3181 2006-04-10  Matthias Klose  <doko@debian.org>
3183         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3184         directory names containing underscores.
3186 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3188         PR c++/26691
3189         * testsuite/libgomp.c++/pr26691.C: New test.
3191 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3193         * testsuite/libgomp.fortran/retval2.f90: New test.
3195 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3197         * testsuite/libgomp.c++: New directory.
3199 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3201         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3202         * config/posix/sem.c: Implement the above.
3204 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3206         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3207         define HAVE_BROKEN_POSIX_SEMAPHORES.
3208         * configure: Rebuilt.
3209         * config.h.in: Rebuilt.
3211 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3213         PR bootstrap/26161
3214         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3215         for the other pthread check.
3216         * configure: Regenerate.
3217         * config.h.in: Regenerate.
3219 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3221         PR libgomp/25938
3222         PR libgomp/25984
3223         * Makefile.am (fincludedir): New variable.
3224         (nodist_include_HEADERS): Remove Fortran files.
3225         (nodist_finclude_HEADERS): New variable.
3226         * Makefile.in: Regenerated.
3228 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3230         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3231         Remove tests for returning assumed character length arrays.
3233 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3234             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3236         PR libgomp/25936
3237         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3239 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3241         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3243 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3245         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3246         part of LD_LIBRARY_PATH manually.
3248 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3250         PR libgomp/25852
3251         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3252         libgomp_init.
3254 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3256         PR libgomp/25884
3257         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3258         * configure.ac (PERL): Don't set.
3259         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3260         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3261         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3262         * omp.h.in: Wrap the new configure substitutions with @ characters.
3263         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3264         * aclocal.m4, configure, Makefile.in: Regenerate.
3265         * mkomp_h.pl: Delete.
3267 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3269         PR libgomp/25259
3270         * configure.ac: Use GCC_HEADER_STDINT.
3271         * libgomp.h: Include gstdint.h.
3272         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3273         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3275 2006-01-24  Richard Henderson  <rth@redhat.com>
3277         PR libgomp/25942
3278         * configure.ac: Add AM_MAINTAINER_MODE.
3279         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3281 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3283         * Makefile.in: Regenerate.
3284         * testsuite/Makefile.in: Regenerate.
3285         * aclocal.m4: Regenerate.
3287 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3289         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3290         Solaris.
3291         * configure.ac: Add check for loadavg.h.
3292         (link_gomp): Adjust comment.
3293         * configure: Regenerate.
3294         * config.h.in: Regenerate.
3296 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3298         PR libgomp/25877
3299         * configure.ac: Remove check for alloca.h.
3300         * configure: Regenerate.
3301         * config.h.in: Regenerate.
3302         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3303         * team.c: Remove use of alloca.h.
3304         Call gomp_alloca instead of alloca.
3306 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3308         PR libgomp/25877
3309         * team.c: Add include of alloca.h.
3310         * configure.ac: Add check for alloca.h.
3311         * configure: Regenerate.
3312         * config.h.in: Regenerate.
3314 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3316         PR fortran/25219
3317         * testsuite/libgomp.fortran/pr25219.f90: New test.
3319 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3321         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3322         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3323         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3324         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3325         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3326         testsuite/libgomp.fortran/threadprivate1.f90,
3327         testsuite/libgomp.fortran/threadprivate2.f90,
3328         testsuite/libgomp.fortran/threadprivate3.f90,
3329         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3330         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3331         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3332         effective-target to TLS runtime.
3334         * testsuite/libgomp.fortran/pr25162.f: Require
3335         effective-target TLS runtime.
3337 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3339         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3340         * testsuite/libgomp.c/nestedfn-3.c: New test.
3342 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3344         PR fortran/25162
3345         * testsuite/libgomp.fortran/pr25162.f: New test.
3347 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3349         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3350         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3352 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3354         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3355         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3356         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3357         single.c, team.c, work.c, config/linux/alpha/futex.h,
3358         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3359         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3360         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3361         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3362         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3363         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3364         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3365         FSF address.
3367 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3369         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3370         to nodist_noinst_HEADERS.
3371         * Makefile.in: Rebuilt.
3373         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3374         add integer count field.
3375         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3376         omp_nest_lock_t type change.
3377         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3378         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3379         Increment count.
3380         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3381         Decrement count.
3382         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3383         Increment count if successful and return the new nesting level.
3384         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3385         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3386         * testsuite/libgomp.c/lib-1.c: New test.
3387         * testsuite/libgomp.fortran/lib1.f90: New test.
3388         * testsuite/libgomp.fortran/lib2.f: New test.
3389         * testsuite/libgomp.fortran/lib3.f: New test.
3391 2005-11-17  Richard Henderson  <rth@redhat.com>
3393         PR 24845
3394         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3395         * configure.ac (link_gomp): New.  Substitute it.
3396         (AC_CONFIG_FILES): Add libgomp.spec.
3397         * libgomp.spec.in: New file.
3398         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3399         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3401 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3403         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3404         reduction(-:var) behaving the same as reduction(+:var).
3405         * testsuite/libgomp.c/reduction-4.c: New test.
3407 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3409         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3410         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3411         testsuite/libgomp.c/copyin-3.c,
3412         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3413         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3414         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3415         testsuite/libgomp.c++/pr24455.C,
3416         testsuite/libgomp.fortran/threadprivate1.f90,
3417         testsuite/libgomp.fortran/threadprivate2.f90,
3418         testsuite/libgomp.fortran/threadprivate3.f90,
3419         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3420         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3421         testsuite/libgomp.fortran/omp_parse3.f90: Require
3422         effective-target TLS.
3424 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3426         * HEADER: Remove.
3428 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3430         PR libgomp/24797
3431         * team.c (initialize_team): Pass NULL rather than free as
3432         pthread_key_create destructor.  Initialize thread specific data
3433         pointer in initial thread to a static local variable rather than
3434         malloced memory.
3436 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3438         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3439         its location to ld_library_path.
3441 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3443         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3445 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3447         * testsuite/libgomp.c: Rename from libgomp.dg.
3449 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3451         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3452         threadprivate variable 'i'.
3454 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3456         * config/linux/s390/futex.h: New file.
3457         * configure.tgt: Use it.
3459         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3460         before the parallel.
3462 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3464         PR c++/24734
3465         * testsuite/libgomp.c++/master-1.C: New test.
3467 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3469         * testsuite/libgomp.dg/copyin-3.c: New test.
3471 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3473         * testsuite/libgomp.fortran/retval1.f90: New test.
3474         * testsuite/libgomp.fortran/vla7.f90: New test.
3476 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3478         * testsuite/libgomp.fortran/vla2.f90: New test.
3479         * testsuite/libgomp.fortran/vla3.f90: New test.
3480         * testsuite/libgomp.fortran/vla4.f90: New test.
3481         * testsuite/libgomp.fortran/vla5.f90: New test.
3482         * testsuite/libgomp.fortran/vla6.f90: New test.
3484 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3486         * config/linux/sparc/futex.h: New file.
3487         * configure.tgt: Use it.
3488         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3490         * critical.c: Include stdlib.h.
3491         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3492         ignoring return value.
3493         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3494         LIBGOMP_CHECK_SYNC_BUILTINS check.
3495         * configure: Rebuilt.
3497 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3499         * testsuite/libgomp.fortran/vla1.f90: New test.
3501 2005-10-31  Richard Henderson  <rth@redhat.com>
3503         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3504         setting 's' in different threads.
3506 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3508         * libgomp.h (attribute_hidden, ialias): Define.
3509         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3510         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3511         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3512         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3513         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3514         omp_test_lock, omp_test_nest_lock): Likewise.
3515         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3516         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3517         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3518         omp_test_lock, omp_test_nest_lock): Likewise.
3519         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3520         omp_get_dynamic, omp_get_nested): Likewise.
3521         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3522         omp_get_thread_num, omp_in_parallel): Likewise.
3523         * fortran.c (ialias_redirect): Define.
3524         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3525         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3526         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3527         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3528         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3529         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3530         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3531         omp_get_wtime): Add ialias_redirect.
3533 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3535         * fortran.c: Include stdlib.h.
3537 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3539         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3540         * Makefile.in: Regenerated.
3542 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3544         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3545         * libgomp_f.h.in (omp_check_defines): New function.
3546         * env.c: Include libgomp_f.h.
3547         (initialize_env): Call omp_check_defines.
3549         * testsuite/libgomp.dg/copyin-2.c: New test.
3550         * testsuite/libgomp.c++/copyin-2.C: New test.
3551         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3553         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3554         * testsuite/libgomp.fortran/sharing2.f90: New test.
3556         * testsuite/libgomp.dg/copyin-1.c: New test.
3557         * testsuite/libgomp.c++/copyin-1.C: New test.
3559 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3561         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3563         * testsuite/libgomp.fortran/workshare1.f90: New test.
3565         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3566         only test.
3567         * libgomp.fortran/sharing1.f90: New test.
3569 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3571         PR c++/24502
3572         * testsuite/libgomp.c++/loop-7.C: New test.
3574         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3576         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3577         * testsuite/libgomp.fortran/reduction6.f90: New test.
3578         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3580 2005-10-23  Richard Henderson  <rth@redhat.com>
3582         * testsuite/libgomp.c++/ctor-1.C: New.
3583         * testsuite/libgomp.c++/ctor-2.C: New.
3584         * testsuite/libgomp.c++/ctor-3.C: New.
3585         * testsuite/libgomp.c++/ctor-4.C: New.
3586         * testsuite/libgomp.c++/ctor-5.C: New.
3587         * testsuite/libgomp.c++/ctor-6.C: New.
3588         * testsuite/libgomp.c++/ctor-7.C: New.
3589         * testsuite/libgomp.c++/ctor-8.C: New.
3590         * testsuite/libgomp.c++/ctor-9.C: New.
3592 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3594         PR 24455
3595         * testsuite/libgomp.c++/pr24455-1.C: New test.
3596         * testsuite/libgomp.c++/pr24455.C: New test.
3597         * testsuite/libgomp.dg/pr24455-1.c: New test.
3598         * testsuite/libgomp.dg/pr24455.c: New test.
3600 2005-10-20  Richard Henderson  <rth@redhat.com>
3602         * testsuite/libgomp.c++/loop-6.C: New.
3603         * testsuite/libgomp.dg/loop-3.c: New.
3605 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3607         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3608         explicitly private.
3609         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3610         explicitly shared.
3612 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3614         * testsuite/libgomp.fortran/jacobi.f: New test.
3616 2005-10-19  Richard Henderson  <rth@redhat.com>
3618         * configure.tgt (i?86-linux): Default to with_arch instead of
3619         CFLAGS.  Add -mtune to match target_cpu.
3620         (x86_64-linux): Tune to i686.
3622         * fortran.c (omp_test_nest_lock_): Fix typo.
3624 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3626         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3627         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3628         * testsuite/libgomp.dg/ordered-3.c: New test.
3630         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3631         Remove volatile keyword.
3633         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3634         in COMMON block to avoid warnings on 64-bit targets.
3636 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3638         * testsuite/libgomp.dg/shared-3.c: New test.
3640 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3642         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3643         * testsuite/libgomp.fortran/reduction5.f90: New test.
3645 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3647         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3648         dg-options.
3649         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3650         flush loop now that __sync_synchronize has proper memory barrier.
3651         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3652         Add -ffixed-form to dg-options.
3654 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3656         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3657         from subdirectories.
3658         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3659         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3660         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3661         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3662         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3663         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3664         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3665         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3666         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3667         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3668         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3669         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3670         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3671         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3672         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3673         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3674         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3675         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3676         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3677         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3678         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3679         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3680         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3681         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3682         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3684 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3686         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3687         lang_library_path exists.  Use find instead of glob to gather tests.
3688         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3690 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3692         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3693         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3694         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3695         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3696         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3697         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3698         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3699         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3700         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3701         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3702         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3703         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3704         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3706 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3708         * testsuite/libgomp.dg/vla-1.c: New test.
3710         * testsuite/libgomp.fortran/reference2.f90: New test.
3712         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3713         declaration of omp_get_thread_num.
3714         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3715         use omp_lib.
3717         * testsuite/libgomp.fortran/reduction1.f90: New test.
3718         * testsuite/libgomp.fortran/reduction2.f90: New test.
3719         * testsuite/libgomp.fortran/reduction3.f90: New test.
3720         * testsuite/libgomp.fortran/reduction4.f90: New test.
3722 2005-10-13  Richard Henderson  <rth@redhat.com>
3724         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3725         * Makefile.in: Regenerate.
3726         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3727         * libgomp.h: Include bar.h.
3728         (struct gomp_barrier): Remove.
3729         (struct gomp_team): Add barrier.  Replace master_barrier with
3730         master_release.  Replace threads with ordered_release.
3731         (struct gomp_thread): Replace barrier with release.
3732         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3733         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3734         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3735         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3736         (GOMP_single_copy_end): Likewise.
3737         * team.c (gomp_threads_dock): New.
3738         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3739         (gomp_thread_start): Use gomp_barrier_wait.
3740         (new_team, free_team): Update for gomp_team changes.
3741         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3742         (gomp_team_end): Use gomp_barrier_wait.
3743         (initialize_team): Update for gomp_thread changes.
3744         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3745         (gomp_work_share_end_nowait): Use atomic ops when available.
3746         * config/linux/bar.c, config/linux/bar.h: New files.
3747         * config/posix/bar.c, config/posix/bar.h: New files.
3749 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3751         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3752         * testsuite/libgomp.dg/single-2.c: New test.
3754         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3755         lang_link_flags): Unset, so that they aren't inherited from previously
3756         sourced *.exp.
3758         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3760 2005-10-12  Richard Henderson  <rth@redhat.com>
3762         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3763         (libgomp_init): Use lang_test_file, lang_library_path, and
3764         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3766         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3767         (lang_test_file, lang_link_flags): New.
3768         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3770         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3771         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3772         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3773         testsuite/libgomp.c++/parallel-1.C,
3774         testsuite/libgomp.c++/reduction-1.C,
3775         testsuite/libgomp.c++/reduction-2.C,
3776         testsuite/libgomp.c++/reduction-3.C,
3777         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3778         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3779         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3780         New files, largely cribbed from the C testsuite.
3782 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3784         * testsuite/libgomp.fortran/character1.f90: New test.
3785         * testsuite/libgomp.fortran/character2.f90: New test.
3787         * testsuite/libgomp.dg/nested-1.c: New test.
3788         * testsuite/libgomp.dg/nested-2.c: New test.
3789         * testsuite/libgomp.fortran/do1.f90: New test.
3790         * testsuite/libgomp.fortran/do2.f90: New test.
3792         * testsuite/libgomp.fortran/reference1.f90: New test.
3794 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3796         * testsuite/libgomp.dg/reduction-1.c: New test.
3797         * testsuite/libgomp.dg/reduction-2.c: New test.
3798         * testsuite/libgomp.dg/reduction-3.c: New test.
3800 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3802         * testsuite/libgomp.dg/atomic-1.c: New test.
3803         * testsuite/libgomp.dg/atomic-2.c: New test.
3805 2005-10-09  Richard Henderson  <rth@redhat.com>
3807         * critical.c (atomic_lock): New.
3808         (initialize_critical): Initialize it.
3809         (GOMP_atomic_start, GOMP_atomic_end): New.
3810         * libgomp.map: Export them.
3811         * libgomp_g.h: Declare them.
3813         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3815 2005-10-02  Richard Henderson  <rth@redhat.com>
3817         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3818         to XCFLAGS instead of CFLAGS.
3820 2005-09-30  Richard Henderson  <rth@redhat.com>
3822         * configure.ac: Determine whether -pthread or -lpthread is needed.
3823         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3824         * Makefine.in, configure: Rebuild.
3826 2005-09-28  Richard Henderson  <rth@redhat.com>
3828         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3829         * testsuite/libgomp.dg/omp-single-3.c: New test.
3831 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3833         * testsuite/libgomp.dg/omp-single-2.c: New test.
3834         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3836 2005-09-27  Richard Henderson  <rth@redhat.com>
3838         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3839         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3841 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3843         * testsuite/libgomp.dg/omp-loop03.c: New test.
3845 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3847         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3849 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3851         * testsuite/libgomp.dg/omp-single-1.c: New test.
3852         * testsuite/libgomp.dg/shared-1.c: Return 0.
3853         Add prototype for abort.
3854         * testsuite/libgomp.dg/shared-2.c: Likewise.
3856 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3858         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3859         constructs.
3861 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3863         * testsuite/libgomp.dg/shared-1.c: New test.
3864         * testsuite/libgomp.dg/shared-2.c: New test.
3866 2005-09-24  Richard Henderson  <rth@redhat.com>
3868         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3870 2005-09-24  Richard Henderson  <rth@redhat.com>
3872         * iter.c (gomp_iter_static_next): Round up when computing number
3873         of iterations.  Don't bother distributing a remainder equally.
3875         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3876         Don't call srand.  Zero b before testing.
3877         (main): New.
3879 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3881         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3882         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3884 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3886         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3887         without !$omp end do, followed immediately by subroutine end.
3889 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3891         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3893 2005-09-22  Richard Henderson  <rth@redhat.com>
3895         * critical.c (GOMP_critical_name_start): Change argument to void**.
3896         Reuse the pointer space if the mutex fits.
3897         (GOMP_critical_name_end): Likewise.
3898         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3899         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3900         (GOMP_critical_name_end): Likewise.
3901         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3902         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3904 2005-09-20  Richard Henderson  <rth@redhat.com>
3906         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3907         (create_lock_lock): New.
3908         (initialize_critical): Initialize it.
3909         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3910         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3912 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3914         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3916 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3918         * testsuite/libgomp.dg/omp-loop01.c: New test.
3919         * testsuite/libgomp.dg/omp-loop02.c: New test.
3921 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3923         * configure.ac (AC_PROG_FC): Add.
3924         (USE_FORTRAN): New automake conditional.
3925         * configure: Rebuilt.
3926         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3927         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3928         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3929         Add rules to build them.
3930         * Makefile.in: Rebuilt.
3931         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3932         OMP_NEST_LOCK_KIND.
3933         * libgomp.map: Add Fortran wrappers.
3934         * libgomp_f.h.in: New file.
3935         * omp_lib.h.in: New file.
3936         * omp_lib.f90.in: New file.
3937         * fortran.c: New file.
3938         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3939         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3940         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3941         libgfortran has been built.
3942         * testsuite/libgomp.fortran/fortran.exp: New file.
3943         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3944         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3945         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3946         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3947         * testsuite/libgomp.fortran/omp_hello.f: New test.
3948         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3949         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3950         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3951         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3952         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3953         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3954         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3955         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3957 2005-08-30  Richard Henderson  <rth@redhat.com>
3959         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3960         function for when aliases are not usable.
3961         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3962         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3963         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3964         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3965         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3966         GOMP_loop_ordered_guided_next): Likewise.
3967         * ordered.c (GOMP_ordered_start): Likewise.
3969 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3971         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3972         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3973         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3974         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3975         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3976         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3977         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3978         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3979         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3981 2005-07-07  Eric Christopher  <echristo@redhat.com>
3982             Diego Novillo  <dnovillo@redhat.com>
3984         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3985         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3986         up code.
3987         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3988         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3989         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3990         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3991         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3992         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3993         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3995 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3997         * TOPLEVEL.patch: Remove.
3999 2005-05-16  Richard Henderson  <rth@redhat.com>
4001         * configure.ac: Test for clock_gettime.
4002         * config.h.in, configure: Rebuild.
4003         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4004         (omp_get_wtime): Use clock_gettime if available.
4005         (omp_get_wtick): Use clock_getres if available.
4007 2005-05-11  Richard Henderson  <rth@redhat.com>
4009         * config/linux/ia64/futex.h: New file.
4010         * configure.tgt: Use it.
4012         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4014 2005-05-07  Richard Henderson  <rth@redhat.com>
4016         * config/linux/powerpc/futex.h: New file.
4017         * configure.tgt: Use it.
4019         * config/linux/i486/futex.h: Merge ...
4020         * config/linux/x86_64/futex.h: ... into ...
4021         * config/linux/x86/futex.h: ... here.
4022         * configure.tgt: Update to match.
4024 2005-05-06  Richard Henderson  <rth@redhat.com>
4026         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4027         * config/linux/i486/futex.h: Likewise.
4028         * config/linux/x86_64/futex.h: Likewise.
4030         * config/linux/lock.c: New file.
4031         * config/linux/omp-lock.h: New file.
4033         * critical.c, env.h: Don't include omp.h
4034         * config/posix/lock.c: Include libgomp.h instead of omp.h.
4035         * config/posix/time.c: Likewise.
4036         * config/posix/omp-lock.h: New file.
4037         * libgomp.h: Include omp-lock.h and omp.h.
4038         * Makefile.am (nodist_include_HEADERS): New.
4039         (omp.h): New rule.
4040         * configure.ac (PERL): New.
4041         * mkomp_h.pl: New file.
4042         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4043         with templates.
4044         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4046         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4047         build directory.  Re-add -march=i486 hack.
4049         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4050         (libgomp_link_flags): Remove.
4051         (libgomp_initialized): Remove.
4052         (libgomp_init): Don't protect from reinitialization.  Copy code
4053         from libstdc++ for getting the multilib set correctly.
4055 2005-05-05  Richard Henderson  <rth@redhat.com>
4057         * config/linux/alpha/futex.h: New file.
4058         * configure.tgt (alpha*-*-linux*): Use it.
4060         * config/posix/mutex.c: New file.
4061         * config/posix/sem.c: Use libgomp.h.
4063         * configure.tgt (x86_64-linux): Also test CC for -m32.
4064         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4066         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4067         after $gccpath.
4069         * Makefile.am (SUBDIRS): New.
4070         (libgomp_la_LDFLAGS): Add -lpthread.
4071         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4072         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4074         * libgomp_g.h: New file.
4075         * libgomp.h: Split out all public declarations to libgomp_g.h.
4076         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4077         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4078         * config/linux/sem.h: Likewise.
4079         * config/posix/sem.h: Likewise.
4081         * Makefile.am (AM_LDFLAGS): New.
4082         (libgomp_version_script): Split out from ...
4083         (libgomp_la_LDFLAGS): ... here.
4084         (libgomp_version_info): New.
4085         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4086         (LIBGOMP_ENABLE): New.
4087         (LIBGOMP_CHECK_LINKER_FEATURES): New.
4088         (LIBGOMP_ENABLE_SYMVERS): New.
4089         * configure.ac (AC_INIT): Version 1.0.
4090         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4091         (enable-linux-futex): Likewise.  Rename from enable-futex.
4092         (libtool_VERSION): New.
4093         (LIBGOMP_ENABLE_SYMVERS): Use it.
4094         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4095         * Makefile.in, aclocal.m4, configure: Rebuild.
4097         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4098         (gomp_mutex_unlock_slow): Fix typo.
4099         * config/linux/sem.c: Similarly.
4100         (gomp_sem_post_slow): Fix typo.
4101         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4102         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4103         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4105         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4106         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4107         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4108         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4109         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4110         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4111         LDFLAGS.  Pull enable_futex check to top-level.
4112         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4113         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4115         First attempt at real configury.
4116         * Makefile, config.h: Remove file.
4117         * Makefile.am, Makefile.in: New file.
4118         * acinclude.m4 aclocal.m4: New file.
4119         * configure.ac, configure.tgt, configure: New file.
4121         * config/posix/lock.c: Rename from sys-lock.c.
4122         * config/posix/mutex.h: Rename from sys-mutex.h.
4123         * config/posix/sem.c: Rename from sys-sem.c.
4124         * config/posix/sem.h: Rename from sys-sem.h.
4125         * config/posix/proc.c: Rename from sys-proc.c.
4126         * config/posix/time.c: Rename from sys-proc.c.
4128         * config/linux/mutex.c: New file.
4129         * config/linux/mutex.h: New file.
4130         * config/linux/sem.c: New file.
4131         * config/linux/sem.h: New file.
4132         * config/linux/i486/futex.h: New file.
4133         * config/linux/x86_64/futex.h: New file.
4135 2005-05-04  Richard Henderson  <rth@redhat.com>
4137         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4138         * libgomp.h: Declare them.
4139         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4140         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4142 2005-05-04  Richard Henderson  <rth@redhat.com>
4144         * libgomp-1 code drop
4146 2005-05-04  Richard Henderson  <rth@redhat.com>
4148         * iter.c (gomp_iter_static_next): Return tri-state on 0.
4149         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4150         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4151         (gomp_iter_static_next): Update.
4152         (gomp_ordered_static_next): Update.
4153         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4154         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
4155         totally empty range.
4156         (gomp_loop_ordered_static_next): Refine test for calling
4157         gomp_ordered_static_next.
4158         * testsuite/ordered-1.c: Add case for more threads than iterations.
4160         * iter.c (gomp_iter_runtime_next_locked): Remove.
4161         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4162         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4163         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4164         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4165         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4166         gomp_loop_ordered_guided_next): Downcase name, make static, add
4167         an external alias with the old name.
4168         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4169         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4170         switch and call one of the above static functions.
4171         * libgomp.h: Update.
4173         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4174         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4175         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4176         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4177         GOMP_loop_ordered_guided_start): Update to match.
4178         * sections.c (GOMP_sections_start): Likewise.
4179         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4181         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4182         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4183         Use bounds check instead of modulus.
4184         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4185         (gomp_ordered_last): Don't sync with ordered_owner here.
4186         (gomp_ordered_next): Likewise.
4187         (gomp_ordered_static_loop_next): Likewise.
4188         * loop.c, libgomp.h: Update to match.
4190         * libgomp.h (GOMP_barrier): Declare.
4192         * testsuite/barrier-1.c: New file.
4193         * testsuite/critical-1.c: New file.
4194         * testsuite/ordered-2.c: New file.
4195         * testsuite/ordered-1.c: New file.
4196         * testsuite/sections-1.c: New file.
4197         * testsuite/single-1.c: New file.
4198         * testsuite/Makefile (TESTS): Add them.
4200 2005-05-04  Richard Henderson  <rth@redhat.com>
4202         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4203         * loop.c (GOMP_loop_static_start): If not the startup thread,
4204         acquire the mutex to wait for initialization complete.
4205         (GOMP_loop_ordered_static_start): Likewise.
4206         (GOMP_loop_ordered_runtime_start): Likewise.
4207         (GOMP_loop_ordered_static_first): Remove.
4208         (GOMP_loop_ordered_dynamic_first): Remove.
4209         (GOMP_loop_ordered_guided_first): Remove.
4210         (GOMP_loop_ordered_runtime_first): Remove.
4211         * ordered.c (gomp_ordered_loop_first): Post to own release when
4212         we're the first thread.
4213         (gomp_ordered_loop_last): Wait on release if not owner.
4214         (gomp_ordered_loop_next): Likewise.
4215         (gomp_ordered_static_loop_init): New.
4216         (gomp_ordered_static_loop_next): Use ordered_owner.
4217         (GOMP_ordered_start): Likewise.
4218         * work.c (gomp_new_work_share): Initialize ordered_owner.
4220 2005-05-03  Richard Henderson  <rth@redhat.com>
4222         * Makefile (OPT): New.
4223         (CFLAGS): Use it.
4225         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4226         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4227         * libgomp.h, libgomp.map, NOTES: Update to match.
4229         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4230         Add initialized and thr members.
4231         (gomp_thread_start): Pause when initially spawned to wait for
4232         the whole team to be created.
4233         (gomp_team_start): Release team members at the end.
4235         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4236         (f_foo_1): Use GOMP_loop_end.
4237         (f_foo_2): Use GOMP_loop_end_nowait.
4239         * testsuite/loop-2.c: New file.
4240         * testsuite/Makefile (TESTS): Add it.
4242 2005-05-03  Richard Henderson  <rth@redhat.com>
4244         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4245         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4246         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4247         initial work_share.
4249         * testsuite/Makefile: New file.
4250         * testsuite/loop-1.c: New file.
4252 2005-05-03  Richard Henderson  <rth@redhat.com>
4254         Initial implementation and checkin.