Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blob00e34875eadc32a94d8c0f63beba85ca49549218
1 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
3         Backported from mainline
4         2014-06-25  Jakub Jelinek  <jakub@redhat.com>
6         * testsuite/libgomp.fortran/simd5.f90: New test.
7         * testsuite/libgomp.fortran/simd6.f90: New test.
8         * testsuite/libgomp.fortran/simd7.f90: New test.
10         2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12         * testsuite/libgomp.fortran/aligned1.f03: New test.
13         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
14         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15         tasks with !$omp parallel !$omp single.
16         * testsuite/libgomp.fortran/target8.f90: New test.
17         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
18         not to use trim in the combiner, instead call elemental function.
19         (fn): New elemental function.
20         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
21         Make elemental.
22         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
23         omp_in): Likewise.
24         * testsuite/libgomp.fortran/udr12.f90: New test.
25         * testsuite/libgomp.fortran/udr13.f90: New test.
26         * testsuite/libgomp.fortran/udr14.f90: New test.
27         * testsuite/libgomp.fortran/udr15.f90: New test.
29         2014-06-18  Jakub Jelinek  <jakub@redhat.com>
31         * omp_lib.f90.in (openmp_version): Set to 201307.
32         * omp_lib.h.in (openmp_version): Likewise.
33         * testsuite/libgomp.c/target-8.c: New test.
34         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
35         and inbranch clauses.
36         * testsuite/libgomp.fortran/depend-3.f90: New test.
37         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
38         openmp_version.
39         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
40         * testsuite/libgomp.fortran/target1.f90: New test.
41         * testsuite/libgomp.fortran/target2.f90: New test.
42         * testsuite/libgomp.fortran/target3.f90: New test.
43         * testsuite/libgomp.fortran/target4.f90: New test.
44         * testsuite/libgomp.fortran/target5.f90: New test.
45         * testsuite/libgomp.fortran/target6.f90: New test.
46         * testsuite/libgomp.fortran/target7.f90: New test.
48         2014-06-10  Jakub Jelinek  <jakub@redhat.com>
50         PR fortran/60928
51         * testsuite/libgomp.fortran/allocatable9.f90: New test.
52         * testsuite/libgomp.fortran/allocatable10.f90: New test.
53         * testsuite/libgomp.fortran/allocatable11.f90: New test.
54         * testsuite/libgomp.fortran/allocatable12.f90: New test.
55         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
56         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
57         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
58         * testsuite/libgomp.fortran/associate1.f90: New test.
59         * testsuite/libgomp.fortran/associate2.f90: New test.
60         * testsuite/libgomp.fortran/procptr1.f90: New test.
62         2014-06-06  Jakub Jelinek  <jakub@redhat.com>
64         * testsuite/libgomp.fortran/simd1.f90: New test.
65         * testsuite/libgomp.fortran/udr1.f90: New test.
66         * testsuite/libgomp.fortran/udr2.f90: New test.
67         * testsuite/libgomp.fortran/udr3.f90: New test.
68         * testsuite/libgomp.fortran/udr4.f90: New test.
69         * testsuite/libgomp.fortran/udr5.f90: New test.
70         * testsuite/libgomp.fortran/udr6.f90: New test.
71         * testsuite/libgomp.fortran/udr7.f90: New test.
72         * testsuite/libgomp.fortran/udr8.f90: New test.
73         * testsuite/libgomp.fortran/udr9.f90: New test.
74         * testsuite/libgomp.fortran/udr10.f90: New test.
75         * testsuite/libgomp.fortran/udr11.f90: New test.
77         2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
79         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
80         vect_simd_clones effective target.
81         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
83         2014-05-11  Jakub Jelinek  <jakub@redhat.com>
85         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
86         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
87         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
88         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
89         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
90         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
91         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
92         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
93         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
94         * testsuite/libgomp.fortran/depend-1.f90: New test.
95         * testsuite/libgomp.fortran/depend-2.f90: New test.
96         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
97         * testsuite/libgomp.fortran/simd1.f90: New test.
98         * testsuite/libgomp.fortran/simd2.f90: New test.
99         * testsuite/libgomp.fortran/simd3.f90: New test.
100         * testsuite/libgomp.fortran/simd4.f90: New test.
101         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
103 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
105         * testsuite/libgomp.c/for-2.c: Define SC to static for
106         #pragma omp for simd testing.
107         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
108         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
109         SC macro.
110         * testsuite/libgomp.c/simd-14.c: New test.
111         * testsuite/libgomp.c/simd-15.c: New test.
112         * testsuite/libgomp.c/simd-16.c: New test.
113         * testsuite/libgomp.c/simd-17.c: New test.
114         * testsuite/libgomp.c++/for-10.C: Define SC to static for
115         #pragma omp for simd testing.
116         * testsuite/libgomp.c++/simd10.C: New test.
117         * testsuite/libgomp.c++/simd11.C: New test.
118         * testsuite/libgomp.c++/simd12.C: New test.
119         * testsuite/libgomp.c++/simd13.C: New test.
121 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
123         PR middle-end/61252
124         * testsuite/libgomp.c++/simd-9.C: New test.
126 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
128         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
129         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
130         texts according to their @menu entry positions.
132 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
134         * testsuite/libgomp.c/simd-10.c: New test.
135         * testsuite/libgomp.c/simd-11.c: New test.
136         * testsuite/libgomp.c/simd-12.c: New test.
137         * testsuite/libgomp.c/simd-13.c: New test.
139 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
141         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
142         atomic type clauses in any order and optional comma in between.
143         * testsuite/libgomp.c++/atomic-15.C: Likewise.
144         * testsuite/libgomp.c/atomic-17.c: Likewise.
146         * testsuite/libgomp.c/simd-7.c: New test.
147         * testsuite/libgomp.c/simd-8.c: New test.
148         * testsuite/libgomp.c/simd-9.c: New test.
149         * testsuite/libgomp.c/loop-16.c: New test.
151 2014-04-22  Release Manager
153         * GCC 4.9.0 released.
155 2014-04-02  Richard Henderson  <rth@redhat.com>
157         * config/linux/futex.h (futex_wait): Get error value from errno.
158         (futex_wake): Likewise.
160 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
162         PR c++/60331
163         * testsuite/libgomp.c++/udr-11.C: New test.
164         * testsuite/libgomp.c++/udr-12.C: New test.
165         * testsuite/libgomp.c++/udr-13.C: New test.
166         * testsuite/libgomp.c++/udr-14.C: New test.
167         * testsuite/libgomp.c++/udr-15.C: New test.
168         * testsuite/libgomp.c++/udr-16.C: New test.
169         * testsuite/libgomp.c++/udr-17.C: New test.
170         * testsuite/libgomp.c++/udr-18.C: New test.
171         * testsuite/libgomp.c++/udr-19.C: New test.
173 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
175         Update copyright years
177 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
179         * hashtab.h: Use the standard form for the copyright notice.
181 2014-01-02  Tobias Burnus  <burnus@net-b.de>
183         * libgomp.texi: Bump @copying's copyright year.
185 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
187         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
188         alloca () with __builtin_alloca ().
189         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
190         * testsuite/libgomp.c/lock-3.c: Likewise.
191         * testsuite/libgomp.c/pr48591.c: Likewise.
193 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
195         PR testsuite/59534
196         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
197         comparisons.
199 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
201         PR libgomp/58756
202         * testsuite/libgomp.c/pr58756.c: New test.
204 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
206         PR libgomp/59467
207         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
208         !$omp parallel.
210 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
212         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
213         ALWAYS_CFLAGS.
214         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
215         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
216         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
217         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
218         Likewise.
220         * libgomp_g.h: Include <stddef.h> for size_t.
222         * libgomp.spec.in: Update comment about libgomp's dependencies.
223         * configure.ac: Likewise.
224         * configure: Regenerate.
226 2013-10-16  Tobias Burnus  <burnus@net-b.de>
228         * libgomp.texi: (Runtime Library Routines): Update references for
229         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
230         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
231         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
232         (Environment Variables): Update references for OpenMP 4.0. Add
233         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
234         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
235         order.
237 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
239         * env.c (parse_bind_var): Initialize value to avoid
240         (false positive) warning.
242 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
244         PR libgomp/58691
245         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
246         to check variable.
247         (gomp_init_num_threads): Move i variable declaration into
248         #ifdef CPU_ALLOC_SIZE block.
249         * config/linux/affinity.c (gomp_affinity_init_level): Test
250         gomp_places_list_len == 0 rather than gomp_places_list == 0
251         when checking for topology reading error.
252         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
253         * env.c (parse_affinity): Add ignore argument, if true, don't populate
254         gomp_places_list, only parse env var and always return false.
255         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
256         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
257         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
258         and either of these variables were parsed correctly into a places
259         list.
261 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
262             Jakub Jelinek  <jakub@redhat.com>
264         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
265         of 5 loopfn matches.
266         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
267         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
268         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
269         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
270         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
271         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
272         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
273         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
275 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
277         * Makefile.am (omp_lib.mod): Streamline rule.
278         * Makefile.in: Regenerate.
280         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
281         exceptions.
283         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
284         * testsuite/libgomp.fortran/lib1.f90: Likewise.
285         * testsuite/libgomp.fortran/lib2.f: Likewise.
286         * testsuite/libgomp.fortran/lib3.f: Likewise.
288         * configure.ac: Typo fix.
289         * configure: Regenerate.
291         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
292         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
294         * omp.h.in: Don't touch the user's namespace.
296 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
297             Tobias Burnus  <burnus@net-b.de>
298             Richard Henderson  <rth@redhat.com>
300         * target.c: New file.
301         * Makefile.am (libgomp_la_SOURCES): Add target.c.
302         * Makefile.in: Regenerated.
303         * libgomp_g.h (GOMP_task): Add depend argument.
304         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
305         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
306         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
307         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
308         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
309         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
310         GOMP_taskgroup_start, GOMP_taskgroup_end,
311         GOMP_parallel_sections): New prototypes.
312         * fortran.c (omp_is_initial_device): Add ialias_redirect.
313         (omp_is_initial_device_): New function.
314         (ULP, STR1, STR2, ialias_redirect): Removed.
315         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
316         omp_set_default_device_8_, omp_get_default_device_,
317         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
318         functions.
319         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
320         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
321         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
322         @@GOMP_4.0.
323         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
324         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
325         omp_set_default_device, omp_set_default_device_,
326         omp_set_default_device_8_, omp_get_default_device,
327         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
328         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
329         omp_get_team_num_): Export @@OMP_4.0.
330         * team.c (struct gomp_thread_start_data): Add place field.
331         (gomp_thread_start): Clear thr->thread_pool and
332         thr->task before returning.  Use gomp_team_barrier_wait_final
333         instead of gomp_team_barrier_wait.  Initialize thr->place.
334         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
335         team_cancelled and task_queued_count fields.
336         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
337         before calling pthread_exit.
338         (gomp_free_thread): No longer static.  Use
339         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
340         (gomp_team_start): Add flags argument.  Set
341         thr->thread_pool->threads_busy to nthreads immediately after creating
342         new pool.  Use gomp_managed_threads_lock instead of
343         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
344         (gomp_team_end): Use gomp_managed_threads_lock instead of
345         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
346         of gomp_team_barrier_wait.  If team->team_cancelled, call
347         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
348         rather than thr->ts.work_share.
349         (initialize_team): Don't call gomp_sem_init here.
350         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
351         caller.
352         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
353         * env.c (gomp_global_icv): Add default_device_var, target_data and
354         bind_var initializers.
355         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
356         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
357         gomp_places_list_len): New variables.
358         (parse_bind_var, parse_one_place, parse_places_var): New functions.
359         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
360         sized places.
361         (gomp_cancel_var): New global variable.
362         (parse_int): New function.
363         (handle_omp_display_env): New function.
364         (initialize_env): Use it.  Initialize default_device_var.
365         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
366         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
367         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
368         been successfully parsed (and call gomp_init_affinity in that case).
369         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
370         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
371         omp_get_team_num, omp_is_initial_device): New functions.
372         * libgomp.h: Include stdlib.h.
373         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
374         Define.
375         (struct target_mem_desc): Forward declare.
376         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
377         and thread_limit_var fields.
378         (gomp_get_num_devices): New prototype.
379         (gomp_cancel_var): New extern decl.
380         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
381         team_cancelled and task_queued_count fields.  Add comments about
382         task_{,queued_,running_}count.
383         (gomp_cancel_kind): New enum.
384         (gomp_work_share_end_cancel): New prototype.
385         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
386         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
387         and depend fields.
388         (struct gomp_taskgroup): New type.
389         (struct gomp_task_depend_entry,
390         struct gomp_dependers_vec): New types.
391         (gomp_finish_task): Free depend_hash if non-NULL.
392         (struct gomp_team_state): Add place_partition_off
393         and place_partition_len fields.
394         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
395         gomp_places_list_len): New extern decls.
396         (struct gomp_thread): Add place field.
397         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
398         (gomp_init_thread_affinity): Add place argument.
399         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
400         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
401         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
402         gomp_affinity_init_level, gomp_affinity_print_place): New
403         prototypes.
404         (gomp_team_start): Add flags argument.
405         (gomp_thread_limit_var, gomp_remaining_threads_count,
406         gomp_remaining_threads_lock): Remove.
407         (gomp_managed_threads_lock): New variable.
408         (struct gomp_thread_pool): Add threads_busy field.
409         (gomp_free_thread): New prototype.
410         * task.c: Include hashtab.h.
411         (hash_entry_type): New typedef.
412         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
413         (gomp_init_task): Clear dependers, depend_hash, depend_count,
414         copy_ctors_done and taskgroup fields.
415         (GOMP_task): Add depend argument, handle depend clauses.  If
416         gomp_team_barrier_cancelled or if it's taskgroup has been
417         cancelled, don't queue or start new tasks.  Set copy_ctors_done
418         field if needed.  Initialize taskgroup field.  If copy_ctors_done
419         and already cancelled, don't discard the task.  If taskgroup is
420         non-NULL, enqueue the task into taskgroup queue.  Increment
421         num_children field in taskgroup.  Increment task_queued_count.
422         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
423         gomp_task_run_post_remove_taskgroup): New inline functions.
424         (gomp_task_run_post_handle_depend_hash,
425         gomp_task_run_post_handle_dependers,
426         gomp_task_run_post_handle_depend): New functions.
427         (GOMP_taskwait): Use them.  If more than one new tasks
428         have been queued, wake other threads if needed.
429         (gomp_barrier_handle_tasks): Likewise.  If
430         gomp_team_barrier_cancelled, don't start any new tasks, just free
431         all tasks.
432         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
433         * omp_lib.f90.in
434         (omp_proc_bind_kind, omp_proc_bind_false,
435         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
436         omp_proc_bind_spread): New params.
437         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
438         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
439         omp_get_team_num, omp_is_initial_device): New interfaces.
440         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
441         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
442         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
443         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
444         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
445         useless use omp_lib_kinds.
446         * omp.h.in (omp_proc_bind_t): New typedef.
447         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
448         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
449         omp_get_team_num, omp_is_initial_device): New prototypes.
450         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
451         through to gomp_team_start.
452         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
453         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
454         Adjust gomp_parallel_loop_start callers.
455         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
456         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
457         GOMP_loop_end_cancel): New functions.
458         (GOMP_parallel_end): Add ialias_redirect.
459         * hashtab.h: New file.
460         * libgomp.texi (Environment Variables): Minor cleanup,
461         update section refs to OpenMP 4.0rc2.
462         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
463         environment variables.
464         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
465         team->work_shares_to_free to thr->ts.work_share before calling
466         free_work_share.
467         (gomp_work_share_end_cancel): New function.
468         * config/linux/proc.c: Include errno.h.
469         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
470         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
471         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
472         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
473         gomp_cpuset_size is sizeof (cpu_set_t).
474         (gomp_init_num_threads): Initialize gomp_cpuset_size,
475         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
476         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
477         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
478         contain any logical CPUs.
479         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
480         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
481         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
482         pthread_getaffinity_np.  Check gomp_places_list instead of
483         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
484         * config/linux/bar.c (gomp_barrier_wait_end,
485         gomp_barrier_wait_last): Use BAR_* defines.
486         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
487         from state where needed.  Set work_share_cancelled to 0 on last
488         thread.
489         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
490         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
491         functions.
492         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
493         Add cpusetsize argument.
494         (gomp_cpuset_size, gomp_cpusetp): Declare.
495         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
496         (affinity_counter): Remove.
497         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
498         if CPU_ALLOC_SIZE isn't defined.
499         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
500         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
501         bind current thread to the first place.
502         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
503         pthread_setaffinity_np to gomp_places_list[place].
504         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
505         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
506         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
507         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
508         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
509         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
510         (gomp_barrier_t): Add awaited_final field.
511         (gomp_barrier_init): Initialize awaited_final field.
512         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
513         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
514         prototypes.
515         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
516         defines.
517         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
518         gomp_team_barrier_cancelled): New inline functions.
519         (gomp_barrier_last_thread,
520         gomp_team_barrier_set_task_pending,
521         gomp_team_barrier_clear_task_pending,
522         gomp_team_barrier_set_waiting_for_tasks,
523         gomp_team_barrier_waiting_for_tasks,
524         gomp_team_barrier_done): Use BAR_* defines.
525         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
526         (gomp_barrier_wait_end): Use BAR_* defines.
527         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
528         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
529         Use BAR_* defines.
530         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
531         gomp_team_barrier_cancel): New functions.
532         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
533         argument.
534         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
535         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
536         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
537         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
538         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
539         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
540         (gomp_barrier_t): Add cancellable field.
541         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
542         gomp_team_barrier_cancel): New prototypes.
543         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
544         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
545         gomp_team_barrier_cancelled): New inline functions.
546         (gomp_barrier_wait_start, gomp_barrier_last_thread,
547         gomp_team_barrier_set_task_pending,
548         gomp_team_barrier_clear_task_pending,
549         gomp_team_barrier_set_waiting_for_tasks,
550         gomp_team_barrier_waiting_for_tasks,
551         gomp_team_barrier_done): Use BAR_* defines.
552         * barrier.c (GOMP_barrier_cancel): New function.
553         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
554         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
555         omp_proc_bind_spread): New params.
556         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
557         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
558         omp_get_team_num, omp_is_initial_device): New externals.
559         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
560         New functions.
561         (gomp_resolve_num_threads): Adjust for thread_limit now being in
562         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
563         infinity.  If not nested, just return minimum of max_num_threads
564         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
565         to the returned value.  Otherwise, don't update atomically
566         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
567         (GOMP_parallel_end): Adjust for thread_limit now being in
568         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
569         infinity.  Adjust threads_busy in the pool rather than
570         gomp_remaining_threads_count.  Remember team->nthreads and call
571         gomp_team_end before adjusting threads_busy, if not nested
572         afterwards, just set it to 1 non-atomically.  Add ialias.
573         (GOMP_parallel_start): Adjust gomp_team_start caller.
574         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
575         * testsuite/libgomp.c/affinity-1.c: New test.
576         * testsuite/libgomp.c/atomic-15.c: New test.
577         * testsuite/libgomp.c/atomic-16.c: New test.
578         * testsuite/libgomp.c/atomic-17.c: New test.
579         * testsuite/libgomp.c/cancel-for-1.c: New test.
580         * testsuite/libgomp.c/cancel-for-2.c: New test.
581         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
582         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
583         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
584         * testsuite/libgomp.c/cancel-sections-1.c: New test.
585         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
586         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
587         * testsuite/libgomp.c/depend-1.c: New test.
588         * testsuite/libgomp.c/depend-2.c: New test.
589         * testsuite/libgomp.c/depend-3.c: New test.
590         * testsuite/libgomp.c/depend-4.c: New test.
591         * testsuite/libgomp.c/for-1.c: New test.
592         * testsuite/libgomp.c/for-1.h: New file.
593         * testsuite/libgomp.c/for-2.c: New test.
594         * testsuite/libgomp.c/for-2.h: New file.
595         * testsuite/libgomp.c/for-3.c: New test.
596         * testsuite/libgomp.c/pr58392.c: New test.
597         * testsuite/libgomp.c/simd-1.c: New test.
598         * testsuite/libgomp.c/simd-2.c: New test.
599         * testsuite/libgomp.c/simd-3.c: New test.
600         * testsuite/libgomp.c/simd-4.c: New test.
601         * testsuite/libgomp.c/simd-5.c: New test.
602         * testsuite/libgomp.c/simd-6.c: New test.
603         * testsuite/libgomp.c/target-1.c: New test.
604         * testsuite/libgomp.c/target-2.c: New test.
605         * testsuite/libgomp.c/target-3.c: New test.
606         * testsuite/libgomp.c/target-4.c: New test.
607         * testsuite/libgomp.c/target-5.c: New test.
608         * testsuite/libgomp.c/target-6.c: New test.
609         * testsuite/libgomp.c/target-7.c: New test.
610         * testsuite/libgomp.c/taskgroup-1.c: New test.
611         * testsuite/libgomp.c/thread-limit-1.c: New test.
612         * testsuite/libgomp.c/thread-limit-2.c: New test.
613         * testsuite/libgomp.c/thread-limit-3.c: New test.
614         * testsuite/libgomp.c/udr-1.c: New test.
615         * testsuite/libgomp.c/udr-2.c: New test.
616         * testsuite/libgomp.c/udr-3.c: New test.
617         * testsuite/libgomp.c++/affinity-1.C: New test.
618         * testsuite/libgomp.c++/atomic-10.C: New test.
619         * testsuite/libgomp.c++/atomic-11.C: New test.
620         * testsuite/libgomp.c++/atomic-12.C: New test.
621         * testsuite/libgomp.c++/atomic-13.C: New test.
622         * testsuite/libgomp.c++/atomic-14.C: New test.
623         * testsuite/libgomp.c++/atomic-15.C: New test.
624         * testsuite/libgomp.c++/cancel-for-1.C: New test.
625         * testsuite/libgomp.c++/cancel-for-2.C: New test.
626         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
627         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
628         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
629         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
630         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
631         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
632         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
633         * testsuite/libgomp.c++/cancel-test.h: New file.
634         * testsuite/libgomp.c++/for-9.C: New test.
635         * testsuite/libgomp.c++/for-10.C: New test.
636         * testsuite/libgomp.c++/for-11.C: New test.
637         * testsuite/libgomp.c++/simd-1.C: New test.
638         * testsuite/libgomp.c++/simd-2.C: New test.
639         * testsuite/libgomp.c++/simd-3.C: New test.
640         * testsuite/libgomp.c++/simd-4.C: New test.
641         * testsuite/libgomp.c++/simd-5.C: New test.
642         * testsuite/libgomp.c++/simd-6.C: New test.
643         * testsuite/libgomp.c++/simd-7.C: New test.
644         * testsuite/libgomp.c++/simd-8.C: New test.
645         * testsuite/libgomp.c++/target-1.C: New test.
646         * testsuite/libgomp.c++/target-2.C: New test.
647         * testsuite/libgomp.c++/target-2-aux.cc: New file.
648         * testsuite/libgomp.c++/target-3.C: New test.
649         * testsuite/libgomp.c++/taskgroup-1.C: New test.
650         * testsuite/libgomp.c++/udr-1.C: New test.
651         * testsuite/libgomp.c++/udr-2.C: New test.
652         * testsuite/libgomp.c++/udr-3.C: New test.
653         * testsuite/libgomp.c++/udr-4.C: New test.
654         * testsuite/libgomp.c++/udr-5.C: New test.
655         * testsuite/libgomp.c++/udr-6.C: New test.
656         * testsuite/libgomp.c++/udr-7.C: New test.
657         * testsuite/libgomp.c++/udr-8.C: New test.
658         * testsuite/libgomp.c++/udr-9.C: New test.
660 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
662         PR testsuite/57605
663         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
664         ALWAYS_CFLAGS.
666 2013-09-20  Alan Modra  <amodra@gmail.com>
668         * configure: Regenerate.
670 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
672         * testsuite/libgomp.c/sections-2.c: New test.
674 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
676         * testsuite/libgomp.fortran/strassen.f90:
677         Add dg-skip-if aarch64_tiny.
679 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
680             Cesar Philippidis  <cesar@codesourcery.com>
682         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
683         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
684         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
685         * testsuite/libgomp.fortran/fortran.exp: Likewise.
686         * testsuite/libgomp.graphite/graphite.exp: Likewise.
687         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
688         Use dg-runtest rather than gfortran-dg-runtest.
690 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
692         * testsuite/libgomp.c/icv-2.c: Extend current handling of
693         Linux-based x86 systems to cover all GNU systems.
694         * testsuite/libgomp.c/lock-3.c: Likewise.
695         * testsuite/libgomp.c/pr48591.c: Likewise.
697 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
699         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
700         GNU/Hurd, as done for Linux-based systems.
702         * config/posix/ptrlock.h: Fix comment.
704 2013-05-27  Tobias Burnus  <burnus@net-b.de>
706         PR fortran/57423
707         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
708         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
709         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
710         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
711         omp_destroy_nest_lock): Correct arguments to match the one in
712         the OpenMP spec.
713         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
714         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
715         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
716         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
718 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
720         * testsuite/libgomp.c/loop-13.c: New test.
721         * testsuite/libgomp.c/loop-14.c: New test.
722         * testsuite/libgomp.c/loop-15.c: New test.
723         * testsuite/libgomp.c++/loop-13.C: New test.
724         * testsuite/libgomp.c++/loop-14.C: New test.
725         * testsuite/libgomp.c++/loop-15.C: New test.
727 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
729         PR middle-end/56217
730         * testsuite/libgomp.c++/pr56217.C: New test.
732 2013-02-01  Alan Modra  <amodra@gmail.com>
734         * task.c (GOMP_task, GOMP_taskwait): Comment.
736 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
737             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
739         PR libgomp/55561
740         * config/linux/wait.h (do_spin): Use atomic load for addr.
741         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
742         for intptr and ptrlock.
743         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
744         for ptrlock.
746 2013-01-22  Alan Modra  <amodra@gmail.com>
748         PR libgomp/51376
749         PR libgomp/56073
750         * task.c (GOMP_task): Revert 2011-12-09 change.
751         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
752         barrier to read task->children..
753         (gomp_barrier_handle_tasks): ..and matching atomic store with
754         release barrier here when setting parent->children to NULL.
756 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
757             Tobias Burnus  <burnus@net-b.de>
759         PR driver/55884
760         * testsuite/libgomp.fortran/fortran.exp: Use
761         -fintrinsic-modules-path= instead of
762         -fintrinsic-modules-path.
764 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
766         Update copyright years.
768 2012-12-19  Tobias Burnus  <burnus@net-b.de>
770         * testsuite/libgomp.fortran/fortran.exp: Set
771         -fintrinsic-modules-path.
773 2012-12-19  Tobias Burnus  <burnus@net-b.de>
775         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
776         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
778 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
780         PR libgomp/55411
781         * team.c (gomp_free_thread): Decrease gomp_managed_threads
782         if pool had any threads_used.
784 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
786         * testsuite/libgomp.c++/pr24455.C: Use
787         -Wl,-undefined,dynamic_lookup on darwin.
789 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
791         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
793 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
795         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
797 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
798             Jim MacArthur  <jim.macarthur@arm.com>
799             Marcus Shawcroft  <marcus.shawcroft@arm.com>
800             Nigel Stephens  <nigel.stephens@arm.com>
801             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
802             Richard Earnshaw  <rearnsha@arm.com>
803             Sofiane Naci  <sofiane.naci@arm.com>
804             Stephen Thomas  <stephen.thomas@arm.com>
805             Tejas Belagod  <tejas.belagod@arm.com>
806             Yufeng Zhang  <yufeng.zhang@arm.com>
808         * configure.tgt: Add AArch64.
810 2012-10-04  Jason Merrill  <jason@redhat.com>
812         * testsuite/libgomp.c++/tls-init1.C: New.
814 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
816         * configure: Regenerated.
818 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
820         * config/linux/mips/futex.h (sys_futex0): Change to static
821         function with noinline, nomips16 attributes under MIPS16. Adjust
822         asm statement to place 'li v0,SYS_futex' immediately before
823         syscall insn.
825 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
827         * libgomp.texi (Library Index): Renamed from "Index" to prevent
828         conflict with index.html on case-insensitive file systems.
830 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
832         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
833         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
835 2012-07-02  Richard Guenther  <rguenther@suse.de>
836             Michael Matz  <matz@suse.de>
837             Tobias Grosser <tobias@grosser.es>
838             Sebastian Pop <sebpop@gmail.com>
840         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
841         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
842         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
843         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
845 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
847         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
849 2012-06-22  Richard Guenther  <rguenther@suse.de>
851         Merge from graphite branch
852         2012-01-13  Tobias Grosser  <tobias@grosser.es>
854         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
855         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
857 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
859         PR middle-end/53580
860         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
861         use GOMP_barrier () call instead.
862         * testsuite/libgomp.c/pr26943-3.c: Likewise.
863         * testsuite/libgomp.c/pr26943-4.c: Likewise.
864         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
865         call GOMP_barrier instead.
866         * testsuite/libgomp.fortran/vla5.f90: Likewise.
868 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
870         PR libgomp/52993
871         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
872         argument to memset call.
874 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
876         * configure: Regenerated.
878 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
880         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
882 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
884         PR bootstrap/52812
885         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
887 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
889         PR middle-end/52547
890         * testsuite/libgomp.c/pr52547.c: New test.
892 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
894         * testsuite/lib/libgomp.exp: load fortran-modules.exp
896 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
898         * configure.tgt (mips-sgi-irix6*): Remove.
900 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
902         * configure.tgt (alpha*-dec-osf*): Remove.
904         * config/osf/sem.h: Remove.
905         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
907 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
909         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
911 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
913         PR libstdc++/52188
914         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
915         Remove ENABLE_SYMVERS_SOL2.
916         * configure: Regenerate.
917         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
918         (PREPROCESS): New variable.
919         (libgomp.ver): New target.
920         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
921         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
922         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
923         Use libgomp.ver.
924         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
925         * Makefile.in: Regenerate.
927 2012-02-14  Walter Lee  <walt@tilera.com>
929         * configure.tgt: Handle tilegx and tilepro.
930         * config/linux/tile/futex.h: New file.
932 2012-02-08  Richard Guenther  <rguenther@suse.de>
934         PR tree-optimization/46886
935         * testsuite/libgomp.c/pr46886.c: New testcase.
937 2012-01-25  Matthias Klose  <doko@ubuntu.com>
939         * config/linux/arm: Remove empty directory.
940         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
942 2011-12-09  Alan Modra  <amodra@gmail.com>
944         PR libgomp/51376
945         * task.c (GOMP_taskwait): Don't access task->children outside of
946         task_lock mutex region.
947         (GOMP_task): Likewise.
949 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
951         PR libgomp/51132
952         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
953         to file scope.
954         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
955         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
956         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
957         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
958         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
960 2011-12-02  Alan Modra  <amodra@gmail.com>
962         * config/linux/affinity.c: Use atomic rather than sync builtin.
963         * config/linux/lock.c: Likewise.
964         * config/linux/ptrlock.h: Likewise.
965         * config/linux/ptrlock.c: Likewise.
966         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
967         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
968         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
969         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
970         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
971         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
972         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
973         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
974         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
975         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
977 2011-11-30  Alan Modra  <amodra@gmail.com>
979         PR libgomp/51298
980         * config/linux/bar.h: Use atomic rather than sync builtins.
981         * config/linux/bar.c: Likewise.  Add missing acquire
982         synchronisation on generation field.
983         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
984         double unlock.
986 2011-11-30  Alan Modra  <amodra@gmail.com>
988         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
989         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
990         * config/linux/mutex.h: Use atomic rather than sync builtins.
991         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
992         * config/linux/omp-lock.h: Comment fix.
993         * config/linux/arm/mutex.h: Delete.
994         * config/linux/powerpc/mutex.h: Delete.
995         * config/linux/ia64/mutex.h: Delete.
996         * config/linux/mips/mutex.h: Delete.
998 2011-11-30  Alan Modra  <amodra@gmail.com>
1000         PR libgomp/51249
1001         * config/linux/sem.h: Rewrite.
1002         * config/linux/sem.c: Rewrite.
1004 2011-11-28  Richard Henderson  <rth@redhat.com>
1006         * libgomp.h (enum memmodel): New.
1008 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1010         * configure: Regenerate.
1012 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1014         * config/posix95: Remove empty directory.
1016 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1018         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1020 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
1022         PR fortran/49792
1023         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1024         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1026 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1028         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1030 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1032         PR libgomp/49965
1033         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1035 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
1037         * config/linux/proc.h: New.
1038         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
1039         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
1040         (gomp_init_num_threads): Update call to cpuset_popcount.
1041         (get_num_procs): Ditto.
1042         * config/linux/affinity.c (gomp_init_affinity): Call
1043         gomp_cpuset_popcount.
1045 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1047         PR fortran/42041
1048         PR fortran/46752
1049         * omp.h.in (omp_in_final): New prototype.
1050         * omp_lib.f90.in (omp_in_final): New interface.
1051         (omp_integer_kind, omp_logical_kind): Remove
1052         and replace all its uses in the module with 4.
1053         (openmp_version): Change to 201107.
1054         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1055         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1056         kind for the parameters.
1057         (omp_in_final): New external.
1058         (openmp_version): Change to 201107.
1059         * task.c (omp_in_final): New function.
1060         (gomp_init_task): Initialize final_task.
1061         (GOMP_task): Remove unused attribute from flags.  Handle final
1062         tasks.
1063         (GOMP_taskyield): New function.
1064         (omp_in_final): Return true if if (false) or final (true) task
1065         or descendant of final (true).
1066         * fortran.c (omp_in_final_): New function.
1067         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1068         (GOMP_3.0): Export GOMP_taskyield.
1069         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1070         variables.
1071         (parse_unsigned_long_list): New function.
1072         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1073         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1074         even if parse_affinity returned false.
1075         * config/linux/affinity.c (gomp_init_affinity): Handle
1076         gomp_cpu_affinity_len == 0.
1077         * libgomp_g.h (GOMP_taskyield): New prototype.
1078         * libgomp.h (struct gomp_task): Add final_task field.
1079         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1080         * team.c (gomp_team_start): Override new task's nthreads_var icv
1081         if list form OMP_NUM_THREADS has been used and it has value for
1082         the new nesting level.
1084         * testsuite/libgomp.c/atomic-11.c: New test.
1085         * testsuite/libgomp.c/atomic-12.c: New test.
1086         * testsuite/libgomp.c/atomic-13.c: New test.
1087         * testsuite/libgomp.c/atomic-14.c: New test.
1088         * testsuite/libgomp.c/reduction-6.c: New test.
1089         * testsuite/libgomp.c/task-5.c: New test.
1090         * testsuite/libgomp.c++/atomic-2.C: New test.
1091         * testsuite/libgomp.c++/atomic-3.C: New test.
1092         * testsuite/libgomp.c++/atomic-4.C: New test.
1093         * testsuite/libgomp.c++/atomic-5.C: New test.
1094         * testsuite/libgomp.c++/atomic-6.C: New test.
1095         * testsuite/libgomp.c++/atomic-7.C: New test.
1096         * testsuite/libgomp.c++/atomic-8.C: New test.
1097         * testsuite/libgomp.c++/atomic-9.C: New test.
1098         * testsuite/libgomp.c++/task-8.C: New test.
1099         * testsuite/libgomp.c++/reduction-4.C: New test.
1100         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1101         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1102         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1103         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1104         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1105         * testsuite/libgomp.fortran/pointer1.f90: New test.
1106         * testsuite/libgomp.fortran/pointer2.f90: New test.
1107         * testsuite/libgomp.fortran/task4.f90: New test.
1109 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1111         * libgomp.texi: Update OpenMP spec references to 3.1.
1112         (omp_in_final,OMP_PROC_BIND): New sections.
1113         (OMP_NUM_THREADS): Document that the value can be now a list.
1114         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1116 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1118         * config/linux/x86/futex.h: Check __x86_64__ instead of
1119         __LP64__.
1121 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1123         PR middle-end/49897
1124         PR middle-end/49898
1125         * testsuite/libgomp.c/pr49897-1.c: New test.
1126         * testsuite/libgomp.c/pr49897-2.c: New test.
1127         * testsuite/libgomp.c/pr49898-1.c: New test.
1128         * testsuite/libgomp.c/pr49898-2.c: New test.
1130 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1132         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1133         for ia32 instead of ilp32.
1135         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1136         * testsuite/libgomp.c/atomic-6.c: Likewise.
1138 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1140         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1141         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1143 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1145         PR libgomp/45351
1146         * config/osf/sem.h: New file.
1147         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1149 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1151         PR target/49541
1152         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1153         ldflags.
1155 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1157         * config/linux/wait.h (do_spin): New inline, largely copied
1158         from do_wait, just don't do futex_wait here, instead return true if
1159         it should be done.
1160         (do_wait): Implement using do_spin.
1161         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1162         to prototype.
1163         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1164         __sync_bool_compare_and_swap, pass the oldval to
1165         gomp_mutex_lock_slow.
1166         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1167         If all mutex contenders are just spinning and not sleeping, don't
1168         change state to 2 unnecessarily.  Optimize the loop when state has
1169         already become 2 to use just one atomic operation per loop instead
1170         of two.
1171         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1172         to prototype.
1173         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1174         __sync_bool_compare_and_swap, pass the oldval to
1175         gomp_mutex_lock_slow.
1177 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1179         PR libgomp/49490
1180         * iter.c (gomp_iter_static_next): For chunk size 0
1181         only use n ceil/ nthreads size for the first
1182         n % nthreads threads in the team instead of
1183         all threads except for the last few ones which
1184         get less work or none at all.
1185         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1186         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1187         chunk argument, set run_sched_modifier to 0 for static
1188         resp. 1 for other kinds.  If chunk argument is 0
1189         and not static, set value to 1.
1191 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1193         PR c++/49043
1194         * testsuite/libgomp.c++/pr49043.C: New test.
1196         PR c++/48869
1197         * testsuite/libgomp.c++/pr48869.C: New test.
1199 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1201         PR fortran/48894
1202         * fortran.c: Include limits.h.
1203         (TO_INT): Define.
1204         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1205         *set.
1206         (omp_set_num_threads_8_, omp_set_schedule_8_,
1207         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1208         omp_get_team_size_8_): Use TO_INT macro.
1209         * testsuite/libgomp.fortran/pr48894.f90: New test.
1211 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1213         PR middle-end/48591
1214         * testsuite/libgomp.c/pr48591.c: New test.
1216 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1218         PR bootstrap/48135
1219         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1220         * configure: Regenerate.
1222 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1224         PR fortran/47886
1225         * testsuite/libgomp.fortran/task3.f90: New test.
1227 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1229         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1231 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1233         PR libgomp/47854
1234         * libgomp.texi (omp_get_wtime): Don't say time in the past
1235         must be Unix Epoch.
1237 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1239         PR libgomp/47804
1240         * testsuite/libgomp.fortran/fortran.exp: Check for both
1241         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1242         but $blddir != "", still append ${blddir}/${lang_library_path}
1243         to ld_library_path.
1245 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1247         PR libgomp/47758
1248         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1249         of libquadmath.a before adding its libpath to ldflags.
1251 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1253         PR libgomp/47731
1254         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1255         to FUTEX_WAIT futex syscall.
1256         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1258 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1260         * configure: Regenerate.
1262 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1264         PR libstdc++/36104
1265         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1267 2011-01-16  Gerald Pfeifer
1269         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1271 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1273         PR fortran/46874
1274         * libgomp.fortran/allocatable6.f90: New test.
1276 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1278         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1279         * configure: Regenerate.
1281 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1283         PR target/40125
1284         PR lto/46695
1285         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1286         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1287         * aclocal.m4: Regenerate.
1288         * configure: Regenerate.
1289         * Makefile.in: Regenerate.
1290         * testsuite/Makefile.in: Regenerate.
1292 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1294         PR fortran/46753
1295         * libgomp.fortran/pr46753.f90: New test.
1297         PR libgomp/43706
1298         * env.c (initialize_env): Default to spin count 300000
1299         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1300         is specified.
1302         PR libgomp/45240
1303         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1304         at the end if sync builtins aren't supported.
1306 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1308         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1310 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1312         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1314 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1316         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1318 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1319             Tobias Burnus  <burnus@net-b.de>
1321         PR fortran/32049
1322         * configure.ac:
1323         * configure: Regenerate.
1325 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1327         * config/linux/futex.h: New.
1328         * config/linux/arm/mutex.h: New.
1329         * configure.tgt (arm*-*-linux*): Add config path.
1331 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1333         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1335 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1337         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1338         Change Fortran datatype to LOGICAL.
1339         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1340         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1342 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1344         * configure: Regenerate.
1346 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1348         * libgomp.texi: Add function keyword to a couple of Fortran
1349         interfaces, use integer instead of int for Fortran.
1351 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1353         * libgomp.texi: Fix spelling and pasto problems throughout.
1354         Adjust prototypes to match code.
1356 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1358         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1359         silence -fwhole-file warning.
1361 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1363         * configure.tgt (*-*-solaris2.[56]*): Removed.
1365 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1367         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1368         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1369         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1370         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1371         targetting solaris2*.
1372         * configure: Regenerate.
1373         * config.h.in: Regenerate.
1375         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1376         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1377         Add libgomp_version_dep.
1378         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1379         versioning.
1380         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1381         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1382         * Makefile.in: Regenerate.
1384         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1385         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1386         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1387         to common block, protected by
1388         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1390 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1392         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1394 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1396         PR bootstrap/43170
1397         * configure: Regenerate.
1399 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1401         PR other/43620
1402         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1403         * configure: Regenerate.
1404         * Makefile.in: Regenerate.
1405         * testsuite/Makefile.in: Regenerate.
1407 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1409         PR c/43893
1410         * testsuite/libgomp.c/pr43893.c: New test.
1411         * testsuite/libgomp.c++/pr43893.C: New test.
1413 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1415         PR middle-end/43570
1416         * testsuite/libgomp.fortran/vla8.f90: New test.
1418 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1420         PR libgomp/43706
1421         * config/linux/affinity.c (gomp_init_affinity): Decrease
1422         gomp_available_cpus if affinity mask confines the process to fewer
1423         CPUs.
1424         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1425         non-NULL, just return gomp_available_cpus.
1427         PR libgomp/43569
1428         * sections.c (gomp_sections_init): Initialize ws->mode.
1430 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1432         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1433         not unused bar variable.
1434         * configure: Regenerate.
1436 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1438         * Makefile.in: Regenerate.
1439         * aclocal.m4: Regenerate.
1440         * testsuite/Makefile.in: Regenerate.
1442 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1444         PR libgomp/42942
1445         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1446         (initialize_env): Adjust callers.
1447         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1448         when the argument is 0.
1450         * testsuite/libgomp.c/pr42942.c: New test.
1452 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1454         PR middle-end/42644
1455         PR middle-end/42130
1456         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1457         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1459 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1461         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1462         * testsuite/libgomp.c++/task-6.C: Likewise.
1464 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1466         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1468 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1470         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1471         * configure: Regenerate.
1473 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1475         PR fortran/42866
1476         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1478 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1480         * configure.ac: Test for executability of GFORTRAN.
1481         * configure: Regenerate.
1483 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1485         * configure: Regenerate.
1487 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1489         PR libgomp/42602
1490         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1492 2010-01-03  Richard Guenther  <rguenther@suse.de>
1494         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1496 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1498         * testsuite/libgomp.graphite/pr4118.c: New.
1500 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1502         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1503         for darwin, protect the test with require-effective-target tls_runtime.
1504         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1506 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1508         PR target/41605
1509         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1510         link spec %s substitutions for static libraries.
1512 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1514         PR testsuite/42135
1515         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1517 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1519         * Makefile.in: Regenerate.
1520         * configure: Regenerate.
1521         * testsuite/Makefile.in: Regenerate.
1523 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1525         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1526         settings for LC_ALL and LANG.
1528 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1530         PR fortran/42162
1531         * testsuite/libgomp.fortran/pr42162.f90: New test.
1533 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1535         PR middle-end/42029
1536         * testsuite/libgomp.c/pr42029.c: New test.
1538 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1540         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1541         *s.  Accept ld version without text in ()s.
1542         * configure: Regenerated.
1544 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1546         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1548 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1550         PR libgomp/41418
1551         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1552         or a hyphen (happens with fortran language disabled).
1553         * configure: Regenerate.
1555 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1557         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1558         use sed script portable to Solaris /bin/sed for extracting ld
1559         version.
1560         * configure: Regenerate.
1562 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1564         * testsuite/libgomp.graphite/bounds.c: New test.
1566 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1568         * Makefile.am (libgomp_la_LINK): New.
1569         * Makefile.in: Regenerate.
1571 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1573         * configure.ac (AC_PREREQ): Bump to 2.64.
1575 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1577         * Makefile.am (install-html, install-pdf): Remove.
1578         * Makefile.in: Regenerate.
1580         * Makefile.in: Regenerate.
1581         * aclocal.m4: Regenerate.
1582         * config.h.in: Regenerate.
1583         * configure: Regenerate.
1584         * testsuite/Makefile.in: Regenerate.
1586 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1588         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1589         * Makefile.in: Regenerate.
1591 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1593         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1594         * Makefile.in: Regenerate.
1596 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1598         PR fortran/41102
1599         omp_lib.h.in: Fix -std=f95 errors.
1602 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1604         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1605         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1606         * testsuite/libgomp.graphite/graphite.exp: New.
1608 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1610         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1611         only build.
1613 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1615         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1616         needed memory barrier semantics.
1617         * config/linux/mips/mutex.h: New file.
1619 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1621         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1623 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1625         * configure: Regenerate.
1627 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1629         PR testsuite/40699
1630         PR testsuite/40707
1631         PR testsuite/40709
1632         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1633         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1634         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1636 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1638         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1639         options when choosing a multilib.
1641 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1643         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1644         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1645         ld_library_path, not every libgcc multilib directory.
1646         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1647         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1648         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1649         Use add_path.
1650         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1652 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1654         * Makefile.am (LTLDFLAGS): Define.
1655         (LINK): Define.
1656         * Makefile.in: Regenerate.
1658 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1660         PR fortran/39718
1661         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1662         libgfortranbegin, check existence of libgfortran.a instead of
1663         libgfortranbegin.a.
1665 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1667         PR libgomp/40174
1668         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1669         (gomp_free_pool_helper): Likewise.
1671 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1672             Jakub Jelinek  <jakub@redhat.com>
1674         PR fortran/35423
1675         * testsuite/libgomp.fortran/workshare2.f90: New test.
1677 2009-04-09  Nick Clifton  <nickc@redhat.com>
1679         * iter.c: Change copyright header to refer to version 3 of the
1680         GNU General Public License with version 3.1 of the GCC Runtime
1681         Library Exception and to point readers at the COPYING3 and
1682         COPYING3.RUNTIME files and the FSF's license web page.
1683         * alloc.c: Likewise.
1684         * barrier.c: Likewise.
1685         * config/bsd/proc.c: Likewise.
1686         * config/linux/affinity.c: Likewise.
1687         * config/linux/alpha/futex.h: Likewise.
1688         * config/linux/bar.c: Likewise.
1689         * config/linux/bar.h: Likewise.
1690         * config/linux/ia64/futex.h: Likewise.
1691         * config/linux/ia64/mutex.h: Likewise.
1692         * config/linux/lock.c: Likewise.
1693         * config/linux/mips/futex.h: Likewise.
1694         * config/linux/mutex.c: Likewise.
1695         * config/linux/mutex.h: Likewise.
1696         * config/linux/powerpc/futex.h: Likewise.
1697         * config/linux/proc.c: Likewise.
1698         * config/linux/ptrlock.c: Likewise.
1699         * config/linux/ptrlock.h: Likewise.
1700         * config/linux/s390/futex.h: Likewise.
1701         * config/linux/sem.c: Likewise.
1702         * config/linux/sem.h: Likewise.
1703         * config/linux/sparc/futex.h: Likewise.
1704         * config/linux/wait.h: Likewise.
1705         * config/linux/x86/futex.h: Likewise.
1706         * config/mingw32/proc.c: Likewise.
1707         * config/mingw32/time.c: Likewise.
1708         * config/posix/affinity.c: Likewise.
1709         * config/posix/bar.c: Likewise.
1710         * config/posix/bar.h: Likewise.
1711         * config/posix/lock.c: Likewise.
1712         * config/posix/mutex.h: Likewise.
1713         * config/posix/proc.c: Likewise.
1714         * config/posix/ptrlock.h: Likewise.
1715         * config/posix/sem.c: Likewise.
1716         * config/posix/sem.h: Likewise.
1717         * config/posix/time.c: Likewise.
1718         * config/posix95/lock.c: Likewise.
1719         * critical.c: Likewise.
1720         * env.c: Likewise.
1721         * error.c: Likewise.
1722         * fortran.c: Likewise.
1723         * iter_ull.c: Likewise.
1724         * libgomp.h: Likewise.
1725         * libgomp_f.h.in: Likewise.
1726         * libgomp_g.h: Likewise.
1727         * loop.c: Likewise.
1728         * loop_ull.c: Likewise.
1729         * omp.h.in: Likewise.
1730         * omp_lib.f90.in: Likewise.
1731         * omp_lib.h.in: Likewise.
1732         * ordered.c: Likewise.
1733         * parallel.c: Likewise.
1734         * sections.c: Likewise.
1735         * single.c: Likewise.
1736         * task.c: Likewise.
1737         * team.c: Likewise.
1738         * work.c: Likewise.
1740 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1742         * testsuite/config/default.exp: Change copyright header to refer to
1743         version 3 of the GNU General Public License and to point readers
1744         at the COPYING3 file and the FSF's license web page.
1746 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1748         PR middle-end/39573
1749         * libgomp.c++/pr39573.C: New test.
1751 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1753         PR other/39591
1754         * testsuite/libgomp.c/pr39591-1.c: New test.
1755         * testsuite/libgomp.c/pr39591-2.c: New test.
1756         * testsuite/libgomp.c/pr39591-3.c: New test.
1758 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1760         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1761         * testsuite/libgomp.c/atomic-6.c: Ditto.
1763 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1765         PR c/39495
1766         * testsuite/libgomp.c/loop-12.c: New test.
1767         * testsuite/libgomp.c/loop-11.c: New test.
1768         * testsuite/libgomp.c++/loop-11.C: New test.
1769         * testsuite/libgomp.c++/loop-12.C: New test.
1770         * testsuite/libgomp.c++/for-8.C: New test.
1772 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1774         * configure: Regenerate.
1776 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1778         PR middle-end/39154
1779         * testsuite/libgomp.c/pr39154.c: New test.
1781 2009-01-30  Ian Lance Taylor  <iant@google.com>
1783         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1784         libgomp_ld_is_gold.  Get gold version number.
1785         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1786         * configure: Rebuild.
1788 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1790         * testsuite/lib/libgomp.exp: Add -B option for targets that
1791         use libgfortran.a%s in their specs.
1793 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1795         PR libgomp/38086
1796         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1797         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1798         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1799         * configure: Regenerated.
1800         * config.h.in: Likewise.
1802 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1804         PR c++/38650
1805         * testsuite/libgomp.c/pr38650.c: New test.
1806         * testsuite/libgomp.c++/pr38650.C: New test.
1808 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1810         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1812 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1814         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1816 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1818         * configure: Regenerate.
1820 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1822         PR middle-end/36802
1823         * testsuite/libgomp.c/pr36802-1.c: New test.
1824         * testsuite/libgomp.c/pr36802-2.c: New test.
1825         * testsuite/libgomp.c/pr36802-3.c: New test.
1827 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1829         PR libgomp/38270
1830         * config/linux/powerpc/mutex.h: New.
1832 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1834         PR c++/38257
1835         * testsuite/libgomp.c++/for-7.C: New test.
1837         PR c++/38348
1838         * testsuite/libgomp.c++/for-6.C: New test.
1840 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1842         PR testsuite/28870
1843         * testsuite/lib/libgomp.exp: Include new timeout library files.
1844         (libgomp_target_compile): Set timeout value from new proc.
1846 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1848         PR libgomp/37938
1849         * config/linux/ia64/mutex.h: New.
1851 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1853         PR libgomp/37935
1854         * libgomp.texi (Runtime library routines, environment variables):
1855         Update for OpenMP version 3.0.
1857 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1858             Steve Ellcey  <sje@cup.hp.com>
1860         * configure: Regenerate for new libtool.
1861         * Makefile.in: Ditto.
1862         * testsuite/Makefile.in: Ditto.
1864 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1865             Andreas Tobler  <a.tobler@schweiz.org>
1867         * config/bsd/proc.c: New file.
1868         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1869         * configure.ac: Check for header <sys/sysctl.h>
1870         * configure: Regenerate.
1871         * config.h.in: Likewise.
1873 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1875         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1877 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1879         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1880         * Makefile.in: Regenerated.
1881         * testsuite/Makefile.in: Regenerated.
1883 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1885         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1886         depend on blddir if blddir exists.
1887         (libgomp_target_compile): Likewise.
1888         * testsuite/libgomp.c++/c++.exp: Likewise.
1889         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1891 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1893         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1894         Do not list GPL as Invariant Section.
1896 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1897             Chao-ying Fu  <fu@mips.com>
1899         * configure.tgt: Enable futex for MIPS.
1900         * config/linux/mips/futex.h: New file.
1902 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1904         * team.c (gomp_team_end): Free team immediately if it has
1905         just one thread.
1907 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1909         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1910         * testsuite/libgomp.fortran/fortran.exp: Same.
1911         * testsuite/libgomp.c/c.exp: Same.
1912         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1913         directory to library path first.
1915 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1917         * env.c (parse_stacksize): Add cast to avoid warning.
1918         (parse_spincount): Likewise.
1920 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1922         * testsuite/libgomp.c/loop-10.c: New test.
1923         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1924         * libgomp.c++/loop-6.C (main): Likewise.
1926         PR debug/36617
1927         * testsuite/libgomp.c/debug-1.c: New test.
1929 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1931         * testsuite/libgomp.c/nqueens-1.c: New test.
1933         PR c++/36523
1934         * testsuite/libgomp.c++/task-7.C: New function.
1936 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1938         * configure: Regenerate.
1940 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1942         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1943         mutex when HAVE_SYNC_BUILTINS isn't defined.
1945 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1947         * libgomp.texi (omp_test_lock): Fix typo.
1949 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1951         * omp_lib.f90.in: Add "implicit none".
1953 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1955         PR middle-end/36506
1956         * testsuite/libgomp.c/reduction-5.c: New test.
1958 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1960         * libgomp.h (struct gomp_task): Add in_tied_task field.
1961         * task.c (gomp_init_task): Initialize it.
1962         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1963         unconditionally.  Don't call gomp_team_barrier_wake if
1964         current task is implicit or if(0) from implicit and number of
1965         running tasks is equal to nthreads - 1.
1967         PR libgomp/36471
1968         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1969         omp_get_team_size_8): Fix pastos.
1971         PR libgomp/36469
1972         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1973         * configure: Regenerated.
1974         * config.h.in: Regenerated.
1975         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1976         defined.
1978 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1980         PR bootstrap/36452
1981         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1982         (GOMP_loop_ull_dynamic_start): Likewise.
1983         (GOMP_loop_ull_guided_start): Likewise.
1984         (GOMP_loop_ull_ordered_static_start): Likewise.
1985         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1986         (GOMP_loop_ull_ordered_guided_start): Likewise.
1988 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1989             Richard Henderson  <rth@redhat.com>
1990             Ulrich Drepper  <drepper@redhat.com>
1991             Jakob Blomer  <jakob.blomer@ira.uka.de>
1993         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1994         Substitute also OMP_*LOCK_25*.
1995         * configure: Regenerated.
1996         * config.h.in: Regenerated.
1997         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1998         ptrlock.c and task.c.
1999         * Makefile.in: Regenerated.
2000         * testsuite/Makefile.in: Regenerated.
2001         * task.c: New file.
2002         * loop_ull.c: New file.
2003         * iter_ull.c: New file.
2004         * libgomp.h: Include ptrlock.h.
2005         (enum gomp_task_kind): New type.
2006         (struct gomp_team): Add task_lock, task_queue, task_count,
2007         task_running_count, single_count fields.  Add
2008         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2009         Remove work_share_lock, generation_mask,
2010         oldest_live_gen, num_live_gen and init_work_shares fields, add
2011         work work_share_list_alloc, work_share_list_free and work_share_chunk
2012         fields.  Change work_shares from pointer to pointers into an array.
2013         Change ordered_release field into gomp_sem_t ** from flexible array
2014         member.  Add implicit_task and initial_work_shares fields.
2015         Move close to the end of the struct.
2016         (struct gomp_team_state): Add single_count, last_work_share,
2017         active_level and level fields, remove work_share_generation.
2018         (gomp_barrier_handle_tasks): New prototype.
2019         (gomp_finish_task): New inline function.
2020         (struct gomp_work_share): Move chunk_size, end, incr into
2021         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2022         next_ll fields.  Reshuffle fields.  Add next_alloc,
2023         next_ws, next_free and inline_ordered_team_ids fields, change
2024         ordered_team_ids into pointer from flexible array member.
2025         Add mode field.  Put lock and next into a different cache line
2026         from most of the write-once fields.
2027         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2028         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2029         gomp_iter_ull_guided_next): New prototypes.
2030         (gomp_new_icv): New prototype.
2031         (struct gomp_thread): Add thread_pool and task fields.
2032         (struct gomp_thread_pool): New type.
2033         (gomp_new_team): New prototype.
2034         (gomp_team_start): Change type of last argument.
2035         (gomp_new_work_share): Removed.
2036         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2037         (gomp_work_share_init_done): New static inline.
2038         (gomp_throttled_spin_count_var, gomp_available_cpus,
2039         gomp_managed_threads): New extern decls.
2040         (gomp_init_task): New prototype.
2041         (gomp_spin_count_var): New extern var decl.
2042         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2043         or no alias support, or if not PIC.
2044         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2045         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2046         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2047         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2048         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2049         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2050         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2051         gomp_test_nest_lock_25): New prototypes.
2052         (omp_lock_symver, strong_alias): Define.
2053         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2054         decls.
2055         (gomp_end_task): New.
2056         (struct gomp_task_icv, gomp_global_icv): New.
2057         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2058         (struct gomp_task): New.
2059         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2060         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2061         (gomp_icv): New.
2062         (gomp_schedule_type): Reorder enum to match
2063         omp_sched_t.
2064         * team.c (struct gomp_thread_start_data): Add thread_pool and task
2065         fields.
2066         (gomp_thread_start): Add gomp_team_barrier_wait call.
2067         For non-nested case remove clearing of docked thread thr fields.
2068         Use pool fields instead of global gomp_* variables.  Use
2069         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2070         Create tasks for each member thread.
2071         (free_team): Only destroy team barrier, task_lock here and free it.
2072         (gomp_free_thread): Free last_team if non-NULL.
2073         (gomp_team_end): Call gomp_team_barrier_wait instead of
2074         gomp_barrier_wait.  For nested case call one extra
2075         gomp_barrier_wait.  Move here some destruction from free_team.
2076         Call free_team on pool->last_team if any, rather than freeing
2077         current team.  Destroy work_share_list_free_lock ifndef
2078         HAVE_SYNC_BUILTINS.
2079         (gomp_new_icv): New function.
2080         (gomp_threads, gomp_threads_size, gomp_threads_used,
2081         gomp_threads_dock): Removed.
2082         (gomp_thread_destructor): New variable.
2083         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2084         functions.
2085         (gomp_team_start): Create new pool if current thread doesn't have
2086         one.  Use pool fields instead of global gomp_* variables.
2087         Initialize thread_pool field for new threads.  Clear single_count.
2088         Change last argument from ws to team, don't create
2089         new team, set ts.work_share to &team->work_shares[0] and clear
2090         ts.last_work_share.  Don't clear ts.work_share_generation.
2091         If number of threads changed, adjust atomically gomp_managed_threads.
2092         Use gomp_init_task instead of gomp_new_task,
2093         set thr->task to the corresponding implicit_task array entry.
2094         Create tasks for each member thread.  Initialize ts.level.
2095         (initialize_team): Call pthread_key_create on
2096         gomp_thread_destructor.
2097         (team_destructor): New function.
2098         (new_team): Removed.
2099         (gomp_new_team): New function.
2100         (free_team): Free gomp_work_share blocks chained through next_alloc,
2101         instead of freeing work_shares and destroying work_share_lock.
2102         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2103         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2104         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2105         of gomp_barrier_wait.
2106         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2107         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2108         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2109         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2110         of gomp_barrier_wait.
2111         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2112         gomp_work_share_init_done if gomp_work_share_start returned true.
2113         Don't unlock ws->lock.
2114         * work.c: Include stddef.h.
2115         (free_work_share): Use work_share_list_free_lock instead
2116         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2117         Call gomp_fini_work_share and then either free ws if orphaned, or
2118         put it into work_share_list_free list of the current team.
2119         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2120         functions.
2121         (gomp_work_share_start, gomp_work_share_end,
2122         gomp_work_share_end_nowait): Rewritten.
2123         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2124         (openmp_version): Set to 200805.
2125         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2126         omp_sched_guided, omp_sched_auto): New parameters.
2127         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2128         omp_set_max_active_levels, omp_get_max_active_levels,
2129         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2130         omp_get_active_level): New interfaces.
2131         * omp_lib.h.in (openmp_version): Set to 200805.
2132         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2133         omp_sched_guided, omp_sched_auto): New parameters.
2134         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2135         omp_set_max_active_levels, omp_get_max_active_levels,
2136         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2137         omp_get_active_level): New externals.
2138         * loop.c: Include limits.h.
2139         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2140         GFS_AUTO.
2141         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2142         Likewise.  Use gomp_icv.
2143         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2144         ts.static_trip here.
2145         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2146         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2147         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2148         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2149         don't unlock ws->lock, otherwise lock it.
2150         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2151         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2152         (gomp_parallel_loop_start): Call gomp_new_team instead of
2153         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2154         Adjust gomp_team_start caller.  Pass 0 as second argument to
2155         gomp_resolve_num_threads.
2156         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2157         If adding ws->chunk_size nthreads + 1 times after end won't
2158         overflow, set ws->mode to 1.
2159         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2160         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2161         GOMP_loop_ull_ordered_static_start,
2162         GOMP_loop_ull_ordered_dynamic_start,
2163         GOMP_loop_ull_ordered_guided_start,
2164         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2165         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2166         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2167         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2168         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2169         prototypes.
2170         * libgomp.map: Export lock routines also @@OMP_2.0.
2171         (GOMP_loop_ordered_dynamic_first,
2172         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2173         GOMP_loop_ordered_static_first): Remove.
2174         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2175         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2176         GOMP_loop_ull_ordered_dynamic_next,
2177         GOMP_loop_ull_ordered_dynamic_start,
2178         GOMP_loop_ull_ordered_guided_next,
2179         GOMP_loop_ull_ordered_guided_start,
2180         GOMP_loop_ull_ordered_runtime_next,
2181         GOMP_loop_ull_ordered_runtime_start,
2182         GOMP_loop_ull_ordered_static_next,
2183         GOMP_loop_ull_ordered_static_start,
2184         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2185         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2186         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2187         (omp_set_schedule, omp_get_schedule,
2188         omp_get_thread_limit, omp_set_max_active_levels,
2189         omp_get_max_active_levels, omp_get_level,
2190         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2191         omp_set_schedule_, omp_set_schedule_8_,
2192         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2193         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2194         omp_get_max_active_levels_, omp_get_level_,
2195         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2196         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2197         New exports @@OMP_3.0.
2198         * omp.h.in (omp_sched_t): New type.
2199         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2200         omp_set_max_active_levels, omp_get_max_active_levels,
2201         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2202         omp_get_active_level): New prototypes.
2203         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2204         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2205         gomp_thread_limit_var, gomp_remaining_threads_count,
2206         gomp_remaining_threads_lock): New variables.
2207         (parse_spincount): New function.
2208         (initialize_env): Call gomp_init_num_threads unconditionally.
2209         Initialize gomp_available_cpus.  Call parse_spincount,
2210         initialize gomp_{,throttled_}spin_count_var
2211         depending on presence and value of OMP_WAIT_POLICY and
2212         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2213         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2214         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2215         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2216         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2217         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2218         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2219         (gomp_global_icv): New.
2220         (parse_schedule): Use it.  Parse "auto".
2221         (omp_set_num_threads): Use gomp_icv.
2222         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2223         Likewise.
2224         (omp_get_max_threads): Move from parallel.c.
2225         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2226         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2227         add ialias.
2228         (parse_stacksize, parse_wait_policy): New functions.
2229         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2230         both wrappers for compatibility and new locks.
2231         (omp_set_schedule, omp_get_schedule,
2232         omp_get_thread_limit, omp_set_max_active_levels,
2233         omp_get_max_active_levels, omp_get_level,
2234         omp_get_ancestor_thread_num, omp_get_team_size,
2235         omp_get_active_level): New ialias_redirect.
2236         (omp_set_schedule_, omp_set_schedule_8_,
2237         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2238         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2239         omp_get_max_active_levels_, omp_get_level_,
2240         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2241         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2242         New functions.
2243         * parallel.c: Include limits.h.
2244         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2245         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2246         argument to gomp_team_start.  Pass 0 as second argument to
2247         gomp_resolve_num_threads.
2248         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2249         if gomp_thread_limit_var != ULONG_MAX.
2250         (omp_in_parallel): Implement using ts.active_level.
2251         (omp_get_max_threads): Move to env.c.
2252         (omp_get_level, omp_get_ancestor_thread_num,
2253         omp_get_team_size, omp_get_active_level): New functions,
2254         add ialias.
2255         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2256         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2257         gomp_iter_dynamic_next instead of the _locked variant and don't take
2258         lock around it, otherwise acquire it before calling
2259         gomp_iter_dynamic_next_locked.
2260         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2261         gomp_iter_dynamic_next instead of the _locked variant and don't take
2262         lock around it.
2263         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2264         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2265         Adjust gomp_team_start caller.  Pass count as second argument to
2266         gomp_resolve_num_threads, don't adjust num_threads after the call.
2267         Use gomp_icv.
2268         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2269         ws->chunk_size by incr.
2270         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2271         code.
2272         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2273         types.
2274         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2275         (omp_check_defines): Check even the compat defines.
2276         * config/linux/ptrlock.c: New file.
2277         * config/linux/ptrlock.h: New file.
2278         * config/linux/wait.h: New file.
2279         * config/posix/ptrlock.c: New file.
2280         * config/posix/ptrlock.h: New file.
2281         * config/linux/bar.h (gomp_team_barrier_wait,
2282         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2283         (gomp_team_barrier_set_task_pending,
2284         gomp_team_barrier_clear_task_pending,
2285         gomp_team_barrier_set_waiting_for_tasks,
2286         gomp_team_barrier_waiting_for_tasks,
2287         gomp_team_barrier_done): New inlines.
2288         (gomp_barrier_t): Rewritten.
2289         (gomp_barrier_state_t): New typedef.
2290         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2291         gomp_barrier_wait_start): Rewritten.
2292         (gomp_barrier_wait_end): Change second argument to
2293         gomp_barrier_state_t.
2294         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2295         inlines.
2296         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2297         futex.h.
2298         (gomp_barrier_wait_end): Rewritten.
2299         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2300         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2301         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2302         (gomp_barrier_state_t): New typedef.
2303         (gomp_team_barrier_wait,
2304         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2305         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2306         into the return value.  Return gomp_barrier_state_t.
2307         (gomp_team_barrier_set_task_pending,
2308         gomp_team_barrier_clear_task_pending,
2309         gomp_team_barrier_set_waiting_for_tasks,
2310         gomp_team_barrier_waiting_for_tasks,
2311         gomp_team_barrier_done): New inlines.
2312         (gomp_barrier_wait_end): Change second argument to
2313         gomp_barrier_state_t.
2314         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2315         inlines.
2316         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2317         (gomp_barrier_wait_end): Change second argument to
2318         gomp_barrier_state_t.
2319         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2320         gomp_team_barrier_wake): New functions.
2321         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2322         futex.h.
2323         (gomp_futex_wake, gomp_futex_wait): New variables.
2324         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2325         * config/linux/lock.c: Rewrite to make locks task owned,
2326         for backwards compatibility provide the old entrypoints
2327         if symbol versioning.  Include wait.h instead of libgomp.h and
2328         futex.h.
2329         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2330         * config/posix95/lock.c: Rewrite to make locks task owned,
2331         for backwards compatibility provide the old entrypoints
2332         if symbol versioning.
2333         * config/posix/lock.c: Rewrite to make locks task owned,
2334         for backwards compatibility provide the old entrypoints
2335         if symbol versioning.
2336         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2337         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2338         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2339         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2340         (sys_futex0): Return error code.
2341         (futex_wake, futex_wait): If ENOSYS was returned, clear
2342         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2343         (cpu_relax, atomic_write_barrier): New static inlines.
2344         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2345         (futex_wake, futex_wait): If ENOSYS was returned, clear
2346         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2347         (cpu_relax, atomic_write_barrier): New static inlines.
2348         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2349         (sys_futex0): Return error code.
2350         (futex_wake, futex_wait): If ENOSYS was returned, clear
2351         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2352         (cpu_relax, atomic_write_barrier): New static inlines.
2353         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2354         (sys_futex0): Return error code.
2355         (futex_wake, futex_wait): If ENOSYS was returned, clear
2356         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2357         (cpu_relax, atomic_write_barrier): New static inlines.
2358         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2359         (sys_futex0): Return error code.
2360         (futex_wake, futex_wait): If ENOSYS was returned, clear
2361         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2362         (cpu_relax, atomic_write_barrier): New static inlines.
2363         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2364         (sys_futex0): Return error code.
2365         (futex_wake, futex_wait): If ENOSYS was returned, clear
2366         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2367         (cpu_relax, atomic_write_barrier): New static inlines.
2368         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2369         futex.h.
2370         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2371         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2372         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2373         types.
2374         (omp_nest_lock_t): Change owner into void *, add lock field.
2375         * config/posix95/omp-lock.h: Include semaphore.h.
2376         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2377         (omp_lock_t): Use sem_t instead of mutex if semaphores
2378         aren't broken.
2379         (omp_nest_lock_t): Likewise.  Change owner to void *.
2380         * config/posix/omp-lock.h: Include semaphore.h.
2381         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2382         (omp_lock_t): Use sem_t instead of mutex if semaphores
2383         aren't broken.
2384         (omp_nest_lock_t): Likewise.  Add owner field.
2386 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2388         * testsuite/libgomp.c/collapse-1.c: New test.
2389         * testsuite/libgomp.c/collapse-2.c: New test.
2390         * testsuite/libgomp.c/collapse-3.c: New test.
2391         * testsuite/libgomp.c/icv-1.c: New test.
2392         * testsuite/libgomp.c/icv-2.c: New test.
2393         * testsuite/libgomp.c/lib-2.c: New test.
2394         * testsuite/libgomp.c/lock-1.c: New test.
2395         * testsuite/libgomp.c/lock-2.c: New test.
2396         * testsuite/libgomp.c/lock-3.c: New test.
2397         * testsuite/libgomp.c/loop-4.c: New test.
2398         * testsuite/libgomp.c/loop-5.c: New test.
2399         * testsuite/libgomp.c/loop-6.c: New test.
2400         * testsuite/libgomp.c/loop-7.c: New test.
2401         * testsuite/libgomp.c/loop-8.c: New test.
2402         * testsuite/libgomp.c/loop-9.c: New test.
2403         * testsuite/libgomp.c/nested-3.c: New test.
2404         * testsuite/libgomp.c/nestedfn-6.c: New test.
2405         * testsuite/libgomp.c/sort-1.c: New test.
2406         * testsuite/libgomp.c/task-1.c: New test.
2407         * testsuite/libgomp.c/task-2.c: New test.
2408         * testsuite/libgomp.c/task-3.c: New test.
2409         * testsuite/libgomp.c/task-4.c: New test.
2410         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2411         to C++ testsuite default compiler options.
2412         * testsuite/libgomp.c++/collapse-1.C: New test.
2413         * testsuite/libgomp.c++/collapse-2.C: New test.
2414         * testsuite/libgomp.c++/ctor-10.C: New test.
2415         * testsuite/libgomp.c++/for-1.C: New test.
2416         * testsuite/libgomp.c++/for-2.C: New test.
2417         * testsuite/libgomp.c++/for-3.C: New test.
2418         * testsuite/libgomp.c++/for-4.C: New test.
2419         * testsuite/libgomp.c++/for-5.C: New test.
2420         * testsuite/libgomp.c++/loop-8.C: New test.
2421         * testsuite/libgomp.c++/loop-9.C: New test.
2422         * testsuite/libgomp.c++/loop-10.C: New test.
2423         * testsuite/libgomp.c++/task-1.C: New test.
2424         * testsuite/libgomp.c++/task-2.C: New test.
2425         * testsuite/libgomp.c++/task-3.C: New test.
2426         * testsuite/libgomp.c++/task-4.C: New test.
2427         * testsuite/libgomp.c++/task-5.C: New test.
2428         * testsuite/libgomp.c++/task-6.C: New test.
2429         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2430         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2431         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2432         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2433         * testsuite/libgomp.fortran/collapse1.f90: New test.
2434         * testsuite/libgomp.fortran/collapse2.f90: New test.
2435         * testsuite/libgomp.fortran/collapse3.f90: New test.
2436         * testsuite/libgomp.fortran/collapse4.f90: New test.
2437         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2438         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2439         * testsuite/libgomp.fortran/lib4.f90: New test.
2440         * testsuite/libgomp.fortran/lock-1.f90: New test.
2441         * testsuite/libgomp.fortran/lock-2.f90: New test.
2442         * testsuite/libgomp.fortran/nested1.f90: New test.
2443         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2444         * testsuite/libgomp.fortran/strassen.f90: New test.
2445         * testsuite/libgomp.fortran/tabs1.f90: New test.
2446         * testsuite/libgomp.fortran/tabs2.f: New test.
2447         * testsuite/libgomp.fortran/task1.f90: New test.
2448         * testsuite/libgomp.fortran/task2.f90: New test.
2449         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2450         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2451         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2452         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2453         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2455 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2457         PR c++/36308
2458         * testsuite/libgomp.c++/ctor-11.C: New test.
2459         * testsuite/libgomp.c++/ctor-12.C: New test.
2461 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2463         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2465 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2467         PR middle-end/36106
2468         * testsuite/libgomp.c/atomic-5.c: New test.
2469         * testsuite/libgomp.c/atomic-6.c: New test.
2470         * testsuite/libgomp.c/autopar-1.c: New test.
2472 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2474         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2475         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2476         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2477         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2478         * configure: Regenerate.
2479         * Makefile.in, testsuite/Makefile.in: Likewise.
2481 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2483         PR bootstrap/35457
2484         * aclocal.m4: Regenerate.
2485         * configure: Regenerate.
2487 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2489         PR middle-end/35611
2490         * testsuite/libgomp.c/atomic-4.c: New test.
2492         PR libgomp/35625
2493         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2494         (gomp_iter_guided_next): Likewise.
2495         * testsuite/libgomp.c/pr35625.c: New test.
2497 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2499         * aclocal.m4: Regenerate.
2500         * configure: Likewise.
2501         * Makefile.in: Likewise.
2502         * testsuite/Makefile.in: Likewise.
2504 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2506         PR middle-end/35185
2507         * testsuite/libgomp.c++/pr35185.C: New test.
2509 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2511         PR middle-end/35549
2512         * testsuite/libgomp.c/pr35549.c: New test.
2514 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2516         * testsuite/libgomp.c/atomic-3.c: New test.
2518 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2520         PR fortran/33197
2521         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2522         .F08 file suffixes.
2524 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2526         PR libgomp/33131
2527         * configure.ac: Add ACX_HEADER_STRING.
2528         * env.c: Include strings.h.
2529         * aclocal.m4: Regenerate.
2530         * config.h.in: Regenerate.
2531         * configure: Regenerate.
2532         * Makefile.in: Regenerate.
2533         * testsuite/Makefile.in: Regenerate.
2535 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2537         PR middle-end/35196
2538         * testsuite/libgomp.c/pr35196.c: New test.
2540         PR middle-end/35130
2541         * testsuite/libgomp.fortran/pr35130.f90: New test.
2542         * testsuite/libgomp.c/pr35130.c: New test.
2544 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2546         PR middle-end/33880
2547         * testsuite/libgomp.c/pr33880.c: New test.
2548         * testsuite/libgomp.fortran/pr33880.f90: New test.
2550 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2552         * configure: Regenerate.
2554 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2556         * configure.ac: Move futex checking into ../config/futex.m4.
2557         * configure: Rebuilt.
2558         * aclocal.m4: Rebuilt.
2559         * Makefile.in: Rebuilt.
2561         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2562         2007-10-15 ../config/tls.m4 change.
2564 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2566         PR c++/34513
2567         * testsuite/libgomp.c/pr34513.c: New test.
2568         * testsuite/libgomp.c++/pr34513.C: New test.
2570 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2572         PR target/32765
2573         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2575 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2577         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2579 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2581         * testsuite/libgomp.c/private-1.c: New test.
2583 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2584             Paolo Bonzini  <bonzini@gnu.org>
2586         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2587         instead of 'VPATH ='.
2588         * Makefile.in: Regenerate.
2590 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2592         * configure.ac: Adjust makeinfo version check.
2593         * configure: Regenerate.
2595 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2597         PR fortran/34020
2598         * testsuite/libgomp.fortran/pr34020.f90: New test.
2600 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2602         PR c++/33894
2603         * testsuite/libgomp.c++/atomic-1.C: New test.
2605 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2607         PR libgomp/33275
2608         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2609         Make x and y integers rather than (implicit) reals.  Add private (j)
2610         clause to the last omp parallel.
2612 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2614         * configure: Regenerate following changes to ../config/tls.m4.
2616 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2618         * testsuite/libgomp.fortran/stack.f90: New test.
2620 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2622         * config/mingw32/proc.c: New file.
2624 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2626         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2627         (main): Use __get_cpuid to get i386 target fetaures.
2628         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2629         (main): Use __get_cpuid to get x86_64 target fetaures.
2631 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2633         PR target/32765
2634         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2635         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2637 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2639         PR fortran/32550
2640         * testsuite/libgomp.fortran/pr32550.f90: New test.
2641         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2643 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2645         * aclocal.m4: Regenerated.
2647 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2649         PR fortran/32359
2650         * testsuite/libgomp.fortran/pr32359.f90: New.
2652 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2654         PR libgomp/32468
2655         * sections.c (GOMP_parallel_sections_start): Only decrease
2656         number of threads to COUNT if dyn_var is true.
2657         * testsuite/libgomp.c/pr32468.c: New test.
2659 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2661         PR libgomp/26308
2662         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2664 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2666         PR middle-end/32362
2667         * testsuite/libgomp.c/pr32362-1.c: New test.
2668         * testsuite/libgomp.c/pr32362-2.c: New test.
2669         * testsuite/libgomp.c/pr32362-3.c: New test.
2671 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2673         * team.c (gomp_team_start): Fix setting up thread_attr
2674         stack size.
2676 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2678         * configure: Regenerate.
2680 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2682         * Makefile.in: Regenerate.
2683         * configure: Regenerate.
2684         * aclocal.m4: Regenerate.
2685         * testsuite/Makefile.in: Regenerate.
2687 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2689         * config/linux/proc.c: New file.
2691         PR libgomp/28482
2692         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2694 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2696         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2698 2007-04-16  Matthias Klose  <doko@debian.org>
2700         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2701         flags if not building with -m64.
2702         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2703         flag for i?86-*-* targets, if current target matches -m64.
2705 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2707         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2708         * Makefile.in: Regenerate.
2710 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2712         PR testsuite/31369
2713         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2714         ld_library_path.
2715         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2717 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2719         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2720         decls.
2721         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2722         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2723         (parse_affinity): New function.
2724         (initialize_env): Call it and gomp_init_affinity.
2725         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2726         create new pthread_attr_t and call gomp_init_thread_affinity
2727         on it for each thread before passing the attribute to pthread_create.
2728         * config/linux/affinity.c: New file.
2729         * config/posix/affinity.c: New file.
2730         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2731         * configure: Rebuilt.
2732         * config.h.in: Rebuilt.
2733         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2734         * Makefile.in: Rebuilt.
2736 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2738         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2739         *-*-darwin*.
2740         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2741         and use it if found.
2743 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2745         * testsuite/config/default.exp: New file.
2746         * testsuite/lib/libgomp.exp: New file.
2747         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2748         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2749         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2750         (libgomp_load): Remove.
2751         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2752         always_ld_library_path, not ld_library_path.  Set additional_flags
2753         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2754         (target_compile): Do not call libgomp_init.  Append lang_library_path
2755         and lang_link_flags to options.
2756         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2757         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2758         here.
2759         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2760         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2761         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2762         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2763         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2764         CX8 flag.
2765         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2766         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2767         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2768         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2769         * testsuite/libgomp.c/atomic-10.c: Ditto.
2771 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2773         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2774         dg-final cleanup-modules line.
2775         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2776         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2777         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2778         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2779         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2780         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2781         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2783 2007-03-18  Andreas Schwab  <schwab@suse.de>
2785         * acinclude.m4: Adjust regular expression for ld version
2786         extraction.
2787         * configure: Regenerate.
2789 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2791         * Makefile.am: Add install-pdf target as copied from
2792         automake v1.10 rules.
2793         * Makefile.in: Regenerate
2795 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2797         PR libgomp/28486
2798         * configure: Regenerate.
2800         PR c++/30703
2801         * testsuite/libgomp.c++/pr30703.C: New test.
2803 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2805         Revert:
2806         2006-07-05  Eric Christopher  <echristo@apple.com>
2807         * configure.ac: Depend addition of -pthread on host OS.
2808         * configure: Regenerate.
2810 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2812         * libgomp.texi: Fix spacing after abbreviations.
2814 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2816         PR libgomp/30546
2817         * configure.ac: Add check for makeinfo
2818         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2819         if an appropiate version of makeinfo is found.
2820         * aclocal.m4: Regenerated.
2821         * configure: Regenerated.
2822         * Makefile.in: Regenerated.
2823         * testsuite/Makefile.in: Regenerated.
2825 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2827         PR libgomp/30540
2828         * libgomp.texi: More about implementation-dependent settings.
2830 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2832         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2834 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2836         PR middle-end/30494
2837         * testsuite/libgomp.c/pr30494.c: New test.
2839 2007-01-15  Tom Tromey  <tromey@redhat.com>
2841         * configure: Rebuilt.
2842         * configure.ac: Fixed comment.
2844 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2846         * libgomp.texi: Document implementation specific default values of
2847         environment variables.
2849 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2851         PR libgomp/28209
2852         * libgomp.texi: New file.
2853         * configure.ac: Add --enable-generated-files-in-srcdir option.
2854         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2855         files to srcdir.
2856         * Makefile.in: Regenerated.
2857         * config.h.in: Regenerated.
2858         * testsuite/Makefile.in: Regenerated.
2859         * NOTES: Removed.
2861 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2863         PR libgomp/29949
2864         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2866 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2868         * configure: Regenerate.
2870 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2872         PR libgomp/29947
2873         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2874         start if there shouldn't be any loop iterations.
2875         (gomp_loop_ordered_static_start): Remove start == end test.
2876         * testsuite/libgomp.c/pr29947-1.c: New test.
2877         * testsuite/libgomp.c/pr29947-2.c: New test.
2879 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2881         * configure.tgt: Force initial-exec TLS model on Linux only.
2883 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2885         * configure: Regenerated.
2887 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2889         * env.c (parse_schedule): Reject out of range values.
2890         (parse_unsigned_long): Reject out of range, negative or zero values.
2892 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2894         PR fortran/29629
2895         * testsuite/libgomp.fortran/pr29629.f90: New test.
2897 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2899         PR libgomp/29494
2900         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2901         * config/posix95: New directory.
2902         * config/posix95/omp-lock.h: New file.
2903         * config/posix95/lock.c: Likewise.
2905 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2907         * aclocal.m4: Regenerate.
2908         * configure: Regenerate.
2910 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2912         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2913         '<' to '<='.
2915 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2917         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2918         test.
2919         * configure: Regenerate.
2920         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2922 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2924         PR middle-end/25261
2925         PR middle-end/28790
2926         * testsuite/libgomp.c/nestedfn-4.c: New test.
2927         * testsuite/libgomp.c/nestedfn-5.c: New test.
2928         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2930         PR fortran/29097
2931         * testsuite/libgomp.fortran/condinc1.f: New test.
2932         * testsuite/libgomp.fortran/condinc2.f: New test.
2933         * testsuite/libgomp.fortran/condinc3.f90: New test.
2934         * testsuite/libgomp.fortran/condinc4.f90: New test.
2935         * testsuite/libgomp.fortran/condinc1.inc: New file.
2937 2006-09-18  Tom Tromey  <tromey@redhat.com>
2939         * configure: Rebuilt.
2941 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2943         PR c/28768
2944         PR preprocessor/14634
2945         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2946         to AC_DEFINE.
2947         * configure: Regenerate.
2949 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2951         * testsuite/libgomp.fortran/reduction3.f90: Change
2952         -2147483648 to -huge(i)-1 to avoid overflow.
2953         * testsuite/libgomp.fortran/reduction4.f90: Change
2954         Z'ffffffff' to not(0) to avoid overflow.
2956 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2958         PR libgomp/25938
2959         * Makefile.am (libsubincludedir): New.
2960         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2961         * Makefile.in: Regenerate.
2963 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2965         PR libgomp/28725
2966         * env.c: Include ctype.h.
2967         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2968         leading and/or trailing whitespace and compare strings case
2969         insensitively.
2971 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2973         PR fortran/28390
2974         * testsuite/libgomp.fortran/pr28390.f: New test.
2976 2006-07-05  Eric Christopher  <echristo@apple.com>
2978         * configure.ac: Depend addition of -pthread on host OS.
2979         * configure: Regenerate.
2981 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2983         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2984         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2985         defined.
2987 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2989         PR libgomp/26175
2990         PR libgomp/26477
2991         * configure.ac: If neither --enable-linux-futex nor
2992         --disable-linux-futex is passed, determine the default by checking
2993         for compiling and/or running against NPTL.  With --enable-linux-futex,
2994         check if SYS_gettid and SYS_futex are defined.
2995         * configure: Rebuilt.
2997 2006-06-14  Richard Henderson  <rth@redhat.com>
2999         PR libgomp/28008
3000         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3001         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3003 2006-06-09  Richard Henderson  <rth@redhat.com>
3005         * env.c (gomp_nthreads_var): Change to unsigned long.
3006         (gomp_run_sched_chunk): Likewise.
3007         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3008         (initialize_env): Initialize gomp_thread_attr.
3009         * libgomp.h (gomp_nthreads_var): Update decl.
3010         (gomp_run_sched_chunk): Likewise.
3011         (gomp_thread_attr): Declare.
3012         * team.c (gomp_thread_attr): Export.
3013         (initialize_team): Don't initialize it.
3015 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
3017         PR fortran/27916
3018         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3019         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3021 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3023         * config/mingw32/time.c: New file.
3024         * configure.tgt: Use it.
3026 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3028         * Makefile.am: Add install-html target. Add install-html to .PHONY
3029         * Makefile.in: Regenerate.
3031 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3033         PR libgomp/27612
3034         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3035         * testsuite/libgomp.c/critical-1.c: Likewise.
3036         * testsuite/libgomp.c/loop-1.c: Likewise.
3037         * testsuite/libgomp.c/loop-2.c: Likewise.
3038         * testsuite/libgomp.c/single-1.c: Likewise.
3039         * testsuite/libgomp.c/ordered-1.c: Likewise.
3040         * testsuite/libgomp.c/ordered-2.c: Likewise.
3042 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3044         PR middle-end/27416
3045         * libgomp.fortran/pr27416-1.f90: New test.
3047 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
3049         PR fortran/27395
3050         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3051         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3053 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3055         PR c++/26943
3056         * testsuite/libgomp.c/pr26943-1.c: New test.
3057         * testsuite/libgomp.c/pr26943-2.c: New test.
3058         * testsuite/libgomp.c/pr26943-3.c: New test.
3059         * testsuite/libgomp.c/pr26943-4.c: New test.
3060         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3061         * testsuite/libgomp.c++/pr26943.C: New test.
3063 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3065         PR middle-end/27337
3066         * testsuite/libgomp.c++/pr27337.C: New test.
3068 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3070         PR c/26171
3071         * testsuite/libgomp.c/pr26171.c: New test.
3073 2006-04-25  Richard Henderson  <rth@redhat.com>
3075         PR libgomp/25865
3076         * configure.ac: Use GCC_CHECK_TLS.
3077         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3078         * Makefile.in, aclocal.m4, configure: Regenerate.
3080 2006-04-10  Matthias Klose  <doko@debian.org>
3082         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3083         directory names containing underscores.
3085 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3087         PR c++/26691
3088         * testsuite/libgomp.c++/pr26691.C: New test.
3090 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3092         * testsuite/libgomp.fortran/retval2.f90: New test.
3094 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3096         * testsuite/libgomp.c++: New directory.
3098 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3100         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3101         * config/posix/sem.c: Implement the above.
3103 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3105         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3106         define HAVE_BROKEN_POSIX_SEMAPHORES.
3107         * configure: Rebuilt.
3108         * config.h.in: Rebuilt.
3110 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3112         PR bootstrap/26161
3113         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3114         for the other pthread check.
3115         * configure: Regenerate.
3116         * config.h.in: Regenerate.
3118 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3120         PR libgomp/25938
3121         PR libgomp/25984
3122         * Makefile.am (fincludedir): New variable.
3123         (nodist_include_HEADERS): Remove Fortran files.
3124         (nodist_finclude_HEADERS): New variable.
3125         * Makefile.in: Regenerated.
3127 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3129         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3130         Remove tests for returning assumed character length arrays.
3132 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3133             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3135         PR libgomp/25936
3136         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3138 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3140         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3142 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3144         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3145         part of LD_LIBRARY_PATH manually.
3147 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3149         PR libgomp/25852
3150         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3151         libgomp_init.
3153 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3155         PR libgomp/25884
3156         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3157         * configure.ac (PERL): Don't set.
3158         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3159         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3160         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3161         * omp.h.in: Wrap the new configure substitutions with @ characters.
3162         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3163         * aclocal.m4, configure, Makefile.in: Regenerate.
3164         * mkomp_h.pl: Delete.
3166 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3168         PR libgomp/25259
3169         * configure.ac: Use GCC_HEADER_STDINT.
3170         * libgomp.h: Include gstdint.h.
3171         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3172         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3174 2006-01-24  Richard Henderson  <rth@redhat.com>
3176         PR libgomp/25942
3177         * configure.ac: Add AM_MAINTAINER_MODE.
3178         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3180 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3182         * Makefile.in: Regenerate.
3183         * testsuite/Makefile.in: Regenerate.
3184         * aclocal.m4: Regenerate.
3186 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3188         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3189         Solaris.
3190         * configure.ac: Add check for loadavg.h.
3191         (link_gomp): Adjust comment.
3192         * configure: Regenerate.
3193         * config.h.in: Regenerate.
3195 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3197         PR libgomp/25877
3198         * configure.ac: Remove check for alloca.h.
3199         * configure: Regenerate.
3200         * config.h.in: Regenerate.
3201         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3202         * team.c: Remove use of alloca.h.
3203         Call gomp_alloca instead of alloca.
3205 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3207         PR libgomp/25877
3208         * team.c: Add include of alloca.h.
3209         * configure.ac: Add check for alloca.h.
3210         * configure: Regenerate.
3211         * config.h.in: Regenerate.
3213 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3215         PR fortran/25219
3216         * testsuite/libgomp.fortran/pr25219.f90: New test.
3218 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3220         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3221         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3222         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3223         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3224         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3225         testsuite/libgomp.fortran/threadprivate1.f90,
3226         testsuite/libgomp.fortran/threadprivate2.f90,
3227         testsuite/libgomp.fortran/threadprivate3.f90,
3228         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3229         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3230         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3231         effective-target to TLS runtime.
3233         * testsuite/libgomp.fortran/pr25162.f: Require
3234         effective-target TLS runtime.
3236 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3238         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3239         * testsuite/libgomp.c/nestedfn-3.c: New test.
3241 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3243         PR fortran/25162
3244         * testsuite/libgomp.fortran/pr25162.f: New test.
3246 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3248         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3249         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3251 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3253         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3254         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3255         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3256         single.c, team.c, work.c, config/linux/alpha/futex.h,
3257         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3258         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3259         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3260         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3261         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3262         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3263         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3264         FSF address.
3266 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3268         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3269         to nodist_noinst_HEADERS.
3270         * Makefile.in: Rebuilt.
3272         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3273         add integer count field.
3274         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3275         omp_nest_lock_t type change.
3276         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3277         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3278         Increment count.
3279         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3280         Decrement count.
3281         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3282         Increment count if successful and return the new nesting level.
3283         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3284         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3285         * testsuite/libgomp.c/lib-1.c: New test.
3286         * testsuite/libgomp.fortran/lib1.f90: New test.
3287         * testsuite/libgomp.fortran/lib2.f: New test.
3288         * testsuite/libgomp.fortran/lib3.f: New test.
3290 2005-11-17  Richard Henderson  <rth@redhat.com>
3292         PR 24845
3293         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3294         * configure.ac (link_gomp): New.  Substitute it.
3295         (AC_CONFIG_FILES): Add libgomp.spec.
3296         * libgomp.spec.in: New file.
3297         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3298         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3300 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3302         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3303         reduction(-:var) behaving the same as reduction(+:var).
3304         * testsuite/libgomp.c/reduction-4.c: New test.
3306 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3308         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3309         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3310         testsuite/libgomp.c/copyin-3.c,
3311         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3312         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3313         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3314         testsuite/libgomp.c++/pr24455.C,
3315         testsuite/libgomp.fortran/threadprivate1.f90,
3316         testsuite/libgomp.fortran/threadprivate2.f90,
3317         testsuite/libgomp.fortran/threadprivate3.f90,
3318         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3319         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3320         testsuite/libgomp.fortran/omp_parse3.f90: Require
3321         effective-target TLS.
3323 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3325         * HEADER: Remove.
3327 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3329         PR libgomp/24797
3330         * team.c (initialize_team): Pass NULL rather than free as
3331         pthread_key_create destructor.  Initialize thread specific data
3332         pointer in initial thread to a static local variable rather than
3333         malloced memory.
3335 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3337         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3338         its location to ld_library_path.
3340 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3342         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3344 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3346         * testsuite/libgomp.c: Rename from libgomp.dg.
3348 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3350         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3351         threadprivate variable 'i'.
3353 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3355         * config/linux/s390/futex.h: New file.
3356         * configure.tgt: Use it.
3358         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3359         before the parallel.
3361 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3363         PR c++/24734
3364         * testsuite/libgomp.c++/master-1.C: New test.
3366 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3368         * testsuite/libgomp.dg/copyin-3.c: New test.
3370 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3372         * testsuite/libgomp.fortran/retval1.f90: New test.
3373         * testsuite/libgomp.fortran/vla7.f90: New test.
3375 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3377         * testsuite/libgomp.fortran/vla2.f90: New test.
3378         * testsuite/libgomp.fortran/vla3.f90: New test.
3379         * testsuite/libgomp.fortran/vla4.f90: New test.
3380         * testsuite/libgomp.fortran/vla5.f90: New test.
3381         * testsuite/libgomp.fortran/vla6.f90: New test.
3383 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3385         * config/linux/sparc/futex.h: New file.
3386         * configure.tgt: Use it.
3387         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3389         * critical.c: Include stdlib.h.
3390         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3391         ignoring return value.
3392         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3393         LIBGOMP_CHECK_SYNC_BUILTINS check.
3394         * configure: Rebuilt.
3396 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3398         * testsuite/libgomp.fortran/vla1.f90: New test.
3400 2005-10-31  Richard Henderson  <rth@redhat.com>
3402         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3403         setting 's' in different threads.
3405 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3407         * libgomp.h (attribute_hidden, ialias): Define.
3408         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3409         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3410         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3411         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3412         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3413         omp_test_lock, omp_test_nest_lock): Likewise.
3414         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3415         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3416         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3417         omp_test_lock, omp_test_nest_lock): Likewise.
3418         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3419         omp_get_dynamic, omp_get_nested): Likewise.
3420         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3421         omp_get_thread_num, omp_in_parallel): Likewise.
3422         * fortran.c (ialias_redirect): Define.
3423         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3424         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3425         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3426         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3427         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3428         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3429         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3430         omp_get_wtime): Add ialias_redirect.
3432 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3434         * fortran.c: Include stdlib.h.
3436 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3438         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3439         * Makefile.in: Regenerated.
3441 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3443         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3444         * libgomp_f.h.in (omp_check_defines): New function.
3445         * env.c: Include libgomp_f.h.
3446         (initialize_env): Call omp_check_defines.
3448         * testsuite/libgomp.dg/copyin-2.c: New test.
3449         * testsuite/libgomp.c++/copyin-2.C: New test.
3450         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3452         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3453         * testsuite/libgomp.fortran/sharing2.f90: New test.
3455         * testsuite/libgomp.dg/copyin-1.c: New test.
3456         * testsuite/libgomp.c++/copyin-1.C: New test.
3458 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3460         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3462         * testsuite/libgomp.fortran/workshare1.f90: New test.
3464         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3465         only test.
3466         * libgomp.fortran/sharing1.f90: New test.
3468 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3470         PR c++/24502
3471         * testsuite/libgomp.c++/loop-7.C: New test.
3473         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3475         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3476         * testsuite/libgomp.fortran/reduction6.f90: New test.
3477         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3479 2005-10-23  Richard Henderson  <rth@redhat.com>
3481         * testsuite/libgomp.c++/ctor-1.C: New.
3482         * testsuite/libgomp.c++/ctor-2.C: New.
3483         * testsuite/libgomp.c++/ctor-3.C: New.
3484         * testsuite/libgomp.c++/ctor-4.C: New.
3485         * testsuite/libgomp.c++/ctor-5.C: New.
3486         * testsuite/libgomp.c++/ctor-6.C: New.
3487         * testsuite/libgomp.c++/ctor-7.C: New.
3488         * testsuite/libgomp.c++/ctor-8.C: New.
3489         * testsuite/libgomp.c++/ctor-9.C: New.
3491 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3493         PR 24455
3494         * testsuite/libgomp.c++/pr24455-1.C: New test.
3495         * testsuite/libgomp.c++/pr24455.C: New test.
3496         * testsuite/libgomp.dg/pr24455-1.c: New test.
3497         * testsuite/libgomp.dg/pr24455.c: New test.
3499 2005-10-20  Richard Henderson  <rth@redhat.com>
3501         * testsuite/libgomp.c++/loop-6.C: New.
3502         * testsuite/libgomp.dg/loop-3.c: New.
3504 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3506         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3507         explicitly private.
3508         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3509         explicitly shared.
3511 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3513         * testsuite/libgomp.fortran/jacobi.f: New test.
3515 2005-10-19  Richard Henderson  <rth@redhat.com>
3517         * configure.tgt (i?86-linux): Default to with_arch instead of
3518         CFLAGS.  Add -mtune to match target_cpu.
3519         (x86_64-linux): Tune to i686.
3521         * fortran.c (omp_test_nest_lock_): Fix typo.
3523 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3525         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3526         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3527         * testsuite/libgomp.dg/ordered-3.c: New test.
3529         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3530         Remove volatile keyword.
3532         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3533         in COMMON block to avoid warnings on 64-bit targets.
3535 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3537         * testsuite/libgomp.dg/shared-3.c: New test.
3539 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3541         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3542         * testsuite/libgomp.fortran/reduction5.f90: New test.
3544 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3546         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3547         dg-options.
3548         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3549         flush loop now that __sync_synchronize has proper memory barrier.
3550         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3551         Add -ffixed-form to dg-options.
3553 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3555         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3556         from subdirectories.
3557         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3558         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3559         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3560         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3561         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3562         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3563         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3564         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3565         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3566         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3567         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3568         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3569         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3570         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3571         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3572         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3573         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3574         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3575         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3576         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3577         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3578         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3579         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3580         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3581         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3583 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3585         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3586         lang_library_path exists.  Use find instead of glob to gather tests.
3587         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3589 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3591         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3592         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3593         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3594         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3595         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3596         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3597         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3598         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3599         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3600         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3601         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3602         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3603         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3605 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3607         * testsuite/libgomp.dg/vla-1.c: New test.
3609         * testsuite/libgomp.fortran/reference2.f90: New test.
3611         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3612         declaration of omp_get_thread_num.
3613         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3614         use omp_lib.
3616         * testsuite/libgomp.fortran/reduction1.f90: New test.
3617         * testsuite/libgomp.fortran/reduction2.f90: New test.
3618         * testsuite/libgomp.fortran/reduction3.f90: New test.
3619         * testsuite/libgomp.fortran/reduction4.f90: New test.
3621 2005-10-13  Richard Henderson  <rth@redhat.com>
3623         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3624         * Makefile.in: Regenerate.
3625         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3626         * libgomp.h: Include bar.h.
3627         (struct gomp_barrier): Remove.
3628         (struct gomp_team): Add barrier.  Replace master_barrier with
3629         master_release.  Replace threads with ordered_release.
3630         (struct gomp_thread): Replace barrier with release.
3631         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3632         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3633         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3634         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3635         (GOMP_single_copy_end): Likewise.
3636         * team.c (gomp_threads_dock): New.
3637         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3638         (gomp_thread_start): Use gomp_barrier_wait.
3639         (new_team, free_team): Update for gomp_team changes.
3640         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3641         (gomp_team_end): Use gomp_barrier_wait.
3642         (initialize_team): Update for gomp_thread changes.
3643         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3644         (gomp_work_share_end_nowait): Use atomic ops when available.
3645         * config/linux/bar.c, config/linux/bar.h: New files.
3646         * config/posix/bar.c, config/posix/bar.h: New files.
3648 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3650         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3651         * testsuite/libgomp.dg/single-2.c: New test.
3653         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3654         lang_link_flags): Unset, so that they aren't inherited from previously
3655         sourced *.exp.
3657         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3659 2005-10-12  Richard Henderson  <rth@redhat.com>
3661         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3662         (libgomp_init): Use lang_test_file, lang_library_path, and
3663         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3665         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3666         (lang_test_file, lang_link_flags): New.
3667         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3669         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3670         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3671         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3672         testsuite/libgomp.c++/parallel-1.C,
3673         testsuite/libgomp.c++/reduction-1.C,
3674         testsuite/libgomp.c++/reduction-2.C,
3675         testsuite/libgomp.c++/reduction-3.C,
3676         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3677         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3678         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3679         New files, largely cribbed from the C testsuite.
3681 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3683         * testsuite/libgomp.fortran/character1.f90: New test.
3684         * testsuite/libgomp.fortran/character2.f90: New test.
3686         * testsuite/libgomp.dg/nested-1.c: New test.
3687         * testsuite/libgomp.dg/nested-2.c: New test.
3688         * testsuite/libgomp.fortran/do1.f90: New test.
3689         * testsuite/libgomp.fortran/do2.f90: New test.
3691         * testsuite/libgomp.fortran/reference1.f90: New test.
3693 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3695         * testsuite/libgomp.dg/reduction-1.c: New test.
3696         * testsuite/libgomp.dg/reduction-2.c: New test.
3697         * testsuite/libgomp.dg/reduction-3.c: New test.
3699 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3701         * testsuite/libgomp.dg/atomic-1.c: New test.
3702         * testsuite/libgomp.dg/atomic-2.c: New test.
3704 2005-10-09  Richard Henderson  <rth@redhat.com>
3706         * critical.c (atomic_lock): New.
3707         (initialize_critical): Initialize it.
3708         (GOMP_atomic_start, GOMP_atomic_end): New.
3709         * libgomp.map: Export them.
3710         * libgomp_g.h: Declare them.
3712         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3714 2005-10-02  Richard Henderson  <rth@redhat.com>
3716         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3717         to XCFLAGS instead of CFLAGS.
3719 2005-09-30  Richard Henderson  <rth@redhat.com>
3721         * configure.ac: Determine whether -pthread or -lpthread is needed.
3722         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3723         * Makefine.in, configure: Rebuild.
3725 2005-09-28  Richard Henderson  <rth@redhat.com>
3727         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3728         * testsuite/libgomp.dg/omp-single-3.c: New test.
3730 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3732         * testsuite/libgomp.dg/omp-single-2.c: New test.
3733         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3735 2005-09-27  Richard Henderson  <rth@redhat.com>
3737         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3738         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3740 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3742         * testsuite/libgomp.dg/omp-loop03.c: New test.
3744 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3746         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3748 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3750         * testsuite/libgomp.dg/omp-single-1.c: New test.
3751         * testsuite/libgomp.dg/shared-1.c: Return 0.
3752         Add prototype for abort.
3753         * testsuite/libgomp.dg/shared-2.c: Likewise.
3755 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3757         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3758         constructs.
3760 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3762         * testsuite/libgomp.dg/shared-1.c: New test.
3763         * testsuite/libgomp.dg/shared-2.c: New test.
3765 2005-09-24  Richard Henderson  <rth@redhat.com>
3767         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3769 2005-09-24  Richard Henderson  <rth@redhat.com>
3771         * iter.c (gomp_iter_static_next): Round up when computing number
3772         of iterations.  Don't bother distributing a remainder equally.
3774         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3775         Don't call srand.  Zero b before testing.
3776         (main): New.
3778 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3780         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3781         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3783 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3785         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3786         without !$omp end do, followed immediately by subroutine end.
3788 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3790         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3792 2005-09-22  Richard Henderson  <rth@redhat.com>
3794         * critical.c (GOMP_critical_name_start): Change argument to void**.
3795         Reuse the pointer space if the mutex fits.
3796         (GOMP_critical_name_end): Likewise.
3797         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3798         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3799         (GOMP_critical_name_end): Likewise.
3800         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3801         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3803 2005-09-20  Richard Henderson  <rth@redhat.com>
3805         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3806         (create_lock_lock): New.
3807         (initialize_critical): Initialize it.
3808         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3809         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3811 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3813         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3815 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3817         * testsuite/libgomp.dg/omp-loop01.c: New test.
3818         * testsuite/libgomp.dg/omp-loop02.c: New test.
3820 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3822         * configure.ac (AC_PROG_FC): Add.
3823         (USE_FORTRAN): New automake conditional.
3824         * configure: Rebuilt.
3825         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3826         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3827         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3828         Add rules to build them.
3829         * Makefile.in: Rebuilt.
3830         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3831         OMP_NEST_LOCK_KIND.
3832         * libgomp.map: Add Fortran wrappers.
3833         * libgomp_f.h.in: New file.
3834         * omp_lib.h.in: New file.
3835         * omp_lib.f90.in: New file.
3836         * fortran.c: New file.
3837         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3838         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3839         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3840         libgfortran has been built.
3841         * testsuite/libgomp.fortran/fortran.exp: New file.
3842         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3843         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3844         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3845         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3846         * testsuite/libgomp.fortran/omp_hello.f: New test.
3847         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3848         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3849         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3850         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3851         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3852         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3853         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3854         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3856 2005-08-30  Richard Henderson  <rth@redhat.com>
3858         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3859         function for when aliases are not usable.
3860         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3861         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3862         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3863         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3864         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3865         GOMP_loop_ordered_guided_next): Likewise.
3866         * ordered.c (GOMP_ordered_start): Likewise.
3868 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3870         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3871         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3872         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3873         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3874         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3875         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3876         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3877         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3878         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3880 2005-07-07  Eric Christopher  <echristo@redhat.com>
3881             Diego Novillo  <dnovillo@redhat.com>
3883         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3884         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3885         up code.
3886         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3887         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3888         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3889         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3890         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3891         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3892         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3894 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3896         * TOPLEVEL.patch: Remove.
3898 2005-05-16  Richard Henderson  <rth@redhat.com>
3900         * configure.ac: Test for clock_gettime.
3901         * config.h.in, configure: Rebuild.
3902         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3903         (omp_get_wtime): Use clock_gettime if available.
3904         (omp_get_wtick): Use clock_getres if available.
3906 2005-05-11  Richard Henderson  <rth@redhat.com>
3908         * config/linux/ia64/futex.h: New file.
3909         * configure.tgt: Use it.
3911         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3913 2005-05-07  Richard Henderson  <rth@redhat.com>
3915         * config/linux/powerpc/futex.h: New file.
3916         * configure.tgt: Use it.
3918         * config/linux/i486/futex.h: Merge ...
3919         * config/linux/x86_64/futex.h: ... into ...
3920         * config/linux/x86/futex.h: ... here.
3921         * configure.tgt: Update to match.
3923 2005-05-06  Richard Henderson  <rth@redhat.com>
3925         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3926         * config/linux/i486/futex.h: Likewise.
3927         * config/linux/x86_64/futex.h: Likewise.
3929         * config/linux/lock.c: New file.
3930         * config/linux/omp-lock.h: New file.
3932         * critical.c, env.h: Don't include omp.h
3933         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3934         * config/posix/time.c: Likewise.
3935         * config/posix/omp-lock.h: New file.
3936         * libgomp.h: Include omp-lock.h and omp.h.
3937         * Makefile.am (nodist_include_HEADERS): New.
3938         (omp.h): New rule.
3939         * configure.ac (PERL): New.
3940         * mkomp_h.pl: New file.
3941         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3942         with templates.
3943         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3945         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3946         build directory.  Re-add -march=i486 hack.
3948         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3949         (libgomp_link_flags): Remove.
3950         (libgomp_initialized): Remove.
3951         (libgomp_init): Don't protect from reinitialization.  Copy code
3952         from libstdc++ for getting the multilib set correctly.
3954 2005-05-05  Richard Henderson  <rth@redhat.com>
3956         * config/linux/alpha/futex.h: New file.
3957         * configure.tgt (alpha*-*-linux*): Use it.
3959         * config/posix/mutex.c: New file.
3960         * config/posix/sem.c: Use libgomp.h.
3962         * configure.tgt (x86_64-linux): Also test CC for -m32.
3963         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3965         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3966         after $gccpath.
3968         * Makefile.am (SUBDIRS): New.
3969         (libgomp_la_LDFLAGS): Add -lpthread.
3970         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3971         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3973         * libgomp_g.h: New file.
3974         * libgomp.h: Split out all public declarations to libgomp_g.h.
3975         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3976         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3977         * config/linux/sem.h: Likewise.
3978         * config/posix/sem.h: Likewise.
3980         * Makefile.am (AM_LDFLAGS): New.
3981         (libgomp_version_script): Split out from ...
3982         (libgomp_la_LDFLAGS): ... here.
3983         (libgomp_version_info): New.
3984         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3985         (LIBGOMP_ENABLE): New.
3986         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3987         (LIBGOMP_ENABLE_SYMVERS): New.
3988         * configure.ac (AC_INIT): Version 1.0.
3989         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3990         (enable-linux-futex): Likewise.  Rename from enable-futex.
3991         (libtool_VERSION): New.
3992         (LIBGOMP_ENABLE_SYMVERS): Use it.
3993         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3994         * Makefile.in, aclocal.m4, configure: Rebuild.
3996         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3997         (gomp_mutex_unlock_slow): Fix typo.
3998         * config/linux/sem.c: Similarly.
3999         (gomp_sem_post_slow): Fix typo.
4000         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4001         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4002         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4004         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4005         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4006         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4007         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4008         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4009         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4010         LDFLAGS.  Pull enable_futex check to top-level.
4011         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4012         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4014         First attempt at real configury.
4015         * Makefile, config.h: Remove file.
4016         * Makefile.am, Makefile.in: New file.
4017         * acinclude.m4 aclocal.m4: New file.
4018         * configure.ac, configure.tgt, configure: New file.
4020         * config/posix/lock.c: Rename from sys-lock.c.
4021         * config/posix/mutex.h: Rename from sys-mutex.h.
4022         * config/posix/sem.c: Rename from sys-sem.c.
4023         * config/posix/sem.h: Rename from sys-sem.h.
4024         * config/posix/proc.c: Rename from sys-proc.c.
4025         * config/posix/time.c: Rename from sys-proc.c.
4027         * config/linux/mutex.c: New file.
4028         * config/linux/mutex.h: New file.
4029         * config/linux/sem.c: New file.
4030         * config/linux/sem.h: New file.
4031         * config/linux/i486/futex.h: New file.
4032         * config/linux/x86_64/futex.h: New file.
4034 2005-05-04  Richard Henderson  <rth@redhat.com>
4036         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4037         * libgomp.h: Declare them.
4038         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4039         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4041 2005-05-04  Richard Henderson  <rth@redhat.com>
4043         * libgomp-1 code drop
4045 2005-05-04  Richard Henderson  <rth@redhat.com>
4047         * iter.c (gomp_iter_static_next): Return tri-state on 0.
4048         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4049         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4050         (gomp_iter_static_next): Update.
4051         (gomp_ordered_static_next): Update.
4052         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4053         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
4054         totally empty range.
4055         (gomp_loop_ordered_static_next): Refine test for calling
4056         gomp_ordered_static_next.
4057         * testsuite/ordered-1.c: Add case for more threads than iterations.
4059         * iter.c (gomp_iter_runtime_next_locked): Remove.
4060         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4061         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4062         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4063         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4064         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4065         gomp_loop_ordered_guided_next): Downcase name, make static, add
4066         an external alias with the old name.
4067         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4068         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4069         switch and call one of the above static functions.
4070         * libgomp.h: Update.
4072         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4073         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4074         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4075         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4076         GOMP_loop_ordered_guided_start): Update to match.
4077         * sections.c (GOMP_sections_start): Likewise.
4078         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4080         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4081         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4082         Use bounds check instead of modulus.
4083         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4084         (gomp_ordered_last): Don't sync with ordered_owner here.
4085         (gomp_ordered_next): Likewise.
4086         (gomp_ordered_static_loop_next): Likewise.
4087         * loop.c, libgomp.h: Update to match.
4089         * libgomp.h (GOMP_barrier): Declare.
4091         * testsuite/barrier-1.c: New file.
4092         * testsuite/critical-1.c: New file.
4093         * testsuite/ordered-2.c: New file.
4094         * testsuite/ordered-1.c: New file.
4095         * testsuite/sections-1.c: New file.
4096         * testsuite/single-1.c: New file.
4097         * testsuite/Makefile (TESTS): Add them.
4099 2005-05-04  Richard Henderson  <rth@redhat.com>
4101         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4102         * loop.c (GOMP_loop_static_start): If not the startup thread,
4103         acquire the mutex to wait for initialization complete.
4104         (GOMP_loop_ordered_static_start): Likewise.
4105         (GOMP_loop_ordered_runtime_start): Likewise.
4106         (GOMP_loop_ordered_static_first): Remove.
4107         (GOMP_loop_ordered_dynamic_first): Remove.
4108         (GOMP_loop_ordered_guided_first): Remove.
4109         (GOMP_loop_ordered_runtime_first): Remove.
4110         * ordered.c (gomp_ordered_loop_first): Post to own release when
4111         we're the first thread.
4112         (gomp_ordered_loop_last): Wait on release if not owner.
4113         (gomp_ordered_loop_next): Likewise.
4114         (gomp_ordered_static_loop_init): New.
4115         (gomp_ordered_static_loop_next): Use ordered_owner.
4116         (GOMP_ordered_start): Likewise.
4117         * work.c (gomp_new_work_share): Initialize ordered_owner.
4119 2005-05-03  Richard Henderson  <rth@redhat.com>
4121         * Makefile (OPT): New.
4122         (CFLAGS): Use it.
4124         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4125         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4126         * libgomp.h, libgomp.map, NOTES: Update to match.
4128         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4129         Add initialized and thr members.
4130         (gomp_thread_start): Pause when initially spawned to wait for
4131         the whole team to be created.
4132         (gomp_team_start): Release team members at the end.
4134         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4135         (f_foo_1): Use GOMP_loop_end.
4136         (f_foo_2): Use GOMP_loop_end_nowait.
4138         * testsuite/loop-2.c: New file.
4139         * testsuite/Makefile (TESTS): Add it.
4141 2005-05-03  Richard Henderson  <rth@redhat.com>
4143         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4144         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4145         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4146         initial work_share.
4148         * testsuite/Makefile: New file.
4149         * testsuite/loop-1.c: New file.
4151 2005-05-03  Richard Henderson  <rth@redhat.com>
4153         Initial implementation and checkin.