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