ipa-utils.h (compare_virtual_tables): Declare.
[official-gcc.git] / libgomp / ChangeLog
blobee73689e702ecb403c1cfa96e10b079378d64b67
1 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
3         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
4         is not zero, but taskgroup->children is NULL and there are
5         any task->children, schedule those instead of waiting.
6         * testsuite/libgomp.c/depend-6.c: New test.
7         * testsuite/libgomp.c/depend-7.c: New test.
8         * testsuite/libgomp.c/depend-8.c: New test.
9         * testsuite/libgomp.c/depend-9.c: New test.
10         * testsuite/libgomp.c/depend-10.c: New test.
12 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
14         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15         (struct gomp_taskwait): New type.
16         (struct gomp_task): Add taskwait and parent_depends_on, remove
17         in_taskwait and taskwait_sem fields.
18         (gomp_finish_task): Don't destroy taskwait_sem.
19         * task.c (gomp_init_task): Don't init in_taskwait, instead init
20         taskwait and parent_depends_on.
21         (GOMP_task): For if (0) tasks with depend clause that depend on
22         earlier tasks don't defer them, instead call
23         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
24         Initialize redundant_out field, for redundant out entries just
25         move them at the end of linked list instead of removing them
26         completely, and set redundant_out flag instead of redundant.
27         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
28         that task.
29         (gomp_task_run_post_handle_dependers): If parent is in
30         gomp_task_maybe_wait_for_dependencies and newly runnable task
31         is not parent_depends_on, queue it in parent->children linked
32         list after all runnable tasks with parent_depends_on set.
33         Adjust for addition of taskwait indirection.
34         (gomp_task_run_post_remove_parent): If parent is in
35         gomp_task_maybe_wait_for_dependencies and task to be removed
36         is parent_depends_on, decrement n_depend and if needed awake
37         parent.  Adjust for addition of taskwait indirection.
38         (GOMP_taskwait): Adjust for addition of taskwait indirection.
39         (gomp_task_maybe_wait_for_dependencies): New function.
40         * testsuite/libgomp.c/depend-5.c: New test.
42 2014-07-13  Tobias Burnus  <burnus@net-b.de>
44         * testsuite/libgomp.fortran/pr34020.f90: Make compile
45         with TS 18508/Fortran 2015.
47 2014-07-06  Marek Polacek  <polacek@redhat.com>
49         PR c/6940
50         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
52 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
54         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
55         matches regex $lang_source_re, add $lang_include_flags to options.
56         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
57         * testsuite/libgomp.c++/c++.exp: Likewise.
58         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
59         and lang_include_flags instead of adding -fintrinsic-modules-path= to
60         ALWAYS_CFLAGS.
61         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
63 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
65         * testsuite/libgomp.fortran/fortran.exp: Explain
66         gfortran-dg-runtest usage.
68 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
70         * testsuite/libgomp.fortran/simd5.f90: New test.
71         * testsuite/libgomp.fortran/simd6.f90: New test.
72         * testsuite/libgomp.fortran/simd7.f90: New test.
74 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
76         * testsuite/libgomp.c/for-2.c: Define SC to static for
77         #pragma omp for simd testing.
78         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
79         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
80         SC macro.
81         * testsuite/libgomp.c/simd-14.c: New test.
82         * testsuite/libgomp.c/simd-15.c: New test.
83         * testsuite/libgomp.c/simd-16.c: New test.
84         * testsuite/libgomp.c/simd-17.c: New test.
85         * testsuite/libgomp.c++/for-10.C: Define SC to static for
86         #pragma omp for simd testing.
87         * testsuite/libgomp.c++/simd10.C: New test.
88         * testsuite/libgomp.c++/simd11.C: New test.
89         * testsuite/libgomp.c++/simd12.C: New test.
90         * testsuite/libgomp.c++/simd13.C: New test.
92         * testsuite/libgomp.fortran/aligned1.f03: New test.
93         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
94         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
95         tasks with !$omp parallel !$omp single.
96         * testsuite/libgomp.fortran/target8.f90: New test.
97         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
98         not to use trim in the combiner, instead call elemental function.
99         (fn): New elemental function.
100         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
101         Make elemental.
102         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
103         omp_in): Likewise.
104         * testsuite/libgomp.fortran/udr12.f90: New test.
105         * testsuite/libgomp.fortran/udr13.f90: New test.
106         * testsuite/libgomp.fortran/udr14.f90: New test.
107         * testsuite/libgomp.fortran/udr15.f90: New test.
109 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
111         * omp_lib.f90.in (openmp_version): Set to 201307.
112         * omp_lib.h.in (openmp_version): Likewise.
113         * testsuite/libgomp.c/target-8.c: New test.
114         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
115         and inbranch clauses.
116         * testsuite/libgomp.fortran/depend-3.f90: New test.
117         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
118         openmp_version.
119         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
120         * testsuite/libgomp.fortran/target1.f90: New test.
121         * testsuite/libgomp.fortran/target2.f90: New test.
122         * testsuite/libgomp.fortran/target3.f90: New test.
123         * testsuite/libgomp.fortran/target4.f90: New test.
124         * testsuite/libgomp.fortran/target5.f90: New test.
125         * testsuite/libgomp.fortran/target6.f90: New test.
126         * testsuite/libgomp.fortran/target7.f90: New test.
128 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
130         PR fortran/60928
131         * testsuite/libgomp.fortran/allocatable9.f90: New test.
132         * testsuite/libgomp.fortran/allocatable10.f90: New test.
133         * testsuite/libgomp.fortran/allocatable11.f90: New test.
134         * testsuite/libgomp.fortran/allocatable12.f90: New test.
135         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
136         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
137         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
138         * testsuite/libgomp.fortran/associate1.f90: New test.
139         * testsuite/libgomp.fortran/associate2.f90: New test.
140         * testsuite/libgomp.fortran/procptr1.f90: New test.
142 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
144         * testsuite/libgomp.fortran/simd1.f90: New test.
145         * testsuite/libgomp.fortran/udr1.f90: New test.
146         * testsuite/libgomp.fortran/udr2.f90: New test.
147         * testsuite/libgomp.fortran/udr3.f90: New test.
148         * testsuite/libgomp.fortran/udr4.f90: New test.
149         * testsuite/libgomp.fortran/udr5.f90: New test.
150         * testsuite/libgomp.fortran/udr6.f90: New test.
151         * testsuite/libgomp.fortran/udr7.f90: New test.
152         * testsuite/libgomp.fortran/udr8.f90: New test.
153         * testsuite/libgomp.fortran/udr9.f90: New test.
154         * testsuite/libgomp.fortran/udr10.f90: New test.
155         * testsuite/libgomp.fortran/udr11.f90: New test.
157 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
159         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
160         vect_simd_clones effective target.
161         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
163 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
165         PR middle-end/61252
166         * testsuite/libgomp.c++/simd-9.C: New test.
168 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
170         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
171         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
172         texts according to their @menu entry positions.
174 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
176         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
177         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
178         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
179         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
180         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
181         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
182         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
183         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
184         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
185         * testsuite/libgomp.fortran/depend-1.f90: New test.
186         * testsuite/libgomp.fortran/depend-2.f90: New test.
187         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
188         * testsuite/libgomp.fortran/simd1.f90: New test.
189         * testsuite/libgomp.fortran/simd2.f90: New test.
190         * testsuite/libgomp.fortran/simd3.f90: New test.
191         * testsuite/libgomp.fortran/simd4.f90: New test.
192         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
194 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
196         * testsuite/libgomp.c/simd-10.c: New test.
197         * testsuite/libgomp.c/simd-11.c: New test.
198         * testsuite/libgomp.c/simd-12.c: New test.
199         * testsuite/libgomp.c/simd-13.c: New test.
201 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
203         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
204         atomic type clauses in any order and optional comma in between.
205         * testsuite/libgomp.c++/atomic-15.C: Likewise.
206         * testsuite/libgomp.c/atomic-17.c: Likewise.
208         * testsuite/libgomp.c/simd-7.c: New test.
209         * testsuite/libgomp.c/simd-8.c: New test.
210         * testsuite/libgomp.c/simd-9.c: New test.
211         * testsuite/libgomp.c/loop-16.c: New test.
213 2014-04-02  Richard Henderson  <rth@redhat.com>
215         * config/linux/futex.h (futex_wait): Get error value from errno.
216         (futex_wake): Likewise.
218 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
220         PR c++/60331
221         * testsuite/libgomp.c++/udr-11.C: New test.
222         * testsuite/libgomp.c++/udr-12.C: New test.
223         * testsuite/libgomp.c++/udr-13.C: New test.
224         * testsuite/libgomp.c++/udr-14.C: New test.
225         * testsuite/libgomp.c++/udr-15.C: New test.
226         * testsuite/libgomp.c++/udr-16.C: New test.
227         * testsuite/libgomp.c++/udr-17.C: New test.
228         * testsuite/libgomp.c++/udr-18.C: New test.
229         * testsuite/libgomp.c++/udr-19.C: New test.
231 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
233         Update copyright years
235 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
237         * hashtab.h: Use the standard form for the copyright notice.
239 2014-01-02  Tobias Burnus  <burnus@net-b.de>
241         * libgomp.texi: Bump @copying's copyright year.
243 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
245         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
246         alloca () with __builtin_alloca ().
247         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
248         * testsuite/libgomp.c/lock-3.c: Likewise.
249         * testsuite/libgomp.c/pr48591.c: Likewise.
251 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
253         PR testsuite/59534
254         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
255         comparisons.
257 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
259         PR libgomp/58756
260         * testsuite/libgomp.c/pr58756.c: New test.
262 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
264         PR libgomp/59467
265         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
266         !$omp parallel.
268 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
270         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
271         ALWAYS_CFLAGS.
272         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
273         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
274         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
275         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
276         Likewise.
278         * libgomp_g.h: Include <stddef.h> for size_t.
280         * libgomp.spec.in: Update comment about libgomp's dependencies.
281         * configure.ac: Likewise.
282         * configure: Regenerate.
284 2013-10-16  Tobias Burnus  <burnus@net-b.de>
286         * libgomp.texi: (Runtime Library Routines): Update references for
287         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
288         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
289         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
290         (Environment Variables): Update references for OpenMP 4.0. Add
291         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
292         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
293         order.
295 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
297         * env.c (parse_bind_var): Initialize value to avoid
298         (false positive) warning.
300 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
302         PR libgomp/58691
303         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
304         to check variable.
305         (gomp_init_num_threads): Move i variable declaration into
306         #ifdef CPU_ALLOC_SIZE block.
307         * config/linux/affinity.c (gomp_affinity_init_level): Test
308         gomp_places_list_len == 0 rather than gomp_places_list == 0
309         when checking for topology reading error.
310         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
311         * env.c (parse_affinity): Add ignore argument, if true, don't populate
312         gomp_places_list, only parse env var and always return false.
313         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
314         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
315         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
316         and either of these variables were parsed correctly into a places
317         list.
319 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
320             Jakub Jelinek  <jakub@redhat.com>
322         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
323         of 5 loopfn matches.
324         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
325         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
326         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
327         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
328         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
329         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
330         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
331         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
333 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
335         * Makefile.am (omp_lib.mod): Streamline rule.
336         * Makefile.in: Regenerate.
338         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
339         exceptions.
341         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
342         * testsuite/libgomp.fortran/lib1.f90: Likewise.
343         * testsuite/libgomp.fortran/lib2.f: Likewise.
344         * testsuite/libgomp.fortran/lib3.f: Likewise.
346         * configure.ac: Typo fix.
347         * configure: Regenerate.
349         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
350         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
352         * omp.h.in: Don't touch the user's namespace.
354 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
355             Tobias Burnus  <burnus@net-b.de>
356             Richard Henderson  <rth@redhat.com>
358         * target.c: New file.
359         * Makefile.am (libgomp_la_SOURCES): Add target.c.
360         * Makefile.in: Regenerated.
361         * libgomp_g.h (GOMP_task): Add depend argument.
362         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
363         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
364         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
365         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
366         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
367         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
368         GOMP_taskgroup_start, GOMP_taskgroup_end,
369         GOMP_parallel_sections): New prototypes.
370         * fortran.c (omp_is_initial_device): Add ialias_redirect.
371         (omp_is_initial_device_): New function.
372         (ULP, STR1, STR2, ialias_redirect): Removed.
373         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
374         omp_set_default_device_8_, omp_get_default_device_,
375         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
376         functions.
377         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
378         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
379         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
380         @@GOMP_4.0.
381         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
382         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
383         omp_set_default_device, omp_set_default_device_,
384         omp_set_default_device_8_, omp_get_default_device,
385         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
386         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
387         omp_get_team_num_): Export @@OMP_4.0.
388         * team.c (struct gomp_thread_start_data): Add place field.
389         (gomp_thread_start): Clear thr->thread_pool and
390         thr->task before returning.  Use gomp_team_barrier_wait_final
391         instead of gomp_team_barrier_wait.  Initialize thr->place.
392         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
393         team_cancelled and task_queued_count fields.
394         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
395         before calling pthread_exit.
396         (gomp_free_thread): No longer static.  Use
397         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
398         (gomp_team_start): Add flags argument.  Set
399         thr->thread_pool->threads_busy to nthreads immediately after creating
400         new pool.  Use gomp_managed_threads_lock instead of
401         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
402         (gomp_team_end): Use gomp_managed_threads_lock instead of
403         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
404         of gomp_team_barrier_wait.  If team->team_cancelled, call
405         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
406         rather than thr->ts.work_share.
407         (initialize_team): Don't call gomp_sem_init here.
408         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
409         caller.
410         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
411         * env.c (gomp_global_icv): Add default_device_var, target_data and
412         bind_var initializers.
413         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
414         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
415         gomp_places_list_len): New variables.
416         (parse_bind_var, parse_one_place, parse_places_var): New functions.
417         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
418         sized places.
419         (gomp_cancel_var): New global variable.
420         (parse_int): New function.
421         (handle_omp_display_env): New function.
422         (initialize_env): Use it.  Initialize default_device_var.
423         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
424         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
425         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
426         been successfully parsed (and call gomp_init_affinity in that case).
427         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
428         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
429         omp_get_team_num, omp_is_initial_device): New functions.
430         * libgomp.h: Include stdlib.h.
431         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
432         Define.
433         (struct target_mem_desc): Forward declare.
434         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
435         and thread_limit_var fields.
436         (gomp_get_num_devices): New prototype.
437         (gomp_cancel_var): New extern decl.
438         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
439         team_cancelled and task_queued_count fields.  Add comments about
440         task_{,queued_,running_}count.
441         (gomp_cancel_kind): New enum.
442         (gomp_work_share_end_cancel): New prototype.
443         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
444         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
445         and depend fields.
446         (struct gomp_taskgroup): New type.
447         (struct gomp_task_depend_entry,
448         struct gomp_dependers_vec): New types.
449         (gomp_finish_task): Free depend_hash if non-NULL.
450         (struct gomp_team_state): Add place_partition_off
451         and place_partition_len fields.
452         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
453         gomp_places_list_len): New extern decls.
454         (struct gomp_thread): Add place field.
455         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
456         (gomp_init_thread_affinity): Add place argument.
457         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
458         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
459         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
460         gomp_affinity_init_level, gomp_affinity_print_place): New
461         prototypes.
462         (gomp_team_start): Add flags argument.
463         (gomp_thread_limit_var, gomp_remaining_threads_count,
464         gomp_remaining_threads_lock): Remove.
465         (gomp_managed_threads_lock): New variable.
466         (struct gomp_thread_pool): Add threads_busy field.
467         (gomp_free_thread): New prototype.
468         * task.c: Include hashtab.h.
469         (hash_entry_type): New typedef.
470         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
471         (gomp_init_task): Clear dependers, depend_hash, depend_count,
472         copy_ctors_done and taskgroup fields.
473         (GOMP_task): Add depend argument, handle depend clauses.  If
474         gomp_team_barrier_cancelled or if it's taskgroup has been
475         cancelled, don't queue or start new tasks.  Set copy_ctors_done
476         field if needed.  Initialize taskgroup field.  If copy_ctors_done
477         and already cancelled, don't discard the task.  If taskgroup is
478         non-NULL, enqueue the task into taskgroup queue.  Increment
479         num_children field in taskgroup.  Increment task_queued_count.
480         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
481         gomp_task_run_post_remove_taskgroup): New inline functions.
482         (gomp_task_run_post_handle_depend_hash,
483         gomp_task_run_post_handle_dependers,
484         gomp_task_run_post_handle_depend): New functions.
485         (GOMP_taskwait): Use them.  If more than one new tasks
486         have been queued, wake other threads if needed.
487         (gomp_barrier_handle_tasks): Likewise.  If
488         gomp_team_barrier_cancelled, don't start any new tasks, just free
489         all tasks.
490         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
491         * omp_lib.f90.in
492         (omp_proc_bind_kind, omp_proc_bind_false,
493         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
494         omp_proc_bind_spread): New params.
495         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
496         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
497         omp_get_team_num, omp_is_initial_device): New interfaces.
498         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
499         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
500         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
501         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
502         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
503         useless use omp_lib_kinds.
504         * omp.h.in (omp_proc_bind_t): New typedef.
505         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
506         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
507         omp_get_team_num, omp_is_initial_device): New prototypes.
508         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
509         through to gomp_team_start.
510         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
511         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
512         Adjust gomp_parallel_loop_start callers.
513         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
514         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
515         GOMP_loop_end_cancel): New functions.
516         (GOMP_parallel_end): Add ialias_redirect.
517         * hashtab.h: New file.
518         * libgomp.texi (Environment Variables): Minor cleanup,
519         update section refs to OpenMP 4.0rc2.
520         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
521         environment variables.
522         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
523         team->work_shares_to_free to thr->ts.work_share before calling
524         free_work_share.
525         (gomp_work_share_end_cancel): New function.
526         * config/linux/proc.c: Include errno.h.
527         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
528         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
529         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
530         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
531         gomp_cpuset_size is sizeof (cpu_set_t).
532         (gomp_init_num_threads): Initialize gomp_cpuset_size,
533         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
534         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
535         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
536         contain any logical CPUs.
537         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
538         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
539         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
540         pthread_getaffinity_np.  Check gomp_places_list instead of
541         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
542         * config/linux/bar.c (gomp_barrier_wait_end,
543         gomp_barrier_wait_last): Use BAR_* defines.
544         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
545         from state where needed.  Set work_share_cancelled to 0 on last
546         thread.
547         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
548         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
549         functions.
550         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
551         Add cpusetsize argument.
552         (gomp_cpuset_size, gomp_cpusetp): Declare.
553         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
554         (affinity_counter): Remove.
555         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
556         if CPU_ALLOC_SIZE isn't defined.
557         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
558         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
559         bind current thread to the first place.
560         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
561         pthread_setaffinity_np to gomp_places_list[place].
562         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
563         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
564         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
565         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
566         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
567         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
568         (gomp_barrier_t): Add awaited_final field.
569         (gomp_barrier_init): Initialize awaited_final field.
570         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
571         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
572         prototypes.
573         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
574         defines.
575         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
576         gomp_team_barrier_cancelled): New inline functions.
577         (gomp_barrier_last_thread,
578         gomp_team_barrier_set_task_pending,
579         gomp_team_barrier_clear_task_pending,
580         gomp_team_barrier_set_waiting_for_tasks,
581         gomp_team_barrier_waiting_for_tasks,
582         gomp_team_barrier_done): Use BAR_* defines.
583         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
584         (gomp_barrier_wait_end): Use BAR_* defines.
585         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
586         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
587         Use BAR_* defines.
588         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
589         gomp_team_barrier_cancel): New functions.
590         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
591         argument.
592         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
593         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
594         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
595         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
596         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
597         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
598         (gomp_barrier_t): Add cancellable field.
599         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
600         gomp_team_barrier_cancel): New prototypes.
601         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
602         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
603         gomp_team_barrier_cancelled): New inline functions.
604         (gomp_barrier_wait_start, gomp_barrier_last_thread,
605         gomp_team_barrier_set_task_pending,
606         gomp_team_barrier_clear_task_pending,
607         gomp_team_barrier_set_waiting_for_tasks,
608         gomp_team_barrier_waiting_for_tasks,
609         gomp_team_barrier_done): Use BAR_* defines.
610         * barrier.c (GOMP_barrier_cancel): New function.
611         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
612         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
613         omp_proc_bind_spread): New params.
614         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
615         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
616         omp_get_team_num, omp_is_initial_device): New externals.
617         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
618         New functions.
619         (gomp_resolve_num_threads): Adjust for thread_limit now being in
620         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
621         infinity.  If not nested, just return minimum of max_num_threads
622         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
623         to the returned value.  Otherwise, don't update atomically
624         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
625         (GOMP_parallel_end): Adjust for thread_limit now being in
626         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
627         infinity.  Adjust threads_busy in the pool rather than
628         gomp_remaining_threads_count.  Remember team->nthreads and call
629         gomp_team_end before adjusting threads_busy, if not nested
630         afterwards, just set it to 1 non-atomically.  Add ialias.
631         (GOMP_parallel_start): Adjust gomp_team_start caller.
632         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
633         * testsuite/libgomp.c/affinity-1.c: New test.
634         * testsuite/libgomp.c/atomic-15.c: New test.
635         * testsuite/libgomp.c/atomic-16.c: New test.
636         * testsuite/libgomp.c/atomic-17.c: New test.
637         * testsuite/libgomp.c/cancel-for-1.c: New test.
638         * testsuite/libgomp.c/cancel-for-2.c: New test.
639         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
640         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
641         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
642         * testsuite/libgomp.c/cancel-sections-1.c: New test.
643         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
644         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
645         * testsuite/libgomp.c/depend-1.c: New test.
646         * testsuite/libgomp.c/depend-2.c: New test.
647         * testsuite/libgomp.c/depend-3.c: New test.
648         * testsuite/libgomp.c/depend-4.c: New test.
649         * testsuite/libgomp.c/for-1.c: New test.
650         * testsuite/libgomp.c/for-1.h: New file.
651         * testsuite/libgomp.c/for-2.c: New test.
652         * testsuite/libgomp.c/for-2.h: New file.
653         * testsuite/libgomp.c/for-3.c: New test.
654         * testsuite/libgomp.c/pr58392.c: New test.
655         * testsuite/libgomp.c/simd-1.c: New test.
656         * testsuite/libgomp.c/simd-2.c: New test.
657         * testsuite/libgomp.c/simd-3.c: New test.
658         * testsuite/libgomp.c/simd-4.c: New test.
659         * testsuite/libgomp.c/simd-5.c: New test.
660         * testsuite/libgomp.c/simd-6.c: New test.
661         * testsuite/libgomp.c/target-1.c: New test.
662         * testsuite/libgomp.c/target-2.c: New test.
663         * testsuite/libgomp.c/target-3.c: New test.
664         * testsuite/libgomp.c/target-4.c: New test.
665         * testsuite/libgomp.c/target-5.c: New test.
666         * testsuite/libgomp.c/target-6.c: New test.
667         * testsuite/libgomp.c/target-7.c: New test.
668         * testsuite/libgomp.c/taskgroup-1.c: New test.
669         * testsuite/libgomp.c/thread-limit-1.c: New test.
670         * testsuite/libgomp.c/thread-limit-2.c: New test.
671         * testsuite/libgomp.c/thread-limit-3.c: New test.
672         * testsuite/libgomp.c/udr-1.c: New test.
673         * testsuite/libgomp.c/udr-2.c: New test.
674         * testsuite/libgomp.c/udr-3.c: New test.
675         * testsuite/libgomp.c++/affinity-1.C: New test.
676         * testsuite/libgomp.c++/atomic-10.C: New test.
677         * testsuite/libgomp.c++/atomic-11.C: New test.
678         * testsuite/libgomp.c++/atomic-12.C: New test.
679         * testsuite/libgomp.c++/atomic-13.C: New test.
680         * testsuite/libgomp.c++/atomic-14.C: New test.
681         * testsuite/libgomp.c++/atomic-15.C: New test.
682         * testsuite/libgomp.c++/cancel-for-1.C: New test.
683         * testsuite/libgomp.c++/cancel-for-2.C: New test.
684         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
685         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
686         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
687         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
688         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
689         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
690         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
691         * testsuite/libgomp.c++/cancel-test.h: New file.
692         * testsuite/libgomp.c++/for-9.C: New test.
693         * testsuite/libgomp.c++/for-10.C: New test.
694         * testsuite/libgomp.c++/for-11.C: New test.
695         * testsuite/libgomp.c++/simd-1.C: New test.
696         * testsuite/libgomp.c++/simd-2.C: New test.
697         * testsuite/libgomp.c++/simd-3.C: New test.
698         * testsuite/libgomp.c++/simd-4.C: New test.
699         * testsuite/libgomp.c++/simd-5.C: New test.
700         * testsuite/libgomp.c++/simd-6.C: New test.
701         * testsuite/libgomp.c++/simd-7.C: New test.
702         * testsuite/libgomp.c++/simd-8.C: New test.
703         * testsuite/libgomp.c++/target-1.C: New test.
704         * testsuite/libgomp.c++/target-2.C: New test.
705         * testsuite/libgomp.c++/target-2-aux.cc: New file.
706         * testsuite/libgomp.c++/target-3.C: New test.
707         * testsuite/libgomp.c++/taskgroup-1.C: New test.
708         * testsuite/libgomp.c++/udr-1.C: New test.
709         * testsuite/libgomp.c++/udr-2.C: New test.
710         * testsuite/libgomp.c++/udr-3.C: New test.
711         * testsuite/libgomp.c++/udr-4.C: New test.
712         * testsuite/libgomp.c++/udr-5.C: New test.
713         * testsuite/libgomp.c++/udr-6.C: New test.
714         * testsuite/libgomp.c++/udr-7.C: New test.
715         * testsuite/libgomp.c++/udr-8.C: New test.
716         * testsuite/libgomp.c++/udr-9.C: New test.
718 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
720         PR testsuite/57605
721         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
722         ALWAYS_CFLAGS.
724 2013-09-20  Alan Modra  <amodra@gmail.com>
726         * configure: Regenerate.
728 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
730         * testsuite/libgomp.c/sections-2.c: New test.
732 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
734         * testsuite/libgomp.fortran/strassen.f90:
735         Add dg-skip-if aarch64_tiny.
737 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
738             Cesar Philippidis  <cesar@codesourcery.com>
740         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
741         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
742         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
743         * testsuite/libgomp.fortran/fortran.exp: Likewise.
744         * testsuite/libgomp.graphite/graphite.exp: Likewise.
745         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
746         Use dg-runtest rather than gfortran-dg-runtest.
748 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
750         * testsuite/libgomp.c/icv-2.c: Extend current handling of
751         Linux-based x86 systems to cover all GNU systems.
752         * testsuite/libgomp.c/lock-3.c: Likewise.
753         * testsuite/libgomp.c/pr48591.c: Likewise.
755 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
757         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
758         GNU/Hurd, as done for Linux-based systems.
760         * config/posix/ptrlock.h: Fix comment.
762 2013-05-27  Tobias Burnus  <burnus@net-b.de>
764         PR fortran/57423
765         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
766         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
767         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
768         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
769         omp_destroy_nest_lock): Correct arguments to match the one in
770         the OpenMP spec.
771         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
772         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
773         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
774         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
776 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
778         * testsuite/libgomp.c/loop-13.c: New test.
779         * testsuite/libgomp.c/loop-14.c: New test.
780         * testsuite/libgomp.c/loop-15.c: New test.
781         * testsuite/libgomp.c++/loop-13.C: New test.
782         * testsuite/libgomp.c++/loop-14.C: New test.
783         * testsuite/libgomp.c++/loop-15.C: New test.
785 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
787         PR middle-end/56217
788         * testsuite/libgomp.c++/pr56217.C: New test.
790 2013-02-01  Alan Modra  <amodra@gmail.com>
792         * task.c (GOMP_task, GOMP_taskwait): Comment.
794 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
795             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
797         PR libgomp/55561
798         * config/linux/wait.h (do_spin): Use atomic load for addr.
799         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
800         for intptr and ptrlock.
801         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
802         for ptrlock.
804 2013-01-22  Alan Modra  <amodra@gmail.com>
806         PR libgomp/51376
807         PR libgomp/56073
808         * task.c (GOMP_task): Revert 2011-12-09 change.
809         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
810         barrier to read task->children..
811         (gomp_barrier_handle_tasks): ..and matching atomic store with
812         release barrier here when setting parent->children to NULL.
814 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
815             Tobias Burnus  <burnus@net-b.de>
817         PR driver/55884
818         * testsuite/libgomp.fortran/fortran.exp: Use
819         -fintrinsic-modules-path= instead of
820         -fintrinsic-modules-path.
822 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
824         Update copyright years.
826 2012-12-19  Tobias Burnus  <burnus@net-b.de>
828         * testsuite/libgomp.fortran/fortran.exp: Set
829         -fintrinsic-modules-path.
831 2012-12-19  Tobias Burnus  <burnus@net-b.de>
833         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
834         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
836 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
838         PR libgomp/55411
839         * team.c (gomp_free_thread): Decrease gomp_managed_threads
840         if pool had any threads_used.
842 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
844         * testsuite/libgomp.c++/pr24455.C: Use
845         -Wl,-undefined,dynamic_lookup on darwin.
847 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
849         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
851 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
853         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
855 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
856             Jim MacArthur  <jim.macarthur@arm.com>
857             Marcus Shawcroft  <marcus.shawcroft@arm.com>
858             Nigel Stephens  <nigel.stephens@arm.com>
859             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
860             Richard Earnshaw  <rearnsha@arm.com>
861             Sofiane Naci  <sofiane.naci@arm.com>
862             Stephen Thomas  <stephen.thomas@arm.com>
863             Tejas Belagod  <tejas.belagod@arm.com>
864             Yufeng Zhang  <yufeng.zhang@arm.com>
866         * configure.tgt: Add AArch64.
868 2012-10-04  Jason Merrill  <jason@redhat.com>
870         * testsuite/libgomp.c++/tls-init1.C: New.
872 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
874         * configure: Regenerated.
876 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
878         * config/linux/mips/futex.h (sys_futex0): Change to static
879         function with noinline, nomips16 attributes under MIPS16. Adjust
880         asm statement to place 'li v0,SYS_futex' immediately before
881         syscall insn.
883 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
885         * libgomp.texi (Library Index): Renamed from "Index" to prevent
886         conflict with index.html on case-insensitive file systems.
888 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
890         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
891         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
893 2012-07-02  Richard Guenther  <rguenther@suse.de>
894             Michael Matz  <matz@suse.de>
895             Tobias Grosser <tobias@grosser.es>
896             Sebastian Pop <sebpop@gmail.com>
898         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
899         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
900         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
901         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
903 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
905         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
907 2012-06-22  Richard Guenther  <rguenther@suse.de>
909         Merge from graphite branch
910         2012-01-13  Tobias Grosser  <tobias@grosser.es>
912         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
913         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
915 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
917         PR middle-end/53580
918         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
919         use GOMP_barrier () call instead.
920         * testsuite/libgomp.c/pr26943-3.c: Likewise.
921         * testsuite/libgomp.c/pr26943-4.c: Likewise.
922         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
923         call GOMP_barrier instead.
924         * testsuite/libgomp.fortran/vla5.f90: Likewise.
926 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
928         PR libgomp/52993
929         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
930         argument to memset call.
932 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
934         * configure: Regenerated.
936 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
938         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
940 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
942         PR bootstrap/52812
943         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
945 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
947         PR middle-end/52547
948         * testsuite/libgomp.c/pr52547.c: New test.
950 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
952         * testsuite/lib/libgomp.exp: load fortran-modules.exp
954 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
956         * configure.tgt (mips-sgi-irix6*): Remove.
958 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
960         * configure.tgt (alpha*-dec-osf*): Remove.
962         * config/osf/sem.h: Remove.
963         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
965 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
967         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
969 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
971         PR libstdc++/52188
972         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
973         Remove ENABLE_SYMVERS_SOL2.
974         * configure: Regenerate.
975         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
976         (PREPROCESS): New variable.
977         (libgomp.ver): New target.
978         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
979         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
980         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
981         Use libgomp.ver.
982         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
983         * Makefile.in: Regenerate.
985 2012-02-14  Walter Lee  <walt@tilera.com>
987         * configure.tgt: Handle tilegx and tilepro.
988         * config/linux/tile/futex.h: New file.
990 2012-02-08  Richard Guenther  <rguenther@suse.de>
992         PR tree-optimization/46886
993         * testsuite/libgomp.c/pr46886.c: New testcase.
995 2012-01-25  Matthias Klose  <doko@ubuntu.com>
997         * config/linux/arm: Remove empty directory.
998         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1000 2011-12-09  Alan Modra  <amodra@gmail.com>
1002         PR libgomp/51376
1003         * task.c (GOMP_taskwait): Don't access task->children outside of
1004         task_lock mutex region.
1005         (GOMP_task): Likewise.
1007 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
1009         PR libgomp/51132
1010         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1011         to file scope.
1012         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1013         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1014         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1015         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1016         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1018 2011-12-02  Alan Modra  <amodra@gmail.com>
1020         * config/linux/affinity.c: Use atomic rather than sync builtin.
1021         * config/linux/lock.c: Likewise.
1022         * config/linux/ptrlock.h: Likewise.
1023         * config/linux/ptrlock.c: Likewise.
1024         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1025         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1026         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1027         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1028         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1029         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1030         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1031         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1032         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1033         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1035 2011-11-30  Alan Modra  <amodra@gmail.com>
1037         PR libgomp/51298
1038         * config/linux/bar.h: Use atomic rather than sync builtins.
1039         * config/linux/bar.c: Likewise.  Add missing acquire
1040         synchronisation on generation field.
1041         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1042         double unlock.
1044 2011-11-30  Alan Modra  <amodra@gmail.com>
1046         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1047         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1048         * config/linux/mutex.h: Use atomic rather than sync builtins.
1049         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
1050         * config/linux/omp-lock.h: Comment fix.
1051         * config/linux/arm/mutex.h: Delete.
1052         * config/linux/powerpc/mutex.h: Delete.
1053         * config/linux/ia64/mutex.h: Delete.
1054         * config/linux/mips/mutex.h: Delete.
1056 2011-11-30  Alan Modra  <amodra@gmail.com>
1058         PR libgomp/51249
1059         * config/linux/sem.h: Rewrite.
1060         * config/linux/sem.c: Rewrite.
1062 2011-11-28  Richard Henderson  <rth@redhat.com>
1064         * libgomp.h (enum memmodel): New.
1066 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1068         * configure: Regenerate.
1070 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1072         * config/posix95: Remove empty directory.
1074 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1076         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1078 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
1080         PR fortran/49792
1081         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1082         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1084 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1086         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1088 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1090         PR libgomp/49965
1091         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1093 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
1095         * config/linux/proc.h: New.
1096         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
1097         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
1098         (gomp_init_num_threads): Update call to cpuset_popcount.
1099         (get_num_procs): Ditto.
1100         * config/linux/affinity.c (gomp_init_affinity): Call
1101         gomp_cpuset_popcount.
1103 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1105         PR fortran/42041
1106         PR fortran/46752
1107         * omp.h.in (omp_in_final): New prototype.
1108         * omp_lib.f90.in (omp_in_final): New interface.
1109         (omp_integer_kind, omp_logical_kind): Remove
1110         and replace all its uses in the module with 4.
1111         (openmp_version): Change to 201107.
1112         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1113         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1114         kind for the parameters.
1115         (omp_in_final): New external.
1116         (openmp_version): Change to 201107.
1117         * task.c (omp_in_final): New function.
1118         (gomp_init_task): Initialize final_task.
1119         (GOMP_task): Remove unused attribute from flags.  Handle final
1120         tasks.
1121         (GOMP_taskyield): New function.
1122         (omp_in_final): Return true if if (false) or final (true) task
1123         or descendant of final (true).
1124         * fortran.c (omp_in_final_): New function.
1125         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1126         (GOMP_3.0): Export GOMP_taskyield.
1127         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1128         variables.
1129         (parse_unsigned_long_list): New function.
1130         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1131         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1132         even if parse_affinity returned false.
1133         * config/linux/affinity.c (gomp_init_affinity): Handle
1134         gomp_cpu_affinity_len == 0.
1135         * libgomp_g.h (GOMP_taskyield): New prototype.
1136         * libgomp.h (struct gomp_task): Add final_task field.
1137         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1138         * team.c (gomp_team_start): Override new task's nthreads_var icv
1139         if list form OMP_NUM_THREADS has been used and it has value for
1140         the new nesting level.
1142         * testsuite/libgomp.c/atomic-11.c: New test.
1143         * testsuite/libgomp.c/atomic-12.c: New test.
1144         * testsuite/libgomp.c/atomic-13.c: New test.
1145         * testsuite/libgomp.c/atomic-14.c: New test.
1146         * testsuite/libgomp.c/reduction-6.c: New test.
1147         * testsuite/libgomp.c/task-5.c: New test.
1148         * testsuite/libgomp.c++/atomic-2.C: New test.
1149         * testsuite/libgomp.c++/atomic-3.C: New test.
1150         * testsuite/libgomp.c++/atomic-4.C: New test.
1151         * testsuite/libgomp.c++/atomic-5.C: New test.
1152         * testsuite/libgomp.c++/atomic-6.C: New test.
1153         * testsuite/libgomp.c++/atomic-7.C: New test.
1154         * testsuite/libgomp.c++/atomic-8.C: New test.
1155         * testsuite/libgomp.c++/atomic-9.C: New test.
1156         * testsuite/libgomp.c++/task-8.C: New test.
1157         * testsuite/libgomp.c++/reduction-4.C: New test.
1158         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1159         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1160         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1161         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1162         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1163         * testsuite/libgomp.fortran/pointer1.f90: New test.
1164         * testsuite/libgomp.fortran/pointer2.f90: New test.
1165         * testsuite/libgomp.fortran/task4.f90: New test.
1167 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1169         * libgomp.texi: Update OpenMP spec references to 3.1.
1170         (omp_in_final,OMP_PROC_BIND): New sections.
1171         (OMP_NUM_THREADS): Document that the value can be now a list.
1172         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1174 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1176         * config/linux/x86/futex.h: Check __x86_64__ instead of
1177         __LP64__.
1179 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1181         PR middle-end/49897
1182         PR middle-end/49898
1183         * testsuite/libgomp.c/pr49897-1.c: New test.
1184         * testsuite/libgomp.c/pr49897-2.c: New test.
1185         * testsuite/libgomp.c/pr49898-1.c: New test.
1186         * testsuite/libgomp.c/pr49898-2.c: New test.
1188 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1190         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1191         for ia32 instead of ilp32.
1193         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1194         * testsuite/libgomp.c/atomic-6.c: Likewise.
1196 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1198         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1199         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1201 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1203         PR libgomp/45351
1204         * config/osf/sem.h: New file.
1205         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1207 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1209         PR target/49541
1210         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1211         ldflags.
1213 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1215         * config/linux/wait.h (do_spin): New inline, largely copied
1216         from do_wait, just don't do futex_wait here, instead return true if
1217         it should be done.
1218         (do_wait): Implement using do_spin.
1219         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1220         to prototype.
1221         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1222         __sync_bool_compare_and_swap, pass the oldval to
1223         gomp_mutex_lock_slow.
1224         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1225         If all mutex contenders are just spinning and not sleeping, don't
1226         change state to 2 unnecessarily.  Optimize the loop when state has
1227         already become 2 to use just one atomic operation per loop instead
1228         of two.
1229         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1230         to prototype.
1231         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1232         __sync_bool_compare_and_swap, pass the oldval to
1233         gomp_mutex_lock_slow.
1235 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1237         PR libgomp/49490
1238         * iter.c (gomp_iter_static_next): For chunk size 0
1239         only use n ceil/ nthreads size for the first
1240         n % nthreads threads in the team instead of
1241         all threads except for the last few ones which
1242         get less work or none at all.
1243         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1244         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1245         chunk argument, set run_sched_modifier to 0 for static
1246         resp. 1 for other kinds.  If chunk argument is 0
1247         and not static, set value to 1.
1249 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1251         PR c++/49043
1252         * testsuite/libgomp.c++/pr49043.C: New test.
1254         PR c++/48869
1255         * testsuite/libgomp.c++/pr48869.C: New test.
1257 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1259         PR fortran/48894
1260         * fortran.c: Include limits.h.
1261         (TO_INT): Define.
1262         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1263         *set.
1264         (omp_set_num_threads_8_, omp_set_schedule_8_,
1265         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1266         omp_get_team_size_8_): Use TO_INT macro.
1267         * testsuite/libgomp.fortran/pr48894.f90: New test.
1269 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1271         PR middle-end/48591
1272         * testsuite/libgomp.c/pr48591.c: New test.
1274 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1276         PR bootstrap/48135
1277         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1278         * configure: Regenerate.
1280 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1282         PR fortran/47886
1283         * testsuite/libgomp.fortran/task3.f90: New test.
1285 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1287         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1289 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1291         PR libgomp/47854
1292         * libgomp.texi (omp_get_wtime): Don't say time in the past
1293         must be Unix Epoch.
1295 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1297         PR libgomp/47804
1298         * testsuite/libgomp.fortran/fortran.exp: Check for both
1299         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1300         but $blddir != "", still append ${blddir}/${lang_library_path}
1301         to ld_library_path.
1303 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1305         PR libgomp/47758
1306         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1307         of libquadmath.a before adding its libpath to ldflags.
1309 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1311         PR libgomp/47731
1312         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1313         to FUTEX_WAIT futex syscall.
1314         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1316 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1318         * configure: Regenerate.
1320 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1322         PR libstdc++/36104
1323         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1325 2011-01-16  Gerald Pfeifer
1327         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1329 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1331         PR fortran/46874
1332         * libgomp.fortran/allocatable6.f90: New test.
1334 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1336         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1337         * configure: Regenerate.
1339 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1341         PR target/40125
1342         PR lto/46695
1343         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1344         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1345         * aclocal.m4: Regenerate.
1346         * configure: Regenerate.
1347         * Makefile.in: Regenerate.
1348         * testsuite/Makefile.in: Regenerate.
1350 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1352         PR fortran/46753
1353         * libgomp.fortran/pr46753.f90: New test.
1355         PR libgomp/43706
1356         * env.c (initialize_env): Default to spin count 300000
1357         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1358         is specified.
1360         PR libgomp/45240
1361         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1362         at the end if sync builtins aren't supported.
1364 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1366         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1368 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1370         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1372 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1374         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1376 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1377             Tobias Burnus  <burnus@net-b.de>
1379         PR fortran/32049
1380         * configure.ac:
1381         * configure: Regenerate.
1383 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1385         * config/linux/futex.h: New.
1386         * config/linux/arm/mutex.h: New.
1387         * configure.tgt (arm*-*-linux*): Add config path.
1389 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1391         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1393 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1395         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1396         Change Fortran datatype to LOGICAL.
1397         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1398         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1400 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1402         * configure: Regenerate.
1404 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1406         * libgomp.texi: Add function keyword to a couple of Fortran
1407         interfaces, use integer instead of int for Fortran.
1409 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1411         * libgomp.texi: Fix spelling and pasto problems throughout.
1412         Adjust prototypes to match code.
1414 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1416         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1417         silence -fwhole-file warning.
1419 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1421         * configure.tgt (*-*-solaris2.[56]*): Removed.
1423 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1425         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1426         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1427         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1428         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1429         targetting solaris2*.
1430         * configure: Regenerate.
1431         * config.h.in: Regenerate.
1433         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1434         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1435         Add libgomp_version_dep.
1436         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1437         versioning.
1438         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1439         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1440         * Makefile.in: Regenerate.
1442         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1443         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1444         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1445         to common block, protected by
1446         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1448 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1450         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1452 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1454         PR bootstrap/43170
1455         * configure: Regenerate.
1457 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1459         PR other/43620
1460         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1461         * configure: Regenerate.
1462         * Makefile.in: Regenerate.
1463         * testsuite/Makefile.in: Regenerate.
1465 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1467         PR c/43893
1468         * testsuite/libgomp.c/pr43893.c: New test.
1469         * testsuite/libgomp.c++/pr43893.C: New test.
1471 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1473         PR middle-end/43570
1474         * testsuite/libgomp.fortran/vla8.f90: New test.
1476 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1478         PR libgomp/43706
1479         * config/linux/affinity.c (gomp_init_affinity): Decrease
1480         gomp_available_cpus if affinity mask confines the process to fewer
1481         CPUs.
1482         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1483         non-NULL, just return gomp_available_cpus.
1485         PR libgomp/43569
1486         * sections.c (gomp_sections_init): Initialize ws->mode.
1488 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1490         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1491         not unused bar variable.
1492         * configure: Regenerate.
1494 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1496         * Makefile.in: Regenerate.
1497         * aclocal.m4: Regenerate.
1498         * testsuite/Makefile.in: Regenerate.
1500 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1502         PR libgomp/42942
1503         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1504         (initialize_env): Adjust callers.
1505         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1506         when the argument is 0.
1508         * testsuite/libgomp.c/pr42942.c: New test.
1510 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1512         PR middle-end/42644
1513         PR middle-end/42130
1514         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1515         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1517 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1519         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1520         * testsuite/libgomp.c++/task-6.C: Likewise.
1522 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1524         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1526 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1528         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1529         * configure: Regenerate.
1531 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1533         PR fortran/42866
1534         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1536 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1538         * configure.ac: Test for executability of GFORTRAN.
1539         * configure: Regenerate.
1541 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1543         * configure: Regenerate.
1545 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1547         PR libgomp/42602
1548         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1550 2010-01-03  Richard Guenther  <rguenther@suse.de>
1552         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1554 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1556         * testsuite/libgomp.graphite/pr4118.c: New.
1558 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1560         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1561         for darwin, protect the test with require-effective-target tls_runtime.
1562         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1564 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1566         PR target/41605
1567         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1568         link spec %s substitutions for static libraries.
1570 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1572         PR testsuite/42135
1573         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1575 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1577         * Makefile.in: Regenerate.
1578         * configure: Regenerate.
1579         * testsuite/Makefile.in: Regenerate.
1581 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1583         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1584         settings for LC_ALL and LANG.
1586 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1588         PR fortran/42162
1589         * testsuite/libgomp.fortran/pr42162.f90: New test.
1591 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1593         PR middle-end/42029
1594         * testsuite/libgomp.c/pr42029.c: New test.
1596 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1598         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1599         *s.  Accept ld version without text in ()s.
1600         * configure: Regenerated.
1602 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1604         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1606 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1608         PR libgomp/41418
1609         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1610         or a hyphen (happens with fortran language disabled).
1611         * configure: Regenerate.
1613 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1615         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1616         use sed script portable to Solaris /bin/sed for extracting ld
1617         version.
1618         * configure: Regenerate.
1620 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1622         * testsuite/libgomp.graphite/bounds.c: New test.
1624 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1626         * Makefile.am (libgomp_la_LINK): New.
1627         * Makefile.in: Regenerate.
1629 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1631         * configure.ac (AC_PREREQ): Bump to 2.64.
1633 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1635         * Makefile.am (install-html, install-pdf): Remove.
1636         * Makefile.in: Regenerate.
1638         * Makefile.in: Regenerate.
1639         * aclocal.m4: Regenerate.
1640         * config.h.in: Regenerate.
1641         * configure: Regenerate.
1642         * testsuite/Makefile.in: Regenerate.
1644 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1646         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1647         * Makefile.in: Regenerate.
1649 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1651         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1652         * Makefile.in: Regenerate.
1654 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1656         PR fortran/41102
1657         omp_lib.h.in: Fix -std=f95 errors.
1660 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1662         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1663         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1664         * testsuite/libgomp.graphite/graphite.exp: New.
1666 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1668         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1669         only build.
1671 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1673         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1674         needed memory barrier semantics.
1675         * config/linux/mips/mutex.h: New file.
1677 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1679         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1681 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1683         * configure: Regenerate.
1685 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1687         PR testsuite/40699
1688         PR testsuite/40707
1689         PR testsuite/40709
1690         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1691         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1692         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1694 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1696         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1697         options when choosing a multilib.
1699 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1701         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1702         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1703         ld_library_path, not every libgcc multilib directory.
1704         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1705         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1706         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1707         Use add_path.
1708         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1710 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1712         * Makefile.am (LTLDFLAGS): Define.
1713         (LINK): Define.
1714         * Makefile.in: Regenerate.
1716 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1718         PR fortran/39718
1719         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1720         libgfortranbegin, check existence of libgfortran.a instead of
1721         libgfortranbegin.a.
1723 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1725         PR libgomp/40174
1726         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1727         (gomp_free_pool_helper): Likewise.
1729 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1730             Jakub Jelinek  <jakub@redhat.com>
1732         PR fortran/35423
1733         * testsuite/libgomp.fortran/workshare2.f90: New test.
1735 2009-04-09  Nick Clifton  <nickc@redhat.com>
1737         * iter.c: Change copyright header to refer to version 3 of the
1738         GNU General Public License with version 3.1 of the GCC Runtime
1739         Library Exception and to point readers at the COPYING3 and
1740         COPYING3.RUNTIME files and the FSF's license web page.
1741         * alloc.c: Likewise.
1742         * barrier.c: Likewise.
1743         * config/bsd/proc.c: Likewise.
1744         * config/linux/affinity.c: Likewise.
1745         * config/linux/alpha/futex.h: Likewise.
1746         * config/linux/bar.c: Likewise.
1747         * config/linux/bar.h: Likewise.
1748         * config/linux/ia64/futex.h: Likewise.
1749         * config/linux/ia64/mutex.h: Likewise.
1750         * config/linux/lock.c: Likewise.
1751         * config/linux/mips/futex.h: Likewise.
1752         * config/linux/mutex.c: Likewise.
1753         * config/linux/mutex.h: Likewise.
1754         * config/linux/powerpc/futex.h: Likewise.
1755         * config/linux/proc.c: Likewise.
1756         * config/linux/ptrlock.c: Likewise.
1757         * config/linux/ptrlock.h: Likewise.
1758         * config/linux/s390/futex.h: Likewise.
1759         * config/linux/sem.c: Likewise.
1760         * config/linux/sem.h: Likewise.
1761         * config/linux/sparc/futex.h: Likewise.
1762         * config/linux/wait.h: Likewise.
1763         * config/linux/x86/futex.h: Likewise.
1764         * config/mingw32/proc.c: Likewise.
1765         * config/mingw32/time.c: Likewise.
1766         * config/posix/affinity.c: Likewise.
1767         * config/posix/bar.c: Likewise.
1768         * config/posix/bar.h: Likewise.
1769         * config/posix/lock.c: Likewise.
1770         * config/posix/mutex.h: Likewise.
1771         * config/posix/proc.c: Likewise.
1772         * config/posix/ptrlock.h: Likewise.
1773         * config/posix/sem.c: Likewise.
1774         * config/posix/sem.h: Likewise.
1775         * config/posix/time.c: Likewise.
1776         * config/posix95/lock.c: Likewise.
1777         * critical.c: Likewise.
1778         * env.c: Likewise.
1779         * error.c: Likewise.
1780         * fortran.c: Likewise.
1781         * iter_ull.c: Likewise.
1782         * libgomp.h: Likewise.
1783         * libgomp_f.h.in: Likewise.
1784         * libgomp_g.h: Likewise.
1785         * loop.c: Likewise.
1786         * loop_ull.c: Likewise.
1787         * omp.h.in: Likewise.
1788         * omp_lib.f90.in: Likewise.
1789         * omp_lib.h.in: Likewise.
1790         * ordered.c: Likewise.
1791         * parallel.c: Likewise.
1792         * sections.c: Likewise.
1793         * single.c: Likewise.
1794         * task.c: Likewise.
1795         * team.c: Likewise.
1796         * work.c: Likewise.
1798 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1800         * testsuite/config/default.exp: Change copyright header to refer to
1801         version 3 of the GNU General Public License and to point readers
1802         at the COPYING3 file and the FSF's license web page.
1804 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1806         PR middle-end/39573
1807         * libgomp.c++/pr39573.C: New test.
1809 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1811         PR other/39591
1812         * testsuite/libgomp.c/pr39591-1.c: New test.
1813         * testsuite/libgomp.c/pr39591-2.c: New test.
1814         * testsuite/libgomp.c/pr39591-3.c: New test.
1816 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1818         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1819         * testsuite/libgomp.c/atomic-6.c: Ditto.
1821 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1823         PR c/39495
1824         * testsuite/libgomp.c/loop-12.c: New test.
1825         * testsuite/libgomp.c/loop-11.c: New test.
1826         * testsuite/libgomp.c++/loop-11.C: New test.
1827         * testsuite/libgomp.c++/loop-12.C: New test.
1828         * testsuite/libgomp.c++/for-8.C: New test.
1830 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1832         * configure: Regenerate.
1834 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1836         PR middle-end/39154
1837         * testsuite/libgomp.c/pr39154.c: New test.
1839 2009-01-30  Ian Lance Taylor  <iant@google.com>
1841         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1842         libgomp_ld_is_gold.  Get gold version number.
1843         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1844         * configure: Rebuild.
1846 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1848         * testsuite/lib/libgomp.exp: Add -B option for targets that
1849         use libgfortran.a%s in their specs.
1851 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1853         PR libgomp/38086
1854         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1855         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1856         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1857         * configure: Regenerated.
1858         * config.h.in: Likewise.
1860 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1862         PR c++/38650
1863         * testsuite/libgomp.c/pr38650.c: New test.
1864         * testsuite/libgomp.c++/pr38650.C: New test.
1866 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1868         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1870 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1872         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1874 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1876         * configure: Regenerate.
1878 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1880         PR middle-end/36802
1881         * testsuite/libgomp.c/pr36802-1.c: New test.
1882         * testsuite/libgomp.c/pr36802-2.c: New test.
1883         * testsuite/libgomp.c/pr36802-3.c: New test.
1885 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1887         PR libgomp/38270
1888         * config/linux/powerpc/mutex.h: New.
1890 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1892         PR c++/38257
1893         * testsuite/libgomp.c++/for-7.C: New test.
1895         PR c++/38348
1896         * testsuite/libgomp.c++/for-6.C: New test.
1898 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1900         PR testsuite/28870
1901         * testsuite/lib/libgomp.exp: Include new timeout library files.
1902         (libgomp_target_compile): Set timeout value from new proc.
1904 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1906         PR libgomp/37938
1907         * config/linux/ia64/mutex.h: New.
1909 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1911         PR libgomp/37935
1912         * libgomp.texi (Runtime library routines, environment variables):
1913         Update for OpenMP version 3.0.
1915 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1916             Steve Ellcey  <sje@cup.hp.com>
1918         * configure: Regenerate for new libtool.
1919         * Makefile.in: Ditto.
1920         * testsuite/Makefile.in: Ditto.
1922 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1923             Andreas Tobler  <a.tobler@schweiz.org>
1925         * config/bsd/proc.c: New file.
1926         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1927         * configure.ac: Check for header <sys/sysctl.h>
1928         * configure: Regenerate.
1929         * config.h.in: Likewise.
1931 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1933         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1935 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1937         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1938         * Makefile.in: Regenerated.
1939         * testsuite/Makefile.in: Regenerated.
1941 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1943         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1944         depend on blddir if blddir exists.
1945         (libgomp_target_compile): Likewise.
1946         * testsuite/libgomp.c++/c++.exp: Likewise.
1947         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1949 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1951         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1952         Do not list GPL as Invariant Section.
1954 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1955             Chao-ying Fu  <fu@mips.com>
1957         * configure.tgt: Enable futex for MIPS.
1958         * config/linux/mips/futex.h: New file.
1960 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1962         * team.c (gomp_team_end): Free team immediately if it has
1963         just one thread.
1965 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1967         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1968         * testsuite/libgomp.fortran/fortran.exp: Same.
1969         * testsuite/libgomp.c/c.exp: Same.
1970         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1971         directory to library path first.
1973 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1975         * env.c (parse_stacksize): Add cast to avoid warning.
1976         (parse_spincount): Likewise.
1978 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1980         * testsuite/libgomp.c/loop-10.c: New test.
1981         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1982         * libgomp.c++/loop-6.C (main): Likewise.
1984         PR debug/36617
1985         * testsuite/libgomp.c/debug-1.c: New test.
1987 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1989         * testsuite/libgomp.c/nqueens-1.c: New test.
1991         PR c++/36523
1992         * testsuite/libgomp.c++/task-7.C: New function.
1994 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1996         * configure: Regenerate.
1998 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2000         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2001         mutex when HAVE_SYNC_BUILTINS isn't defined.
2003 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2005         * libgomp.texi (omp_test_lock): Fix typo.
2007 2008-06-12  Tobias Burnus  <burnus@net-b.de>
2009         * omp_lib.f90.in: Add "implicit none".
2011 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2013         PR middle-end/36506
2014         * testsuite/libgomp.c/reduction-5.c: New test.
2016 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
2018         * libgomp.h (struct gomp_task): Add in_tied_task field.
2019         * task.c (gomp_init_task): Initialize it.
2020         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
2021         unconditionally.  Don't call gomp_team_barrier_wake if
2022         current task is implicit or if(0) from implicit and number of
2023         running tasks is equal to nthreads - 1.
2025         PR libgomp/36471
2026         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2027         omp_get_team_size_8): Fix pastos.
2029         PR libgomp/36469
2030         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2031         * configure: Regenerated.
2032         * config.h.in: Regenerated.
2033         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2034         defined.
2036 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
2038         PR bootstrap/36452
2039         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2040         (GOMP_loop_ull_dynamic_start): Likewise.
2041         (GOMP_loop_ull_guided_start): Likewise.
2042         (GOMP_loop_ull_ordered_static_start): Likewise.
2043         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2044         (GOMP_loop_ull_ordered_guided_start): Likewise.
2046 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2047             Richard Henderson  <rth@redhat.com>
2048             Ulrich Drepper  <drepper@redhat.com>
2049             Jakob Blomer  <jakob.blomer@ira.uka.de>
2051         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2052         Substitute also OMP_*LOCK_25*.
2053         * configure: Regenerated.
2054         * config.h.in: Regenerated.
2055         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2056         ptrlock.c and task.c.
2057         * Makefile.in: Regenerated.
2058         * testsuite/Makefile.in: Regenerated.
2059         * task.c: New file.
2060         * loop_ull.c: New file.
2061         * iter_ull.c: New file.
2062         * libgomp.h: Include ptrlock.h.
2063         (enum gomp_task_kind): New type.
2064         (struct gomp_team): Add task_lock, task_queue, task_count,
2065         task_running_count, single_count fields.  Add
2066         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2067         Remove work_share_lock, generation_mask,
2068         oldest_live_gen, num_live_gen and init_work_shares fields, add
2069         work work_share_list_alloc, work_share_list_free and work_share_chunk
2070         fields.  Change work_shares from pointer to pointers into an array.
2071         Change ordered_release field into gomp_sem_t ** from flexible array
2072         member.  Add implicit_task and initial_work_shares fields.
2073         Move close to the end of the struct.
2074         (struct gomp_team_state): Add single_count, last_work_share,
2075         active_level and level fields, remove work_share_generation.
2076         (gomp_barrier_handle_tasks): New prototype.
2077         (gomp_finish_task): New inline function.
2078         (struct gomp_work_share): Move chunk_size, end, incr into
2079         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2080         next_ll fields.  Reshuffle fields.  Add next_alloc,
2081         next_ws, next_free and inline_ordered_team_ids fields, change
2082         ordered_team_ids into pointer from flexible array member.
2083         Add mode field.  Put lock and next into a different cache line
2084         from most of the write-once fields.
2085         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2086         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2087         gomp_iter_ull_guided_next): New prototypes.
2088         (gomp_new_icv): New prototype.
2089         (struct gomp_thread): Add thread_pool and task fields.
2090         (struct gomp_thread_pool): New type.
2091         (gomp_new_team): New prototype.
2092         (gomp_team_start): Change type of last argument.
2093         (gomp_new_work_share): Removed.
2094         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2095         (gomp_work_share_init_done): New static inline.
2096         (gomp_throttled_spin_count_var, gomp_available_cpus,
2097         gomp_managed_threads): New extern decls.
2098         (gomp_init_task): New prototype.
2099         (gomp_spin_count_var): New extern var decl.
2100         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2101         or no alias support, or if not PIC.
2102         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2103         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2104         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2105         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2106         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2107         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2108         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2109         gomp_test_nest_lock_25): New prototypes.
2110         (omp_lock_symver, strong_alias): Define.
2111         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2112         decls.
2113         (gomp_end_task): New.
2114         (struct gomp_task_icv, gomp_global_icv): New.
2115         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2116         (struct gomp_task): New.
2117         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2118         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2119         (gomp_icv): New.
2120         (gomp_schedule_type): Reorder enum to match
2121         omp_sched_t.
2122         * team.c (struct gomp_thread_start_data): Add thread_pool and task
2123         fields.
2124         (gomp_thread_start): Add gomp_team_barrier_wait call.
2125         For non-nested case remove clearing of docked thread thr fields.
2126         Use pool fields instead of global gomp_* variables.  Use
2127         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2128         Create tasks for each member thread.
2129         (free_team): Only destroy team barrier, task_lock here and free it.
2130         (gomp_free_thread): Free last_team if non-NULL.
2131         (gomp_team_end): Call gomp_team_barrier_wait instead of
2132         gomp_barrier_wait.  For nested case call one extra
2133         gomp_barrier_wait.  Move here some destruction from free_team.
2134         Call free_team on pool->last_team if any, rather than freeing
2135         current team.  Destroy work_share_list_free_lock ifndef
2136         HAVE_SYNC_BUILTINS.
2137         (gomp_new_icv): New function.
2138         (gomp_threads, gomp_threads_size, gomp_threads_used,
2139         gomp_threads_dock): Removed.
2140         (gomp_thread_destructor): New variable.
2141         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2142         functions.
2143         (gomp_team_start): Create new pool if current thread doesn't have
2144         one.  Use pool fields instead of global gomp_* variables.
2145         Initialize thread_pool field for new threads.  Clear single_count.
2146         Change last argument from ws to team, don't create
2147         new team, set ts.work_share to &team->work_shares[0] and clear
2148         ts.last_work_share.  Don't clear ts.work_share_generation.
2149         If number of threads changed, adjust atomically gomp_managed_threads.
2150         Use gomp_init_task instead of gomp_new_task,
2151         set thr->task to the corresponding implicit_task array entry.
2152         Create tasks for each member thread.  Initialize ts.level.
2153         (initialize_team): Call pthread_key_create on
2154         gomp_thread_destructor.
2155         (team_destructor): New function.
2156         (new_team): Removed.
2157         (gomp_new_team): New function.
2158         (free_team): Free gomp_work_share blocks chained through next_alloc,
2159         instead of freeing work_shares and destroying work_share_lock.
2160         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2161         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2162         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2163         of gomp_barrier_wait.
2164         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2165         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2166         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2167         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2168         of gomp_barrier_wait.
2169         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2170         gomp_work_share_init_done if gomp_work_share_start returned true.
2171         Don't unlock ws->lock.
2172         * work.c: Include stddef.h.
2173         (free_work_share): Use work_share_list_free_lock instead
2174         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2175         Call gomp_fini_work_share and then either free ws if orphaned, or
2176         put it into work_share_list_free list of the current team.
2177         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2178         functions.
2179         (gomp_work_share_start, gomp_work_share_end,
2180         gomp_work_share_end_nowait): Rewritten.
2181         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2182         (openmp_version): Set to 200805.
2183         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2184         omp_sched_guided, omp_sched_auto): New parameters.
2185         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2186         omp_set_max_active_levels, omp_get_max_active_levels,
2187         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2188         omp_get_active_level): New interfaces.
2189         * omp_lib.h.in (openmp_version): Set to 200805.
2190         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2191         omp_sched_guided, omp_sched_auto): New parameters.
2192         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2193         omp_set_max_active_levels, omp_get_max_active_levels,
2194         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2195         omp_get_active_level): New externals.
2196         * loop.c: Include limits.h.
2197         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2198         GFS_AUTO.
2199         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2200         Likewise.  Use gomp_icv.
2201         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2202         ts.static_trip here.
2203         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2204         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2205         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2206         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2207         don't unlock ws->lock, otherwise lock it.
2208         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2209         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2210         (gomp_parallel_loop_start): Call gomp_new_team instead of
2211         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2212         Adjust gomp_team_start caller.  Pass 0 as second argument to
2213         gomp_resolve_num_threads.
2214         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2215         If adding ws->chunk_size nthreads + 1 times after end won't
2216         overflow, set ws->mode to 1.
2217         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2218         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2219         GOMP_loop_ull_ordered_static_start,
2220         GOMP_loop_ull_ordered_dynamic_start,
2221         GOMP_loop_ull_ordered_guided_start,
2222         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2223         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2224         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2225         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2226         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2227         prototypes.
2228         * libgomp.map: Export lock routines also @@OMP_2.0.
2229         (GOMP_loop_ordered_dynamic_first,
2230         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2231         GOMP_loop_ordered_static_first): Remove.
2232         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2233         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2234         GOMP_loop_ull_ordered_dynamic_next,
2235         GOMP_loop_ull_ordered_dynamic_start,
2236         GOMP_loop_ull_ordered_guided_next,
2237         GOMP_loop_ull_ordered_guided_start,
2238         GOMP_loop_ull_ordered_runtime_next,
2239         GOMP_loop_ull_ordered_runtime_start,
2240         GOMP_loop_ull_ordered_static_next,
2241         GOMP_loop_ull_ordered_static_start,
2242         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2243         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2244         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2245         (omp_set_schedule, omp_get_schedule,
2246         omp_get_thread_limit, omp_set_max_active_levels,
2247         omp_get_max_active_levels, omp_get_level,
2248         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2249         omp_set_schedule_, omp_set_schedule_8_,
2250         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2251         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2252         omp_get_max_active_levels_, omp_get_level_,
2253         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2254         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2255         New exports @@OMP_3.0.
2256         * omp.h.in (omp_sched_t): New type.
2257         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2258         omp_set_max_active_levels, omp_get_max_active_levels,
2259         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2260         omp_get_active_level): New prototypes.
2261         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2262         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2263         gomp_thread_limit_var, gomp_remaining_threads_count,
2264         gomp_remaining_threads_lock): New variables.
2265         (parse_spincount): New function.
2266         (initialize_env): Call gomp_init_num_threads unconditionally.
2267         Initialize gomp_available_cpus.  Call parse_spincount,
2268         initialize gomp_{,throttled_}spin_count_var
2269         depending on presence and value of OMP_WAIT_POLICY and
2270         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2271         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2272         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2273         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2274         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2275         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2276         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2277         (gomp_global_icv): New.
2278         (parse_schedule): Use it.  Parse "auto".
2279         (omp_set_num_threads): Use gomp_icv.
2280         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2281         Likewise.
2282         (omp_get_max_threads): Move from parallel.c.
2283         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2284         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2285         add ialias.
2286         (parse_stacksize, parse_wait_policy): New functions.
2287         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2288         both wrappers for compatibility and new locks.
2289         (omp_set_schedule, omp_get_schedule,
2290         omp_get_thread_limit, omp_set_max_active_levels,
2291         omp_get_max_active_levels, omp_get_level,
2292         omp_get_ancestor_thread_num, omp_get_team_size,
2293         omp_get_active_level): New ialias_redirect.
2294         (omp_set_schedule_, omp_set_schedule_8_,
2295         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2296         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2297         omp_get_max_active_levels_, omp_get_level_,
2298         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2299         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2300         New functions.
2301         * parallel.c: Include limits.h.
2302         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2303         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2304         argument to gomp_team_start.  Pass 0 as second argument to
2305         gomp_resolve_num_threads.
2306         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2307         if gomp_thread_limit_var != ULONG_MAX.
2308         (omp_in_parallel): Implement using ts.active_level.
2309         (omp_get_max_threads): Move to env.c.
2310         (omp_get_level, omp_get_ancestor_thread_num,
2311         omp_get_team_size, omp_get_active_level): New functions,
2312         add ialias.
2313         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2314         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2315         gomp_iter_dynamic_next instead of the _locked variant and don't take
2316         lock around it, otherwise acquire it before calling
2317         gomp_iter_dynamic_next_locked.
2318         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2319         gomp_iter_dynamic_next instead of the _locked variant and don't take
2320         lock around it.
2321         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2322         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2323         Adjust gomp_team_start caller.  Pass count as second argument to
2324         gomp_resolve_num_threads, don't adjust num_threads after the call.
2325         Use gomp_icv.
2326         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2327         ws->chunk_size by incr.
2328         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2329         code.
2330         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2331         types.
2332         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2333         (omp_check_defines): Check even the compat defines.
2334         * config/linux/ptrlock.c: New file.
2335         * config/linux/ptrlock.h: New file.
2336         * config/linux/wait.h: New file.
2337         * config/posix/ptrlock.c: New file.
2338         * config/posix/ptrlock.h: New file.
2339         * config/linux/bar.h (gomp_team_barrier_wait,
2340         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2341         (gomp_team_barrier_set_task_pending,
2342         gomp_team_barrier_clear_task_pending,
2343         gomp_team_barrier_set_waiting_for_tasks,
2344         gomp_team_barrier_waiting_for_tasks,
2345         gomp_team_barrier_done): New inlines.
2346         (gomp_barrier_t): Rewritten.
2347         (gomp_barrier_state_t): New typedef.
2348         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2349         gomp_barrier_wait_start): Rewritten.
2350         (gomp_barrier_wait_end): Change second argument to
2351         gomp_barrier_state_t.
2352         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2353         inlines.
2354         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2355         futex.h.
2356         (gomp_barrier_wait_end): Rewritten.
2357         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2358         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2359         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2360         (gomp_barrier_state_t): New typedef.
2361         (gomp_team_barrier_wait,
2362         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2363         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2364         into the return value.  Return gomp_barrier_state_t.
2365         (gomp_team_barrier_set_task_pending,
2366         gomp_team_barrier_clear_task_pending,
2367         gomp_team_barrier_set_waiting_for_tasks,
2368         gomp_team_barrier_waiting_for_tasks,
2369         gomp_team_barrier_done): New inlines.
2370         (gomp_barrier_wait_end): Change second argument to
2371         gomp_barrier_state_t.
2372         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2373         inlines.
2374         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2375         (gomp_barrier_wait_end): Change second argument to
2376         gomp_barrier_state_t.
2377         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2378         gomp_team_barrier_wake): New functions.
2379         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2380         futex.h.
2381         (gomp_futex_wake, gomp_futex_wait): New variables.
2382         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2383         * config/linux/lock.c: Rewrite to make locks task owned,
2384         for backwards compatibility provide the old entrypoints
2385         if symbol versioning.  Include wait.h instead of libgomp.h and
2386         futex.h.
2387         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2388         * config/posix95/lock.c: Rewrite to make locks task owned,
2389         for backwards compatibility provide the old entrypoints
2390         if symbol versioning.
2391         * config/posix/lock.c: Rewrite to make locks task owned,
2392         for backwards compatibility provide the old entrypoints
2393         if symbol versioning.
2394         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2395         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2396         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2397         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2398         (sys_futex0): Return error code.
2399         (futex_wake, futex_wait): If ENOSYS was returned, clear
2400         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2401         (cpu_relax, atomic_write_barrier): New static inlines.
2402         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2403         (futex_wake, futex_wait): If ENOSYS was returned, clear
2404         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2405         (cpu_relax, atomic_write_barrier): New static inlines.
2406         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2407         (sys_futex0): Return error code.
2408         (futex_wake, futex_wait): If ENOSYS was returned, clear
2409         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2410         (cpu_relax, atomic_write_barrier): New static inlines.
2411         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2412         (sys_futex0): Return error code.
2413         (futex_wake, futex_wait): If ENOSYS was returned, clear
2414         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2415         (cpu_relax, atomic_write_barrier): New static inlines.
2416         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2417         (sys_futex0): Return error code.
2418         (futex_wake, futex_wait): If ENOSYS was returned, clear
2419         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2420         (cpu_relax, atomic_write_barrier): New static inlines.
2421         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2422         (sys_futex0): Return error code.
2423         (futex_wake, futex_wait): If ENOSYS was returned, clear
2424         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2425         (cpu_relax, atomic_write_barrier): New static inlines.
2426         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2427         futex.h.
2428         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2429         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2430         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2431         types.
2432         (omp_nest_lock_t): Change owner into void *, add lock field.
2433         * config/posix95/omp-lock.h: Include semaphore.h.
2434         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2435         (omp_lock_t): Use sem_t instead of mutex if semaphores
2436         aren't broken.
2437         (omp_nest_lock_t): Likewise.  Change owner to void *.
2438         * config/posix/omp-lock.h: Include semaphore.h.
2439         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2440         (omp_lock_t): Use sem_t instead of mutex if semaphores
2441         aren't broken.
2442         (omp_nest_lock_t): Likewise.  Add owner field.
2444 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2446         * testsuite/libgomp.c/collapse-1.c: New test.
2447         * testsuite/libgomp.c/collapse-2.c: New test.
2448         * testsuite/libgomp.c/collapse-3.c: New test.
2449         * testsuite/libgomp.c/icv-1.c: New test.
2450         * testsuite/libgomp.c/icv-2.c: New test.
2451         * testsuite/libgomp.c/lib-2.c: New test.
2452         * testsuite/libgomp.c/lock-1.c: New test.
2453         * testsuite/libgomp.c/lock-2.c: New test.
2454         * testsuite/libgomp.c/lock-3.c: New test.
2455         * testsuite/libgomp.c/loop-4.c: New test.
2456         * testsuite/libgomp.c/loop-5.c: New test.
2457         * testsuite/libgomp.c/loop-6.c: New test.
2458         * testsuite/libgomp.c/loop-7.c: New test.
2459         * testsuite/libgomp.c/loop-8.c: New test.
2460         * testsuite/libgomp.c/loop-9.c: New test.
2461         * testsuite/libgomp.c/nested-3.c: New test.
2462         * testsuite/libgomp.c/nestedfn-6.c: New test.
2463         * testsuite/libgomp.c/sort-1.c: New test.
2464         * testsuite/libgomp.c/task-1.c: New test.
2465         * testsuite/libgomp.c/task-2.c: New test.
2466         * testsuite/libgomp.c/task-3.c: New test.
2467         * testsuite/libgomp.c/task-4.c: New test.
2468         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2469         to C++ testsuite default compiler options.
2470         * testsuite/libgomp.c++/collapse-1.C: New test.
2471         * testsuite/libgomp.c++/collapse-2.C: New test.
2472         * testsuite/libgomp.c++/ctor-10.C: New test.
2473         * testsuite/libgomp.c++/for-1.C: New test.
2474         * testsuite/libgomp.c++/for-2.C: New test.
2475         * testsuite/libgomp.c++/for-3.C: New test.
2476         * testsuite/libgomp.c++/for-4.C: New test.
2477         * testsuite/libgomp.c++/for-5.C: New test.
2478         * testsuite/libgomp.c++/loop-8.C: New test.
2479         * testsuite/libgomp.c++/loop-9.C: New test.
2480         * testsuite/libgomp.c++/loop-10.C: New test.
2481         * testsuite/libgomp.c++/task-1.C: New test.
2482         * testsuite/libgomp.c++/task-2.C: New test.
2483         * testsuite/libgomp.c++/task-3.C: New test.
2484         * testsuite/libgomp.c++/task-4.C: New test.
2485         * testsuite/libgomp.c++/task-5.C: New test.
2486         * testsuite/libgomp.c++/task-6.C: New test.
2487         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2488         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2489         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2490         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2491         * testsuite/libgomp.fortran/collapse1.f90: New test.
2492         * testsuite/libgomp.fortran/collapse2.f90: New test.
2493         * testsuite/libgomp.fortran/collapse3.f90: New test.
2494         * testsuite/libgomp.fortran/collapse4.f90: New test.
2495         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2496         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2497         * testsuite/libgomp.fortran/lib4.f90: New test.
2498         * testsuite/libgomp.fortran/lock-1.f90: New test.
2499         * testsuite/libgomp.fortran/lock-2.f90: New test.
2500         * testsuite/libgomp.fortran/nested1.f90: New test.
2501         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2502         * testsuite/libgomp.fortran/strassen.f90: New test.
2503         * testsuite/libgomp.fortran/tabs1.f90: New test.
2504         * testsuite/libgomp.fortran/tabs2.f: New test.
2505         * testsuite/libgomp.fortran/task1.f90: New test.
2506         * testsuite/libgomp.fortran/task2.f90: New test.
2507         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2508         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2509         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2510         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2511         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2513 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2515         PR c++/36308
2516         * testsuite/libgomp.c++/ctor-11.C: New test.
2517         * testsuite/libgomp.c++/ctor-12.C: New test.
2519 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2521         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2523 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2525         PR middle-end/36106
2526         * testsuite/libgomp.c/atomic-5.c: New test.
2527         * testsuite/libgomp.c/atomic-6.c: New test.
2528         * testsuite/libgomp.c/autopar-1.c: New test.
2530 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2532         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2533         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2534         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2535         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2536         * configure: Regenerate.
2537         * Makefile.in, testsuite/Makefile.in: Likewise.
2539 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2541         PR bootstrap/35457
2542         * aclocal.m4: Regenerate.
2543         * configure: Regenerate.
2545 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2547         PR middle-end/35611
2548         * testsuite/libgomp.c/atomic-4.c: New test.
2550         PR libgomp/35625
2551         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2552         (gomp_iter_guided_next): Likewise.
2553         * testsuite/libgomp.c/pr35625.c: New test.
2555 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2557         * aclocal.m4: Regenerate.
2558         * configure: Likewise.
2559         * Makefile.in: Likewise.
2560         * testsuite/Makefile.in: Likewise.
2562 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2564         PR middle-end/35185
2565         * testsuite/libgomp.c++/pr35185.C: New test.
2567 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2569         PR middle-end/35549
2570         * testsuite/libgomp.c/pr35549.c: New test.
2572 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2574         * testsuite/libgomp.c/atomic-3.c: New test.
2576 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2578         PR fortran/33197
2579         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2580         .F08 file suffixes.
2582 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2584         PR libgomp/33131
2585         * configure.ac: Add ACX_HEADER_STRING.
2586         * env.c: Include strings.h.
2587         * aclocal.m4: Regenerate.
2588         * config.h.in: Regenerate.
2589         * configure: Regenerate.
2590         * Makefile.in: Regenerate.
2591         * testsuite/Makefile.in: Regenerate.
2593 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2595         PR middle-end/35196
2596         * testsuite/libgomp.c/pr35196.c: New test.
2598         PR middle-end/35130
2599         * testsuite/libgomp.fortran/pr35130.f90: New test.
2600         * testsuite/libgomp.c/pr35130.c: New test.
2602 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2604         PR middle-end/33880
2605         * testsuite/libgomp.c/pr33880.c: New test.
2606         * testsuite/libgomp.fortran/pr33880.f90: New test.
2608 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2610         * configure: Regenerate.
2612 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2614         * configure.ac: Move futex checking into ../config/futex.m4.
2615         * configure: Rebuilt.
2616         * aclocal.m4: Rebuilt.
2617         * Makefile.in: Rebuilt.
2619         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2620         2007-10-15 ../config/tls.m4 change.
2622 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2624         PR c++/34513
2625         * testsuite/libgomp.c/pr34513.c: New test.
2626         * testsuite/libgomp.c++/pr34513.C: New test.
2628 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2630         PR target/32765
2631         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2633 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2635         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2637 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2639         * testsuite/libgomp.c/private-1.c: New test.
2641 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2642             Paolo Bonzini  <bonzini@gnu.org>
2644         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2645         instead of 'VPATH ='.
2646         * Makefile.in: Regenerate.
2648 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2650         * configure.ac: Adjust makeinfo version check.
2651         * configure: Regenerate.
2653 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2655         PR fortran/34020
2656         * testsuite/libgomp.fortran/pr34020.f90: New test.
2658 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2660         PR c++/33894
2661         * testsuite/libgomp.c++/atomic-1.C: New test.
2663 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2665         PR libgomp/33275
2666         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2667         Make x and y integers rather than (implicit) reals.  Add private (j)
2668         clause to the last omp parallel.
2670 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2672         * configure: Regenerate following changes to ../config/tls.m4.
2674 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2676         * testsuite/libgomp.fortran/stack.f90: New test.
2678 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2680         * config/mingw32/proc.c: New file.
2682 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2684         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2685         (main): Use __get_cpuid to get i386 target fetaures.
2686         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2687         (main): Use __get_cpuid to get x86_64 target fetaures.
2689 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2691         PR target/32765
2692         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2693         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2695 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2697         PR fortran/32550
2698         * testsuite/libgomp.fortran/pr32550.f90: New test.
2699         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2701 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2703         * aclocal.m4: Regenerated.
2705 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2707         PR fortran/32359
2708         * testsuite/libgomp.fortran/pr32359.f90: New.
2710 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2712         PR libgomp/32468
2713         * sections.c (GOMP_parallel_sections_start): Only decrease
2714         number of threads to COUNT if dyn_var is true.
2715         * testsuite/libgomp.c/pr32468.c: New test.
2717 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2719         PR libgomp/26308
2720         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2722 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2724         PR middle-end/32362
2725         * testsuite/libgomp.c/pr32362-1.c: New test.
2726         * testsuite/libgomp.c/pr32362-2.c: New test.
2727         * testsuite/libgomp.c/pr32362-3.c: New test.
2729 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2731         * team.c (gomp_team_start): Fix setting up thread_attr
2732         stack size.
2734 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2736         * configure: Regenerate.
2738 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2740         * Makefile.in: Regenerate.
2741         * configure: Regenerate.
2742         * aclocal.m4: Regenerate.
2743         * testsuite/Makefile.in: Regenerate.
2745 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2747         * config/linux/proc.c: New file.
2749         PR libgomp/28482
2750         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2752 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2754         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2756 2007-04-16  Matthias Klose  <doko@debian.org>
2758         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2759         flags if not building with -m64.
2760         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2761         flag for i?86-*-* targets, if current target matches -m64.
2763 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2765         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2766         * Makefile.in: Regenerate.
2768 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2770         PR testsuite/31369
2771         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2772         ld_library_path.
2773         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2775 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2777         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2778         decls.
2779         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2780         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2781         (parse_affinity): New function.
2782         (initialize_env): Call it and gomp_init_affinity.
2783         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2784         create new pthread_attr_t and call gomp_init_thread_affinity
2785         on it for each thread before passing the attribute to pthread_create.
2786         * config/linux/affinity.c: New file.
2787         * config/posix/affinity.c: New file.
2788         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2789         * configure: Rebuilt.
2790         * config.h.in: Rebuilt.
2791         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2792         * Makefile.in: Rebuilt.
2794 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2796         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2797         *-*-darwin*.
2798         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2799         and use it if found.
2801 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2803         * testsuite/config/default.exp: New file.
2804         * testsuite/lib/libgomp.exp: New file.
2805         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2806         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2807         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2808         (libgomp_load): Remove.
2809         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2810         always_ld_library_path, not ld_library_path.  Set additional_flags
2811         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2812         (target_compile): Do not call libgomp_init.  Append lang_library_path
2813         and lang_link_flags to options.
2814         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2815         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2816         here.
2817         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2818         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2819         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2820         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2821         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2822         CX8 flag.
2823         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2824         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2825         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2826         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2827         * testsuite/libgomp.c/atomic-10.c: Ditto.
2829 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2831         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2832         dg-final cleanup-modules line.
2833         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2834         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2835         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2836         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2837         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2838         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2839         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2841 2007-03-18  Andreas Schwab  <schwab@suse.de>
2843         * acinclude.m4: Adjust regular expression for ld version
2844         extraction.
2845         * configure: Regenerate.
2847 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2849         * Makefile.am: Add install-pdf target as copied from
2850         automake v1.10 rules.
2851         * Makefile.in: Regenerate
2853 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2855         PR libgomp/28486
2856         * configure: Regenerate.
2858         PR c++/30703
2859         * testsuite/libgomp.c++/pr30703.C: New test.
2861 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2863         Revert:
2864         2006-07-05  Eric Christopher  <echristo@apple.com>
2865         * configure.ac: Depend addition of -pthread on host OS.
2866         * configure: Regenerate.
2868 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2870         * libgomp.texi: Fix spacing after abbreviations.
2872 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2874         PR libgomp/30546
2875         * configure.ac: Add check for makeinfo
2876         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2877         if an appropiate version of makeinfo is found.
2878         * aclocal.m4: Regenerated.
2879         * configure: Regenerated.
2880         * Makefile.in: Regenerated.
2881         * testsuite/Makefile.in: Regenerated.
2883 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2885         PR libgomp/30540
2886         * libgomp.texi: More about implementation-dependent settings.
2888 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2890         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2892 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2894         PR middle-end/30494
2895         * testsuite/libgomp.c/pr30494.c: New test.
2897 2007-01-15  Tom Tromey  <tromey@redhat.com>
2899         * configure: Rebuilt.
2900         * configure.ac: Fixed comment.
2902 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2904         * libgomp.texi: Document implementation specific default values of
2905         environment variables.
2907 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2909         PR libgomp/28209
2910         * libgomp.texi: New file.
2911         * configure.ac: Add --enable-generated-files-in-srcdir option.
2912         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2913         files to srcdir.
2914         * Makefile.in: Regenerated.
2915         * config.h.in: Regenerated.
2916         * testsuite/Makefile.in: Regenerated.
2917         * NOTES: Removed.
2919 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2921         PR libgomp/29949
2922         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2924 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2926         * configure: Regenerate.
2928 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2930         PR libgomp/29947
2931         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2932         start if there shouldn't be any loop iterations.
2933         (gomp_loop_ordered_static_start): Remove start == end test.
2934         * testsuite/libgomp.c/pr29947-1.c: New test.
2935         * testsuite/libgomp.c/pr29947-2.c: New test.
2937 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2939         * configure.tgt: Force initial-exec TLS model on Linux only.
2941 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2943         * configure: Regenerated.
2945 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2947         * env.c (parse_schedule): Reject out of range values.
2948         (parse_unsigned_long): Reject out of range, negative or zero values.
2950 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2952         PR fortran/29629
2953         * testsuite/libgomp.fortran/pr29629.f90: New test.
2955 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2957         PR libgomp/29494
2958         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2959         * config/posix95: New directory.
2960         * config/posix95/omp-lock.h: New file.
2961         * config/posix95/lock.c: Likewise.
2963 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2965         * aclocal.m4: Regenerate.
2966         * configure: Regenerate.
2968 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2970         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2971         '<' to '<='.
2973 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2975         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2976         test.
2977         * configure: Regenerate.
2978         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2980 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2982         PR middle-end/25261
2983         PR middle-end/28790
2984         * testsuite/libgomp.c/nestedfn-4.c: New test.
2985         * testsuite/libgomp.c/nestedfn-5.c: New test.
2986         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2988         PR fortran/29097
2989         * testsuite/libgomp.fortran/condinc1.f: New test.
2990         * testsuite/libgomp.fortran/condinc2.f: New test.
2991         * testsuite/libgomp.fortran/condinc3.f90: New test.
2992         * testsuite/libgomp.fortran/condinc4.f90: New test.
2993         * testsuite/libgomp.fortran/condinc1.inc: New file.
2995 2006-09-18  Tom Tromey  <tromey@redhat.com>
2997         * configure: Rebuilt.
2999 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
3001         PR c/28768
3002         PR preprocessor/14634
3003         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3004         to AC_DEFINE.
3005         * configure: Regenerate.
3007 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3009         * testsuite/libgomp.fortran/reduction3.f90: Change
3010         -2147483648 to -huge(i)-1 to avoid overflow.
3011         * testsuite/libgomp.fortran/reduction4.f90: Change
3012         Z'ffffffff' to not(0) to avoid overflow.
3014 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
3016         PR libgomp/25938
3017         * Makefile.am (libsubincludedir): New.
3018         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3019         * Makefile.in: Regenerate.
3021 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
3023         PR libgomp/28725
3024         * env.c: Include ctype.h.
3025         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3026         leading and/or trailing whitespace and compare strings case
3027         insensitively.
3029 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
3031         PR fortran/28390
3032         * testsuite/libgomp.fortran/pr28390.f: New test.
3034 2006-07-05  Eric Christopher  <echristo@apple.com>
3036         * configure.ac: Depend addition of -pthread on host OS.
3037         * configure: Regenerate.
3039 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3041         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3042         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3043         defined.
3045 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
3047         PR libgomp/26175
3048         PR libgomp/26477
3049         * configure.ac: If neither --enable-linux-futex nor
3050         --disable-linux-futex is passed, determine the default by checking
3051         for compiling and/or running against NPTL.  With --enable-linux-futex,
3052         check if SYS_gettid and SYS_futex are defined.
3053         * configure: Rebuilt.
3055 2006-06-14  Richard Henderson  <rth@redhat.com>
3057         PR libgomp/28008
3058         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3059         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3061 2006-06-09  Richard Henderson  <rth@redhat.com>
3063         * env.c (gomp_nthreads_var): Change to unsigned long.
3064         (gomp_run_sched_chunk): Likewise.
3065         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3066         (initialize_env): Initialize gomp_thread_attr.
3067         * libgomp.h (gomp_nthreads_var): Update decl.
3068         (gomp_run_sched_chunk): Likewise.
3069         (gomp_thread_attr): Declare.
3070         * team.c (gomp_thread_attr): Export.
3071         (initialize_team): Don't initialize it.
3073 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
3075         PR fortran/27916
3076         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3077         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3079 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3081         * config/mingw32/time.c: New file.
3082         * configure.tgt: Use it.
3084 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3086         * Makefile.am: Add install-html target. Add install-html to .PHONY
3087         * Makefile.in: Regenerate.
3089 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3091         PR libgomp/27612
3092         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3093         * testsuite/libgomp.c/critical-1.c: Likewise.
3094         * testsuite/libgomp.c/loop-1.c: Likewise.
3095         * testsuite/libgomp.c/loop-2.c: Likewise.
3096         * testsuite/libgomp.c/single-1.c: Likewise.
3097         * testsuite/libgomp.c/ordered-1.c: Likewise.
3098         * testsuite/libgomp.c/ordered-2.c: Likewise.
3100 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3102         PR middle-end/27416
3103         * libgomp.fortran/pr27416-1.f90: New test.
3105 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
3107         PR fortran/27395
3108         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3109         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3111 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3113         PR c++/26943
3114         * testsuite/libgomp.c/pr26943-1.c: New test.
3115         * testsuite/libgomp.c/pr26943-2.c: New test.
3116         * testsuite/libgomp.c/pr26943-3.c: New test.
3117         * testsuite/libgomp.c/pr26943-4.c: New test.
3118         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3119         * testsuite/libgomp.c++/pr26943.C: New test.
3121 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3123         PR middle-end/27337
3124         * testsuite/libgomp.c++/pr27337.C: New test.
3126 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3128         PR c/26171
3129         * testsuite/libgomp.c/pr26171.c: New test.
3131 2006-04-25  Richard Henderson  <rth@redhat.com>
3133         PR libgomp/25865
3134         * configure.ac: Use GCC_CHECK_TLS.
3135         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3136         * Makefile.in, aclocal.m4, configure: Regenerate.
3138 2006-04-10  Matthias Klose  <doko@debian.org>
3140         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3141         directory names containing underscores.
3143 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3145         PR c++/26691
3146         * testsuite/libgomp.c++/pr26691.C: New test.
3148 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3150         * testsuite/libgomp.fortran/retval2.f90: New test.
3152 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3154         * testsuite/libgomp.c++: New directory.
3156 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3158         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3159         * config/posix/sem.c: Implement the above.
3161 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3163         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3164         define HAVE_BROKEN_POSIX_SEMAPHORES.
3165         * configure: Rebuilt.
3166         * config.h.in: Rebuilt.
3168 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3170         PR bootstrap/26161
3171         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3172         for the other pthread check.
3173         * configure: Regenerate.
3174         * config.h.in: Regenerate.
3176 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3178         PR libgomp/25938
3179         PR libgomp/25984
3180         * Makefile.am (fincludedir): New variable.
3181         (nodist_include_HEADERS): Remove Fortran files.
3182         (nodist_finclude_HEADERS): New variable.
3183         * Makefile.in: Regenerated.
3185 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3187         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3188         Remove tests for returning assumed character length arrays.
3190 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3191             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3193         PR libgomp/25936
3194         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3196 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3198         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3200 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3202         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3203         part of LD_LIBRARY_PATH manually.
3205 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3207         PR libgomp/25852
3208         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3209         libgomp_init.
3211 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3213         PR libgomp/25884
3214         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3215         * configure.ac (PERL): Don't set.
3216         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3217         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3218         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3219         * omp.h.in: Wrap the new configure substitutions with @ characters.
3220         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3221         * aclocal.m4, configure, Makefile.in: Regenerate.
3222         * mkomp_h.pl: Delete.
3224 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3226         PR libgomp/25259
3227         * configure.ac: Use GCC_HEADER_STDINT.
3228         * libgomp.h: Include gstdint.h.
3229         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3230         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3232 2006-01-24  Richard Henderson  <rth@redhat.com>
3234         PR libgomp/25942
3235         * configure.ac: Add AM_MAINTAINER_MODE.
3236         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3238 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3240         * Makefile.in: Regenerate.
3241         * testsuite/Makefile.in: Regenerate.
3242         * aclocal.m4: Regenerate.
3244 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3246         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3247         Solaris.
3248         * configure.ac: Add check for loadavg.h.
3249         (link_gomp): Adjust comment.
3250         * configure: Regenerate.
3251         * config.h.in: Regenerate.
3253 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3255         PR libgomp/25877
3256         * configure.ac: Remove check for alloca.h.
3257         * configure: Regenerate.
3258         * config.h.in: Regenerate.
3259         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3260         * team.c: Remove use of alloca.h.
3261         Call gomp_alloca instead of alloca.
3263 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3265         PR libgomp/25877
3266         * team.c: Add include of alloca.h.
3267         * configure.ac: Add check for alloca.h.
3268         * configure: Regenerate.
3269         * config.h.in: Regenerate.
3271 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3273         PR fortran/25219
3274         * testsuite/libgomp.fortran/pr25219.f90: New test.
3276 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3278         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3279         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3280         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3281         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3282         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3283         testsuite/libgomp.fortran/threadprivate1.f90,
3284         testsuite/libgomp.fortran/threadprivate2.f90,
3285         testsuite/libgomp.fortran/threadprivate3.f90,
3286         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3287         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3288         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3289         effective-target to TLS runtime.
3291         * testsuite/libgomp.fortran/pr25162.f: Require
3292         effective-target TLS runtime.
3294 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3296         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3297         * testsuite/libgomp.c/nestedfn-3.c: New test.
3299 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3301         PR fortran/25162
3302         * testsuite/libgomp.fortran/pr25162.f: New test.
3304 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3306         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3307         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3309 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3311         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3312         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3313         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3314         single.c, team.c, work.c, config/linux/alpha/futex.h,
3315         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3316         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3317         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3318         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3319         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3320         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3321         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3322         FSF address.
3324 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3326         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3327         to nodist_noinst_HEADERS.
3328         * Makefile.in: Rebuilt.
3330         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3331         add integer count field.
3332         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3333         omp_nest_lock_t type change.
3334         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3335         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3336         Increment count.
3337         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3338         Decrement count.
3339         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3340         Increment count if successful and return the new nesting level.
3341         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3342         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3343         * testsuite/libgomp.c/lib-1.c: New test.
3344         * testsuite/libgomp.fortran/lib1.f90: New test.
3345         * testsuite/libgomp.fortran/lib2.f: New test.
3346         * testsuite/libgomp.fortran/lib3.f: New test.
3348 2005-11-17  Richard Henderson  <rth@redhat.com>
3350         PR 24845
3351         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3352         * configure.ac (link_gomp): New.  Substitute it.
3353         (AC_CONFIG_FILES): Add libgomp.spec.
3354         * libgomp.spec.in: New file.
3355         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3356         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3358 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3360         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3361         reduction(-:var) behaving the same as reduction(+:var).
3362         * testsuite/libgomp.c/reduction-4.c: New test.
3364 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3366         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3367         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3368         testsuite/libgomp.c/copyin-3.c,
3369         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3370         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3371         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3372         testsuite/libgomp.c++/pr24455.C,
3373         testsuite/libgomp.fortran/threadprivate1.f90,
3374         testsuite/libgomp.fortran/threadprivate2.f90,
3375         testsuite/libgomp.fortran/threadprivate3.f90,
3376         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3377         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3378         testsuite/libgomp.fortran/omp_parse3.f90: Require
3379         effective-target TLS.
3381 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3383         * HEADER: Remove.
3385 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3387         PR libgomp/24797
3388         * team.c (initialize_team): Pass NULL rather than free as
3389         pthread_key_create destructor.  Initialize thread specific data
3390         pointer in initial thread to a static local variable rather than
3391         malloced memory.
3393 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3395         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3396         its location to ld_library_path.
3398 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3400         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3402 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3404         * testsuite/libgomp.c: Rename from libgomp.dg.
3406 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3408         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3409         threadprivate variable 'i'.
3411 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3413         * config/linux/s390/futex.h: New file.
3414         * configure.tgt: Use it.
3416         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3417         before the parallel.
3419 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3421         PR c++/24734
3422         * testsuite/libgomp.c++/master-1.C: New test.
3424 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3426         * testsuite/libgomp.dg/copyin-3.c: New test.
3428 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3430         * testsuite/libgomp.fortran/retval1.f90: New test.
3431         * testsuite/libgomp.fortran/vla7.f90: New test.
3433 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3435         * testsuite/libgomp.fortran/vla2.f90: New test.
3436         * testsuite/libgomp.fortran/vla3.f90: New test.
3437         * testsuite/libgomp.fortran/vla4.f90: New test.
3438         * testsuite/libgomp.fortran/vla5.f90: New test.
3439         * testsuite/libgomp.fortran/vla6.f90: New test.
3441 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3443         * config/linux/sparc/futex.h: New file.
3444         * configure.tgt: Use it.
3445         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3447         * critical.c: Include stdlib.h.
3448         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3449         ignoring return value.
3450         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3451         LIBGOMP_CHECK_SYNC_BUILTINS check.
3452         * configure: Rebuilt.
3454 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3456         * testsuite/libgomp.fortran/vla1.f90: New test.
3458 2005-10-31  Richard Henderson  <rth@redhat.com>
3460         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3461         setting 's' in different threads.
3463 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3465         * libgomp.h (attribute_hidden, ialias): Define.
3466         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3467         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3468         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3469         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3470         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3471         omp_test_lock, omp_test_nest_lock): Likewise.
3472         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3473         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3474         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3475         omp_test_lock, omp_test_nest_lock): Likewise.
3476         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3477         omp_get_dynamic, omp_get_nested): Likewise.
3478         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3479         omp_get_thread_num, omp_in_parallel): Likewise.
3480         * fortran.c (ialias_redirect): Define.
3481         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3482         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3483         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3484         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3485         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3486         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3487         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3488         omp_get_wtime): Add ialias_redirect.
3490 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3492         * fortran.c: Include stdlib.h.
3494 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3496         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3497         * Makefile.in: Regenerated.
3499 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3501         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3502         * libgomp_f.h.in (omp_check_defines): New function.
3503         * env.c: Include libgomp_f.h.
3504         (initialize_env): Call omp_check_defines.
3506         * testsuite/libgomp.dg/copyin-2.c: New test.
3507         * testsuite/libgomp.c++/copyin-2.C: New test.
3508         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3510         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3511         * testsuite/libgomp.fortran/sharing2.f90: New test.
3513         * testsuite/libgomp.dg/copyin-1.c: New test.
3514         * testsuite/libgomp.c++/copyin-1.C: New test.
3516 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3518         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3520         * testsuite/libgomp.fortran/workshare1.f90: New test.
3522         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3523         only test.
3524         * libgomp.fortran/sharing1.f90: New test.
3526 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3528         PR c++/24502
3529         * testsuite/libgomp.c++/loop-7.C: New test.
3531         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3533         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3534         * testsuite/libgomp.fortran/reduction6.f90: New test.
3535         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3537 2005-10-23  Richard Henderson  <rth@redhat.com>
3539         * testsuite/libgomp.c++/ctor-1.C: New.
3540         * testsuite/libgomp.c++/ctor-2.C: New.
3541         * testsuite/libgomp.c++/ctor-3.C: New.
3542         * testsuite/libgomp.c++/ctor-4.C: New.
3543         * testsuite/libgomp.c++/ctor-5.C: New.
3544         * testsuite/libgomp.c++/ctor-6.C: New.
3545         * testsuite/libgomp.c++/ctor-7.C: New.
3546         * testsuite/libgomp.c++/ctor-8.C: New.
3547         * testsuite/libgomp.c++/ctor-9.C: New.
3549 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3551         PR 24455
3552         * testsuite/libgomp.c++/pr24455-1.C: New test.
3553         * testsuite/libgomp.c++/pr24455.C: New test.
3554         * testsuite/libgomp.dg/pr24455-1.c: New test.
3555         * testsuite/libgomp.dg/pr24455.c: New test.
3557 2005-10-20  Richard Henderson  <rth@redhat.com>
3559         * testsuite/libgomp.c++/loop-6.C: New.
3560         * testsuite/libgomp.dg/loop-3.c: New.
3562 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3564         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3565         explicitly private.
3566         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3567         explicitly shared.
3569 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3571         * testsuite/libgomp.fortran/jacobi.f: New test.
3573 2005-10-19  Richard Henderson  <rth@redhat.com>
3575         * configure.tgt (i?86-linux): Default to with_arch instead of
3576         CFLAGS.  Add -mtune to match target_cpu.
3577         (x86_64-linux): Tune to i686.
3579         * fortran.c (omp_test_nest_lock_): Fix typo.
3581 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3583         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3584         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3585         * testsuite/libgomp.dg/ordered-3.c: New test.
3587         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3588         Remove volatile keyword.
3590         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3591         in COMMON block to avoid warnings on 64-bit targets.
3593 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3595         * testsuite/libgomp.dg/shared-3.c: New test.
3597 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3599         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3600         * testsuite/libgomp.fortran/reduction5.f90: New test.
3602 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3604         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3605         dg-options.
3606         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3607         flush loop now that __sync_synchronize has proper memory barrier.
3608         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3609         Add -ffixed-form to dg-options.
3611 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3613         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3614         from subdirectories.
3615         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3616         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3617         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3618         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3619         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3620         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3621         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3622         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3623         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3624         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3625         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3626         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3627         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3628         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3629         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3630         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3631         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3632         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3633         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3634         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3635         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3636         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3637         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3638         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3639         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3641 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3643         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3644         lang_library_path exists.  Use find instead of glob to gather tests.
3645         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3647 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3649         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3650         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3651         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3652         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3653         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3654         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3655         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3656         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3657         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3658         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3659         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3660         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3661         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3663 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3665         * testsuite/libgomp.dg/vla-1.c: New test.
3667         * testsuite/libgomp.fortran/reference2.f90: New test.
3669         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3670         declaration of omp_get_thread_num.
3671         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3672         use omp_lib.
3674         * testsuite/libgomp.fortran/reduction1.f90: New test.
3675         * testsuite/libgomp.fortran/reduction2.f90: New test.
3676         * testsuite/libgomp.fortran/reduction3.f90: New test.
3677         * testsuite/libgomp.fortran/reduction4.f90: New test.
3679 2005-10-13  Richard Henderson  <rth@redhat.com>
3681         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3682         * Makefile.in: Regenerate.
3683         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3684         * libgomp.h: Include bar.h.
3685         (struct gomp_barrier): Remove.
3686         (struct gomp_team): Add barrier.  Replace master_barrier with
3687         master_release.  Replace threads with ordered_release.
3688         (struct gomp_thread): Replace barrier with release.
3689         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3690         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3691         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3692         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3693         (GOMP_single_copy_end): Likewise.
3694         * team.c (gomp_threads_dock): New.
3695         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3696         (gomp_thread_start): Use gomp_barrier_wait.
3697         (new_team, free_team): Update for gomp_team changes.
3698         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3699         (gomp_team_end): Use gomp_barrier_wait.
3700         (initialize_team): Update for gomp_thread changes.
3701         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3702         (gomp_work_share_end_nowait): Use atomic ops when available.
3703         * config/linux/bar.c, config/linux/bar.h: New files.
3704         * config/posix/bar.c, config/posix/bar.h: New files.
3706 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3708         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3709         * testsuite/libgomp.dg/single-2.c: New test.
3711         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3712         lang_link_flags): Unset, so that they aren't inherited from previously
3713         sourced *.exp.
3715         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3717 2005-10-12  Richard Henderson  <rth@redhat.com>
3719         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3720         (libgomp_init): Use lang_test_file, lang_library_path, and
3721         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3723         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3724         (lang_test_file, lang_link_flags): New.
3725         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3727         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3728         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3729         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3730         testsuite/libgomp.c++/parallel-1.C,
3731         testsuite/libgomp.c++/reduction-1.C,
3732         testsuite/libgomp.c++/reduction-2.C,
3733         testsuite/libgomp.c++/reduction-3.C,
3734         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3735         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3736         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3737         New files, largely cribbed from the C testsuite.
3739 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3741         * testsuite/libgomp.fortran/character1.f90: New test.
3742         * testsuite/libgomp.fortran/character2.f90: New test.
3744         * testsuite/libgomp.dg/nested-1.c: New test.
3745         * testsuite/libgomp.dg/nested-2.c: New test.
3746         * testsuite/libgomp.fortran/do1.f90: New test.
3747         * testsuite/libgomp.fortran/do2.f90: New test.
3749         * testsuite/libgomp.fortran/reference1.f90: New test.
3751 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3753         * testsuite/libgomp.dg/reduction-1.c: New test.
3754         * testsuite/libgomp.dg/reduction-2.c: New test.
3755         * testsuite/libgomp.dg/reduction-3.c: New test.
3757 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3759         * testsuite/libgomp.dg/atomic-1.c: New test.
3760         * testsuite/libgomp.dg/atomic-2.c: New test.
3762 2005-10-09  Richard Henderson  <rth@redhat.com>
3764         * critical.c (atomic_lock): New.
3765         (initialize_critical): Initialize it.
3766         (GOMP_atomic_start, GOMP_atomic_end): New.
3767         * libgomp.map: Export them.
3768         * libgomp_g.h: Declare them.
3770         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3772 2005-10-02  Richard Henderson  <rth@redhat.com>
3774         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3775         to XCFLAGS instead of CFLAGS.
3777 2005-09-30  Richard Henderson  <rth@redhat.com>
3779         * configure.ac: Determine whether -pthread or -lpthread is needed.
3780         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3781         * Makefine.in, configure: Rebuild.
3783 2005-09-28  Richard Henderson  <rth@redhat.com>
3785         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3786         * testsuite/libgomp.dg/omp-single-3.c: New test.
3788 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3790         * testsuite/libgomp.dg/omp-single-2.c: New test.
3791         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3793 2005-09-27  Richard Henderson  <rth@redhat.com>
3795         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3796         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3798 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3800         * testsuite/libgomp.dg/omp-loop03.c: New test.
3802 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3804         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3806 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3808         * testsuite/libgomp.dg/omp-single-1.c: New test.
3809         * testsuite/libgomp.dg/shared-1.c: Return 0.
3810         Add prototype for abort.
3811         * testsuite/libgomp.dg/shared-2.c: Likewise.
3813 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3815         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3816         constructs.
3818 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3820         * testsuite/libgomp.dg/shared-1.c: New test.
3821         * testsuite/libgomp.dg/shared-2.c: New test.
3823 2005-09-24  Richard Henderson  <rth@redhat.com>
3825         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3827 2005-09-24  Richard Henderson  <rth@redhat.com>
3829         * iter.c (gomp_iter_static_next): Round up when computing number
3830         of iterations.  Don't bother distributing a remainder equally.
3832         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3833         Don't call srand.  Zero b before testing.
3834         (main): New.
3836 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3838         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3839         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3841 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3843         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3844         without !$omp end do, followed immediately by subroutine end.
3846 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3848         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3850 2005-09-22  Richard Henderson  <rth@redhat.com>
3852         * critical.c (GOMP_critical_name_start): Change argument to void**.
3853         Reuse the pointer space if the mutex fits.
3854         (GOMP_critical_name_end): Likewise.
3855         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3856         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3857         (GOMP_critical_name_end): Likewise.
3858         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3859         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3861 2005-09-20  Richard Henderson  <rth@redhat.com>
3863         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3864         (create_lock_lock): New.
3865         (initialize_critical): Initialize it.
3866         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3867         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3869 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3871         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3873 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3875         * testsuite/libgomp.dg/omp-loop01.c: New test.
3876         * testsuite/libgomp.dg/omp-loop02.c: New test.
3878 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3880         * configure.ac (AC_PROG_FC): Add.
3881         (USE_FORTRAN): New automake conditional.
3882         * configure: Rebuilt.
3883         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3884         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3885         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3886         Add rules to build them.
3887         * Makefile.in: Rebuilt.
3888         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3889         OMP_NEST_LOCK_KIND.
3890         * libgomp.map: Add Fortran wrappers.
3891         * libgomp_f.h.in: New file.
3892         * omp_lib.h.in: New file.
3893         * omp_lib.f90.in: New file.
3894         * fortran.c: New file.
3895         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3896         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3897         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3898         libgfortran has been built.
3899         * testsuite/libgomp.fortran/fortran.exp: New file.
3900         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3901         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3902         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3903         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3904         * testsuite/libgomp.fortran/omp_hello.f: New test.
3905         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3906         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3907         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3908         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3909         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3910         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3911         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3912         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3914 2005-08-30  Richard Henderson  <rth@redhat.com>
3916         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3917         function for when aliases are not usable.
3918         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3919         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3920         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3921         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3922         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3923         GOMP_loop_ordered_guided_next): Likewise.
3924         * ordered.c (GOMP_ordered_start): Likewise.
3926 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3928         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3929         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3930         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3931         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3932         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3933         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3934         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3935         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3936         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3938 2005-07-07  Eric Christopher  <echristo@redhat.com>
3939             Diego Novillo  <dnovillo@redhat.com>
3941         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3942         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3943         up code.
3944         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3945         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3946         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3947         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3948         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3949         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3950         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3952 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3954         * TOPLEVEL.patch: Remove.
3956 2005-05-16  Richard Henderson  <rth@redhat.com>
3958         * configure.ac: Test for clock_gettime.
3959         * config.h.in, configure: Rebuild.
3960         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3961         (omp_get_wtime): Use clock_gettime if available.
3962         (omp_get_wtick): Use clock_getres if available.
3964 2005-05-11  Richard Henderson  <rth@redhat.com>
3966         * config/linux/ia64/futex.h: New file.
3967         * configure.tgt: Use it.
3969         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3971 2005-05-07  Richard Henderson  <rth@redhat.com>
3973         * config/linux/powerpc/futex.h: New file.
3974         * configure.tgt: Use it.
3976         * config/linux/i486/futex.h: Merge ...
3977         * config/linux/x86_64/futex.h: ... into ...
3978         * config/linux/x86/futex.h: ... here.
3979         * configure.tgt: Update to match.
3981 2005-05-06  Richard Henderson  <rth@redhat.com>
3983         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3984         * config/linux/i486/futex.h: Likewise.
3985         * config/linux/x86_64/futex.h: Likewise.
3987         * config/linux/lock.c: New file.
3988         * config/linux/omp-lock.h: New file.
3990         * critical.c, env.h: Don't include omp.h
3991         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3992         * config/posix/time.c: Likewise.
3993         * config/posix/omp-lock.h: New file.
3994         * libgomp.h: Include omp-lock.h and omp.h.
3995         * Makefile.am (nodist_include_HEADERS): New.
3996         (omp.h): New rule.
3997         * configure.ac (PERL): New.
3998         * mkomp_h.pl: New file.
3999         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4000         with templates.
4001         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4003         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4004         build directory.  Re-add -march=i486 hack.
4006         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4007         (libgomp_link_flags): Remove.
4008         (libgomp_initialized): Remove.
4009         (libgomp_init): Don't protect from reinitialization.  Copy code
4010         from libstdc++ for getting the multilib set correctly.
4012 2005-05-05  Richard Henderson  <rth@redhat.com>
4014         * config/linux/alpha/futex.h: New file.
4015         * configure.tgt (alpha*-*-linux*): Use it.
4017         * config/posix/mutex.c: New file.
4018         * config/posix/sem.c: Use libgomp.h.
4020         * configure.tgt (x86_64-linux): Also test CC for -m32.
4021         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4023         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4024         after $gccpath.
4026         * Makefile.am (SUBDIRS): New.
4027         (libgomp_la_LDFLAGS): Add -lpthread.
4028         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4029         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4031         * libgomp_g.h: New file.
4032         * libgomp.h: Split out all public declarations to libgomp_g.h.
4033         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4034         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4035         * config/linux/sem.h: Likewise.
4036         * config/posix/sem.h: Likewise.
4038         * Makefile.am (AM_LDFLAGS): New.
4039         (libgomp_version_script): Split out from ...
4040         (libgomp_la_LDFLAGS): ... here.
4041         (libgomp_version_info): New.
4042         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4043         (LIBGOMP_ENABLE): New.
4044         (LIBGOMP_CHECK_LINKER_FEATURES): New.
4045         (LIBGOMP_ENABLE_SYMVERS): New.
4046         * configure.ac (AC_INIT): Version 1.0.
4047         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4048         (enable-linux-futex): Likewise.  Rename from enable-futex.
4049         (libtool_VERSION): New.
4050         (LIBGOMP_ENABLE_SYMVERS): Use it.
4051         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4052         * Makefile.in, aclocal.m4, configure: Rebuild.
4054         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4055         (gomp_mutex_unlock_slow): Fix typo.
4056         * config/linux/sem.c: Similarly.
4057         (gomp_sem_post_slow): Fix typo.
4058         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4059         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4060         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4062         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4063         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4064         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4065         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4066         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4067         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4068         LDFLAGS.  Pull enable_futex check to top-level.
4069         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4070         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4072         First attempt at real configury.
4073         * Makefile, config.h: Remove file.
4074         * Makefile.am, Makefile.in: New file.
4075         * acinclude.m4 aclocal.m4: New file.
4076         * configure.ac, configure.tgt, configure: New file.
4078         * config/posix/lock.c: Rename from sys-lock.c.
4079         * config/posix/mutex.h: Rename from sys-mutex.h.
4080         * config/posix/sem.c: Rename from sys-sem.c.
4081         * config/posix/sem.h: Rename from sys-sem.h.
4082         * config/posix/proc.c: Rename from sys-proc.c.
4083         * config/posix/time.c: Rename from sys-proc.c.
4085         * config/linux/mutex.c: New file.
4086         * config/linux/mutex.h: New file.
4087         * config/linux/sem.c: New file.
4088         * config/linux/sem.h: New file.
4089         * config/linux/i486/futex.h: New file.
4090         * config/linux/x86_64/futex.h: New file.
4092 2005-05-04  Richard Henderson  <rth@redhat.com>
4094         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4095         * libgomp.h: Declare them.
4096         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4097         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4099 2005-05-04  Richard Henderson  <rth@redhat.com>
4101         * libgomp-1 code drop
4103 2005-05-04  Richard Henderson  <rth@redhat.com>
4105         * iter.c (gomp_iter_static_next): Return tri-state on 0.
4106         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4107         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4108         (gomp_iter_static_next): Update.
4109         (gomp_ordered_static_next): Update.
4110         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4111         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
4112         totally empty range.
4113         (gomp_loop_ordered_static_next): Refine test for calling
4114         gomp_ordered_static_next.
4115         * testsuite/ordered-1.c: Add case for more threads than iterations.
4117         * iter.c (gomp_iter_runtime_next_locked): Remove.
4118         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4119         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4120         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4121         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4122         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4123         gomp_loop_ordered_guided_next): Downcase name, make static, add
4124         an external alias with the old name.
4125         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4126         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4127         switch and call one of the above static functions.
4128         * libgomp.h: Update.
4130         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4131         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4132         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4133         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4134         GOMP_loop_ordered_guided_start): Update to match.
4135         * sections.c (GOMP_sections_start): Likewise.
4136         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4138         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4139         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4140         Use bounds check instead of modulus.
4141         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4142         (gomp_ordered_last): Don't sync with ordered_owner here.
4143         (gomp_ordered_next): Likewise.
4144         (gomp_ordered_static_loop_next): Likewise.
4145         * loop.c, libgomp.h: Update to match.
4147         * libgomp.h (GOMP_barrier): Declare.
4149         * testsuite/barrier-1.c: New file.
4150         * testsuite/critical-1.c: New file.
4151         * testsuite/ordered-2.c: New file.
4152         * testsuite/ordered-1.c: New file.
4153         * testsuite/sections-1.c: New file.
4154         * testsuite/single-1.c: New file.
4155         * testsuite/Makefile (TESTS): Add them.
4157 2005-05-04  Richard Henderson  <rth@redhat.com>
4159         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4160         * loop.c (GOMP_loop_static_start): If not the startup thread,
4161         acquire the mutex to wait for initialization complete.
4162         (GOMP_loop_ordered_static_start): Likewise.
4163         (GOMP_loop_ordered_runtime_start): Likewise.
4164         (GOMP_loop_ordered_static_first): Remove.
4165         (GOMP_loop_ordered_dynamic_first): Remove.
4166         (GOMP_loop_ordered_guided_first): Remove.
4167         (GOMP_loop_ordered_runtime_first): Remove.
4168         * ordered.c (gomp_ordered_loop_first): Post to own release when
4169         we're the first thread.
4170         (gomp_ordered_loop_last): Wait on release if not owner.
4171         (gomp_ordered_loop_next): Likewise.
4172         (gomp_ordered_static_loop_init): New.
4173         (gomp_ordered_static_loop_next): Use ordered_owner.
4174         (GOMP_ordered_start): Likewise.
4175         * work.c (gomp_new_work_share): Initialize ordered_owner.
4177 2005-05-03  Richard Henderson  <rth@redhat.com>
4179         * Makefile (OPT): New.
4180         (CFLAGS): Use it.
4182         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4183         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4184         * libgomp.h, libgomp.map, NOTES: Update to match.
4186         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4187         Add initialized and thr members.
4188         (gomp_thread_start): Pause when initially spawned to wait for
4189         the whole team to be created.
4190         (gomp_team_start): Release team members at the end.
4192         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4193         (f_foo_1): Use GOMP_loop_end.
4194         (f_foo_2): Use GOMP_loop_end_nowait.
4196         * testsuite/loop-2.c: New file.
4197         * testsuite/Makefile (TESTS): Add it.
4199 2005-05-03  Richard Henderson  <rth@redhat.com>
4201         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4202         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4203         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4204         initial work_share.
4206         * testsuite/Makefile: New file.
4207         * testsuite/loop-1.c: New file.
4209 2005-05-03  Richard Henderson  <rth@redhat.com>
4211         Initial implementation and checkin.