2015-11-24 Steve Ellcey <sellcey@imgtec.com>
[official-gcc.git] / libgomp / ChangeLog
bloba083f35f7626072b6c48147926303cabe5c55b97
1 2015-11-22  James Norris  <jnorris@codesourcery.com>
2             Cesar Philippidis  <cesar@codesourcery.com>
4         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
8         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
12         PR middle-end/68221
13         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14         * testsuite/libgomp.c/reduction-12.c: Likewise.
15         * testsuite/libgomp.c++/reduction-11.C: Likewise.
16         * testsuite/libgomp.c++/reduction-12.C: Likewise.
18 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
20         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
21         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
22         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
23         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
24         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
25         and fix.
26         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
27         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
29 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
31         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
32         worker & gang cases.
33         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
35 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
37         * config/nvptx/priority_queue.c: New file.
39 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
41         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
42         sections.
44 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
45             Aldy Hernandez  <aldyh@redhat.com>
46             Ilya Verbin  <ilya.verbin@intel.com>
48         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
49         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
50         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
51         iterators or IV by chunk size.
52         * parallel.c (gomp_resolve_num_threads): Don't assume that
53         if thr->ts.team is non-NULL, then pool must be non-NULL.
54         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
55         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
56         GOMP_PLUGIN_target_task_completion.
57         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
58         * Makefile.in: Regenerate.
59         * libgomp.h: Shuffle prototypes and forward definitions around so
60         priority queues can be defined.
61         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
62         (enum gomp_target_task_state): New enum.
63         (struct gomp_target_task): Add state, tgt, task and team fields.
64         (gomp_create_target_task): Change return type to bool, add
65         state argument.
66         (gomp_target_task_fn): Change return type to bool.
67         (struct gomp_device_descr): Add async_run_func.
68         (struct gomp_task): Remove children, next_child, prev_child,
69         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
70         Add pnode field.
71         (struct gomp_taskgroup): Remove children.
72         Add taskgroup_queue.
73         (struct gomp_team): Change task_queue type to a priority queue.
74         (splay_compare): Define inline.
75         (priority_queue_offset): New.
76         (priority_node_to_task): New.
77         (task_to_priority_node): New.
78         * oacc-mem.c: Do not include splay-tree.h.
79         * priority_queue.c: New file.
80         * priority_queue.h: New file.
81         * splay-tree.c: Do not include splay-tree.h.
82         (splay_tree_foreach_internal): New.
83         (splay_tree_foreach): New.
84         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
85         (splay_tree_callback): Define typedef.
86         * target.c (splay_compare): Move to libgomp.h.
87         (GOMP_target): Don't adjust *thr in any way around running offloaded
88         task.
89         (GOMP_target_ext): Likewise.  Handle target nowait.
90         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
91         return value from gomp_create_target_task, if false, fallthrough
92         as if no dependencies exist.
93         (gomp_target_task_fn): Change return type to bool, return true
94         if the task should have another part scheduled later.  Handle
95         target nowait.
96         (gomp_load_plugin_for_device): Initialize async_run.
97         * task.c (gomp_init_task): Initialize children_queue.
98         (gomp_clear_parent_in_list): New.
99         (gomp_clear_parent_in_tree): New.
100         (gomp_clear_parent): Handle priorities.
101         (GOMP_task): Likewise.
102         (priority_queue_move_task_first,
103         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
104         New functions.
105         (gomp_create_target_task): Use priority queues.  Change return type
106         to bool, add state argument, return false if for async
107         {{enter,exit} data,update} constructs no dependencies need to be
108         waited for, handle target nowait.  Set task->fn to NULL instead of
109         gomp_target_task_fn.
110         (verify_children_queue): Remove.
111         (priority_list_upgrade_task): New.
112         (priority_queue_upgrade_task): New.
113         (verify_task_queue): Remove.
114         (priority_list_downgrade_task): New.
115         (priority_queue_downgrade_task): New.
116         (gomp_task_run_pre): Use priority queues.
117         Abstract code out to priority_queue_downgrade_task.
118         (gomp_task_run_post_handle_dependers): Use priority queues.
119         (gomp_task_run_post_remove_parent): Likewise.
120         (gomp_task_run_post_remove_taskgroup): Likewise.
121         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
122         tasks specially.
123         (GOMP_taskwait): Likewise.
124         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
125         priority-queue_upgrade_task.
126         (GOMP_taskgroup_start): Use priority queues.
127         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
128         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
129         barrier.
130         * taskloop.c (GOMP_taskloop): Handle priorities.
131         * team.c (gomp_new_team): Call priority_queue_init.
132         (free_team): Call priority_queue_free.
133         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
134         team created for target nowait in implicit parallel region.
135         (gomp_team_start): For nested check, test thr->ts.level instead of
136         thr->ts.team != NULL.
137         * testsuite/libgomp.c/doacross-3.c: New test.
138         * testsuite/libgomp.c/ordered-5.c: New test.
139         * testsuite/libgomp.c/priority.c: New test.
140         * testsuite/libgomp.c/target-31.c: New test.
141         * testsuite/libgomp.c/target-32.c: New test.
142         * testsuite/libgomp.c/target-33.c: New test.
143         * testsuite/libgomp.c/target-34.c: New test.
145 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
147         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
149         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
150         loop is sequential.
152 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
154         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
155         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
157 2015-11-12  James Norris  <jnorris@codesourcery.com>
158             Joseph Myers  <joseph@codesourcery.com>
160         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
161         * oacc-parallel.c (GOACC_declare): New function.
162         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
163         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
164         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
165         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
166         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
168 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
170         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
172 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
174         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
175         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
177 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
179         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
180         inadvertent commit.
182 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
184         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
185         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
186         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
187         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
188         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
190 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
192         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
193         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
195 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
196             Ilya Verbin  <ilya.verbin@intel.com>
198         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
199         GOMP_loop_nonmonotonic_dynamic_start,
200         GOMP_loop_nonmonotonic_guided_next,
201         GOMP_loop_nonmonotonic_guided_start,
202         GOMP_loop_ull_nonmonotonic_dynamic_next,
203         GOMP_loop_ull_nonmonotonic_dynamic_start,
204         GOMP_loop_ull_nonmonotonic_guided_next,
205         GOMP_loop_ull_nonmonotonic_guided_start,
206         GOMP_parallel_loop_nonmonotonic_dynamic,
207         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
208         (GOMP_target_41): Renamed to ...
209         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
210         arguments.
211         (GOMP_target_data_41): Renamed to ...
212         (GOMP_target_data_ext): ... this.
213         (GOMP_target_update_41): Renamed to ...
214         (GOMP_target_update_ext): ... this.
215         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
216         GOMP_target_data_ext and GOMP_target_update_ext instead of
217         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
218         Export GOMP_loop_nonmonotonic_dynamic_next,
219         GOMP_loop_nonmonotonic_dynamic_start,
220         GOMP_loop_nonmonotonic_guided_next,
221         GOMP_loop_nonmonotonic_guided_start,
222         GOMP_loop_ull_nonmonotonic_dynamic_next,
223         GOMP_loop_ull_nonmonotonic_dynamic_start,
224         GOMP_loop_ull_nonmonotonic_guided_next,
225         GOMP_loop_ull_nonmonotonic_guided_start,
226         GOMP_parallel_loop_nonmonotonic_dynamic and
227         GOMP_parallel_loop_nonmonotonic_guided.
228         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
229         GOMP_parallel_loop_nonmonotonic_guided,
230         GOMP_loop_nonmonotonic_dynamic_start,
231         GOMP_loop_nonmonotonic_guided_start,
232         GOMP_loop_nonmonotonic_dynamic_next,
233         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
234         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
235         GOMP_loop_ull_nonmonotonic_guided_start,
236         GOMP_loop_ull_nonmonotonic_dynamic_next,
237         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
238         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
239         functions.
240         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
241         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
242         Use gomp_map_val function.
243         (gomp_target_fallback_firstprivate): New static function.
244         (GOMP_target_41): Renamed to ...
245         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
246         arguments.  Move firstprivate fallback handling into a new
247         function.
248         (GOMP_target_data_41): Renamed to ...
249         (GOMP_target_data_ext): ... this.
250         (GOMP_target_update_41): Renamed to ...
251         (GOMP_target_update_ext): ... this.
252         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
253         gomp_map_0len_lookup instead of gomp_map_lookup.
254         (omp_target_is_present): Use gomp_map_0len_lookup instead of
255         gomp_map_lookup.
256         * testsuite/libgomp.c/target-28.c: Likewise.
257         * testsuite/libgomp.c/monotonic-1.c: New test.
258         * testsuite/libgomp.c/monotonic-2.c: New test.
259         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
260         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
261         * testsuite/libgomp.c/pr66199-5.c: New test.
262         * testsuite/libgomp.c/pr66199-6.c: New test.
263         * testsuite/libgomp.c/pr66199-7.c: New test.
264         * testsuite/libgomp.c/pr66199-8.c: New test.
265         * testsuite/libgomp.c/pr66199-9.c: New test.
266         * testsuite/libgomp.c/reduction-11.c: New test.
267         * testsuite/libgomp.c/reduction-12.c: New test.
268         * testsuite/libgomp.c/reduction-13.c: New test.
269         * testsuite/libgomp.c/reduction-14.c: New test.
270         * testsuite/libgomp.c/reduction-15.c: New test.
271         * testsuite/libgomp.c/target-12.c (main): Adjust for
272         omp_target_is_present change for one-past-last element.
273         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
274         the same var is both mapped and privatized.
275         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
276         handling of zero-length array sections.
277         * testsuite/libgomp.c/target-28.c: New test.
278         * testsuite/libgomp.c/target-29.c: New test.
279         * testsuite/libgomp.c/target-30.c: New test.
280         * testsuite/libgomp.c/target-teams-1.c: New test.
281         * testsuite/libgomp.c++/member-6.C: New test.
282         * testsuite/libgomp.c++/member-7.C: New test.
283         * testsuite/libgomp.c++/monotonic-1.C: New test.
284         * testsuite/libgomp.c++/monotonic-2.C: New test.
285         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
286         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
287         * testsuite/libgomp.c++/pr66199-3.C: New test.
288         * testsuite/libgomp.c++/pr66199-4.C: New test.
289         * testsuite/libgomp.c++/pr66199-5.C: New test.
290         * testsuite/libgomp.c++/pr66199-6.C: New test.
291         * testsuite/libgomp.c++/pr66199-7.C: New test.
292         * testsuite/libgomp.c++/pr66199-8.C: New test.
293         * testsuite/libgomp.c++/pr66199-9.C: New test.
294         * testsuite/libgomp.c++/reduction-11.C: New test.
295         * testsuite/libgomp.c++/reduction-12.C: New test.
296         * testsuite/libgomp.c++/target-13.C: New test.
297         * testsuite/libgomp.c++/target-14.C: New test.
298         * testsuite/libgomp.c++/target-15.C: New test.
299         * testsuite/libgomp.c++/target-16.C: New test.
300         * testsuite/libgomp.c++/target-17.C: New test.
301         * testsuite/libgomp.c++/target-18.C: New test.
302         * testsuite/libgomp.c++/target-19.C: New test.
304 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
306         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
307         and reduction copy.
308         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
309         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
310         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
311         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
312         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
313         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
314         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
315         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
316         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
317         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
318         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
319         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
320         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
321         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
323 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
325         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
326         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
327         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
328         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
329         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
330         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
331         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
332         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
334 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
336         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
337         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
338         (GOMP_OFFLOAD_openacc_parallel): Likewise.
339         * oacc-host.c (host_openacc_exec): Likewise.
340         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
342 2015-11-03  Julian Brown  <julian@codesourcery.com>
343             Thomas Schwinge  <thomas@codesourcery.com>
345         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
346         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
347         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
348         Likewise.
349         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
350         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
352 2015-11-03  James Norris  <jnorris@codesourcery.com>
354         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
355         file.
356         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
357         Likewise.
358         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
359         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
360         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
361         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
362         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
364 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
366         * openacc.h (enum acc_device_t): Reformat. Ensure layout
367         compatibility.
368         (enum acc_async_t): Reformat.
369         (acc_on_device): Declare compatible with builtin and provide C++
370         wrapper.
371         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
373 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
374             Cesar Philippidis  <cesar@codesourcery.com>
376         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
377         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
378         ... this.  Add a description of the test at the top of the file.
379         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
380         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
381         ... this.  Add a description of the test at the top of the file.
383 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
385         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
386         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
387         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
388         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
389         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
390         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
392 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
394         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
395         dimensions.
397 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
399         PR testsuite/68063
400         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
402 2015-10-27  James Norris  <jnorris@codesourcery.com>
404         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
405         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
407 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
409         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
410         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
412         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
413         acc_device_nvidia usage.
414         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
415         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
416         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
418         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
419         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
421         PR libgomp/66518
422         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
424         PR libgomp/65437
425         PR libgomp/66518
426         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
427         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
429 2015-10-23  Tom de Vries  <tom@codesourcery.com>
431         PR testsuite/68063
432         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
434 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
436         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
437         vector_length.
438         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
440 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
441             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
443         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
444         to 0 when mapnum is 0.
446 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
448         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
449         Cast to int from int32_t.
451 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
452             Aldy Hernandez  <aldyh@redhat.com>
453             Ilya Verbin  <ilya.verbin@intel.com>
455         * config/linux/affinity.c (omp_get_place_num_procs,
456         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
457         * config/linux/doacross.h: New file.
458         * config/posix/affinity.c (omp_get_place_num_procs,
459         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
460         * config/posix/doacross.h: New file.
461         * env.c: Include gomp-constants.h.
462         (struct gomp_task_icv): Rename run_sched_modifier to
463         run_sched_chunk_size.
464         (gomp_max_task_priority_var): New variable.
465         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
466         (handle_omp_display_env): Change _OPENMP value from 201307 to
467         201511.  Print OMP_MAX_TASK_PRIORITY.
468         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
469         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
470         chunk_size and run_sched_modifier to run_sched_chunk_size.
471         (omp_get_max_task_priority, omp_get_initial_device,
472         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
473         omp_get_partition_place_nums): New functions.
474         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
475         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
476         to chunk_size.
477         (omp_get_num_places_, omp_get_place_num_procs_,
478         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
479         omp_get_place_proc_ids_8_, omp_get_place_num_,
480         omp_get_partition_num_places_, omp_get_partition_place_nums_,
481         omp_get_partition_place_nums_8_, omp_get_initial_device_,
482         omp_get_max_task_priority_): New functions.
483         * libgomp_g.h (GOMP_loop_doacross_static_start,
484         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
485         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
486         GOMP_loop_ull_doacross_dynamic_start,
487         GOMP_loop_ull_doacross_guided_start,
488         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
489         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
490         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
491         GOMP_target_data_41, GOMP_target_update_41,
492         GOMP_target_enter_exit_data): New prototypes.
493         (GOMP_task): Add prototype argument.
494         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
495         (struct gomp_doacross_work_share): New type.
496         (struct gomp_work_share): Add doacross field.
497         (struct gomp_task_icv): Rename run_sched_modifier to
498         run_sched_chunk_size.
499         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
500         GOMP_TASK_UNDEFERRED.  Add comments.
501         (struct gomp_task_depend_entry): Add comments.
502         (struct gomp_task): Likewise.
503         (struct gomp_taskgroup): Likewise.
504         (struct gomp_target_task): New type.
505         (struct gomp_team): Add comment.
506         (gomp_get_place_proc_ids_8, gomp_doacross_init,
507         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
508         gomp_create_target_task, gomp_target_task_fn): New prototypes.
509         (struct target_var_desc): New type.
510         (struct target_mem_desc): Adjust comment.  Use struct
511         target_var_desc instead of splay_tree_key for list.
512         (REFCOUNT_INFINITY): Define.
513         (struct splay_tree_key_s): Remove copy_from field.
514         (struct gomp_device_descr): Add dev2dev_func field.
515         (enum gomp_map_vars_kind): New enum.
516         (gomp_map_vars): Add one argument.
517         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
518         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
519         omp_get_place_num_procs, omp_get_place_num_procs_,
520         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
521         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
522         omp_get_place_num_, omp_get_partition_num_places,
523         omp_get_partition_num_places_, omp_get_partition_place_nums,
524         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
525         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
526         omp_target_free, omp_target_is_present, omp_target_memcpy,
527         omp_target_memcpy_rect, omp_target_associate_ptr and
528         omp_target_disassociate_ptr.
529         (GOMP_4.0.2): Renamed to ...
530         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
531         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
532         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
533         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
534         GOMP_loop_doacross_static_start, GOMP_doacross_post,
535         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
536         GOMP_loop_ull_doacross_guided_start,
537         GOMP_loop_ull_doacross_runtime_start,
538         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
539         GOMP_doacross_ull_wait.
540         * libgomp.texi: Document omp_get_max_task_priority.
541         Rename modifier argument to chunk_size for omp_set_schedule and
542         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
543         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
544         to run_sched_chunk_size renaming.
545         (GOMP_loop_ordered_runtime_start): Likewise.
546         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
547         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
548         GOMP_parallel_loop_runtime_start): New functions.
549         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
550         to run_sched_chunk_size renaming.
551         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
552         GOMP_loop_doacross_guided_start): New functions or aliases.
553         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
554         run_sched_modifier to run_sched_chunk_size renaming.
555         (GOMP_loop_ull_ordered_runtime_start): Likewise.
556         (gomp_loop_ull_doacross_static_start,
557         gomp_loop_ull_doacross_dynamic_start,
558         gomp_loop_ull_doacross_guided_start,
559         GOMP_loop_ull_doacross_runtime_start): New functions.
560         (GOMP_loop_ull_doacross_static_start,
561         GOMP_loop_ull_doacross_dynamic_start,
562         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
563         * oacc-mem.c (acc_map_data, present_create_copy,
564         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
565         to gomp_map_vars.
566         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
567         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
568         instead of false to gomp_map_vars.
569         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
570         * omp.h.in (omp_lock_hint_t): New type.
571         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
572         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
573         omp_get_place_num, omp_get_partition_num_places,
574         omp_get_partition_place_nums, omp_get_initial_device,
575         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
576         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
577         omp_target_associate_ptr, omp_target_disassociate_ptr): New
578         prototypes.
579         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
580         (omp_lock_hint_none, omp_lock_hint_uncontended,
581         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
582         omp_lock_hint_speculative): New parameters.
583         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
584         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
585         omp_get_place_num, omp_get_partition_num_places,
586         omp_get_partition_place_nums, omp_get_initial_device,
587         omp_get_max_task_priority): New interfaces.
588         (omp_set_schedule, omp_get_schedule): Rename modifier argument
589         to chunk_size.
590         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
591         (omp_lock_hint_none, omp_lock_hint_uncontended,
592         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
593         omp_lock_hint_speculative): New parameters.
594         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
595         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
596         omp_get_place_num, omp_get_partition_num_places,
597         omp_get_partition_place_nums, omp_get_initial_device,
598         omp_get_max_task_priority): New functions and subroutines.
599         * ordered.c: Include stdarg.h and string.h.
600         (MAX_COLLAPSED_BITS): Define.
601         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
602         gomp_doacross_ull_init, GOMP_doacross_ull_post,
603         GOMP_doacross_ull_wait): New functions.
604         * target.c: Include errno.h.
605         (resolve_device): If device is not initialized, call
606         gomp_init_device on it.
607         (gomp_map_lookup): New function.
608         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
609         Don't bump refcount if REFCOUNT_INFINITY.  Handle
610         GOMP_MAP_ALWAYS_TO_P.
611         (get_kind): Rename is_openacc argument to short_mapkind.
612         (gomp_map_pointer): Use gomp_map_lookup.
613         (gomp_map_fields_existing): New function.
614         (gomp_map_vars): Rename is_openacc argument to short_mapkind
615         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
616         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
617         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
618         Adjust for tgt->list changed type and copy_from living in there.
619         (gomp_copy_from_async): Adjust for tgt->list changed type and
620         copy_from living in there.
621         (gomp_unmap_vars): Likewise.
622         (gomp_update): Likewise.  Rename is_openacc argument to
623         short_mapkind.  Don't fail if object is not mapped.
624         (gomp_load_image_to_device): Initialize refcount to
625         REFCOUNT_INFINITY.
626         (gomp_target_fallback): New function.
627         (gomp_get_target_fn_addr): Likewise.
628         (GOMP_target): Adjust gomp_map_vars caller, use
629         gomp_get_target_fn_addr and gomp_target_fallback.
630         (GOMP_target_41): New function.
631         (gomp_target_data_fallback): New function.
632         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
633         (GOMP_target_data_41): New function.
634         (GOMP_target_update): Adjust gomp_update caller.
635         (GOMP_target_update_41): New function.
636         (gomp_exit_data, GOMP_target_enter_exit_data,
637         gomp_target_task_fn, omp_target_alloc, omp_target_free,
638         omp_target_is_present, omp_target_memcpy,
639         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
640         omp_target_associate_ptr, omp_target_disassociate_ptr,
641         gomp_load_plugin_for_device): New functions.
642         * task.c: Include gomp-constants.h.  Include taskloop.c
643         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
644         (gomp_task_handle_depend): New function.
645         (GOMP_task): Use it.  Add priority argument.  Use
646         gomp-constant.h constants instead of hardcoded numbers.
647         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
648         (gomp_create_target_task): New function.
649         (verify_children_queue, verify_taskgroup_queue,
650         verify_task_queue): New functions.
651         (gomp_task_run_pre): Call verify_*_queue functions.
652         If an upcoming tied task is about to leave the sibling or
653         taskgroup queues in an invalid state, adjust appropriately.
654         Remove taskgroup argument.  Add comments.
655         (gomp_task_run_post_handle_dependers): Add comments.
656         (gomp_task_run_post_remove_parent): Likewise.
657         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
658         (GOMP_taskwait): Likewise.  Add comments.
659         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
660         problem such that the first non parent_depends_on task does not
661         end up at the end of the children queue.
662         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
663         GOMP_TASK_UNDEFERRED.
664         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
665         * taskloop.c: New file.
666         * testsuite/lib/libgomp.exp
667         (check_effective_target_offload_device_nonshared_as): New proc.
668         * testsuite/libgomp.c/affinity-2.c: New test.
669         * testsuite/libgomp.c/doacross-1.c: New test.
670         * testsuite/libgomp.c/doacross-2.c: New test.
671         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
672         Add map clause to target.
673         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
674         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
675         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
676         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
677         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
678         Likewise.
679         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
680         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
681         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
682         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
683         not defined.  Use those where needed.
684         * testsuite/libgomp.c/for-4.c: New test.
685         * testsuite/libgomp.c/for-5.c: New test.
686         * testsuite/libgomp.c/for-6.c: New test.
687         * testsuite/libgomp.c/linear-1.c: New test.
688         * testsuite/libgomp.c/ordered-4.c: New test.
689         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
690         only allowed on the loop iterator.
691         * testsuite/libgomp.c/pr66199-3.c: New test.
692         * testsuite/libgomp.c/pr66199-4.c: New test.
693         * testsuite/libgomp.c/reduction-7.c: New test.
694         * testsuite/libgomp.c/reduction-8.c: New test.
695         * testsuite/libgomp.c/reduction-9.c: New test.
696         * testsuite/libgomp.c/reduction-10.c: New test.
697         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
698         map(tofrom:s).
699         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
700         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
701         * testsuite/libgomp.c/target-11.c: New test.
702         * testsuite/libgomp.c/target-12.c: New test.
703         * testsuite/libgomp.c/target-13.c: New test.
704         * testsuite/libgomp.c/target-14.c: New test.
705         * testsuite/libgomp.c/target-15.c: New test.
706         * testsuite/libgomp.c/target-16.c: New test.
707         * testsuite/libgomp.c/target-17.c: New test.
708         * testsuite/libgomp.c/target-18.c: New test.
709         * testsuite/libgomp.c/target-19.c: New test.
710         * testsuite/libgomp.c/target-20.c: New test.
711         * testsuite/libgomp.c/target-21.c: New test.
712         * testsuite/libgomp.c/target-22.c: New test.
713         * testsuite/libgomp.c/target-23.c: New test.
714         * testsuite/libgomp.c/target-24.c: New test.
715         * testsuite/libgomp.c/target-25.c: New test.
716         * testsuite/libgomp.c/target-26.c: New test.
717         * testsuite/libgomp.c/target-27.c: New test.
718         * testsuite/libgomp.c/taskloop-1.c: New test.
719         * testsuite/libgomp.c/taskloop-2.c: New test.
720         * testsuite/libgomp.c/taskloop-3.c: New test.
721         * testsuite/libgomp.c/taskloop-4.c: New test.
722         * testsuite/libgomp.c++/ctor-13.C: New test.
723         * testsuite/libgomp.c++/doacross-1.C: New test.
724         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
725         Replace offload_device with offload_device_nonshared_as.
726         * testsuite/libgomp.c++/for-12.C: New test.
727         * testsuite/libgomp.c++/for-13.C: New test.
728         * testsuite/libgomp.c++/for-14.C: New test.
729         * testsuite/libgomp.c++/linear-1.C: New test.
730         * testsuite/libgomp.c++/member-1.C: New test.
731         * testsuite/libgomp.c++/member-2.C: New test.
732         * testsuite/libgomp.c++/member-3.C: New test.
733         * testsuite/libgomp.c++/member-4.C: New test.
734         * testsuite/libgomp.c++/member-5.C: New test.
735         * testsuite/libgomp.c++/ordered-1.C: New test.
736         * testsuite/libgomp.c++/reduction-5.C: New test.
737         * testsuite/libgomp.c++/reduction-6.C: New test.
738         * testsuite/libgomp.c++/reduction-7.C: New test.
739         * testsuite/libgomp.c++/reduction-8.C: New test.
740         * testsuite/libgomp.c++/reduction-9.C: New test.
741         * testsuite/libgomp.c++/reduction-10.C: New test.
742         * testsuite/libgomp.c++/reference-1.C: New test.
743         * testsuite/libgomp.c++/simd14.C: New test.
744         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
745         * testsuite/libgomp.c++/target-5.C: New test.
746         * testsuite/libgomp.c++/target-6.C: New test.
747         * testsuite/libgomp.c++/target-7.C: New test.
748         * testsuite/libgomp.c++/target-8.C: New test.
749         * testsuite/libgomp.c++/target-9.C: New test.
750         * testsuite/libgomp.c++/target-10.C: New test.
751         * testsuite/libgomp.c++/target-11.C: New test.
752         * testsuite/libgomp.c++/target-12.C: New test.
753         * testsuite/libgomp.c++/taskloop-1.C: New test.
754         * testsuite/libgomp.c++/taskloop-2.C: New test.
755         * testsuite/libgomp.c++/taskloop-3.C: New test.
756         * testsuite/libgomp.c++/taskloop-4.C: New test.
757         * testsuite/libgomp.c++/taskloop-5.C: New test.
758         * testsuite/libgomp.c++/taskloop-6.C: New test.
759         * testsuite/libgomp.c++/taskloop-7.C: New test.
760         * testsuite/libgomp.c++/taskloop-8.C: New test.
761         * testsuite/libgomp.c++/taskloop-9.C: New test.
762         * testsuite/libgomp.fortran/affinity1.f90: New test.
763         * testsuite/libgomp.fortran/affinity2.f90: New test.
765 2015-10-13  Tom de Vries  <tom@codesourcery.com>
767         PR tree-optimization/67476
768         * testsuite/libgomp.c/autopar-3.c: New test.
769         * testsuite/libgomp.c/autopar-4.c: New test.
770         * testsuite/libgomp.c/autopar-5.c: New test.
771         * testsuite/libgomp.c/autopar-6.c: New test.
772         * testsuite/libgomp.c/autopar-7.c: New test.
773         * testsuite/libgomp.c/autopar-8.c: New test.
775 2015-10-12  James Norris  <jnorris@codesourcery.com>
777         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
778         initializer.
780 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
782         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
783         using load_gcc_lib.
785 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
787         * oacc-ptx.h: Remove file, moving its content into...
788         * config/nvptx/fortran.c: ... here...
789         * config/nvptx/oacc-init.c: ..., here...
790         * config/nvptx/oacc-parallel.c: ..., and here.
791         * config/nvptx/openacc.f90: New file.
792         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
793         (link_ptx): Don't link in predefined bits of PTX code.
795 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
796             Bernd Schmidt <bernds@codesourcery.com>
798         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
799         (struct targ_ptx_obj): New.
800         (nvptx_tdata): Move earlier, change data format.
801         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
802         objects.
803         (GOMP_OFFLOAD_load_image): Adjust.
805 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
807         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
808         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
809         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
810         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
811         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
812         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
813         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
814         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
815         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
816         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
817         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
818         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
819         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
820         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
821         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
822         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
823         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
824         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
825         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
826         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
827         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
828         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
829         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
830         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
831         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
832         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
833         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
834         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
835         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
836         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
837         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
838         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
839         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
840         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
841         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
842         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
843         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
844         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
845         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
846         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
847         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
848         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
849         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
850         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
851         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
852         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
853         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
854         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
855         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
856         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
857         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
858         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
859         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
860         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
861         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
862         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
863         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
864         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
865         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
866         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
867         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
868         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
869         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
871 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
873         * oacc-init.c (acc_on_device): Force optimization level.
875 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
877         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
878         (cuda_errlist): Delete.
879         (cuda_error): Reimplement.
881 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
883         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
884         array.
885         * libgomp.map (GOACC_parallel_keyed): New.
886         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
887         all callers.
888         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
889         and take keyed varargs list.  Adjust call to exec_func.
890         (GOACC_parallel): Force host fallback.
891         * libgomp_g.h (GOACC_parallel): Remove.
892         (GOACC_parallel_keyed): Declare.
893         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
894         (stuct targ_gn_descriptor): Replace name field with launch field.
895         (nvptx_exec): Lose separate geometry args, take array.  Process
896         dynamic dimensions and adjust.
897         (struct nvptx_tdata): Replace fn_names field with fn_descs.
898         (GOMP_OFFLOAD_load_image): Adjust for change in function table
899         data.
900         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
901         passing.
902         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
903         passing.
905 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
907         PR libgomp/67141
908         * oacc-int.h (goacc_host_init): Add declaration.
909         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
910         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
912 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
913             Sebastian Pop  <s.pop@samsung.com>
915         * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
916         match o/p.
917         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
918         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
919         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
920         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
921         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
923 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
925         * configure.tgt: Add missing ;; in between nvptx and rtems
926         snippets.
928 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
930         * config/posix/pool.h (gomp_adjust_thread_attr): New.
931         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
932         (gomp_thread_pool_reservoir): Add priority member.
933         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
934         priority.
935         (parse_thread_pools): Likewise.
936         * team.c (gomp_team_start): Call configuration provided
937         gomp_adjust_thread_attr(). Destroy thread attributes if
938         necessary.
939         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
941 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
943         * config/posix/pool.h: New.
944         * config/rtems/pool.h: Likewise.
945         * config/rtems/proc.c: Likewise.
946         * libgomp.h (gomp_thread_destructor): Declare.
947         * team.c: Include configuration provided "pool.h".
948         (gomp_get_thread_pool): Define in configuration.
949         (gomp_team_end): Call configuration defined
950         gomp_release_thread_pool().
952 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
954         * config/rtems/bar.c: New.
955         * config/rtems/bar.h: Likewise.
956         * config/rtems/mutex.c: Likewise.
957         * config/rtems/mutex.h: Likewise.
958         * config/rtems/sem.c: Likewise.
959         * config/rtems/sem.h: Likewise.
960         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
961         <sys/lock.h> header file.
962         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
963         supported by Newlib.
964         * configure: Regenerate.
966 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
968         * team.c (gomp_new_thread_pool): Delete and move content to ...
969         (gomp_get_thread_pool): ... new function.  Allocate and
970         initialize thread pool on demand.
971         (get_last_team): Use gomp_get_thread_pool().
972         (gomp_team_start): Delete thread pool initialization.
974 2015-09-03  Tom de Vries  <tom@codesourcery.com>
976         PR tree-optimization/65637
977         * testsuite/libgomp.c/autopar-2.c: New test.
979 2015-08-29  Tom de Vries  <tom@codesourcery.com>
981         PR tree-optimization/46193
982         * testsuite/libgomp.c/pr46193.c: New test.
984 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
986         libgomp/
987         * libgomp.map: Add 4.0.2 version.
988         * target.c (offload_image_descr): Add version field.
989         (gomp_load_image_to_device): Add version argument.  Adjust plugin
990         call.  Improve load mismatch diagnostic.
991         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
992         call.
993         (GOMP_offload_regster): Make stub function, move bulk to ...
994         (GOMP_offload_register_ver): ... here.  Process version argument.
995         (GOMP_offload_unregister): Make stub function, move bulk to ...
996         (GOMP_offload_unregister_ver): ... here.  Process version argument.
997         (gomp_init_device): Process version field.
998         (gomp_unload_device): Process version field.
999         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
1000         macros.  Check plugin version.
1001         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
1002         loader and unloader types.
1003         * oacc-host.c: Include gomp-constants.h.
1004         (host_version): New.
1005         (host_load_image, host_unload_image): Adjust.
1006         (host_dispatch): Add host_version.
1007         * plugin/plugin-nvptx.c: Include gomp-constants.h.
1008         (GOMP_OFFLOAD_version): New.
1009         (GOMP_OFFLOAD_load_image): Add version arg and check it.
1010         (GOMP_OFFLOAD_unload_image): Likewise.
1011         * plugin/plugin-host.c: Include gomp-constants.h.
1012         (GOMP_OFFLOAD_version): New.
1013         (GOMP_OFFLOAD_load_image): Add version arg.
1014         (GOMP_OFFLOAD_unload_image): Likewise.
1016 2015-08-24  Tom de Vries  <tom@codesourcery.com>
1018         PR tree-optimization/65468
1019         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
1021 2015-08-24  Tom de Vries  <tom@codesourcery.com>
1023         PR tree-optimization/65468
1024         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
1026 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
1028         PR libgomp/66761
1029         PR libgomp/67303
1030         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
1031         (gomp_iter_guided_next): Idem.
1032         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
1033         (gomp_iter_ull_guided_next): Idem.
1034         * config/linux/wait.h (do_spin): Idem.
1036 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
1038         * libgomp-plugin.h (enum offload_target_type): Remove
1039         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
1040         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
1041         * openacc.h (enum acc_device_t): Likewise.
1042         * openacc_lib.h: Likewise.
1043         * oacc-init.c (name_of_acc_device_t): Don't handle it.
1044         (acc_on_device): Just use __builtin_acc_on_device.
1045         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
1046         of acc_on_device builtin.
1047         * plugin/plugin-host.h: Remove file.
1048         * plugin/plugin-host.c: Likewise, but salvage some content into...
1049         * oacc-host.c: ... this file.
1050         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
1051         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
1052         * Makefile.in: Regenerate.
1053         * configure: Likewise.
1054         * testsuite/lib/libgomp.exp
1055         (check_effective_target_openacc_host_nonshm_selected): Remove.
1056         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
1057         ACC_DEVICE_TYPE=host_nonshm.
1058         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1059         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1060         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1061         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1062         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1063         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1065 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
1066             Jakub Jelinek  <jakub@redhat.com>
1068         * config/nvptx/affinity.c: New file.
1069         * config/nvptx/alloc.c: Likewise.
1070         * config/nvptx/bar.c: Likewise.
1071         * config/nvptx/barrier.c: Likewise.
1072         * config/nvptx/critical.c: Likewise.
1073         * config/nvptx/env.c: Likewise.
1074         * config/nvptx/error.c: Likewise.
1075         * config/nvptx/fortran.c: Likewise.
1076         * config/nvptx/iter.c: Likewise.
1077         * config/nvptx/iter_ull.c: Likewise.
1078         * config/nvptx/libgomp-plugin.c: Likewise.
1079         * config/nvptx/lock.c: Likewise.
1080         * config/nvptx/loop.c: Likewise.
1081         * config/nvptx/loop_ull.c: Likewise.
1082         * config/nvptx/mutex.c: Likewise.
1083         * config/nvptx/oacc-async.c: Likewise.
1084         * config/nvptx/oacc-cuda.c: Likewise.
1085         * config/nvptx/oacc-host.c: Likewise.
1086         * config/nvptx/oacc-init.c: Likewise.
1087         * config/nvptx/oacc-mem.c: Likewise.
1088         * config/nvptx/oacc-parallel.c: Likewise.
1089         * config/nvptx/oacc-plugin.c: Likewise.
1090         * config/nvptx/omp-lock.h: Likewise.
1091         * config/nvptx/ordered.c: Likewise.
1092         * config/nvptx/parallel.c: Likewise.
1093         * config/nvptx/proc.c: Likewise.
1094         * config/nvptx/ptrlock.c: Likewise.
1095         * config/nvptx/sections.c: Likewise.
1096         * config/nvptx/sem.c: Likewise.
1097         * config/nvptx/single.c: Likewise.
1098         * config/nvptx/splay-tree.c: Likewise.
1099         * config/nvptx/target.c: Likewise.
1100         * config/nvptx/task.c: Likewise.
1101         * config/nvptx/team.c: Likewise.
1102         * config/nvptx/time.c: Likewise.
1103         * config/nvptx/work.c: Likewise.
1104         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
1105         * configure: Regenerate.
1106         * configure.tgt (config_path): Set to "nvptx" for target
1107         nvptx*-*-*.
1109 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
1111         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
1113 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
1115         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
1116         (cuda_errlist): Constify.
1117         (errmsg):  Move into ...
1118         (cuda_error): ... here.  Make smaller.
1119         (_XSTR, _STR): Delete.
1120         (cuda_synames): Delete.
1121         (verify_device_library): Delete.
1122         (nvptx_init): Don't call it.
1124 2015-07-28  Tom de Vries  <tom@codesourcery.com>
1126         * testsuite/libgomp.c/uns-outer-4.c: New test.
1128 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
1130         * testsuite/libgomp.c/pr66714.c: New test.
1132 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
1134         PR libgomp/66950
1135         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
1136         (fib_ref): New function.
1137         (fib): Correct corner cases in the recursion.
1138         (main): Replace the non-simd loop with fib_ref call.
1139         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
1140         subroutine.
1141         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
1142         for the last array element value.  Replace the non-simd loop with
1143         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
1144         of the last array element with according Fibonacci sequence element.
1145         (fib): Correct corner cases in the recursion.
1147 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
1149         * target.c (gomp_offload_image_to_device): Rename to ...
1150         (gomp_load_image_to_device): ... here.
1151         (GOMP_offload_register): Adjust call.
1152         (gomp_init_device): Likewise.
1153         (gomp_unload_image_from_device): New.  Broken out of ...
1154         (GOMP_offload_unregister): ... here.  Call it.
1155         (gomp_unload_device): New.
1156         * libgomp.h (gomp_unload_device): Declare.
1157         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
1158         mem maps.
1160 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
1162         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
1163         wait=-specific if.
1164         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
1165         !=0 condition.
1166         (goacc_waits): Move !num_waits handling to ...
1167         (GOACC_wait): ... here, the only caller that might have zero waits.
1169         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
1170         (struct ptx_image_data): Move earlier, add fns field.
1171         (struct ptx_device): Add images and image_lock fields.
1172         (ptx_images, ptx_image_lock): Delete.
1173         (nvptx_open_device): Initialize images and image_lock fields.
1174         (nvptx_close_device): Destroy image_lock.
1175         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
1176         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
1177         fields.
1179 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
1181         * target.c (GOMP_offload_register): Use int for device type arg.
1182         (GOMP_offload_unregister): Likewise.
1184         * target.c (struct_offload_image_descr): Constify host_table.
1185         (gomp_offload_image_to_device): Likewise.
1186         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
1188         * libgomp.h (gomp_device_descr): Constify target data arguments.
1189         * target.c (struct offload_image_descr): Constify target_data.
1190         (gomp_offload_image_to_device): Likewise.
1191         (GOMP_offload_register): Likewise.
1192         (GOMP_offload_unrefister): Likewise.
1193         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
1194         GOMP_OFFLOAD_unload_image): Constify target data.
1195         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
1196         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
1198 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
1200         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
1201         Workaround driver library const error.
1202         (struct nvptx_tdata, nvptx_tdata_t): New.
1203         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
1204         type.
1206 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
1208         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
1209         of EPS parameter from integer to real.
1210         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
1211         type of EPS parameter from integer to real.
1213 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1215         * team.c (get_last_team): New.
1216         (gomp_new_team): Recycle last non-nested team if possible.
1217         (gomp_team_end): Move team work share list free lock destruction
1218         to ...
1219         (free_team): ... here.
1221 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
1223         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
1224         and ref from int to double.  Replaced their comparison with
1225         an inequality of their difference and EPS.
1226         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
1227         comparison of pri and a reference number with an inequality of their
1228         difference and EPS.
1229         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
1230         the comparison of sum and sum_ref with an inequality of their
1231         difference and EPS.
1232         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
1233         the comparison of pri and a reference number with an inequality of
1234         their difference and EPS.
1236 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
1238         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
1239         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
1240         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
1241         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
1242         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
1243         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
1244         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
1245         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
1246         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
1247         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
1248         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
1249         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
1250         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
1251         variables.
1252         (vec_mult): Likewise.  Add #pragma omp taskwait.
1253         (main): Adjust caller.
1254         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
1255         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
1256         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
1257         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
1258         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
1259         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
1260         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
1261         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
1262         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
1263         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
1264         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
1265         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
1266         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
1267         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
1268         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
1269         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
1270         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
1271         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
1272         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
1273         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
1274         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
1275         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
1276         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
1277         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
1278         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
1279         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
1280         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
1281         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
1282         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
1283         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
1284         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
1285         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
1286         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
1287         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
1288         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
1289         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
1290         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
1291         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
1292         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
1293         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
1294         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
1295         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
1296         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
1297         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
1298         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
1299         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
1300         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
1301         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
1302         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
1303         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
1304         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
1305         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
1306         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
1307         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
1308         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
1309         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
1310         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
1311         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
1312         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
1313         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
1314         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
1315         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
1316         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
1317         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
1318         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
1319         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
1320         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
1321         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
1322         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
1323         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
1324         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
1325         (vec_mult): Add !$omp taskwait.
1326         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
1327         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
1328         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
1329         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
1330         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
1331         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
1332         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
1333         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
1334         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
1335         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
1336         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
1337         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
1338         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
1339         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
1340         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
1341         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
1342         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
1343         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
1344         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
1345         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
1346         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
1347         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
1348         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
1349         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
1350         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
1351         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
1352         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
1353         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
1354         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
1355         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
1356         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
1357         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
1358         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
1359         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
1360         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
1361         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
1362         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
1363         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
1364         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
1365         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
1366         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
1367         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
1368         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
1369         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
1370         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
1371         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
1372         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
1373         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
1374         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
1375         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
1376         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
1377         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
1378         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
1379         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
1380         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
1381         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
1382         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
1383         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
1384         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
1385         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
1386         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
1387         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
1388         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
1389         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
1390         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
1391         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
1392         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
1394 2015-07-10  Tom de Vries  <tom@codesourcery.com>
1396         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
1397         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
1399 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
1401         PR libgomp/65099
1402         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
1403         in a 64-bit configuration.
1404         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
1405         offloading testing if no such device is available.
1406         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1407         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1409 2015-07-08  Tom de Vries  <tom@codesourcery.com>
1411         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
1412         second call to f.
1413         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1415 2015-07-07  Tom de Vries  <tom@codesourcery.com>
1417         PR tree-optimization/66642
1418         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
1419         iteration count case.
1420         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
1421         function, factor out of ...
1422         (main): ... here.  Test low iteration count case.
1424 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1426         * libgomp.h (gomp_thread_pool): Comment last_team field.
1428 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
1430         * testsuite/libgomp.c++/pr66702-1.C: Require
1431         vect_simd_clones effective target.
1432         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
1434 2015-06-30  Tom de Vries  <tom@codesourcery.com>
1436         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1437         already set.  Use DEFAULT_CFLAGS in dg-runtest.
1438         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
1439         "-O2".
1441 2015-06-30  Tom de Vries  <tom@codesourcery.com>
1443         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1444         already set.  Use DEFAULT_CFLAGS in dg-runtest.
1445         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
1446         * testsuite/libgomp.c++/pr64824.C: Same.
1447         * testsuite/libgomp.c++/pr64868.C: Same.
1448         * testsuite/libgomp.c++/pr66199-1.C: Same.
1449         * testsuite/libgomp.c++/pr66199-2.C: Same.
1450         * testsuite/libgomp.c++/target-2.C: Same.
1451         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
1452         -std=<standard> option.
1453         * testsuite/libgomp.c++/udr-11.C: Same.
1454         * testsuite/libgomp.c++/udr-12.C: Same.
1455         * testsuite/libgomp.c++/udr-13.C: Same.
1456         * testsuite/libgomp.c++/udr-14.C: Same.
1457         * testsuite/libgomp.c++/udr-15.C: Same.
1458         * testsuite/libgomp.c++/udr-16.C: Same.
1459         * testsuite/libgomp.c++/udr-17.C: Same.
1460         * testsuite/libgomp.c++/udr-18.C: Same.
1461         * testsuite/libgomp.c++/udr-19.C: Same.
1462         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
1463         * testsuite/libgomp.c++/simd-1.C: Same.
1464         * testsuite/libgomp.c++/simd-2.C: Same.
1465         * testsuite/libgomp.c++/simd-3.C: Same.
1466         * testsuite/libgomp.c++/simd-4.C: Same.
1467         * testsuite/libgomp.c++/simd-5.C: Same.
1468         * testsuite/libgomp.c++/simd-6.C: Same.
1469         * testsuite/libgomp.c++/simd-7.C: Same.
1470         * testsuite/libgomp.c++/simd-8.C: Same.
1471         * testsuite/libgomp.c++/simd-9.C: Same.
1472         * testsuite/libgomp.c++/simd10.C: Same.
1473         * testsuite/libgomp.c++/simd11.C: Same.
1474         * testsuite/libgomp.c++/simd12.C: Same.
1475         * testsuite/libgomp.c++/simd13.C: Same.
1477 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
1479         PR middle-end/66702
1480         * testsuite/libgomp.c++/pr66702-1.C: New test.
1481         * testsuite/libgomp.c++/pr66702-2.C: New test.
1483 2015-06-30  Tom de Vries  <tom@codesourcery.com>
1485         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
1486         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
1487         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
1488         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
1490 2015-06-30  Tom de Vries  <tom@codesourcery.com>
1492         PR tree-optimization/66652
1493         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
1494         using restrict pointers.
1495         (main): Add arguments to calls to f.
1496         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1498 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
1500         * configure.ac: Fix check for header <sys/sysctl.h>.
1501         * configure: Regenerate.
1502         * config.h.in: Likewise.
1504 2015-06-23  Tom de Vries  <tom@codesourcery.com>
1506         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
1507         abort.
1508         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
1510 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
1512         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
1513         acc_device_nvidia.
1515         PR libgomp/66518
1516         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
1517         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1519 2015-06-15  Tom de Vries  <tom@codesourcery.com>
1521         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
1522         dg-additional-options for any remaining options.
1523         * testsuite/libgomp.c/atomic-2.c: Same.
1524         * testsuite/libgomp.c/atomic-4.c: Same.
1525         * testsuite/libgomp.c/atomic-5.c: Same.
1526         * testsuite/libgomp.c/atomic-6.c: Same.
1527         * testsuite/libgomp.c/autopar-1.c: Same.
1528         * testsuite/libgomp.c/copyin-1.c: Same.
1529         * testsuite/libgomp.c/copyin-2.c: Same.
1530         * testsuite/libgomp.c/copyin-3.c: Same.
1531         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
1532         * testsuite/libgomp.c/nestedfn-5.c: Same.
1533         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
1534         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
1535         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
1536         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1537         * testsuite/libgomp.c/pr32362-1.c: Same.
1538         * testsuite/libgomp.c/pr32362-2.c: Same.
1539         * testsuite/libgomp.c/pr32362-3.c: Same.
1540         * testsuite/libgomp.c/pr39591-1.c: Same.
1541         * testsuite/libgomp.c/pr39591-2.c: Same.
1542         * testsuite/libgomp.c/pr39591-3.c: Same.
1543         * testsuite/libgomp.c/pr58392.c: Same.
1544         * testsuite/libgomp.c/pr58756.c: Same.
1545         * testsuite/libgomp.c/simd-1.c: Same.
1546         * testsuite/libgomp.c/simd-10.c: Same.
1547         * testsuite/libgomp.c/simd-11.c: Same.
1548         * testsuite/libgomp.c/simd-12.c: Same.
1549         * testsuite/libgomp.c/simd-13.c: Same.
1550         * testsuite/libgomp.c/simd-14.c: Same.
1551         * testsuite/libgomp.c/simd-15.c: Same.
1552         * testsuite/libgomp.c/simd-2.c: Same.
1553         * testsuite/libgomp.c/simd-3.c: Same.
1554         * testsuite/libgomp.c/simd-4.c: Same.
1555         * testsuite/libgomp.c/simd-5.c: Same.
1556         * testsuite/libgomp.c/simd-6.c: Same.
1557         * testsuite/libgomp.c/simd-7.c: Same.
1558         * testsuite/libgomp.c/simd-8.c: Same.
1559         * testsuite/libgomp.c/simd-9.c: Same.
1561 2015-06-15  Tom de Vries  <tom@codesourcery.com>
1563         * testsuite/libgomp.c/pr35625.c: Fix typo.
1565 2015-06-15  Tom de Vries  <tom@codesourcery.com>
1567         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
1568         in dg-options.
1569         * testsuite/libgomp.c/atomic-3.c: Same.
1570         * testsuite/libgomp.c/debug-1.c: Same.
1571         * testsuite/libgomp.c/nqueens-1.c: Same.
1572         * testsuite/libgomp.c/pr26171.c: Same.
1573         * testsuite/libgomp.c/pr48591.c: Same.
1574         * testsuite/libgomp.c/pr64824.c: Same.
1575         * testsuite/libgomp.c/pr64868.c: Same.
1576         * testsuite/libgomp.c/pr66133.c: Same.
1577         * testsuite/libgomp.c/pr66199-1.c: Same.
1578         * testsuite/libgomp.c/pr66199-2.c: Same.
1579         * testsuite/libgomp.c/target-8.c: Same.
1581 2015-06-15  Tom de Vries  <tom@codesourcery.com>
1583         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
1584         -std={gnu99,c99}.
1585         * testsuite/libgomp.c/for-1.c: Same.
1586         * testsuite/libgomp.c/for-2.c: Same.
1587         * testsuite/libgomp.c/for-3.c: Same.
1588         * testsuite/libgomp.c/pr35625.c: Same.
1589         * testsuite/libgomp.c/pr39154.c: Same.
1590         * testsuite/libgomp.c/simd-16.c: Same.
1591         * testsuite/libgomp.c/simd-17.c: Same.
1593 2015-06-13  Tom de Vries  <tom@codesourcery.com>
1595         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
1597 2015-06-13  Tom de Vries  <tom@codesourcery.com>
1599         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
1600         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1601         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
1602         (N): Define.
1603         (main): Use N instead of hardcoded constants.
1605 2015-06-05  Tom de Vries  <tom@codesourcery.com>
1607         merge from gomp4 branch:
1608         2015-05-28  Tom de Vries  <tom@codesourcery.com>
1610         PR tree-optimization/65443
1611         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
1612         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
1613         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
1615 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1617         * testsuite/libgomp.graphite/bounds.c: Adjust for
1618         cleanup-tree-dump removal.
1619         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
1620         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1621         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1622         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1623         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1624         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1625         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1626         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1627         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1628         * testsuite/libgomp.graphite/pr41118.c: Likewise.
1630 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
1632         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
1633         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
1634         (futex_wake) [!__x86_64__]: Ditto.
1636 2015-05-28  Julian Brown  <julian@codesourcery.com>
1638         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
1639         function comment. Only call gomp_fatal if new argument is true.
1640         (acc_dev_num_out_of_range): New function.
1641         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
1642         acc_dev_num_out_of_range as appropriate.
1643         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
1644         (acc_get_device_num, acc_set_device_num): Update calls to
1645         resolve_device.
1646         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
1647         output.
1649 2015-05-28  Julian Brown  <julian@codesourcery.com>
1651         PR libgomp/65742
1652         * oacc-init.c (plugin/plugin-host.h): Include.
1653         (acc_on_device): Check whether we're in an offloaded region for
1654         host_nonshm
1655         plugin. Don't use __builtin_acc_on_device.
1656         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
1657         nonshm_exec flag in thread-local data.
1658         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
1659         data for host_nonshm plugin.
1660         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
1661         for host_nonshm plugin.
1662         * plugin/plugin-host.h: New.
1664 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
1666         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
1668 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
1670         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
1671         Declare as int.
1672         (FUTEX_PRIVATE_FLAG): Remove L suffix.
1673         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
1674         Declare as int.
1676 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
1678         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
1680 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
1682         * target.c (gomp_map_pointer): New function abstracting out
1683         GOMP_MAP_POINTER handling.
1684         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
1685         gomp_map_pointer().
1687 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
1689         PR middle-end/66199
1690         * testsuite/libgomp.c/pr66199-1.c: New test.
1691         * testsuite/libgomp.c/pr66199-2.c: New test.
1692         * testsuite/libgomp.c++/pr66199-1.C: New test.
1693         * testsuite/libgomp.c++/pr66199-2.C: New test.
1694         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
1695         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
1697 2015-05-19  Julian Brown  <julian@codesourcery.com>
1699         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
1700         on cuInit failure.
1702 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
1704         PR middle-end/66133
1705         * testsuite/libgomp.c/pr66133.c: New test.
1707 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1709         * Makefile.in: Regenerated with automake-1.11.6.
1710         * aclocal.m4: Likewise.
1711         * config.h.in: Likewise.
1712         * configure: Likewise.
1713         * testsuite/Makefile.in: Likewise.
1715 2015-05-08  Jason Merrill  <jason@redhat.com>
1717         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
1718         _Complex.
1720         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
1722 2015-05-06  Julian Brown  <julian@codesourcery.com>
1724         * oacc-init.c (acc_device_lock): Add explanatory comment.
1725         (resolve_device): Add comment about locking requirement.
1726         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
1727         gomp_init_device and gomp_fini_device calls.
1728         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
1729         (acc_get_device_num, acc_set_device_num): Add locking around
1730         resolve_device and gomp_init_device calls.
1732 2015-05-06  Julian Brown  <julian@codesourcery.com>
1734         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
1735         goacc_thread_lock on error paths.
1736         * oacc-mem.c (lookup_host): Remove locking from function. Note
1737         locking requirement for caller in function comment.
1738         (lookup_dev): Likewise.
1739         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
1740         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
1741         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1742         Add locking.
1744 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
1746         PR testsuite/65205
1747         PR libgomp/65993
1748         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
1749         don't expect "0x" prefix for "%p" format specifier, don't expect
1750         "(nil)" for NULL pointer.
1751         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1752         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1753         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1754         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1755         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1756         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1757         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1758         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1759         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1760         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1761         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1762         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1763         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1764         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1765         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1766         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1767         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1768         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1769         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1770         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1771         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1772         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1773         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1774         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1775         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1776         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1777         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1778         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1779         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
1780         accurately specify what we're looking for.
1781         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1782         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1783         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1784         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1785         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1787 2015-04-30  James Norris  <jnorris@codesourcery.com>
1789         PR testsuite/65205
1790         * testsuite/lib/libgomp.exp
1791         (check_effective_target_openacc_host_selected)
1792         (check_effective_target_openacc_host_nonshm_selected): New
1793         procedures.
1794         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
1795         dg-shouldfail.
1796         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1797         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1798         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1799         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1800         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1801         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1802         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1803         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1804         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1805         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1806         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1807         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1808         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1809         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1810         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1811         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1812         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1813         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1814         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1815         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1816         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1817         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1818         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1819         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1820         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1821         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1822         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1823         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1824         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1825         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1826         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1827         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1828         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1829         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1830         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1831         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1832         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1833         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1834         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1835         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1836         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1837         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1838         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1840 2015-04-08  Julian Brown  <julian@codesourcery.com>
1842         * libgomp.h (target_mem_desc: Remove mem_map field.
1843         (acc_dispatch_t): Remove open_device_func, close_device_func,
1844         get_device_num_func, set_device_num_func, target_data members.
1845         Change create_thread_data_func argument to device number instead of
1846         generic pointer.
1847         * oacc-async.c (assert.h): Include.
1848         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
1849         (acc_wait_all, acc_wait_all_async): Use current host thread's
1850         active device, not base_dev.
1851         * oacc-cuda.c (acc_get_current_cuda_device)
1852         (acc_get_current_cuda_context, acc_get_cuda_stream)
1853         (acc_set_cuda_stream): Likewise.
1854         * oacc-host.c (host_dispatch): Don't set open_device_func,
1855         close_device_func, get_device_num_func or set_device_num_func.
1856         * oacc-init.c (base_dev, init_key): Remove.
1857         (cached_base_dev): New.
1858         (name_of_acc_device_t): New.
1859         (acc_init_1): Initialise default-numbered device, not zeroth.
1860         (acc_shutdown_1): Close all devices of a given type.
1861         (goacc_destroy_thread): Don't use base_dev.
1862         (lazy_open, lazy_init, lazy_init_and_open): Remove.
1863         (goacc_attach_host_thread_to_device): New.
1864         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
1865         (acc_get_num_devices): Don't use base_dev.
1866         (acc_set_device_type): Reimplement.
1867         (acc_get_device_type): Don't use base_dev.
1868         (acc_get_device_num): Tweak logic.
1869         (acc_set_device_num): Likewise.
1870         (acc_on_device): Use acc_get_device_type.
1871         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
1872         (goacc_lazy_initialize): Reimplement with acc_init and
1873         goacc_attach_host_thread_to_device.
1874         * oacc-int.h (goacc_thread): Add base_dev field.
1875         (base_dev): Remove extern declaration.
1876         (goacc_attach_host_thread_to_device): Add prototype.
1877         * oacc-mem.c (acc_malloc): Use current thread's device instead of
1878         base_dev.
1879         (acc_free): Likewise.
1880         (acc_memcpy_to_device): Likewise.
1881         (acc_memcpy_from_device): Likewise.
1882         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
1883         goacc_lazy_initialize (throughout).
1884         (GOACC_parallel): Use tgt_offset to locate target functions.
1885         * target.c (gomp_map_vars): Don't set tgt->mem_map.
1886         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
1887         (gomp_load_plugin_for_device): Remove open_device, close_device,
1888         get_device_num, set_device_num openacc hook initialisation. Don't set
1889         openacc.target_data.
1890         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
1891         (GOMP_OFFLOAD_openacc_close_device)
1892         (GOMP_OFFLOAD_openacc_get_device_num)
1893         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
1894         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
1895         to int.
1896         * plugin/plugin-nvptx.c (ptx_inited): Remove.
1897         (instantiated_devices, ptx_dev_lock): New.
1898         (struct ptx_image_data): New.
1899         (ptx_devices, ptx_images, ptx_image_lock): New.
1900         (fini_streams_for_device): Reorder cuStreamDestroy call.
1901         (nvptx_get_num_devices): Remove forward declaration.
1902         (nvptx_init): Change return type to bool.
1903         (nvptx_fini): Remove.
1904         (nvptx_attach_host_thread_to_device): New.
1905         (nvptx_open_device): Return struct ptx_device* instead of void*.
1906         (nvptx_close_device): Change argument type to struct ptx_device*,
1907         return type to void.
1908         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
1909         (kernel_target_data, kernel_host_table): Remove static globals.
1910         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
1911         (GOMP_OFFLOAD_init_device): Reimplement.
1912         (GOMP_OFFLOAD_fini_device): Likewise.
1913         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
1914         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
1915         (GOMP_OFFLOAD_host2dev): Use ORD argument.
1916         (GOMP_OFFLOAD_openacc_open_device)
1917         (GOMP_OFFLOAD_openacc_close_device)
1918         (GOMP_OFFLOAD_openacc_set_device_num)
1919         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
1920         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
1921         (device number).
1923         testsuite/
1924         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
1926 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
1928         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
1929         * libgomp.h (struct gomp_memory_mapping): Remove.
1930         (struct target_mem_desc): Change type of mem_map from
1931         gomp_memory_mapping * to splay_tree_s *.
1932         (struct gomp_device_descr): Remove register_image_func, get_table_func.
1933         Add load_image_func, unload_image_func.
1934         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
1935         Remove offload_regions_registered.
1936         (gomp_init_tables): Remove.
1937         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1938         to splay_tree_s *.
1939         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
1940         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
1941         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
1942         offload_regions_registered.
1943         Initialize load_image_func, unload_image_func, mem_map.root.
1944         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
1945         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
1946         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
1947         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
1948         gomp_memory_mapping *.  Use dev's lock and splay_tree.
1949         (lookup_dev): Use dev's lock.
1950         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
1951         (acc_is_present): Likewise.
1952         (acc_map_data): Likewise.
1953         (acc_unmap_data): Likewise.  Use dev's lock.
1954         (present_create_copy): Likewise.
1955         (delete_copyout): Pass dev to lookup_host instead of mem_map.
1956         (update_dev_host): Likewise.
1957         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
1958         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
1959         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
1960         (GOMP_OFFLOAD_get_table): Remove
1961         (GOMP_OFFLOAD_load_image): New function.
1962         (GOMP_OFFLOAD_unload_image): New function.
1963         * target.c (register_lock): New mutex for offload image registration.
1964         (num_devices): Do not guard with PLUGIN_SUPPORT.
1965         (gomp_realloc_unlock): New static function.
1966         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
1967         before gomp_fatal.
1968         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
1969         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
1970         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
1971         mem_map's.
1972         (gomp_unmap_vars): Likewise.
1973         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
1974         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
1975         (gomp_offload_image_to_device): New static function.
1976         (GOMP_offload_register): Add mutex lock.
1977         Call gomp_offload_image_to_device for all initialized devices.
1978         Replace gomp_realloc with gomp_realloc_unlock.
1979         (GOMP_offload_unregister): New function.
1980         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
1981         get_table_func from the plugin with calls to init_device_func and
1982         gomp_offload_image_to_device.
1983         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1984         to splay_tree_s *.
1985         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
1986         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
1987         (GOMP_target_data): Do not call gomp_init_tables.
1988         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
1989         (gomp_load_plugin_for_device): Replace register_image and get_table
1990         with load_image and unload_image in DLSYM ().
1991         (gomp_register_images_for_device): Remove function.
1992         (gomp_target_init): Do not initialize current_device.mem_map.*,
1993         current_device.offload_regions_registered.
1994         Remove call to gomp_register_images_for_device.
1995         Do not free offload_images and num_offload_images.
1997 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
1999         PR fortran/65597
2000         * testsuite/libgomp.fortran/pr65597.f90: New test.
2002 2015-03-27  Tom de Vries  <tom@codesourcery.com>
2004         PR testsuite/65594
2005         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
2006         (init, check): New function.
2007         (foo): Change return type to void.
2008         (main): Call init and check.
2010 2015-03-27  Tom de Vries  <tom@codesourcery.com>
2012         PR testsuite/65594
2013         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
2014         (foo): Use M for non-inner loops to scale down test-case.
2016 2015-03-25  Kai Tietz  <ktietz@redhat.com>
2018         PR libgomp/64972
2019         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
2020         (GOACC_data_start): Likewise.
2021         * target.c (gomp_map_vars): Likewise.
2023 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
2025         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
2026         hppa*-*-hpux*.
2028 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
2030         * testsuite/libgomp.c/target-10.c: New test.
2031         * testsuite/libgomp.c++/target-4.C: New test.
2033 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
2035         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
2036         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
2038 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2040         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
2041         * configure.ac (*-*-rtems*): Assume Pthread is supported.
2042         (pthread.h): Check for this header file.
2043         * configure: Regenerate.
2045 2015-02-25  Tom de Vries  <tom@codesourcery.com>
2047         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
2048         (check_reduction_op, check_reduction_macro, max, min):
2049         Declare.
2050         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
2051         function.
2052         (main): Use new functions.
2054 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
2056         * target.c (gomp_load_plugin_for_device): Use const char * instead of
2057         char * for variables holding dlerror return values.
2058         (DLSYM_OPT): Ditto.
2060 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
2062         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
2064 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
2065             Cesar Philippidis  <cesar@codesourcery.com>
2067         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
2068         GOACC_ctaid, and GOACC_nctaid routines.
2070 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
2072         PR c/64824
2073         * testsuite/libgomp.c/atomic-18.c: New test.
2074         * testsuite/libgomp.c++/atomic-16.C: New test.
2076 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2078         PR c/64824
2079         PR c/64868
2080         * testsuite/libgomp.c/pr64824.c: New test.
2081         * testsuite/libgomp.c/pr64868.c: New test.
2082         * testsuite/libgomp.c++/pr64824.C: New test.
2083         * testsuite/libgomp.c++/pr64868.C: New test.
2085 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
2087         PR libgomp/64635
2088         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
2089         Link with -lpthread.
2090         * config/aix/plugin-suffix.h: Delete.
2092 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
2094         PR libgomp/64635
2095         * configure.tgt (*-*-aix*): Use config_path "aix posix".
2096         (*-*-darwin*): Use config_path "bsd darwin posix".
2097         (*-*-hpux*): Use config_path "hpux posix".
2098         * target.c: Add include of plugin-suffix.h and use
2099         SONAME_SUFFIX macro.
2100         * config/aix/plugin-suffix.h: New file.
2101         * config/darwin/plugin-suffix.h: New file.
2102         * config/hpux/plugin-suffix.h: New file.
2103         * config/posix/plugin-suffix.h: New file.
2105 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2107         PR middle-end/64734
2108         * libgomp.c/pr64734.c: New test.
2110 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2112         PR libgomp/64672
2113         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
2115 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2117         PR libgomp/64707
2118         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
2119         dg-options.
2121 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
2123         PR libgomp/64625
2124         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
2125         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
2126         formal parameter.  Update all users.
2127         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
2128         Document unused formal parameter.
2130 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
2132         * oacc-parallel.c: Don't include <alloca.h>.
2133         (GOACC_parallel): Use gomp_alloca instead of alloca.
2135 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
2137         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
2139 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
2140             James Norris  <jnorris@codesourcery.com>
2141             Tom de Vries  <tom@codesourcery.com>
2142             Julian Brown  <julian@codesourcery.com>
2143             Cesar Philippidis  <cesar@codesourcery.com>
2144             Nathan Sidwell  <nathan@codesourcery.com>
2145             Tobias Burnus  <burnus@net-b.de>
2147         * Makefile.am (search_path): Add $(top_srcdir)/../include.
2148         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
2149         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
2150         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
2151         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
2152         Include $(top_srcdir)/plugin/Makefrag.am.
2153         (nodist_libsubinclude_HEADERS): Add openacc.h.
2154         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
2155         openacc.f90, openacc.mod, openacc_kinds.mod.
2156         (omp_lib.mod): Generalize into...
2157         (%.mod): ... this new rule.
2158         (openacc_kinds.mod, openacc.mod): New rules.
2159         * plugin/configfrag.ac: New file.
2160         * configure.ac: Move plugin/offloading support into it.  Include
2161         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
2162         * plugin/Makefrag.am: New file.
2163         * testsuite/Makefile.am (OFFLOAD_TARGETS)
2164         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
2165         export.
2166         (libgomp-test-support.exp): New rule.
2167         (all-local): Depend on it.
2168         * Makefile.in: Regenerate.
2169         * testsuite/Makefile.in: Regenerate.
2170         * config.h.in: Likewise.
2171         * configure: Likewise.
2172         * configure.tgt: Harden shell syntax.
2173         * env.c: Include "oacc-int.h".
2174         (parse_acc_device_type): New function.
2175         (gomp_debug_var, goacc_device_type, goacc_device_num): New
2176         variables.
2177         (initialize_env): Initialize those.  Call
2178         goacc_runtime_initialize.
2179         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
2180         (gomp_fatal): Call gomp_vfatal.
2181         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
2182         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
2183         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
2184         (splay_tree_node, splay_tree, splay_tree_key)
2185         (struct target_mem_desc, struct splay_tree_key_s)
2186         (struct gomp_memory_mapping, struct acc_dispatch_t)
2187         (struct gomp_device_descr, gomp_acc_insert_pointer)
2188         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
2189         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
2190         (gomp_free_memmap, gomp_fini_device): New declarations.
2191         (gomp_vdebug, gomp_debug): New macros.
2192         Include "splay-tree.h".
2193         * libgomp.map (OACC_2.0): New symbol version.  Use for
2194         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
2195         acc_set_device_type_h_, acc_get_device_type,
2196         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
2197         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
2198         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
2199         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
2200         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
2201         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
2202         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
2203         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
2204         acc_copyin_array_h_, acc_present_or_copyin,
2205         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
2206         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
2207         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
2208         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
2209         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
2210         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
2211         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
2212         acc_update_device, acc_update_device_32_h_,
2213         acc_update_device_64_h_, acc_update_device_array_h_,
2214         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
2215         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
2216         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
2217         acc_is_present_64_h_, acc_is_present_array_h_,
2218         acc_memcpy_to_device, acc_memcpy_from_device,
2219         acc_get_current_cuda_device, acc_get_current_cuda_context,
2220         acc_get_cuda_stream, acc_set_cuda_stream.
2221         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
2222         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
2223         GOACC_update, GOACC_wait, GOACC_get_thread_num,
2224         GOACC_get_num_threads.
2225         (GOMP_PLUGIN_1.0): New symbol version.  Use for
2226         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
2227         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
2228         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
2229         GOMP_PLUGIN_acc_thread.
2230         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
2231         environment variable.
2232         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
2233         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
2234         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
2235         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
2236         (splay_tree_remove): New declarations.
2237         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
2238         (splay_tree_remove, splay_tree_lookup): Move into...
2239         * splay-tree.c: ... this new file.
2240         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
2241         (splay_tree_node, splay_tree, splay_tree_key)
2242         (struct target_mem_desc, struct splay_tree_key_s)
2243         (struct gomp_device_descr): Don't declare.
2244         (num_devices_openmp): New variable.
2245         (gomp_get_num_devices ): Use it.
2246         (gomp_init_targets_once): New function.
2247         (gomp_get_num_devices ): Use it.
2248         (get_kind, gomp_copy_from_async, gomp_free_memmap)
2249         (gomp_fini_device, gomp_register_image_for_device): New functions.
2250         (gomp_map_vars): Add devaddrs parameter.
2251         (gomp_update): Add mm parameter.
2252         (gomp_init_device): Move most of it into...
2253         (gomp_init_tables): ... this new function.
2254         (gomp_register_images_for_device): Remove function.
2255         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
2256         Make them hidden instead of static.
2257         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
2258         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
2259         (GOMP_target_end_data, GOMP_target_update)
2260         (gomp_load_plugin_for_device, gomp_target_init): Update for
2261         OpenACC changes.
2262         * oacc-async.c: New file.
2263         * oacc-cuda.c: Likewise.
2264         * oacc-host.c: Likewise.
2265         * oacc-init.c: Likewise.
2266         * oacc-int.h: Likewise.
2267         * oacc-mem.c: Likewise.
2268         * oacc-parallel.c: Likewise.
2269         * oacc-plugin.c: Likewise.
2270         * oacc-plugin.h: Likewise.
2271         * oacc-ptx.h: Likewise.
2272         * openacc.f90: Likewise.
2273         * openacc.h: Likewise.
2274         * openacc_lib.h: Likewise.
2275         * plugin/plugin-host.c: Likewise.
2276         * plugin/plugin-nvptx.c: Likewise.
2277         * libgomp-plugin.c: Likewise.
2278         * libgomp-plugin.h: Likewise.
2279         * libgomp_target.h: Remove file after merging content into the
2280         former file.  Update all users.
2281         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
2282         (offload_targets_s, offload_targets_s_openacc): New variables.
2283         (check_effective_target_openacc_nvidia_accel_present)
2284         (check_effective_target_openacc_nvidia_accel_selected): New
2285         procedures.
2286         (libgomp_init): Update for OpenACC changes.
2287         * testsuite/libgomp-test-support.exp.in: New file.
2288         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2289         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2290         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2291         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
2292         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
2293         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
2294         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
2295         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
2296         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
2297         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
2298         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
2299         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
2300         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
2301         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
2302         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
2303         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
2304         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2305         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2306         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2307         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2308         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
2309         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2310         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2311         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
2312         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2313         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2314         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2315         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2316         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2317         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2318         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2319         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
2320         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
2321         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
2322         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
2323         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2324         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
2325         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2326         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
2327         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2328         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2329         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2330         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2331         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2332         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2333         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
2334         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2335         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2336         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2337         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2338         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2339         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2340         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2341         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2342         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2343         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2344         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2345         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2346         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2347         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
2348         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2349         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
2350         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2351         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2352         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2353         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
2354         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
2355         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2356         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2357         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2358         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
2359         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2360         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2361         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2362         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
2363         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
2364         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2365         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2366         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
2367         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
2368         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
2369         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
2370         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2371         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2372         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2373         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
2374         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
2375         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2376         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2377         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
2378         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2379         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
2380         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
2381         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2382         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2383         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2384         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2385         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
2386         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2387         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2388         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2389         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
2390         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2391         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2392         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2393         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2394         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2395         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2396         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2397         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2398         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2399         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2400         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2401         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2402         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2403         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2404         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2405         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2406         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2407         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2408         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2409         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2410         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
2411         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2412         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
2413         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2414         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
2415         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
2416         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
2417         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
2418         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
2419         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
2420         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2421         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
2422         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
2423         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2424         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
2425         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
2426         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
2427         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
2428         Likewise.
2429         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
2430         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
2431         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
2432         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
2433         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
2434         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2435         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2436         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2437         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2438         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2439         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2440         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2441         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2442         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2443         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2444         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2445         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2446         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2447         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2448         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2449         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2450         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2451         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2452         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2453         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2454         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2455         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2456         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2457         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2458         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2459         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2460         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2461         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2462         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2463         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2464         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2465         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2466         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2467         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2468         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2469         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2470         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2471         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2472         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2473         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2474         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2475         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2476         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2477         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2478         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2479         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2480         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2481         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2482         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2483         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2484         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2485         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2486         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2487         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2488         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2490 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
2491             Julian Brown  <julian@codesourcery.com>
2492             David Malcolm  <dmalcolm@redhat.com>
2494         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
2495         to "GNU Offloading and Multi Processing Runtime Library".  Change
2496         all users.
2497         * configure: Regenerate.
2498         * libgomp.texi: Update.
2500 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
2502         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
2503         "$tgt_dir/lib32".
2504         * configure: Regenerate.
2506         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
2507         "intelmic" in $offload_targets.
2509 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2511         Update copyright years.
2513         * libgomp.texi: Bump @copying's copyright year.
2515 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2517         * testsuite/lib/libgomp.exp: Load target-utils.exp.
2518         Move load of target-supportes.exp earlier.
2520 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
2522         * testsuite/libgomp.c/target-9.c: New test.
2524 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
2526         * config.h.in: Regenerate.
2527         * configure: Regenerate.
2528         * configure.ac: Add GCC_CHECK_EMUTLS.
2529         * libgomp.h: Add check for USE_EMUTLS: this case
2530         is equal to HAVE_TLS.
2531         * team.c: Likewise.
2533 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
2535         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
2537 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
2538             Ilya Verbin  <ilya.verbin@intel.com>
2540         * testsuite/libgomp.c/target-critical-1.c: New test.
2542 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
2544         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
2545         to dg-options unless expensive testing is on.
2546         (TESTITERS): Define to N if not defined.
2547         (main): Use TESTITERS instead of N.
2548         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
2549         dg-additional-options depending on whether expensive testing is on.
2550         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
2551         Decrease N to 100000 and CHUNKSZ to 10000.
2553 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
2555         PR fortran/63938
2556         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
2557         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
2559 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
2561         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
2563 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
2565         PR bootstrap/63784
2566         * configure: Regenerated.
2568 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
2570         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
2571         vect_simd_clones effective target.
2572         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
2574 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
2576         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
2577         of 32 as block_size.
2578         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
2579         instead of 32 as block_size.
2581 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
2582             Ilya Verbin  <ilya.verbin@intel.com>
2584         * Makefile.in: Regenerate.
2585         * configure: Regenerate.
2586         * configure.ac: Set up offload_additional_options,
2587         offload_additional_lib_paths and offload_targets.
2588         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
2589         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
2590         * testsuite/Makefile.in: Regenerate.
2591         * testsuite/lib/libgomp.exp (libgomp_init): Append
2592         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
2593         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
2594         build directory to LD_LIBRARY_PATH for intelmic offload targets.
2596 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
2597             Ilya Verbin  <ilya.verbin@intel.com>
2598             Kirill Yukhin  <kirill.yukhin@intel.com>
2599             Ilya Tocar  <ilya.tocar@intel.com>
2601         * testsuite/lib/libgomp.exp
2602         (check_effective_target_offload_device): New.
2603         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
2604         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
2605         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
2606         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
2607         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
2608         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
2609         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
2610         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
2611         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
2612         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
2613         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
2614         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
2615         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
2616         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
2617         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
2618         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
2619         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
2620         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
2621         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
2622         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
2623         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
2624         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
2625         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
2626         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
2627         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
2628         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
2629         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
2630         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
2631         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
2632         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
2633         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
2634         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
2635         * testsuite/libgomp.c/target-7.c: Fix test.
2636         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
2637         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
2638         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
2639         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
2640         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
2641         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
2642         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
2643         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
2644         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
2645         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
2646         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
2647         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
2648         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
2649         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
2650         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
2651         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
2652         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
2653         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
2654         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
2655         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
2656         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
2657         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
2658         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
2659         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
2660         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
2661         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
2662         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
2663         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
2664         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
2665         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
2666         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
2668 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
2669             Ilya Verbin  <ilya.verbin@intel.com>
2670             Thomas Schwinge  <thomas@codesourcery.com>
2671             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2673         * libgomp.map (GOMP_4.0.1): New symbol version.
2674         Add GOMP_offload_register.
2675         * libgomp_target.h: New file.
2676         * splay-tree.h: New file.
2677         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
2678         (gomp_target_init): New forward declaration.
2679         (gomp_is_initialized): New static variable.
2680         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
2681         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
2682         New structures.
2683         (offload_images, num_offload_images, devices, num_devices): New static
2684         variables.
2685         (splay_compare): New static function.
2686         (struct gomp_device_descr): New structure.
2687         (gomp_get_num_devices): Call gomp_target_init.
2688         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
2689         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
2690         (GOMP_offload_register): New function.
2691         (GOMP_target): Arrange for host callback to be performed in a separate
2692         initial thread and contention group, inheriting ICVs from
2693         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
2694         Add device initialization and lookup for target function in splay tree.
2695         (GOMP_target_data): Add device initialization and call gomp_map_vars.
2696         (GOMP_target_end_data): Call gomp_unmap_vars.
2697         (GOMP_target_update): Add device initialization and call gomp_update.
2698         (gomp_load_plugin_for_device, gomp_register_images_for_device)
2699         (gomp_target_init): New static functions.
2701 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
2702             Thomas Schwinge  <thomas@codesourcery.com>
2703             Ilya Verbin  <ilya.verbin@intel.com>
2704             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2706         * config.h.in: Regenerate.
2707         * configure: Regenerate.
2708         * configure.ac: Check for libdl, required for plugin support.
2709         (PLUGIN_SUPPORT): Define if plugins are supported.
2710         (enable_offload_targets): Support Intel MIC targets.
2711         (OFFLOAD_TARGETS): List of target names suitable for offloading.
2713 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2715         PR target/63610
2716         * configure: Regenerate.
2718 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2720         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
2722 2014-10-06  Marek Polacek  <polacek@redhat.com>
2724         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
2725         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
2726         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
2727         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2729 2014-10-06  Marek Polacek  <polacek@redhat.com>
2731         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
2732         * testsuite/libgomp.c/nqueens-1.c: Likewise.
2733         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2734         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2735         * testsuite/libgomp.c/pr36802-2.c: Likewise.
2736         * testsuite/libgomp.c/pr36802-3.c: Likewise.
2737         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2738         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2739         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
2740         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
2741         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
2742         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
2743         * testsuite/libgomp.c/omp-single-1.c: Likewise.
2744         * testsuite/libgomp.c/omp-single-2.c: Likewise.
2745         * testsuite/libgomp.c/omp_matvec.c: Likewise.
2746         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
2747         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
2748         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
2749         declarations.
2751 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2753         PR libgomp/61200
2754         * testsuite/libgomp.c/pr61200.c: New test.
2756 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
2758         PR c++/63248
2759         * testsuite/libgomp.c++/pr63248.C: New test.
2761 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
2763         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
2764         is not zero, but taskgroup->children is NULL and there are
2765         any task->children, schedule those instead of waiting.
2766         * testsuite/libgomp.c/depend-6.c: New test.
2767         * testsuite/libgomp.c/depend-7.c: New test.
2768         * testsuite/libgomp.c/depend-8.c: New test.
2769         * testsuite/libgomp.c/depend-9.c: New test.
2770         * testsuite/libgomp.c/depend-10.c: New test.
2772 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
2774         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
2775         (struct gomp_taskwait): New type.
2776         (struct gomp_task): Add taskwait and parent_depends_on, remove
2777         in_taskwait and taskwait_sem fields.
2778         (gomp_finish_task): Don't destroy taskwait_sem.
2779         * task.c (gomp_init_task): Don't init in_taskwait, instead init
2780         taskwait and parent_depends_on.
2781         (GOMP_task): For if (0) tasks with depend clause that depend on
2782         earlier tasks don't defer them, instead call
2783         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
2784         Initialize redundant_out field, for redundant out entries just
2785         move them at the end of linked list instead of removing them
2786         completely, and set redundant_out flag instead of redundant.
2787         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
2788         that task.
2789         (gomp_task_run_post_handle_dependers): If parent is in
2790         gomp_task_maybe_wait_for_dependencies and newly runnable task
2791         is not parent_depends_on, queue it in parent->children linked
2792         list after all runnable tasks with parent_depends_on set.
2793         Adjust for addition of taskwait indirection.
2794         (gomp_task_run_post_remove_parent): If parent is in
2795         gomp_task_maybe_wait_for_dependencies and task to be removed
2796         is parent_depends_on, decrement n_depend and if needed awake
2797         parent.  Adjust for addition of taskwait indirection.
2798         (GOMP_taskwait): Adjust for addition of taskwait indirection.
2799         (gomp_task_maybe_wait_for_dependencies): New function.
2800         * testsuite/libgomp.c/depend-5.c: New test.
2802 2014-07-13  Tobias Burnus  <burnus@net-b.de>
2804         * testsuite/libgomp.fortran/pr34020.f90: Make compile
2805         with TS 18508/Fortran 2015.
2807 2014-07-06  Marek Polacek  <polacek@redhat.com>
2809         PR c/6940
2810         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
2812 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
2814         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
2815         matches regex $lang_source_re, add $lang_include_flags to options.
2816         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
2817         * testsuite/libgomp.c++/c++.exp: Likewise.
2818         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
2819         and lang_include_flags instead of adding -fintrinsic-modules-path= to
2820         ALWAYS_CFLAGS.
2821         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
2823 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2825         * testsuite/libgomp.fortran/fortran.exp: Explain
2826         gfortran-dg-runtest usage.
2828 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
2830         * testsuite/libgomp.fortran/simd5.f90: New test.
2831         * testsuite/libgomp.fortran/simd6.f90: New test.
2832         * testsuite/libgomp.fortran/simd7.f90: New test.
2834 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
2836         * testsuite/libgomp.c/for-2.c: Define SC to static for
2837         #pragma omp for simd testing.
2838         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
2839         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
2840         SC macro.
2841         * testsuite/libgomp.c/simd-14.c: New test.
2842         * testsuite/libgomp.c/simd-15.c: New test.
2843         * testsuite/libgomp.c/simd-16.c: New test.
2844         * testsuite/libgomp.c/simd-17.c: New test.
2845         * testsuite/libgomp.c++/for-10.C: Define SC to static for
2846         #pragma omp for simd testing.
2847         * testsuite/libgomp.c++/simd10.C: New test.
2848         * testsuite/libgomp.c++/simd11.C: New test.
2849         * testsuite/libgomp.c++/simd12.C: New test.
2850         * testsuite/libgomp.c++/simd13.C: New test.
2852         * testsuite/libgomp.fortran/aligned1.f03: New test.
2853         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
2854         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
2855         tasks with !$omp parallel !$omp single.
2856         * testsuite/libgomp.fortran/target8.f90: New test.
2857         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
2858         not to use trim in the combiner, instead call elemental function.
2859         (fn): New elemental function.
2860         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
2861         Make elemental.
2862         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
2863         omp_in): Likewise.
2864         * testsuite/libgomp.fortran/udr12.f90: New test.
2865         * testsuite/libgomp.fortran/udr13.f90: New test.
2866         * testsuite/libgomp.fortran/udr14.f90: New test.
2867         * testsuite/libgomp.fortran/udr15.f90: New test.
2869 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
2871         * omp_lib.f90.in (openmp_version): Set to 201307.
2872         * omp_lib.h.in (openmp_version): Likewise.
2873         * testsuite/libgomp.c/target-8.c: New test.
2874         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
2875         and inbranch clauses.
2876         * testsuite/libgomp.fortran/depend-3.f90: New test.
2877         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
2878         openmp_version.
2879         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2880         * testsuite/libgomp.fortran/target1.f90: New test.
2881         * testsuite/libgomp.fortran/target2.f90: New test.
2882         * testsuite/libgomp.fortran/target3.f90: New test.
2883         * testsuite/libgomp.fortran/target4.f90: New test.
2884         * testsuite/libgomp.fortran/target5.f90: New test.
2885         * testsuite/libgomp.fortran/target6.f90: New test.
2886         * testsuite/libgomp.fortran/target7.f90: New test.
2888 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
2890         PR fortran/60928
2891         * testsuite/libgomp.fortran/allocatable9.f90: New test.
2892         * testsuite/libgomp.fortran/allocatable10.f90: New test.
2893         * testsuite/libgomp.fortran/allocatable11.f90: New test.
2894         * testsuite/libgomp.fortran/allocatable12.f90: New test.
2895         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
2896         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
2897         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
2898         * testsuite/libgomp.fortran/associate1.f90: New test.
2899         * testsuite/libgomp.fortran/associate2.f90: New test.
2900         * testsuite/libgomp.fortran/procptr1.f90: New test.
2902 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
2904         * testsuite/libgomp.fortran/simd1.f90: New test.
2905         * testsuite/libgomp.fortran/udr1.f90: New test.
2906         * testsuite/libgomp.fortran/udr2.f90: New test.
2907         * testsuite/libgomp.fortran/udr3.f90: New test.
2908         * testsuite/libgomp.fortran/udr4.f90: New test.
2909         * testsuite/libgomp.fortran/udr5.f90: New test.
2910         * testsuite/libgomp.fortran/udr6.f90: New test.
2911         * testsuite/libgomp.fortran/udr7.f90: New test.
2912         * testsuite/libgomp.fortran/udr8.f90: New test.
2913         * testsuite/libgomp.fortran/udr9.f90: New test.
2914         * testsuite/libgomp.fortran/udr10.f90: New test.
2915         * testsuite/libgomp.fortran/udr11.f90: New test.
2917 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
2919         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
2920         vect_simd_clones effective target.
2921         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
2923 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
2925         PR middle-end/61252
2926         * testsuite/libgomp.c++/simd-9.C: New test.
2928 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
2930         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
2931         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
2932         texts according to their @menu entry positions.
2934 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
2936         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
2937         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
2938         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
2939         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
2940         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
2941         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
2942         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
2943         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
2944         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
2945         * testsuite/libgomp.fortran/depend-1.f90: New test.
2946         * testsuite/libgomp.fortran/depend-2.f90: New test.
2947         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
2948         * testsuite/libgomp.fortran/simd1.f90: New test.
2949         * testsuite/libgomp.fortran/simd2.f90: New test.
2950         * testsuite/libgomp.fortran/simd3.f90: New test.
2951         * testsuite/libgomp.fortran/simd4.f90: New test.
2952         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
2954 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
2956         * testsuite/libgomp.c/simd-10.c: New test.
2957         * testsuite/libgomp.c/simd-11.c: New test.
2958         * testsuite/libgomp.c/simd-12.c: New test.
2959         * testsuite/libgomp.c/simd-13.c: New test.
2961 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
2963         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
2964         atomic type clauses in any order and optional comma in between.
2965         * testsuite/libgomp.c++/atomic-15.C: Likewise.
2966         * testsuite/libgomp.c/atomic-17.c: Likewise.
2968         * testsuite/libgomp.c/simd-7.c: New test.
2969         * testsuite/libgomp.c/simd-8.c: New test.
2970         * testsuite/libgomp.c/simd-9.c: New test.
2971         * testsuite/libgomp.c/loop-16.c: New test.
2973 2014-04-02  Richard Henderson  <rth@redhat.com>
2975         * config/linux/futex.h (futex_wait): Get error value from errno.
2976         (futex_wake): Likewise.
2978 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
2980         PR c++/60331
2981         * testsuite/libgomp.c++/udr-11.C: New test.
2982         * testsuite/libgomp.c++/udr-12.C: New test.
2983         * testsuite/libgomp.c++/udr-13.C: New test.
2984         * testsuite/libgomp.c++/udr-14.C: New test.
2985         * testsuite/libgomp.c++/udr-15.C: New test.
2986         * testsuite/libgomp.c++/udr-16.C: New test.
2987         * testsuite/libgomp.c++/udr-17.C: New test.
2988         * testsuite/libgomp.c++/udr-18.C: New test.
2989         * testsuite/libgomp.c++/udr-19.C: New test.
2991 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2993         Update copyright years
2995 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2997         * hashtab.h: Use the standard form for the copyright notice.
2999 2014-01-02  Tobias Burnus  <burnus@net-b.de>
3001         * libgomp.texi: Bump @copying's copyright year.
3003 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
3005         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
3006         alloca () with __builtin_alloca ().
3007         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
3008         * testsuite/libgomp.c/lock-3.c: Likewise.
3009         * testsuite/libgomp.c/pr48591.c: Likewise.
3011 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
3013         PR testsuite/59534
3014         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
3015         comparisons.
3017 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
3019         PR libgomp/58756
3020         * testsuite/libgomp.c/pr58756.c: New test.
3022 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
3024         PR libgomp/59467
3025         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
3026         !$omp parallel.
3028 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
3030         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
3031         ALWAYS_CFLAGS.
3032         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
3033         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
3034         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3035         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
3036         Likewise.
3038         * libgomp_g.h: Include <stddef.h> for size_t.
3040         * libgomp.spec.in: Update comment about libgomp's dependencies.
3041         * configure.ac: Likewise.
3042         * configure: Regenerate.
3044 2013-10-16  Tobias Burnus  <burnus@net-b.de>
3046         * libgomp.texi: (Runtime Library Routines): Update references for
3047         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
3048         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
3049         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
3050         (Environment Variables): Update references for OpenMP 4.0. Add
3051         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
3052         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
3053         order.
3055 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
3057         * env.c (parse_bind_var): Initialize value to avoid
3058         (false positive) warning.
3060 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
3062         PR libgomp/58691
3063         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
3064         to check variable.
3065         (gomp_init_num_threads): Move i variable declaration into
3066         #ifdef CPU_ALLOC_SIZE block.
3067         * config/linux/affinity.c (gomp_affinity_init_level): Test
3068         gomp_places_list_len == 0 rather than gomp_places_list == 0
3069         when checking for topology reading error.
3070         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
3071         * env.c (parse_affinity): Add ignore argument, if true, don't populate
3072         gomp_places_list, only parse env var and always return false.
3073         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
3074         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
3075         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
3076         and either of these variables were parsed correctly into a places
3077         list.
3079 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
3080             Jakub Jelinek  <jakub@redhat.com>
3082         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
3083         of 5 loopfn matches.
3084         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3085         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3086         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
3087         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3088         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3089         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3090         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3091         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3093 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
3095         * Makefile.am (omp_lib.mod): Streamline rule.
3096         * Makefile.in: Regenerate.
3098         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
3099         exceptions.
3101         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
3102         * testsuite/libgomp.fortran/lib1.f90: Likewise.
3103         * testsuite/libgomp.fortran/lib2.f: Likewise.
3104         * testsuite/libgomp.fortran/lib3.f: Likewise.
3106         * configure.ac: Typo fix.
3107         * configure: Regenerate.
3109         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
3110         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3112         * omp.h.in: Don't touch the user's namespace.
3114 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
3115             Tobias Burnus  <burnus@net-b.de>
3116             Richard Henderson  <rth@redhat.com>
3118         * target.c: New file.
3119         * Makefile.am (libgomp_la_SOURCES): Add target.c.
3120         * Makefile.in: Regenerated.
3121         * libgomp_g.h (GOMP_task): Add depend argument.
3122         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3123         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3124         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
3125         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
3126         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
3127         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
3128         GOMP_taskgroup_start, GOMP_taskgroup_end,
3129         GOMP_parallel_sections): New prototypes.
3130         * fortran.c (omp_is_initial_device): Add ialias_redirect.
3131         (omp_is_initial_device_): New function.
3132         (ULP, STR1, STR2, ialias_redirect): Removed.
3133         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
3134         omp_set_default_device_8_, omp_get_default_device_,
3135         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
3136         functions.
3137         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3138         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3139         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
3140         @@GOMP_4.0.
3141         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
3142         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
3143         omp_set_default_device, omp_set_default_device_,
3144         omp_set_default_device_8_, omp_get_default_device,
3145         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
3146         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
3147         omp_get_team_num_): Export @@OMP_4.0.
3148         * team.c (struct gomp_thread_start_data): Add place field.
3149         (gomp_thread_start): Clear thr->thread_pool and
3150         thr->task before returning.  Use gomp_team_barrier_wait_final
3151         instead of gomp_team_barrier_wait.  Initialize thr->place.
3152         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
3153         team_cancelled and task_queued_count fields.
3154         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
3155         before calling pthread_exit.
3156         (gomp_free_thread): No longer static.  Use
3157         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
3158         (gomp_team_start): Add flags argument.  Set
3159         thr->thread_pool->threads_busy to nthreads immediately after creating
3160         new pool.  Use gomp_managed_threads_lock instead of
3161         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
3162         (gomp_team_end): Use gomp_managed_threads_lock instead of
3163         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
3164         of gomp_team_barrier_wait.  If team->team_cancelled, call
3165         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
3166         rather than thr->ts.work_share.
3167         (initialize_team): Don't call gomp_sem_init here.
3168         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
3169         caller.
3170         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
3171         * env.c (gomp_global_icv): Add default_device_var, target_data and
3172         bind_var initializers.
3173         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
3174         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
3175         gomp_places_list_len): New variables.
3176         (parse_bind_var, parse_one_place, parse_places_var): New functions.
3177         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
3178         sized places.
3179         (gomp_cancel_var): New global variable.
3180         (parse_int): New function.
3181         (handle_omp_display_env): New function.
3182         (initialize_env): Use it.  Initialize default_device_var.
3183         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
3184         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
3185         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
3186         been successfully parsed (and call gomp_init_affinity in that case).
3187         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3188         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3189         omp_get_team_num, omp_is_initial_device): New functions.
3190         * libgomp.h: Include stdlib.h.
3191         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
3192         Define.
3193         (struct target_mem_desc): Forward declare.
3194         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
3195         and thread_limit_var fields.
3196         (gomp_get_num_devices): New prototype.
3197         (gomp_cancel_var): New extern decl.
3198         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
3199         team_cancelled and task_queued_count fields.  Add comments about
3200         task_{,queued_,running_}count.
3201         (gomp_cancel_kind): New enum.
3202         (gomp_work_share_end_cancel): New prototype.
3203         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
3204         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
3205         and depend fields.
3206         (struct gomp_taskgroup): New type.
3207         (struct gomp_task_depend_entry,
3208         struct gomp_dependers_vec): New types.
3209         (gomp_finish_task): Free depend_hash if non-NULL.
3210         (struct gomp_team_state): Add place_partition_off
3211         and place_partition_len fields.
3212         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
3213         gomp_places_list_len): New extern decls.
3214         (struct gomp_thread): Add place field.
3215         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
3216         (gomp_init_thread_affinity): Add place argument.
3217         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3218         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3219         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3220         gomp_affinity_init_level, gomp_affinity_print_place): New
3221         prototypes.
3222         (gomp_team_start): Add flags argument.
3223         (gomp_thread_limit_var, gomp_remaining_threads_count,
3224         gomp_remaining_threads_lock): Remove.
3225         (gomp_managed_threads_lock): New variable.
3226         (struct gomp_thread_pool): Add threads_busy field.
3227         (gomp_free_thread): New prototype.
3228         * task.c: Include hashtab.h.
3229         (hash_entry_type): New typedef.
3230         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
3231         (gomp_init_task): Clear dependers, depend_hash, depend_count,
3232         copy_ctors_done and taskgroup fields.
3233         (GOMP_task): Add depend argument, handle depend clauses.  If
3234         gomp_team_barrier_cancelled or if it's taskgroup has been
3235         cancelled, don't queue or start new tasks.  Set copy_ctors_done
3236         field if needed.  Initialize taskgroup field.  If copy_ctors_done
3237         and already cancelled, don't discard the task.  If taskgroup is
3238         non-NULL, enqueue the task into taskgroup queue.  Increment
3239         num_children field in taskgroup.  Increment task_queued_count.
3240         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
3241         gomp_task_run_post_remove_taskgroup): New inline functions.
3242         (gomp_task_run_post_handle_depend_hash,
3243         gomp_task_run_post_handle_dependers,
3244         gomp_task_run_post_handle_depend): New functions.
3245         (GOMP_taskwait): Use them.  If more than one new tasks
3246         have been queued, wake other threads if needed.
3247         (gomp_barrier_handle_tasks): Likewise.  If
3248         gomp_team_barrier_cancelled, don't start any new tasks, just free
3249         all tasks.
3250         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
3251         * omp_lib.f90.in
3252         (omp_proc_bind_kind, omp_proc_bind_false,
3253         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
3254         omp_proc_bind_spread): New params.
3255         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3256         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3257         omp_get_team_num, omp_is_initial_device): New interfaces.
3258         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
3259         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
3260         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
3261         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
3262         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
3263         useless use omp_lib_kinds.
3264         * omp.h.in (omp_proc_bind_t): New typedef.
3265         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3266         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3267         omp_get_team_num, omp_is_initial_device): New prototypes.
3268         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
3269         through to gomp_team_start.
3270         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
3271         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
3272         Adjust gomp_parallel_loop_start callers.
3273         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
3274         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
3275         GOMP_loop_end_cancel): New functions.
3276         (GOMP_parallel_end): Add ialias_redirect.
3277         * hashtab.h: New file.
3278         * libgomp.texi (Environment Variables): Minor cleanup,
3279         update section refs to OpenMP 4.0rc2.
3280         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
3281         environment variables.
3282         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
3283         team->work_shares_to_free to thr->ts.work_share before calling
3284         free_work_share.
3285         (gomp_work_share_end_cancel): New function.
3286         * config/linux/proc.c: Include errno.h.
3287         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
3288         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
3289         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
3290         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
3291         gomp_cpuset_size is sizeof (cpu_set_t).
3292         (gomp_init_num_threads): Initialize gomp_cpuset_size,
3293         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
3294         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
3295         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
3296         contain any logical CPUs.
3297         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
3298         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
3299         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
3300         pthread_getaffinity_np.  Check gomp_places_list instead of
3301         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
3302         * config/linux/bar.c (gomp_barrier_wait_end,
3303         gomp_barrier_wait_last): Use BAR_* defines.
3304         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
3305         from state where needed.  Set work_share_cancelled to 0 on last
3306         thread.
3307         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
3308         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
3309         functions.
3310         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
3311         Add cpusetsize argument.
3312         (gomp_cpuset_size, gomp_cpusetp): Declare.
3313         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
3314         (affinity_counter): Remove.
3315         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
3316         if CPU_ALLOC_SIZE isn't defined.
3317         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
3318         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
3319         bind current thread to the first place.
3320         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
3321         pthread_setaffinity_np to gomp_places_list[place].
3322         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3323         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3324         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3325         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
3326         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
3327         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
3328         (gomp_barrier_t): Add awaited_final field.
3329         (gomp_barrier_init): Initialize awaited_final field.
3330         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
3331         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
3332         prototypes.
3333         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
3334         defines.
3335         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
3336         gomp_team_barrier_cancelled): New inline functions.
3337         (gomp_barrier_last_thread,
3338         gomp_team_barrier_set_task_pending,
3339         gomp_team_barrier_clear_task_pending,
3340         gomp_team_barrier_set_waiting_for_tasks,
3341         gomp_team_barrier_waiting_for_tasks,
3342         gomp_team_barrier_done): Use BAR_* defines.
3343         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
3344         (gomp_barrier_wait_end): Use BAR_* defines.
3345         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
3346         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
3347         Use BAR_* defines.
3348         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
3349         gomp_team_barrier_cancel): New functions.
3350         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
3351         argument.
3352         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3353         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3354         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3355         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
3356         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
3357         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
3358         (gomp_barrier_t): Add cancellable field.
3359         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
3360         gomp_team_barrier_cancel): New prototypes.
3361         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
3362         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
3363         gomp_team_barrier_cancelled): New inline functions.
3364         (gomp_barrier_wait_start, gomp_barrier_last_thread,
3365         gomp_team_barrier_set_task_pending,
3366         gomp_team_barrier_clear_task_pending,
3367         gomp_team_barrier_set_waiting_for_tasks,
3368         gomp_team_barrier_waiting_for_tasks,
3369         gomp_team_barrier_done): Use BAR_* defines.
3370         * barrier.c (GOMP_barrier_cancel): New function.
3371         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
3372         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
3373         omp_proc_bind_spread): New params.
3374         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3375         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3376         omp_get_team_num, omp_is_initial_device): New externals.
3377         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
3378         New functions.
3379         (gomp_resolve_num_threads): Adjust for thread_limit now being in
3380         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
3381         infinity.  If not nested, just return minimum of max_num_threads
3382         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
3383         to the returned value.  Otherwise, don't update atomically
3384         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
3385         (GOMP_parallel_end): Adjust for thread_limit now being in
3386         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
3387         infinity.  Adjust threads_busy in the pool rather than
3388         gomp_remaining_threads_count.  Remember team->nthreads and call
3389         gomp_team_end before adjusting threads_busy, if not nested
3390         afterwards, just set it to 1 non-atomically.  Add ialias.
3391         (GOMP_parallel_start): Adjust gomp_team_start caller.
3392         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
3393         * testsuite/libgomp.c/affinity-1.c: New test.
3394         * testsuite/libgomp.c/atomic-15.c: New test.
3395         * testsuite/libgomp.c/atomic-16.c: New test.
3396         * testsuite/libgomp.c/atomic-17.c: New test.
3397         * testsuite/libgomp.c/cancel-for-1.c: New test.
3398         * testsuite/libgomp.c/cancel-for-2.c: New test.
3399         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
3400         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
3401         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
3402         * testsuite/libgomp.c/cancel-sections-1.c: New test.
3403         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
3404         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
3405         * testsuite/libgomp.c/depend-1.c: New test.
3406         * testsuite/libgomp.c/depend-2.c: New test.
3407         * testsuite/libgomp.c/depend-3.c: New test.
3408         * testsuite/libgomp.c/depend-4.c: New test.
3409         * testsuite/libgomp.c/for-1.c: New test.
3410         * testsuite/libgomp.c/for-1.h: New file.
3411         * testsuite/libgomp.c/for-2.c: New test.
3412         * testsuite/libgomp.c/for-2.h: New file.
3413         * testsuite/libgomp.c/for-3.c: New test.
3414         * testsuite/libgomp.c/pr58392.c: New test.
3415         * testsuite/libgomp.c/simd-1.c: New test.
3416         * testsuite/libgomp.c/simd-2.c: New test.
3417         * testsuite/libgomp.c/simd-3.c: New test.
3418         * testsuite/libgomp.c/simd-4.c: New test.
3419         * testsuite/libgomp.c/simd-5.c: New test.
3420         * testsuite/libgomp.c/simd-6.c: New test.
3421         * testsuite/libgomp.c/target-1.c: New test.
3422         * testsuite/libgomp.c/target-2.c: New test.
3423         * testsuite/libgomp.c/target-3.c: New test.
3424         * testsuite/libgomp.c/target-4.c: New test.
3425         * testsuite/libgomp.c/target-5.c: New test.
3426         * testsuite/libgomp.c/target-6.c: New test.
3427         * testsuite/libgomp.c/target-7.c: New test.
3428         * testsuite/libgomp.c/taskgroup-1.c: New test.
3429         * testsuite/libgomp.c/thread-limit-1.c: New test.
3430         * testsuite/libgomp.c/thread-limit-2.c: New test.
3431         * testsuite/libgomp.c/thread-limit-3.c: New test.
3432         * testsuite/libgomp.c/udr-1.c: New test.
3433         * testsuite/libgomp.c/udr-2.c: New test.
3434         * testsuite/libgomp.c/udr-3.c: New test.
3435         * testsuite/libgomp.c++/affinity-1.C: New test.
3436         * testsuite/libgomp.c++/atomic-10.C: New test.
3437         * testsuite/libgomp.c++/atomic-11.C: New test.
3438         * testsuite/libgomp.c++/atomic-12.C: New test.
3439         * testsuite/libgomp.c++/atomic-13.C: New test.
3440         * testsuite/libgomp.c++/atomic-14.C: New test.
3441         * testsuite/libgomp.c++/atomic-15.C: New test.
3442         * testsuite/libgomp.c++/cancel-for-1.C: New test.
3443         * testsuite/libgomp.c++/cancel-for-2.C: New test.
3444         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
3445         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
3446         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
3447         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
3448         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
3449         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
3450         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
3451         * testsuite/libgomp.c++/cancel-test.h: New file.
3452         * testsuite/libgomp.c++/for-9.C: New test.
3453         * testsuite/libgomp.c++/for-10.C: New test.
3454         * testsuite/libgomp.c++/for-11.C: New test.
3455         * testsuite/libgomp.c++/simd-1.C: New test.
3456         * testsuite/libgomp.c++/simd-2.C: New test.
3457         * testsuite/libgomp.c++/simd-3.C: New test.
3458         * testsuite/libgomp.c++/simd-4.C: New test.
3459         * testsuite/libgomp.c++/simd-5.C: New test.
3460         * testsuite/libgomp.c++/simd-6.C: New test.
3461         * testsuite/libgomp.c++/simd-7.C: New test.
3462         * testsuite/libgomp.c++/simd-8.C: New test.
3463         * testsuite/libgomp.c++/target-1.C: New test.
3464         * testsuite/libgomp.c++/target-2.C: New test.
3465         * testsuite/libgomp.c++/target-2-aux.cc: New file.
3466         * testsuite/libgomp.c++/target-3.C: New test.
3467         * testsuite/libgomp.c++/taskgroup-1.C: New test.
3468         * testsuite/libgomp.c++/udr-1.C: New test.
3469         * testsuite/libgomp.c++/udr-2.C: New test.
3470         * testsuite/libgomp.c++/udr-3.C: New test.
3471         * testsuite/libgomp.c++/udr-4.C: New test.
3472         * testsuite/libgomp.c++/udr-5.C: New test.
3473         * testsuite/libgomp.c++/udr-6.C: New test.
3474         * testsuite/libgomp.c++/udr-7.C: New test.
3475         * testsuite/libgomp.c++/udr-8.C: New test.
3476         * testsuite/libgomp.c++/udr-9.C: New test.
3478 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
3480         PR testsuite/57605
3481         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
3482         ALWAYS_CFLAGS.
3484 2013-09-20  Alan Modra  <amodra@gmail.com>
3486         * configure: Regenerate.
3488 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
3490         * testsuite/libgomp.c/sections-2.c: New test.
3492 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3494         * testsuite/libgomp.fortran/strassen.f90:
3495         Add dg-skip-if aarch64_tiny.
3497 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
3498             Cesar Philippidis  <cesar@codesourcery.com>
3500         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
3501         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
3502         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
3503         * testsuite/libgomp.fortran/fortran.exp: Likewise.
3504         * testsuite/libgomp.graphite/graphite.exp: Likewise.
3505         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
3506         Use dg-runtest rather than gfortran-dg-runtest.
3508 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3510         * testsuite/libgomp.c/icv-2.c: Extend current handling of
3511         Linux-based x86 systems to cover all GNU systems.
3512         * testsuite/libgomp.c/lock-3.c: Likewise.
3513         * testsuite/libgomp.c/pr48591.c: Likewise.
3515 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
3517         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
3518         GNU/Hurd, as done for Linux-based systems.
3520         * config/posix/ptrlock.h: Fix comment.
3522 2013-05-27  Tobias Burnus  <burnus@net-b.de>
3524         PR fortran/57423
3525         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
3526         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
3527         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
3528         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
3529         omp_destroy_nest_lock): Correct arguments to match the one in
3530         the OpenMP spec.
3531         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
3532         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
3533         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
3534         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
3536 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3538         * testsuite/libgomp.c/loop-13.c: New test.
3539         * testsuite/libgomp.c/loop-14.c: New test.
3540         * testsuite/libgomp.c/loop-15.c: New test.
3541         * testsuite/libgomp.c++/loop-13.C: New test.
3542         * testsuite/libgomp.c++/loop-14.C: New test.
3543         * testsuite/libgomp.c++/loop-15.C: New test.
3545 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
3547         PR middle-end/56217
3548         * testsuite/libgomp.c++/pr56217.C: New test.
3550 2013-02-01  Alan Modra  <amodra@gmail.com>
3552         * task.c (GOMP_task, GOMP_taskwait): Comment.
3554 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
3555             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
3557         PR libgomp/55561
3558         * config/linux/wait.h (do_spin): Use atomic load for addr.
3559         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
3560         for intptr and ptrlock.
3561         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
3562         for ptrlock.
3564 2013-01-22  Alan Modra  <amodra@gmail.com>
3566         PR libgomp/51376
3567         PR libgomp/56073
3568         * task.c (GOMP_task): Revert 2011-12-09 change.
3569         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
3570         barrier to read task->children..
3571         (gomp_barrier_handle_tasks): ..and matching atomic store with
3572         release barrier here when setting parent->children to NULL.
3574 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
3575             Tobias Burnus  <burnus@net-b.de>
3577         PR driver/55884
3578         * testsuite/libgomp.fortran/fortran.exp: Use
3579         -fintrinsic-modules-path= instead of
3580         -fintrinsic-modules-path.
3582 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
3584         Update copyright years.
3586 2012-12-19  Tobias Burnus  <burnus@net-b.de>
3588         * testsuite/libgomp.fortran/fortran.exp: Set
3589         -fintrinsic-modules-path.
3591 2012-12-19  Tobias Burnus  <burnus@net-b.de>
3593         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
3594         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
3596 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
3598         PR libgomp/55411
3599         * team.c (gomp_free_thread): Decrease gomp_managed_threads
3600         if pool had any threads_used.
3602 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
3604         * testsuite/libgomp.c++/pr24455.C: Use
3605         -Wl,-undefined,dynamic_lookup on darwin.
3607 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
3609         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
3611 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
3613         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
3615 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
3616             Jim MacArthur  <jim.macarthur@arm.com>
3617             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3618             Nigel Stephens  <nigel.stephens@arm.com>
3619             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3620             Richard Earnshaw  <rearnsha@arm.com>
3621             Sofiane Naci  <sofiane.naci@arm.com>
3622             Stephen Thomas  <stephen.thomas@arm.com>
3623             Tejas Belagod  <tejas.belagod@arm.com>
3624             Yufeng Zhang  <yufeng.zhang@arm.com>
3626         * configure.tgt: Add AArch64.
3628 2012-10-04  Jason Merrill  <jason@redhat.com>
3630         * testsuite/libgomp.c++/tls-init1.C: New.
3632 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
3634         * configure: Regenerated.
3636 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
3638         * config/linux/mips/futex.h (sys_futex0): Change to static
3639         function with noinline, nomips16 attributes under MIPS16. Adjust
3640         asm statement to place 'li v0,SYS_futex' immediately before
3641         syscall insn.
3643 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
3645         * libgomp.texi (Library Index): Renamed from "Index" to prevent
3646         conflict with index.html on case-insensitive file systems.
3648 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
3650         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
3651         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
3653 2012-07-02  Richard Guenther  <rguenther@suse.de>
3654             Michael Matz  <matz@suse.de>
3655             Tobias Grosser <tobias@grosser.es>
3656             Sebastian Pop <sebpop@gmail.com>
3658         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3659         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3660         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3661         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3663 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
3665         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
3667 2012-06-22  Richard Guenther  <rguenther@suse.de>
3669         Merge from graphite branch
3670         2012-01-13  Tobias Grosser  <tobias@grosser.es>
3672         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3673         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3675 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
3677         PR middle-end/53580
3678         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
3679         use GOMP_barrier () call instead.
3680         * testsuite/libgomp.c/pr26943-3.c: Likewise.
3681         * testsuite/libgomp.c/pr26943-4.c: Likewise.
3682         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
3683         call GOMP_barrier instead.
3684         * testsuite/libgomp.fortran/vla5.f90: Likewise.
3686 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
3688         PR libgomp/52993
3689         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
3690         argument to memset call.
3692 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3694         * configure: Regenerated.
3696 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3698         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
3700 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3702         PR bootstrap/52812
3703         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
3705 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
3707         PR middle-end/52547
3708         * testsuite/libgomp.c/pr52547.c: New test.
3710 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3712         * testsuite/lib/libgomp.exp: load fortran-modules.exp
3714 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3716         * configure.tgt (mips-sgi-irix6*): Remove.
3718 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3720         * configure.tgt (alpha*-dec-osf*): Remove.
3722         * config/osf/sem.h: Remove.
3723         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
3725 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
3727         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
3729 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3731         PR libstdc++/52188
3732         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
3733         Remove ENABLE_SYMVERS_SOL2.
3734         * configure: Regenerate.
3735         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
3736         (PREPROCESS): New variable.
3737         (libgomp.ver): New target.
3738         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
3739         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
3740         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
3741         Use libgomp.ver.
3742         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
3743         * Makefile.in: Regenerate.
3745 2012-02-14  Walter Lee  <walt@tilera.com>
3747         * configure.tgt: Handle tilegx and tilepro.
3748         * config/linux/tile/futex.h: New file.
3750 2012-02-08  Richard Guenther  <rguenther@suse.de>
3752         PR tree-optimization/46886
3753         * testsuite/libgomp.c/pr46886.c: New testcase.
3755 2012-01-25  Matthias Klose  <doko@ubuntu.com>
3757         * config/linux/arm: Remove empty directory.
3758         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
3760 2011-12-09  Alan Modra  <amodra@gmail.com>
3762         PR libgomp/51376
3763         * task.c (GOMP_taskwait): Don't access task->children outside of
3764         task_lock mutex region.
3765         (GOMP_task): Likewise.
3767 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
3769         PR libgomp/51132
3770         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
3771         to file scope.
3772         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3773         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3774         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3775         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3776         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3778 2011-12-02  Alan Modra  <amodra@gmail.com>
3780         * config/linux/affinity.c: Use atomic rather than sync builtin.
3781         * config/linux/lock.c: Likewise.
3782         * config/linux/ptrlock.h: Likewise.
3783         * config/linux/ptrlock.c: Likewise.
3784         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
3785         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
3786         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
3787         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
3788         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
3789         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
3790         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
3791         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
3792         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
3793         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
3795 2011-11-30  Alan Modra  <amodra@gmail.com>
3797         PR libgomp/51298
3798         * config/linux/bar.h: Use atomic rather than sync builtins.
3799         * config/linux/bar.c: Likewise.  Add missing acquire
3800         synchronisation on generation field.
3801         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
3802         double unlock.
3804 2011-11-30  Alan Modra  <amodra@gmail.com>
3806         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
3807         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
3808         * config/linux/mutex.h: Use atomic rather than sync builtins.
3809         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
3810         * config/linux/omp-lock.h: Comment fix.
3811         * config/linux/arm/mutex.h: Delete.
3812         * config/linux/powerpc/mutex.h: Delete.
3813         * config/linux/ia64/mutex.h: Delete.
3814         * config/linux/mips/mutex.h: Delete.
3816 2011-11-30  Alan Modra  <amodra@gmail.com>
3818         PR libgomp/51249
3819         * config/linux/sem.h: Rewrite.
3820         * config/linux/sem.c: Rewrite.
3822 2011-11-28  Richard Henderson  <rth@redhat.com>
3824         * libgomp.h (enum memmodel): New.
3826 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
3828         * configure: Regenerate.
3830 2011-10-10  Matthias Klose  <doko@ubuntu.com>
3832         * config/posix95: Remove empty directory.
3834 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
3836         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
3838 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
3840         PR fortran/49792
3841         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
3842         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
3844 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3846         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
3848 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3850         PR libgomp/49965
3851         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
3853 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
3855         * config/linux/proc.h: New.
3856         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
3857         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
3858         (gomp_init_num_threads): Update call to cpuset_popcount.
3859         (get_num_procs): Ditto.
3860         * config/linux/affinity.c (gomp_init_affinity): Call
3861         gomp_cpuset_popcount.
3863 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3865         PR fortran/42041
3866         PR fortran/46752
3867         * omp.h.in (omp_in_final): New prototype.
3868         * omp_lib.f90.in (omp_in_final): New interface.
3869         (omp_integer_kind, omp_logical_kind): Remove
3870         and replace all its uses in the module with 4.
3871         (openmp_version): Change to 201107.
3872         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
3873         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
3874         kind for the parameters.
3875         (omp_in_final): New external.
3876         (openmp_version): Change to 201107.
3877         * task.c (omp_in_final): New function.
3878         (gomp_init_task): Initialize final_task.
3879         (GOMP_task): Remove unused attribute from flags.  Handle final
3880         tasks.
3881         (GOMP_taskyield): New function.
3882         (omp_in_final): Return true if if (false) or final (true) task
3883         or descendant of final (true).
3884         * fortran.c (omp_in_final_): New function.
3885         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
3886         (GOMP_3.0): Export GOMP_taskyield.
3887         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
3888         variables.
3889         (parse_unsigned_long_list): New function.
3890         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
3891         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
3892         even if parse_affinity returned false.
3893         * config/linux/affinity.c (gomp_init_affinity): Handle
3894         gomp_cpu_affinity_len == 0.
3895         * libgomp_g.h (GOMP_taskyield): New prototype.
3896         * libgomp.h (struct gomp_task): Add final_task field.
3897         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
3898         * team.c (gomp_team_start): Override new task's nthreads_var icv
3899         if list form OMP_NUM_THREADS has been used and it has value for
3900         the new nesting level.
3902         * testsuite/libgomp.c/atomic-11.c: New test.
3903         * testsuite/libgomp.c/atomic-12.c: New test.
3904         * testsuite/libgomp.c/atomic-13.c: New test.
3905         * testsuite/libgomp.c/atomic-14.c: New test.
3906         * testsuite/libgomp.c/reduction-6.c: New test.
3907         * testsuite/libgomp.c/task-5.c: New test.
3908         * testsuite/libgomp.c++/atomic-2.C: New test.
3909         * testsuite/libgomp.c++/atomic-3.C: New test.
3910         * testsuite/libgomp.c++/atomic-4.C: New test.
3911         * testsuite/libgomp.c++/atomic-5.C: New test.
3912         * testsuite/libgomp.c++/atomic-6.C: New test.
3913         * testsuite/libgomp.c++/atomic-7.C: New test.
3914         * testsuite/libgomp.c++/atomic-8.C: New test.
3915         * testsuite/libgomp.c++/atomic-9.C: New test.
3916         * testsuite/libgomp.c++/task-8.C: New test.
3917         * testsuite/libgomp.c++/reduction-4.C: New test.
3918         * testsuite/libgomp.fortran/allocatable7.f90: New test.
3919         * testsuite/libgomp.fortran/allocatable8.f90: New test.
3920         * testsuite/libgomp.fortran/crayptr3.f90: New test.
3921         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
3922         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
3923         * testsuite/libgomp.fortran/pointer1.f90: New test.
3924         * testsuite/libgomp.fortran/pointer2.f90: New test.
3925         * testsuite/libgomp.fortran/task4.f90: New test.
3927 2011-08-02  Tobias Burnus  <burnus@net-b.de>
3929         * libgomp.texi: Update OpenMP spec references to 3.1.
3930         (omp_in_final,OMP_PROC_BIND): New sections.
3931         (OMP_NUM_THREADS): Document that the value can be now a list.
3932         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
3934 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3936         * config/linux/x86/futex.h: Check __x86_64__ instead of
3937         __LP64__.
3939 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
3941         PR middle-end/49897
3942         PR middle-end/49898
3943         * testsuite/libgomp.c/pr49897-1.c: New test.
3944         * testsuite/libgomp.c/pr49897-2.c: New test.
3945         * testsuite/libgomp.c/pr49898-1.c: New test.
3946         * testsuite/libgomp.c/pr49898-2.c: New test.
3948 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3950         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
3951         for ia32 instead of ilp32.
3953         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
3954         * testsuite/libgomp.c/atomic-6.c: Likewise.
3956 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
3958         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
3959         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
3961 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3963         PR libgomp/45351
3964         * config/osf/sem.h: New file.
3965         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
3967 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3969         PR target/49541
3970         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
3971         ldflags.
3973 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
3975         * config/linux/wait.h (do_spin): New inline, largely copied
3976         from do_wait, just don't do futex_wait here, instead return true if
3977         it should be done.
3978         (do_wait): Implement using do_spin.
3979         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
3980         to prototype.
3981         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3982         __sync_bool_compare_and_swap, pass the oldval to
3983         gomp_mutex_lock_slow.
3984         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
3985         If all mutex contenders are just spinning and not sleeping, don't
3986         change state to 2 unnecessarily.  Optimize the loop when state has
3987         already become 2 to use just one atomic operation per loop instead
3988         of two.
3989         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
3990         to prototype.
3991         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3992         __sync_bool_compare_and_swap, pass the oldval to
3993         gomp_mutex_lock_slow.
3995 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3997         PR libgomp/49490
3998         * iter.c (gomp_iter_static_next): For chunk size 0
3999         only use n ceil/ nthreads size for the first
4000         n % nthreads threads in the team instead of
4001         all threads except for the last few ones which
4002         get less work or none at all.
4003         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
4004         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
4005         chunk argument, set run_sched_modifier to 0 for static
4006         resp. 1 for other kinds.  If chunk argument is 0
4007         and not static, set value to 1.
4009 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
4011         PR c++/49043
4012         * testsuite/libgomp.c++/pr49043.C: New test.
4014         PR c++/48869
4015         * testsuite/libgomp.c++/pr48869.C: New test.
4017 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
4019         PR fortran/48894
4020         * fortran.c: Include limits.h.
4021         (TO_INT): Define.
4022         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
4023         *set.
4024         (omp_set_num_threads_8_, omp_set_schedule_8_,
4025         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
4026         omp_get_team_size_8_): Use TO_INT macro.
4027         * testsuite/libgomp.fortran/pr48894.f90: New test.
4029 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4031         PR middle-end/48591
4032         * testsuite/libgomp.c/pr48591.c: New test.
4034 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4036         PR bootstrap/48135
4037         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
4038         * configure: Regenerate.
4040 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
4042         PR fortran/47886
4043         * testsuite/libgomp.fortran/task3.f90: New test.
4045 2011-02-24  Tobias Burnus  <burnus@net-b.de>
4047         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
4049 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
4051         PR libgomp/47854
4052         * libgomp.texi (omp_get_wtime): Don't say time in the past
4053         must be Unix Epoch.
4055 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
4057         PR libgomp/47804
4058         * testsuite/libgomp.fortran/fortran.exp: Check for both
4059         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
4060         but $blddir != "", still append ${blddir}/${lang_library_path}
4061         to ld_library_path.
4063 2011-02-16  Tobias Burnus  <burnus@net-b.de>
4065         PR libgomp/47758
4066         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
4067         of libquadmath.a before adding its libpath to ldflags.
4069 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
4071         PR libgomp/47731
4072         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
4073         to FUTEX_WAIT futex syscall.
4074         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
4076 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4078         * configure: Regenerate.
4080 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
4082         PR libstdc++/36104
4083         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
4085 2011-01-16  Gerald Pfeifer
4087         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
4089 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
4091         PR fortran/46874
4092         * libgomp.fortran/allocatable6.f90: New test.
4094 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4096         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
4097         * configure: Regenerate.
4099 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
4101         PR target/40125
4102         PR lto/46695
4103         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
4104         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
4105         * aclocal.m4: Regenerate.
4106         * configure: Regenerate.
4107         * Makefile.in: Regenerate.
4108         * testsuite/Makefile.in: Regenerate.
4110 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
4112         PR fortran/46753
4113         * libgomp.fortran/pr46753.f90: New test.
4115         PR libgomp/43706
4116         * env.c (initialize_env): Default to spin count 300000
4117         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
4118         is specified.
4120         PR libgomp/45240
4121         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
4122         at the end if sync builtins aren't supported.
4124 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4126         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
4128 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4130         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
4132 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
4134         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
4136 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4137             Tobias Burnus  <burnus@net-b.de>
4139         PR fortran/32049
4140         * configure.ac:
4141         * configure: Regenerate.
4143 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4145         * config/linux/futex.h: New.
4146         * config/linux/arm/mutex.h: New.
4147         * configure.tgt (arm*-*-linux*): Add config path.
4149 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
4151         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4153 2010-09-23  Tobias Burnus  <burnus@net-b.de>
4155         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
4156         Change Fortran datatype to LOGICAL.
4157         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
4158         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
4160 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4162         * configure: Regenerate.
4164 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
4166         * libgomp.texi: Add function keyword to a couple of Fortran
4167         interfaces, use integer instead of int for Fortran.
4169 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
4171         * libgomp.texi: Fix spelling and pasto problems throughout.
4172         Adjust prototypes to match code.
4174 2010-07-24  Tobias Burnus  <burnus@net-b.de>
4176         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
4177         silence -fwhole-file warning.
4179 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4181         * configure.tgt (*-*-solaris2.[56]*): Removed.
4183 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4185         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
4186         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
4187         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
4188         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
4189         targetting solaris2*.
4190         * configure: Regenerate.
4191         * config.h.in: Regenerate.
4193         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
4194         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
4195         Add libgomp_version_dep.
4196         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
4197         versioning.
4198         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
4199         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
4200         * Makefile.in: Regenerate.
4202         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
4203         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4204         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
4205         to common block, protected by
4206         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4208 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
4210         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
4212 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
4214         PR bootstrap/43170
4215         * configure: Regenerate.
4217 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4219         PR other/43620
4220         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
4221         * configure: Regenerate.
4222         * Makefile.in: Regenerate.
4223         * testsuite/Makefile.in: Regenerate.
4225 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
4227         PR c/43893
4228         * testsuite/libgomp.c/pr43893.c: New test.
4229         * testsuite/libgomp.c++/pr43893.C: New test.
4231 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
4233         PR middle-end/43570
4234         * testsuite/libgomp.fortran/vla8.f90: New test.
4236 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
4238         PR libgomp/43706
4239         * config/linux/affinity.c (gomp_init_affinity): Decrease
4240         gomp_available_cpus if affinity mask confines the process to fewer
4241         CPUs.
4242         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
4243         non-NULL, just return gomp_available_cpus.
4245         PR libgomp/43569
4246         * sections.c (gomp_sections_init): Initialize ws->mode.
4248 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
4250         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
4251         not unused bar variable.
4252         * configure: Regenerate.
4254 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4256         * Makefile.in: Regenerate.
4257         * aclocal.m4: Regenerate.
4258         * testsuite/Makefile.in: Regenerate.
4260 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
4262         PR libgomp/42942
4263         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
4264         (initialize_env): Adjust callers.
4265         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
4266         when the argument is 0.
4268         * testsuite/libgomp.c/pr42942.c: New test.
4270 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
4272         PR middle-end/42644
4273         PR middle-end/42130
4274         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4275         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
4277 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4279         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
4280         * testsuite/libgomp.c++/task-6.C: Likewise.
4282 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
4284         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
4286 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
4288         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
4289         * configure: Regenerate.
4291 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
4293         PR fortran/42866
4294         * testsuite/libgomp.fortran/allocatable5.f90: New test.
4296 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
4298         * configure.ac: Test for executability of GFORTRAN.
4299         * configure: Regenerate.
4301 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4303         * configure: Regenerate.
4305 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
4307         PR libgomp/42602
4308         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
4310 2010-01-03  Richard Guenther  <rguenther@suse.de>
4312         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
4314 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
4316         * testsuite/libgomp.graphite/pr4118.c: New.
4318 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4320         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
4321         for darwin, protect the test with require-effective-target tls_runtime.
4322         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4324 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4326         PR target/41605
4327         * testsuite/lib/libgomp.exp: Provide -B options to allow for
4328         link spec %s substitutions for static libraries.
4330 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
4332         PR testsuite/42135
4333         * libgomp.graphite/force-parallel-2.c: Reduce array size.
4335 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4337         * Makefile.in: Regenerate.
4338         * configure: Regenerate.
4339         * testsuite/Makefile.in: Regenerate.
4341 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
4343         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
4344         settings for LC_ALL and LANG.
4346 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
4348         PR fortran/42162
4349         * testsuite/libgomp.fortran/pr42162.f90: New test.
4351 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
4353         PR middle-end/42029
4354         * testsuite/libgomp.c/pr42029.c: New test.
4356 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
4358         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
4359         *s.  Accept ld version without text in ()s.
4360         * configure: Regenerated.
4362 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4364         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
4366 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4368         PR libgomp/41418
4369         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
4370         or a hyphen (happens with fortran language disabled).
4371         * configure: Regenerate.
4373 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4375         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
4376         use sed script portable to Solaris /bin/sed for extracting ld
4377         version.
4378         * configure: Regenerate.
4380 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
4382         * testsuite/libgomp.graphite/bounds.c: New test.
4384 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4386         * Makefile.am (libgomp_la_LINK): New.
4387         * Makefile.in: Regenerate.
4389 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4391         * configure.ac (AC_PREREQ): Bump to 2.64.
4393 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4395         * Makefile.am (install-html, install-pdf): Remove.
4396         * Makefile.in: Regenerate.
4398         * Makefile.in: Regenerate.
4399         * aclocal.m4: Regenerate.
4400         * config.h.in: Regenerate.
4401         * configure: Regenerate.
4402         * testsuite/Makefile.in: Regenerate.
4404 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4406         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
4407         * Makefile.in: Regenerate.
4409 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
4411         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
4412         * Makefile.in: Regenerate.
4414 2009-08-19  Tobias Burnus  <burnus@net-b.de>
4416         PR fortran/41102
4417         omp_lib.h.in: Fix -std=f95 errors.
4420 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
4422         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
4423         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
4424         * testsuite/libgomp.graphite/graphite.exp: New.
4426 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
4428         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
4429         only build.
4431 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
4433         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
4434         needed memory barrier semantics.
4435         * config/linux/mips/mutex.h: New file.
4437 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4439         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
4441 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
4443         * configure: Regenerate.
4445 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
4447         PR testsuite/40699
4448         PR testsuite/40707
4449         PR testsuite/40709
4450         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
4451         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
4452         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
4454 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
4456         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
4457         options when choosing a multilib.
4459 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
4461         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
4462         ld_library_path.  Use add_path.  Add just find_libgcc_s to
4463         ld_library_path, not every libgcc multilib directory.
4464         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
4465         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
4466         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
4467         Use add_path.
4468         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
4470 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
4472         * Makefile.am (LTLDFLAGS): Define.
4473         (LINK): Define.
4474         * Makefile.in: Regenerate.
4476 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
4478         PR fortran/39718
4479         * testsuite/libgomp.fortran/fortran.exp: Don't link with
4480         libgfortranbegin, check existence of libgfortran.a instead of
4481         libgfortranbegin.a.
4483 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
4485         PR libgomp/40174
4486         * team.c (gomp_thread_start): Destroy thr->release semaphore.
4487         (gomp_free_pool_helper): Likewise.
4489 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
4490             Jakub Jelinek  <jakub@redhat.com>
4492         PR fortran/35423
4493         * testsuite/libgomp.fortran/workshare2.f90: New test.
4495 2009-04-09  Nick Clifton  <nickc@redhat.com>
4497         * iter.c: Change copyright header to refer to version 3 of the
4498         GNU General Public License with version 3.1 of the GCC Runtime
4499         Library Exception and to point readers at the COPYING3 and
4500         COPYING3.RUNTIME files and the FSF's license web page.
4501         * alloc.c: Likewise.
4502         * barrier.c: Likewise.
4503         * config/bsd/proc.c: Likewise.
4504         * config/linux/affinity.c: Likewise.
4505         * config/linux/alpha/futex.h: Likewise.
4506         * config/linux/bar.c: Likewise.
4507         * config/linux/bar.h: Likewise.
4508         * config/linux/ia64/futex.h: Likewise.
4509         * config/linux/ia64/mutex.h: Likewise.
4510         * config/linux/lock.c: Likewise.
4511         * config/linux/mips/futex.h: Likewise.
4512         * config/linux/mutex.c: Likewise.
4513         * config/linux/mutex.h: Likewise.
4514         * config/linux/powerpc/futex.h: Likewise.
4515         * config/linux/proc.c: Likewise.
4516         * config/linux/ptrlock.c: Likewise.
4517         * config/linux/ptrlock.h: Likewise.
4518         * config/linux/s390/futex.h: Likewise.
4519         * config/linux/sem.c: Likewise.
4520         * config/linux/sem.h: Likewise.
4521         * config/linux/sparc/futex.h: Likewise.
4522         * config/linux/wait.h: Likewise.
4523         * config/linux/x86/futex.h: Likewise.
4524         * config/mingw32/proc.c: Likewise.
4525         * config/mingw32/time.c: Likewise.
4526         * config/posix/affinity.c: Likewise.
4527         * config/posix/bar.c: Likewise.
4528         * config/posix/bar.h: Likewise.
4529         * config/posix/lock.c: Likewise.
4530         * config/posix/mutex.h: Likewise.
4531         * config/posix/proc.c: Likewise.
4532         * config/posix/ptrlock.h: Likewise.
4533         * config/posix/sem.c: Likewise.
4534         * config/posix/sem.h: Likewise.
4535         * config/posix/time.c: Likewise.
4536         * config/posix95/lock.c: Likewise.
4537         * critical.c: Likewise.
4538         * env.c: Likewise.
4539         * error.c: Likewise.
4540         * fortran.c: Likewise.
4541         * iter_ull.c: Likewise.
4542         * libgomp.h: Likewise.
4543         * libgomp_f.h.in: Likewise.
4544         * libgomp_g.h: Likewise.
4545         * loop.c: Likewise.
4546         * loop_ull.c: Likewise.
4547         * omp.h.in: Likewise.
4548         * omp_lib.f90.in: Likewise.
4549         * omp_lib.h.in: Likewise.
4550         * ordered.c: Likewise.
4551         * parallel.c: Likewise.
4552         * sections.c: Likewise.
4553         * single.c: Likewise.
4554         * task.c: Likewise.
4555         * team.c: Likewise.
4556         * work.c: Likewise.
4558 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
4560         * testsuite/config/default.exp: Change copyright header to refer to
4561         version 3 of the GNU General Public License and to point readers
4562         at the COPYING3 file and the FSF's license web page.
4564 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
4566         PR middle-end/39573
4567         * libgomp.c++/pr39573.C: New test.
4569 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
4571         PR other/39591
4572         * testsuite/libgomp.c/pr39591-1.c: New test.
4573         * testsuite/libgomp.c/pr39591-2.c: New test.
4574         * testsuite/libgomp.c/pr39591-3.c: New test.
4576 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
4578         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
4579         * testsuite/libgomp.c/atomic-6.c: Ditto.
4581 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
4583         PR c/39495
4584         * testsuite/libgomp.c/loop-12.c: New test.
4585         * testsuite/libgomp.c/loop-11.c: New test.
4586         * testsuite/libgomp.c++/loop-11.C: New test.
4587         * testsuite/libgomp.c++/loop-12.C: New test.
4588         * testsuite/libgomp.c++/for-8.C: New test.
4590 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4592         * configure: Regenerate.
4594 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
4596         PR middle-end/39154
4597         * testsuite/libgomp.c/pr39154.c: New test.
4599 2009-01-30  Ian Lance Taylor  <iant@google.com>
4601         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
4602         libgomp_ld_is_gold.  Get gold version number.
4603         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
4604         * configure: Rebuild.
4606 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4608         * testsuite/lib/libgomp.exp: Add -B option for targets that
4609         use libgfortran.a%s in their specs.
4611 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
4613         PR libgomp/38086
4614         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
4615         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
4616         HAVE_AS_SYMVER_DIRECTIVE is not defined.
4617         * configure: Regenerated.
4618         * config.h.in: Likewise.
4620 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
4622         PR c++/38650
4623         * testsuite/libgomp.c/pr38650.c: New test.
4624         * testsuite/libgomp.c++/pr38650.C: New test.
4626 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
4628         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
4630 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
4632         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
4634 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4636         * configure: Regenerate.
4638 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
4640         PR middle-end/36802
4641         * testsuite/libgomp.c/pr36802-1.c: New test.
4642         * testsuite/libgomp.c/pr36802-2.c: New test.
4643         * testsuite/libgomp.c/pr36802-3.c: New test.
4645 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
4647         PR libgomp/38270
4648         * config/linux/powerpc/mutex.h: New.
4650 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
4652         PR c++/38257
4653         * testsuite/libgomp.c++/for-7.C: New test.
4655         PR c++/38348
4656         * testsuite/libgomp.c++/for-6.C: New test.
4658 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
4660         PR testsuite/28870
4661         * testsuite/lib/libgomp.exp: Include new timeout library files.
4662         (libgomp_target_compile): Set timeout value from new proc.
4664 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
4666         PR libgomp/37938
4667         * config/linux/ia64/mutex.h: New.
4669 2008-11-04  Tobias Burnus  <burnus@net-b.de>
4671         PR libgomp/37935
4672         * libgomp.texi (Runtime library routines, environment variables):
4673         Update for OpenMP version 3.0.
4675 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
4676             Steve Ellcey  <sje@cup.hp.com>
4678         * configure: Regenerate for new libtool.
4679         * Makefile.in: Ditto.
4680         * testsuite/Makefile.in: Ditto.
4682 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
4683             Andreas Tobler  <a.tobler@schweiz.org>
4685         * config/bsd/proc.c: New file.
4686         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
4687         * configure.ac: Check for header <sys/sysctl.h>
4688         * configure: Regenerate.
4689         * config.h.in: Likewise.
4691 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
4693         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
4695 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4697         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
4698         * Makefile.in: Regenerated.
4699         * testsuite/Makefile.in: Regenerated.
4701 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
4703         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
4704         depend on blddir if blddir exists.
4705         (libgomp_target_compile): Likewise.
4706         * testsuite/libgomp.c++/c++.exp: Likewise.
4707         * testsuite/libgomp.fortran/fortran.exp: Likewise.
4709 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4711         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
4712         Do not list GPL as Invariant Section.
4714 2008-07-28  Ilie Garbacea  <ilie@mips.com>
4715             Chao-ying Fu  <fu@mips.com>
4717         * configure.tgt: Enable futex for MIPS.
4718         * config/linux/mips/futex.h: New file.
4720 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
4722         * team.c (gomp_team_end): Free team immediately if it has
4723         just one thread.
4725 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
4727         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
4728         * testsuite/libgomp.fortran/fortran.exp: Same.
4729         * testsuite/libgomp.c/c.exp: Same.
4730         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
4731         directory to library path first.
4733 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
4735         * env.c (parse_stacksize): Add cast to avoid warning.
4736         (parse_spincount): Likewise.
4738 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
4740         * testsuite/libgomp.c/loop-10.c: New test.
4741         * libgomp.c/loop-3.c (main): Add lastprivate clause.
4742         * libgomp.c++/loop-6.C (main): Likewise.
4744         PR debug/36617
4745         * testsuite/libgomp.c/debug-1.c: New test.
4747 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
4749         * testsuite/libgomp.c/nqueens-1.c: New test.
4751         PR c++/36523
4752         * testsuite/libgomp.c++/task-7.C: New function.
4754 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4756         * configure: Regenerate.
4758 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4760         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
4761         mutex when HAVE_SYNC_BUILTINS isn't defined.
4763 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4765         * libgomp.texi (omp_test_lock): Fix typo.
4767 2008-06-12  Tobias Burnus  <burnus@net-b.de>
4769         * omp_lib.f90.in: Add "implicit none".
4771 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4773         PR middle-end/36506
4774         * testsuite/libgomp.c/reduction-5.c: New test.
4776 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
4778         * libgomp.h (struct gomp_task): Add in_tied_task field.
4779         * task.c (gomp_init_task): Initialize it.
4780         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
4781         unconditionally.  Don't call gomp_team_barrier_wake if
4782         current task is implicit or if(0) from implicit and number of
4783         running tasks is equal to nthreads - 1.
4785         PR libgomp/36471
4786         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
4787         omp_get_team_size_8): Fix pastos.
4789         PR libgomp/36469
4790         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
4791         * configure: Regenerated.
4792         * config.h.in: Regenerated.
4793         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
4794         defined.
4796 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
4798         PR bootstrap/36452
4799         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
4800         (GOMP_loop_ull_dynamic_start): Likewise.
4801         (GOMP_loop_ull_guided_start): Likewise.
4802         (GOMP_loop_ull_ordered_static_start): Likewise.
4803         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
4804         (GOMP_loop_ull_ordered_guided_start): Likewise.
4806 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4807             Richard Henderson  <rth@redhat.com>
4808             Ulrich Drepper  <drepper@redhat.com>
4809             Jakob Blomer  <jakob.blomer@ira.uka.de>
4811         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
4812         Substitute also OMP_*LOCK_25*.
4813         * configure: Regenerated.
4814         * config.h.in: Regenerated.
4815         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
4816         ptrlock.c and task.c.
4817         * Makefile.in: Regenerated.
4818         * testsuite/Makefile.in: Regenerated.
4819         * task.c: New file.
4820         * loop_ull.c: New file.
4821         * iter_ull.c: New file.
4822         * libgomp.h: Include ptrlock.h.
4823         (enum gomp_task_kind): New type.
4824         (struct gomp_team): Add task_lock, task_queue, task_count,
4825         task_running_count, single_count fields.  Add
4826         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
4827         Remove work_share_lock, generation_mask,
4828         oldest_live_gen, num_live_gen and init_work_shares fields, add
4829         work work_share_list_alloc, work_share_list_free and work_share_chunk
4830         fields.  Change work_shares from pointer to pointers into an array.
4831         Change ordered_release field into gomp_sem_t ** from flexible array
4832         member.  Add implicit_task and initial_work_shares fields.
4833         Move close to the end of the struct.
4834         (struct gomp_team_state): Add single_count, last_work_share,
4835         active_level and level fields, remove work_share_generation.
4836         (gomp_barrier_handle_tasks): New prototype.
4837         (gomp_finish_task): New inline function.
4838         (struct gomp_work_share): Move chunk_size, end, incr into
4839         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
4840         next_ll fields.  Reshuffle fields.  Add next_alloc,
4841         next_ws, next_free and inline_ordered_team_ids fields, change
4842         ordered_team_ids into pointer from flexible array member.
4843         Add mode field.  Put lock and next into a different cache line
4844         from most of the write-once fields.
4845         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
4846         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
4847         gomp_iter_ull_guided_next): New prototypes.
4848         (gomp_new_icv): New prototype.
4849         (struct gomp_thread): Add thread_pool and task fields.
4850         (struct gomp_thread_pool): New type.
4851         (gomp_new_team): New prototype.
4852         (gomp_team_start): Change type of last argument.
4853         (gomp_new_work_share): Removed.
4854         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
4855         (gomp_work_share_init_done): New static inline.
4856         (gomp_throttled_spin_count_var, gomp_available_cpus,
4857         gomp_managed_threads): New extern decls.
4858         (gomp_init_task): New prototype.
4859         (gomp_spin_count_var): New extern var decl.
4860         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
4861         or no alias support, or if not PIC.
4862         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
4863         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
4864         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
4865         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
4866         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
4867         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
4868         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
4869         gomp_test_nest_lock_25): New prototypes.
4870         (omp_lock_symver, strong_alias): Define.
4871         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
4872         decls.
4873         (gomp_end_task): New.
4874         (struct gomp_task_icv, gomp_global_icv): New.
4875         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
4876         (struct gomp_task): New.
4877         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4878         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4879         (gomp_icv): New.
4880         (gomp_schedule_type): Reorder enum to match
4881         omp_sched_t.
4882         * team.c (struct gomp_thread_start_data): Add thread_pool and task
4883         fields.
4884         (gomp_thread_start): Add gomp_team_barrier_wait call.
4885         For non-nested case remove clearing of docked thread thr fields.
4886         Use pool fields instead of global gomp_* variables.  Use
4887         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
4888         Create tasks for each member thread.
4889         (free_team): Only destroy team barrier, task_lock here and free it.
4890         (gomp_free_thread): Free last_team if non-NULL.
4891         (gomp_team_end): Call gomp_team_barrier_wait instead of
4892         gomp_barrier_wait.  For nested case call one extra
4893         gomp_barrier_wait.  Move here some destruction from free_team.
4894         Call free_team on pool->last_team if any, rather than freeing
4895         current team.  Destroy work_share_list_free_lock ifndef
4896         HAVE_SYNC_BUILTINS.
4897         (gomp_new_icv): New function.
4898         (gomp_threads, gomp_threads_size, gomp_threads_used,
4899         gomp_threads_dock): Removed.
4900         (gomp_thread_destructor): New variable.
4901         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
4902         functions.
4903         (gomp_team_start): Create new pool if current thread doesn't have
4904         one.  Use pool fields instead of global gomp_* variables.
4905         Initialize thread_pool field for new threads.  Clear single_count.
4906         Change last argument from ws to team, don't create
4907         new team, set ts.work_share to &team->work_shares[0] and clear
4908         ts.last_work_share.  Don't clear ts.work_share_generation.
4909         If number of threads changed, adjust atomically gomp_managed_threads.
4910         Use gomp_init_task instead of gomp_new_task,
4911         set thr->task to the corresponding implicit_task array entry.
4912         Create tasks for each member thread.  Initialize ts.level.
4913         (initialize_team): Call pthread_key_create on
4914         gomp_thread_destructor.
4915         (team_destructor): New function.
4916         (new_team): Removed.
4917         (gomp_new_team): New function.
4918         (free_team): Free gomp_work_share blocks chained through next_alloc,
4919         instead of freeing work_shares and destroying work_share_lock.
4920         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
4921         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
4922         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
4923         of gomp_barrier_wait.
4924         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
4925         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
4926         if gomp_work_share_start returned true.  Don't unlock ws->lock.
4927         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
4928         of gomp_barrier_wait.
4929         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
4930         gomp_work_share_init_done if gomp_work_share_start returned true.
4931         Don't unlock ws->lock.
4932         * work.c: Include stddef.h.
4933         (free_work_share): Use work_share_list_free_lock instead
4934         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
4935         Call gomp_fini_work_share and then either free ws if orphaned, or
4936         put it into work_share_list_free list of the current team.
4937         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
4938         functions.
4939         (gomp_work_share_start, gomp_work_share_end,
4940         gomp_work_share_end_nowait): Rewritten.
4941         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
4942         (openmp_version): Set to 200805.
4943         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4944         omp_sched_guided, omp_sched_auto): New parameters.
4945         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4946         omp_set_max_active_levels, omp_get_max_active_levels,
4947         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4948         omp_get_active_level): New interfaces.
4949         * omp_lib.h.in (openmp_version): Set to 200805.
4950         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4951         omp_sched_guided, omp_sched_auto): New parameters.
4952         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4953         omp_set_max_active_levels, omp_get_max_active_levels,
4954         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4955         omp_get_active_level): New externals.
4956         * loop.c: Include limits.h.
4957         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
4958         GFS_AUTO.
4959         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
4960         Likewise.  Use gomp_icv.
4961         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
4962         ts.static_trip here.
4963         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
4964         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
4965         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
4966         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
4967         don't unlock ws->lock, otherwise lock it.
4968         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
4969         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
4970         (gomp_parallel_loop_start): Call gomp_new_team instead of
4971         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
4972         Adjust gomp_team_start caller.  Pass 0 as second argument to
4973         gomp_resolve_num_threads.
4974         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
4975         If adding ws->chunk_size nthreads + 1 times after end won't
4976         overflow, set ws->mode to 1.
4977         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
4978         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
4979         GOMP_loop_ull_ordered_static_start,
4980         GOMP_loop_ull_ordered_dynamic_start,
4981         GOMP_loop_ull_ordered_guided_start,
4982         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
4983         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
4984         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
4985         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
4986         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
4987         prototypes.
4988         * libgomp.map: Export lock routines also @@OMP_2.0.
4989         (GOMP_loop_ordered_dynamic_first,
4990         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
4991         GOMP_loop_ordered_static_first): Remove.
4992         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
4993         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
4994         GOMP_loop_ull_ordered_dynamic_next,
4995         GOMP_loop_ull_ordered_dynamic_start,
4996         GOMP_loop_ull_ordered_guided_next,
4997         GOMP_loop_ull_ordered_guided_start,
4998         GOMP_loop_ull_ordered_runtime_next,
4999         GOMP_loop_ull_ordered_runtime_start,
5000         GOMP_loop_ull_ordered_static_next,
5001         GOMP_loop_ull_ordered_static_start,
5002         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
5003         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
5004         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
5005         (omp_set_schedule, omp_get_schedule,
5006         omp_get_thread_limit, omp_set_max_active_levels,
5007         omp_get_max_active_levels, omp_get_level,
5008         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
5009         omp_set_schedule_, omp_set_schedule_8_,
5010         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5011         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5012         omp_get_max_active_levels_, omp_get_level_,
5013         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5014         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5015         New exports @@OMP_3.0.
5016         * omp.h.in (omp_sched_t): New type.
5017         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5018         omp_set_max_active_levels, omp_get_max_active_levels,
5019         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5020         omp_get_active_level): New prototypes.
5021         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
5022         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
5023         gomp_thread_limit_var, gomp_remaining_threads_count,
5024         gomp_remaining_threads_lock): New variables.
5025         (parse_spincount): New function.
5026         (initialize_env): Call gomp_init_num_threads unconditionally.
5027         Initialize gomp_available_cpus.  Call parse_spincount,
5028         initialize gomp_{,throttled_}spin_count_var
5029         depending on presence and value of OMP_WAIT_POLICY and
5030         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
5031         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
5032         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
5033         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
5034         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
5035         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5036         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5037         (gomp_global_icv): New.
5038         (parse_schedule): Use it.  Parse "auto".
5039         (omp_set_num_threads): Use gomp_icv.
5040         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
5041         Likewise.
5042         (omp_get_max_threads): Move from parallel.c.
5043         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5044         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
5045         add ialias.
5046         (parse_stacksize, parse_wait_policy): New functions.
5047         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
5048         both wrappers for compatibility and new locks.
5049         (omp_set_schedule, omp_get_schedule,
5050         omp_get_thread_limit, omp_set_max_active_levels,
5051         omp_get_max_active_levels, omp_get_level,
5052         omp_get_ancestor_thread_num, omp_get_team_size,
5053         omp_get_active_level): New ialias_redirect.
5054         (omp_set_schedule_, omp_set_schedule_8_,
5055         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5056         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5057         omp_get_max_active_levels_, omp_get_level_,
5058         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5059         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5060         New functions.
5061         * parallel.c: Include limits.h.
5062         (gomp_resolve_num_threads): Add count argument.  Rewritten.
5063         (GOMP_parallel_start): Call gomp_new_team and pass that as last
5064         argument to gomp_team_start.  Pass 0 as second argument to
5065         gomp_resolve_num_threads.
5066         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
5067         if gomp_thread_limit_var != ULONG_MAX.
5068         (omp_in_parallel): Implement using ts.active_level.
5069         (omp_get_max_threads): Move to env.c.
5070         (omp_get_level, omp_get_ancestor_thread_num,
5071         omp_get_team_size, omp_get_active_level): New functions,
5072         add ialias.
5073         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
5074         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
5075         gomp_iter_dynamic_next instead of the _locked variant and don't take
5076         lock around it, otherwise acquire it before calling
5077         gomp_iter_dynamic_next_locked.
5078         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
5079         gomp_iter_dynamic_next instead of the _locked variant and don't take
5080         lock around it.
5081         (GOMP_parallel_sections_start): Call gomp_new_team instead of
5082         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
5083         Adjust gomp_team_start caller.  Pass count as second argument to
5084         gomp_resolve_num_threads, don't adjust num_threads after the call.
5085         Use gomp_icv.
5086         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
5087         ws->chunk_size by incr.
5088         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
5089         code.
5090         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
5091         types.
5092         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
5093         (omp_check_defines): Check even the compat defines.
5094         * config/linux/ptrlock.c: New file.
5095         * config/linux/ptrlock.h: New file.
5096         * config/linux/wait.h: New file.
5097         * config/posix/ptrlock.c: New file.
5098         * config/posix/ptrlock.h: New file.
5099         * config/linux/bar.h (gomp_team_barrier_wait,
5100         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5101         (gomp_team_barrier_set_task_pending,
5102         gomp_team_barrier_clear_task_pending,
5103         gomp_team_barrier_set_waiting_for_tasks,
5104         gomp_team_barrier_waiting_for_tasks,
5105         gomp_team_barrier_done): New inlines.
5106         (gomp_barrier_t): Rewritten.
5107         (gomp_barrier_state_t): New typedef.
5108         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
5109         gomp_barrier_wait_start): Rewritten.
5110         (gomp_barrier_wait_end): Change second argument to
5111         gomp_barrier_state_t.
5112         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5113         inlines.
5114         * config/linux/bar.c: Include wait.h instead of libgomp.h and
5115         futex.h.
5116         (gomp_barrier_wait_end): Rewritten.
5117         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5118         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
5119         * config/posix/bar.h (gomp_barrier_t): Add generation field.
5120         (gomp_barrier_state_t): New typedef.
5121         (gomp_team_barrier_wait,
5122         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5123         (gomp_barrier_wait_start): Or all but low 2 bits from generation
5124         into the return value.  Return gomp_barrier_state_t.
5125         (gomp_team_barrier_set_task_pending,
5126         gomp_team_barrier_clear_task_pending,
5127         gomp_team_barrier_set_waiting_for_tasks,
5128         gomp_team_barrier_waiting_for_tasks,
5129         gomp_team_barrier_done): New inlines.
5130         (gomp_barrier_wait_end): Change second argument to
5131         gomp_barrier_state_t.
5132         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5133         inlines.
5134         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
5135         (gomp_barrier_wait_end): Change second argument to
5136         gomp_barrier_state_t.
5137         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5138         gomp_team_barrier_wake): New functions.
5139         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
5140         futex.h.
5141         (gomp_futex_wake, gomp_futex_wait): New variables.
5142         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
5143         * config/linux/lock.c: Rewrite to make locks task owned,
5144         for backwards compatibility provide the old entrypoints
5145         if symbol versioning.  Include wait.h instead of libgomp.h and
5146         futex.h.
5147         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
5148         * config/posix95/lock.c: Rewrite to make locks task owned,
5149         for backwards compatibility provide the old entrypoints
5150         if symbol versioning.
5151         * config/posix/lock.c: Rewrite to make locks task owned,
5152         for backwards compatibility provide the old entrypoints
5153         if symbol versioning.
5154         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
5155         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
5156         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
5157         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5158         (sys_futex0): Return error code.
5159         (futex_wake, futex_wait): If ENOSYS was returned, clear
5160         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5161         (cpu_relax, atomic_write_barrier): New static inlines.
5162         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5163         (futex_wake, futex_wait): If ENOSYS was returned, clear
5164         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5165         (cpu_relax, atomic_write_barrier): New static inlines.
5166         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5167         (sys_futex0): Return error code.
5168         (futex_wake, futex_wait): If ENOSYS was returned, clear
5169         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5170         (cpu_relax, atomic_write_barrier): New static inlines.
5171         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5172         (sys_futex0): Return error code.
5173         (futex_wake, futex_wait): If ENOSYS was returned, clear
5174         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5175         (cpu_relax, atomic_write_barrier): New static inlines.
5176         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5177         (sys_futex0): Return error code.
5178         (futex_wake, futex_wait): If ENOSYS was returned, clear
5179         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5180         (cpu_relax, atomic_write_barrier): New static inlines.
5181         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5182         (sys_futex0): Return error code.
5183         (futex_wake, futex_wait): If ENOSYS was returned, clear
5184         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5185         (cpu_relax, atomic_write_barrier): New static inlines.
5186         * config/linux/sem.c: Include wait.h instead of libgomp.h and
5187         futex.h.
5188         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
5189         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
5190         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
5191         types.
5192         (omp_nest_lock_t): Change owner into void *, add lock field.
5193         * config/posix95/omp-lock.h: Include semaphore.h.
5194         (omp_lock_25_t, omp_nest_lock_25_t): New types.
5195         (omp_lock_t): Use sem_t instead of mutex if semaphores
5196         aren't broken.
5197         (omp_nest_lock_t): Likewise.  Change owner to void *.
5198         * config/posix/omp-lock.h: Include semaphore.h.
5199         (omp_lock_25_t, omp_nest_lock_25_t): New types.
5200         (omp_lock_t): Use sem_t instead of mutex if semaphores
5201         aren't broken.
5202         (omp_nest_lock_t): Likewise.  Add owner field.
5204 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5206         * testsuite/libgomp.c/collapse-1.c: New test.
5207         * testsuite/libgomp.c/collapse-2.c: New test.
5208         * testsuite/libgomp.c/collapse-3.c: New test.
5209         * testsuite/libgomp.c/icv-1.c: New test.
5210         * testsuite/libgomp.c/icv-2.c: New test.
5211         * testsuite/libgomp.c/lib-2.c: New test.
5212         * testsuite/libgomp.c/lock-1.c: New test.
5213         * testsuite/libgomp.c/lock-2.c: New test.
5214         * testsuite/libgomp.c/lock-3.c: New test.
5215         * testsuite/libgomp.c/loop-4.c: New test.
5216         * testsuite/libgomp.c/loop-5.c: New test.
5217         * testsuite/libgomp.c/loop-6.c: New test.
5218         * testsuite/libgomp.c/loop-7.c: New test.
5219         * testsuite/libgomp.c/loop-8.c: New test.
5220         * testsuite/libgomp.c/loop-9.c: New test.
5221         * testsuite/libgomp.c/nested-3.c: New test.
5222         * testsuite/libgomp.c/nestedfn-6.c: New test.
5223         * testsuite/libgomp.c/sort-1.c: New test.
5224         * testsuite/libgomp.c/task-1.c: New test.
5225         * testsuite/libgomp.c/task-2.c: New test.
5226         * testsuite/libgomp.c/task-3.c: New test.
5227         * testsuite/libgomp.c/task-4.c: New test.
5228         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
5229         to C++ testsuite default compiler options.
5230         * testsuite/libgomp.c++/collapse-1.C: New test.
5231         * testsuite/libgomp.c++/collapse-2.C: New test.
5232         * testsuite/libgomp.c++/ctor-10.C: New test.
5233         * testsuite/libgomp.c++/for-1.C: New test.
5234         * testsuite/libgomp.c++/for-2.C: New test.
5235         * testsuite/libgomp.c++/for-3.C: New test.
5236         * testsuite/libgomp.c++/for-4.C: New test.
5237         * testsuite/libgomp.c++/for-5.C: New test.
5238         * testsuite/libgomp.c++/loop-8.C: New test.
5239         * testsuite/libgomp.c++/loop-9.C: New test.
5240         * testsuite/libgomp.c++/loop-10.C: New test.
5241         * testsuite/libgomp.c++/task-1.C: New test.
5242         * testsuite/libgomp.c++/task-2.C: New test.
5243         * testsuite/libgomp.c++/task-3.C: New test.
5244         * testsuite/libgomp.c++/task-4.C: New test.
5245         * testsuite/libgomp.c++/task-5.C: New test.
5246         * testsuite/libgomp.c++/task-6.C: New test.
5247         * testsuite/libgomp.fortran/allocatable1.f90: New test.
5248         * testsuite/libgomp.fortran/allocatable2.f90: New test.
5249         * testsuite/libgomp.fortran/allocatable3.f90: New test.
5250         * testsuite/libgomp.fortran/allocatable4.f90: New test.
5251         * testsuite/libgomp.fortran/collapse1.f90: New test.
5252         * testsuite/libgomp.fortran/collapse2.f90: New test.
5253         * testsuite/libgomp.fortran/collapse3.f90: New test.
5254         * testsuite/libgomp.fortran/collapse4.f90: New test.
5255         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
5256         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
5257         * testsuite/libgomp.fortran/lib4.f90: New test.
5258         * testsuite/libgomp.fortran/lock-1.f90: New test.
5259         * testsuite/libgomp.fortran/lock-2.f90: New test.
5260         * testsuite/libgomp.fortran/nested1.f90: New test.
5261         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
5262         * testsuite/libgomp.fortran/strassen.f90: New test.
5263         * testsuite/libgomp.fortran/tabs1.f90: New test.
5264         * testsuite/libgomp.fortran/tabs2.f: New test.
5265         * testsuite/libgomp.fortran/task1.f90: New test.
5266         * testsuite/libgomp.fortran/task2.f90: New test.
5267         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
5268         * testsuite/libgomp.fortran/vla5.f90: Likewise.
5269         * testsuite/libgomp.c/pr26943-2.c: Likewise.
5270         * testsuite/libgomp.c/pr26943-3.c: Likewise.
5271         * testsuite/libgomp.c/pr26943-4.c: Likewise.
5273 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
5275         PR c++/36308
5276         * testsuite/libgomp.c++/ctor-11.C: New test.
5277         * testsuite/libgomp.c++/ctor-12.C: New test.
5279 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5281         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
5283 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
5285         PR middle-end/36106
5286         * testsuite/libgomp.c/atomic-5.c: New test.
5287         * testsuite/libgomp.c/atomic-6.c: New test.
5288         * testsuite/libgomp.c/autopar-1.c: New test.
5290 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5292         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
5293         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
5294         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
5295         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
5296         * configure: Regenerate.
5297         * Makefile.in, testsuite/Makefile.in: Likewise.
5299 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
5301         PR bootstrap/35457
5302         * aclocal.m4: Regenerate.
5303         * configure: Regenerate.
5305 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5307         PR middle-end/35611
5308         * testsuite/libgomp.c/atomic-4.c: New test.
5310         PR libgomp/35625
5311         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
5312         (gomp_iter_guided_next): Likewise.
5313         * testsuite/libgomp.c/pr35625.c: New test.
5315 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5317         * aclocal.m4: Regenerate.
5318         * configure: Likewise.
5319         * Makefile.in: Likewise.
5320         * testsuite/Makefile.in: Likewise.
5322 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
5324         PR middle-end/35185
5325         * testsuite/libgomp.c++/pr35185.C: New test.
5327 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
5329         PR middle-end/35549
5330         * testsuite/libgomp.c/pr35549.c: New test.
5332 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
5334         * testsuite/libgomp.c/atomic-3.c: New test.
5336 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5338         PR fortran/33197
5339         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
5340         .F08 file suffixes.
5342 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
5344         PR libgomp/33131
5345         * configure.ac: Add ACX_HEADER_STRING.
5346         * env.c: Include strings.h.
5347         * aclocal.m4: Regenerate.
5348         * config.h.in: Regenerate.
5349         * configure: Regenerate.
5350         * Makefile.in: Regenerate.
5351         * testsuite/Makefile.in: Regenerate.
5353 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
5355         PR middle-end/35196
5356         * testsuite/libgomp.c/pr35196.c: New test.
5358         PR middle-end/35130
5359         * testsuite/libgomp.fortran/pr35130.f90: New test.
5360         * testsuite/libgomp.c/pr35130.c: New test.
5362 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
5364         PR middle-end/33880
5365         * testsuite/libgomp.c/pr33880.c: New test.
5366         * testsuite/libgomp.fortran/pr33880.f90: New test.
5368 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
5370         * configure: Regenerate.
5372 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5374         * configure.ac: Move futex checking into ../config/futex.m4.
5375         * configure: Rebuilt.
5376         * aclocal.m4: Rebuilt.
5377         * Makefile.in: Rebuilt.
5379         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
5380         2007-10-15 ../config/tls.m4 change.
5382 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
5384         PR c++/34513
5385         * testsuite/libgomp.c/pr34513.c: New test.
5386         * testsuite/libgomp.c++/pr34513.C: New test.
5388 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
5390         PR target/32765
5391         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
5393 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
5395         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
5397 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
5399         * testsuite/libgomp.c/private-1.c: New test.
5401 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
5402             Paolo Bonzini  <bonzini@gnu.org>
5404         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
5405         instead of 'VPATH ='.
5406         * Makefile.in: Regenerate.
5408 2007-11-23  Matthias Klose  <doko@ubuntu.com>
5410         * configure.ac: Adjust makeinfo version check.
5411         * configure: Regenerate.
5413 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
5415         PR fortran/34020
5416         * testsuite/libgomp.fortran/pr34020.f90: New test.
5418 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
5420         PR c++/33894
5421         * testsuite/libgomp.c++/atomic-1.C: New test.
5423 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
5425         PR libgomp/33275
5426         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
5427         Make x and y integers rather than (implicit) reals.  Add private (j)
5428         clause to the last omp parallel.
5430 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
5432         * configure: Regenerate following changes to ../config/tls.m4.
5434 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
5436         * testsuite/libgomp.fortran/stack.f90: New test.
5438 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
5440         * config/mingw32/proc.c: New file.
5442 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
5444         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
5445         (main): Use __get_cpuid to get i386 target fetaures.
5446         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
5447         (main): Use __get_cpuid to get x86_64 target fetaures.
5449 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
5451         PR target/32765
5452         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
5453         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
5455 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5457         PR fortran/32550
5458         * testsuite/libgomp.fortran/pr32550.f90: New test.
5459         * testsuite/libgomp.fortran/crayptr2.f90: New test.
5461 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5463         * aclocal.m4: Regenerated.
5465 2007-07-05  Tobias Burnus  <burnus@net-b.de>
5467         PR fortran/32359
5468         * testsuite/libgomp.fortran/pr32359.f90: New.
5470 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
5472         PR libgomp/32468
5473         * sections.c (GOMP_parallel_sections_start): Only decrease
5474         number of threads to COUNT if dyn_var is true.
5475         * testsuite/libgomp.c/pr32468.c: New test.
5477 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5479         PR libgomp/26308
5480         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
5482 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
5484         PR middle-end/32362
5485         * testsuite/libgomp.c/pr32362-1.c: New test.
5486         * testsuite/libgomp.c/pr32362-2.c: New test.
5487         * testsuite/libgomp.c/pr32362-3.c: New test.
5489 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
5491         * team.c (gomp_team_start): Fix setting up thread_attr
5492         stack size.
5494 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
5496         * configure: Regenerate.
5498 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
5500         * Makefile.in: Regenerate.
5501         * configure: Regenerate.
5502         * aclocal.m4: Regenerate.
5503         * testsuite/Makefile.in: Regenerate.
5505 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
5507         * config/linux/proc.c: New file.
5509         PR libgomp/28482
5510         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
5512 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
5514         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
5516 2007-04-16  Matthias Klose  <doko@debian.org>
5518         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
5519         flags if not building with -m64.
5520         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
5521         flag for i?86-*-* targets, if current target matches -m64.
5523 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
5525         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
5526         * Makefile.in: Regenerate.
5528 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5530         PR testsuite/31369
5531         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
5532         ld_library_path.
5533         * testsuite/libgomp.fortran/fortran.exp: Likewise.
5535 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
5537         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
5538         decls.
5539         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
5540         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
5541         (parse_affinity): New function.
5542         (initialize_env): Call it and gomp_init_affinity.
5543         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
5544         create new pthread_attr_t and call gomp_init_thread_affinity
5545         on it for each thread before passing the attribute to pthread_create.
5546         * config/linux/affinity.c: New file.
5547         * config/posix/affinity.c: New file.
5548         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
5549         * configure: Rebuilt.
5550         * config.h.in: Rebuilt.
5551         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
5552         * Makefile.in: Rebuilt.
5554 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
5556         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
5557         *-*-darwin*.
5558         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
5559         and use it if found.
5561 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
5563         * testsuite/config/default.exp: New file.
5564         * testsuite/lib/libgomp.exp: New file.
5565         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
5566         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
5567         load_lib *, load_gcc_lib *): Move to libgomp.exp.
5568         (libgomp_load): Remove.
5569         * testsuite/lib/libgomp.exp (libgomp_init): Compute
5570         always_ld_library_path, not ld_library_path.  Set additional_flags
5571         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
5572         (target_compile): Do not call libgomp_init.  Append lang_library_path
5573         and lang_link_flags to options.
5574         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
5575         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
5576         here.
5577         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
5578         always_ld_library_path.  Set LD_LIBRARY_PATH here.
5579         * testsuite/libgomp.fortran/fortran.exp: Ditto.
5580         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
5581         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
5582         CX8 flag.
5583         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
5584         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
5585         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
5586         * testsuite/libgomp.c/pr29947-1.c: Ditto.
5587         * testsuite/libgomp.c/atomic-10.c: Ditto.
5589 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
5591         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
5592         dg-final cleanup-modules line.
5593         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
5594         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
5595         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
5596         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
5597         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
5598         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
5599         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
5601 2007-03-18  Andreas Schwab  <schwab@suse.de>
5603         * acinclude.m4: Adjust regular expression for ld version
5604         extraction.
5605         * configure: Regenerate.
5607 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
5609         * Makefile.am: Add install-pdf target as copied from
5610         automake v1.10 rules.
5611         * Makefile.in: Regenerate
5613 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
5615         PR libgomp/28486
5616         * configure: Regenerate.
5618         PR c++/30703
5619         * testsuite/libgomp.c++/pr30703.C: New test.
5621 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
5623         Revert:
5624         2006-07-05  Eric Christopher  <echristo@apple.com>
5625         * configure.ac: Depend addition of -pthread on host OS.
5626         * configure: Regenerate.
5628 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5630         * libgomp.texi: Fix spacing after abbreviations.
5632 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
5634         PR libgomp/30546
5635         * configure.ac: Add check for makeinfo
5636         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
5637         if an appropiate version of makeinfo is found.
5638         * aclocal.m4: Regenerated.
5639         * configure: Regenerated.
5640         * Makefile.in: Regenerated.
5641         * testsuite/Makefile.in: Regenerated.
5643 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
5645         PR libgomp/30540
5646         * libgomp.texi: More about implementation-dependent settings.
5648 2007-01-26  Tobias Burnus  <burnus@net-b.de>
5650         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
5652 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
5654         PR middle-end/30494
5655         * testsuite/libgomp.c/pr30494.c: New test.
5657 2007-01-15  Tom Tromey  <tromey@redhat.com>
5659         * configure: Rebuilt.
5660         * configure.ac: Fixed comment.
5662 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
5664         * libgomp.texi: Document implementation specific default values of
5665         environment variables.
5667 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
5669         PR libgomp/28209
5670         * libgomp.texi: New file.
5671         * configure.ac: Add --enable-generated-files-in-srcdir option.
5672         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
5673         files to srcdir.
5674         * Makefile.in: Regenerated.
5675         * config.h.in: Regenerated.
5676         * testsuite/Makefile.in: Regenerated.
5677         * NOTES: Removed.
5679 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
5681         PR libgomp/29949
5682         * env.c (omp_set_num_threads): Set illegal thread count to 1.
5684 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5686         * configure: Regenerate.
5688 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
5690         PR libgomp/29947
5691         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
5692         start if there shouldn't be any loop iterations.
5693         (gomp_loop_ordered_static_start): Remove start == end test.
5694         * testsuite/libgomp.c/pr29947-1.c: New test.
5695         * testsuite/libgomp.c/pr29947-2.c: New test.
5697 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
5699         * configure.tgt: Force initial-exec TLS model on Linux only.
5701 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
5703         * configure: Regenerated.
5705 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
5707         * env.c (parse_schedule): Reject out of range values.
5708         (parse_unsigned_long): Reject out of range, negative or zero values.
5710 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
5712         PR fortran/29629
5713         * testsuite/libgomp.fortran/pr29629.f90: New test.
5715 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
5717         PR libgomp/29494
5718         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
5719         * config/posix95: New directory.
5720         * config/posix95/omp-lock.h: New file.
5721         * config/posix95/lock.c: Likewise.
5723 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
5725         * aclocal.m4: Regenerate.
5726         * configure: Regenerate.
5728 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
5730         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
5731         '<' to '<='.
5733 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
5735         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
5736         test.
5737         * configure: Regenerate.
5738         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
5740 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
5742         PR middle-end/25261
5743         PR middle-end/28790
5744         * testsuite/libgomp.c/nestedfn-4.c: New test.
5745         * testsuite/libgomp.c/nestedfn-5.c: New test.
5746         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
5748         PR fortran/29097
5749         * testsuite/libgomp.fortran/condinc1.f: New test.
5750         * testsuite/libgomp.fortran/condinc2.f: New test.
5751         * testsuite/libgomp.fortran/condinc3.f90: New test.
5752         * testsuite/libgomp.fortran/condinc4.f90: New test.
5753         * testsuite/libgomp.fortran/condinc1.inc: New file.
5755 2006-09-18  Tom Tromey  <tromey@redhat.com>
5757         * configure: Rebuilt.
5759 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
5761         PR c/28768
5762         PR preprocessor/14634
5763         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
5764         to AC_DEFINE.
5765         * configure: Regenerate.
5767 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5769         * testsuite/libgomp.fortran/reduction3.f90: Change
5770         -2147483648 to -huge(i)-1 to avoid overflow.
5771         * testsuite/libgomp.fortran/reduction4.f90: Change
5772         Z'ffffffff' to not(0) to avoid overflow.
5774 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
5776         PR libgomp/25938
5777         * Makefile.am (libsubincludedir): New.
5778         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
5779         * Makefile.in: Regenerate.
5781 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
5783         PR libgomp/28725
5784         * env.c: Include ctype.h.
5785         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
5786         leading and/or trailing whitespace and compare strings case
5787         insensitively.
5789 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
5791         PR fortran/28390
5792         * testsuite/libgomp.fortran/pr28390.f: New test.
5794 2006-07-05  Eric Christopher  <echristo@apple.com>
5796         * configure.ac: Depend addition of -pthread on host OS.
5797         * configure: Regenerate.
5799 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
5801         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
5802         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
5803         defined.
5805 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
5807         PR libgomp/26175
5808         PR libgomp/26477
5809         * configure.ac: If neither --enable-linux-futex nor
5810         --disable-linux-futex is passed, determine the default by checking
5811         for compiling and/or running against NPTL.  With --enable-linux-futex,
5812         check if SYS_gettid and SYS_futex are defined.
5813         * configure: Rebuilt.
5815 2006-06-14  Richard Henderson  <rth@redhat.com>
5817         PR libgomp/28008
5818         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
5819         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
5821 2006-06-09  Richard Henderson  <rth@redhat.com>
5823         * env.c (gomp_nthreads_var): Change to unsigned long.
5824         (gomp_run_sched_chunk): Likewise.
5825         (parse_unsigned_long): Rename from parse_num_threads and generalize.
5826         (initialize_env): Initialize gomp_thread_attr.
5827         * libgomp.h (gomp_nthreads_var): Update decl.
5828         (gomp_run_sched_chunk): Likewise.
5829         (gomp_thread_attr): Declare.
5830         * team.c (gomp_thread_attr): Export.
5831         (initialize_team): Don't initialize it.
5833 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
5835         PR fortran/27916
5836         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
5837         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
5839 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5841         * config/mingw32/time.c: New file.
5842         * configure.tgt: Use it.
5844 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
5846         * Makefile.am: Add install-html target. Add install-html to .PHONY
5847         * Makefile.in: Regenerate.
5849 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5851         PR libgomp/27612
5852         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
5853         * testsuite/libgomp.c/critical-1.c: Likewise.
5854         * testsuite/libgomp.c/loop-1.c: Likewise.
5855         * testsuite/libgomp.c/loop-2.c: Likewise.
5856         * testsuite/libgomp.c/single-1.c: Likewise.
5857         * testsuite/libgomp.c/ordered-1.c: Likewise.
5858         * testsuite/libgomp.c/ordered-2.c: Likewise.
5860 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
5862         PR middle-end/27416
5863         * libgomp.fortran/pr27416-1.f90: New test.
5865 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
5867         PR fortran/27395
5868         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
5869         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
5871 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
5873         PR c++/26943
5874         * testsuite/libgomp.c/pr26943-1.c: New test.
5875         * testsuite/libgomp.c/pr26943-2.c: New test.
5876         * testsuite/libgomp.c/pr26943-3.c: New test.
5877         * testsuite/libgomp.c/pr26943-4.c: New test.
5878         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
5879         * testsuite/libgomp.c++/pr26943.C: New test.
5881 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
5883         PR middle-end/27337
5884         * testsuite/libgomp.c++/pr27337.C: New test.
5886 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
5888         PR c/26171
5889         * testsuite/libgomp.c/pr26171.c: New test.
5891 2006-04-25  Richard Henderson  <rth@redhat.com>
5893         PR libgomp/25865
5894         * configure.ac: Use GCC_CHECK_TLS.
5895         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
5896         * Makefile.in, aclocal.m4, configure: Regenerate.
5898 2006-04-10  Matthias Klose  <doko@debian.org>
5900         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
5901         directory names containing underscores.
5903 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
5905         PR c++/26691
5906         * testsuite/libgomp.c++/pr26691.C: New test.
5908 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
5910         * testsuite/libgomp.fortran/retval2.f90: New test.
5912 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
5914         * testsuite/libgomp.c++: New directory.
5916 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
5918         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
5919         * config/posix/sem.c: Implement the above.
5921 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
5923         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
5924         define HAVE_BROKEN_POSIX_SEMAPHORES.
5925         * configure: Rebuilt.
5926         * config.h.in: Rebuilt.
5928 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5930         PR bootstrap/26161
5931         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
5932         for the other pthread check.
5933         * configure: Regenerate.
5934         * config.h.in: Regenerate.
5936 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
5938         PR libgomp/25938
5939         PR libgomp/25984
5940         * Makefile.am (fincludedir): New variable.
5941         (nodist_include_HEADERS): Remove Fortran files.
5942         (nodist_finclude_HEADERS): New variable.
5943         * Makefile.in: Regenerated.
5945 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
5947         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
5948         Remove tests for returning assumed character length arrays.
5950 2006-02-12  Roger Sayle  <roger@eyesopen.com>
5951             John David Anglin  <dave@hiauly1.hia.nrc.ca>
5953         PR libgomp/25936
5954         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
5956 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
5958         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
5960 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5962         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
5963         part of LD_LIBRARY_PATH manually.
5965 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
5967         PR libgomp/25852
5968         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
5969         libgomp_init.
5971 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
5973         PR libgomp/25884
5974         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
5975         * configure.ac (PERL): Don't set.
5976         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
5977         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
5978         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
5979         * omp.h.in: Wrap the new configure substitutions with @ characters.
5980         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
5981         * aclocal.m4, configure, Makefile.in: Regenerate.
5982         * mkomp_h.pl: Delete.
5984 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
5986         PR libgomp/25259
5987         * configure.ac: Use GCC_HEADER_STDINT.
5988         * libgomp.h: Include gstdint.h.
5989         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
5990         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
5992 2006-01-24  Richard Henderson  <rth@redhat.com>
5994         PR libgomp/25942
5995         * configure.ac: Add AM_MAINTAINER_MODE.
5996         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
5998 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
6000         * Makefile.in: Regenerate.
6001         * testsuite/Makefile.in: Regenerate.
6002         * aclocal.m4: Regenerate.
6004 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
6006         * config/posix/proc.c: Conditional include of sys/loadavg.h for
6007         Solaris.
6008         * configure.ac: Add check for loadavg.h.
6009         (link_gomp): Adjust comment.
6010         * configure: Regenerate.
6011         * config.h.in: Regenerate.
6013 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
6015         PR libgomp/25877
6016         * configure.ac: Remove check for alloca.h.
6017         * configure: Regenerate.
6018         * config.h.in: Regenerate.
6019         * libgomp.h: define gomp_alloca to be __builtin_alloca.
6020         * team.c: Remove use of alloca.h.
6021         Call gomp_alloca instead of alloca.
6023 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
6025         PR libgomp/25877
6026         * team.c: Add include of alloca.h.
6027         * configure.ac: Add check for alloca.h.
6028         * configure: Regenerate.
6029         * config.h.in: Regenerate.
6031 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
6033         PR fortran/25219
6034         * testsuite/libgomp.fortran/pr25219.f90: New test.
6036 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
6038         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
6039         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
6040         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6041         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6042         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
6043         testsuite/libgomp.fortran/threadprivate1.f90,
6044         testsuite/libgomp.fortran/threadprivate2.f90,
6045         testsuite/libgomp.fortran/threadprivate3.f90,
6046         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6047         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6048         testsuite/libgomp.fortran/omp_parse3.f90: Change required
6049         effective-target to TLS runtime.
6051         * testsuite/libgomp.fortran/pr25162.f: Require
6052         effective-target TLS runtime.
6054 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
6056         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
6057         * testsuite/libgomp.c/nestedfn-3.c: New test.
6059 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
6061         PR fortran/25162
6062         * testsuite/libgomp.fortran/pr25162.f: New test.
6064 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
6066         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
6067         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
6069 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
6071         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
6072         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
6073         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
6074         single.c, team.c, work.c, config/linux/alpha/futex.h,
6075         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
6076         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
6077         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
6078         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
6079         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
6080         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
6081         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
6082         FSF address.
6084 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
6086         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
6087         to nodist_noinst_HEADERS.
6088         * Makefile.in: Rebuilt.
6090         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
6091         add integer count field.
6092         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
6093         omp_nest_lock_t type change.
6094         (omp_init_nest_lock): Likewise.  Initialize count to 0.
6095         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
6096         Increment count.
6097         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
6098         Decrement count.
6099         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
6100         Increment count if successful and return the new nesting level.
6101         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
6102         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
6103         * testsuite/libgomp.c/lib-1.c: New test.
6104         * testsuite/libgomp.fortran/lib1.f90: New test.
6105         * testsuite/libgomp.fortran/lib2.f: New test.
6106         * testsuite/libgomp.fortran/lib3.f: New test.
6108 2005-11-17  Richard Henderson  <rth@redhat.com>
6110         PR 24845
6111         * Makefile.am (nodist_toolexeclib_HEADERS): New.
6112         * configure.ac (link_gomp): New.  Substitute it.
6113         (AC_CONFIG_FILES): Add libgomp.spec.
6114         * libgomp.spec.in: New file.
6115         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
6116         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
6118 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
6120         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
6121         reduction(-:var) behaving the same as reduction(+:var).
6122         * testsuite/libgomp.c/reduction-4.c: New test.
6124 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
6126         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
6127         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
6128         testsuite/libgomp.c/copyin-3.c,
6129         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6130         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6131         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
6132         testsuite/libgomp.c++/pr24455.C,
6133         testsuite/libgomp.fortran/threadprivate1.f90,
6134         testsuite/libgomp.fortran/threadprivate2.f90,
6135         testsuite/libgomp.fortran/threadprivate3.f90,
6136         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6137         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6138         testsuite/libgomp.fortran/omp_parse3.f90: Require
6139         effective-target TLS.
6141 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
6143         * HEADER: Remove.
6145 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
6147         PR libgomp/24797
6148         * team.c (initialize_team): Pass NULL rather than free as
6149         pthread_key_create destructor.  Initialize thread specific data
6150         pointer in initial thread to a static local variable rather than
6151         malloced memory.
6153 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
6155         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
6156         its location to ld_library_path.
6158 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
6160         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
6162 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
6164         * testsuite/libgomp.c: Rename from libgomp.dg.
6166 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
6168         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
6169         threadprivate variable 'i'.
6171 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
6173         * config/linux/s390/futex.h: New file.
6174         * configure.tgt: Use it.
6176         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
6177         before the parallel.
6179 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
6181         PR c++/24734
6182         * testsuite/libgomp.c++/master-1.C: New test.
6184 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
6186         * testsuite/libgomp.dg/copyin-3.c: New test.
6188 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
6190         * testsuite/libgomp.fortran/retval1.f90: New test.
6191         * testsuite/libgomp.fortran/vla7.f90: New test.
6193 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
6195         * testsuite/libgomp.fortran/vla2.f90: New test.
6196         * testsuite/libgomp.fortran/vla3.f90: New test.
6197         * testsuite/libgomp.fortran/vla4.f90: New test.
6198         * testsuite/libgomp.fortran/vla5.f90: New test.
6199         * testsuite/libgomp.fortran/vla6.f90: New test.
6201 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
6203         * config/linux/sparc/futex.h: New file.
6204         * configure.tgt: Use it.
6205         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
6207         * critical.c: Include stdlib.h.
6208         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
6209         ignoring return value.
6210         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
6211         LIBGOMP_CHECK_SYNC_BUILTINS check.
6212         * configure: Rebuilt.
6214 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
6216         * testsuite/libgomp.fortran/vla1.f90: New test.
6218 2005-10-31  Richard Henderson  <rth@redhat.com>
6220         * testsuite/libgomp.fortran/character2.f90: Fix race condition
6221         setting 's' in different threads.
6223 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
6225         * libgomp.h (attribute_hidden, ialias): Define.
6226         * config/posix/proc.c (omp_get_num_procs): Add ialias.
6227         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
6228         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
6229         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
6230         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
6231         omp_test_lock, omp_test_nest_lock): Likewise.
6232         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
6233         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
6234         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
6235         omp_test_lock, omp_test_nest_lock): Likewise.
6236         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
6237         omp_get_dynamic, omp_get_nested): Likewise.
6238         * parallel.c (omp_get_num_threads, omp_get_max_threads,
6239         omp_get_thread_num, omp_in_parallel): Likewise.
6240         * fortran.c (ialias_redirect): Define.
6241         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
6242         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
6243         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
6244         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
6245         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
6246         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
6247         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
6248         omp_get_wtime): Add ialias_redirect.
6250 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
6252         * fortran.c: Include stdlib.h.
6254 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
6256         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
6257         * Makefile.in: Regenerated.
6259 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
6261         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
6262         * libgomp_f.h.in (omp_check_defines): New function.
6263         * env.c: Include libgomp_f.h.
6264         (initialize_env): Call omp_check_defines.
6266         * testsuite/libgomp.dg/copyin-2.c: New test.
6267         * testsuite/libgomp.c++/copyin-2.C: New test.
6268         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
6270         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
6271         * testsuite/libgomp.fortran/sharing2.f90: New test.
6273         * testsuite/libgomp.dg/copyin-1.c: New test.
6274         * testsuite/libgomp.c++/copyin-1.C: New test.
6276 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
6278         * testsuite/libgomp.fortran/crayptr1.f90: New test.
6280         * testsuite/libgomp.fortran/workshare1.f90: New test.
6282         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
6283         only test.
6284         * libgomp.fortran/sharing1.f90: New test.
6286 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
6288         PR c++/24502
6289         * testsuite/libgomp.c++/loop-7.C: New test.
6291         * testsuite/libgomp.dg/nestedfn-2.c: New test.
6293         * testsuite/libgomp.dg/nestedfn-1.c: New test.
6294         * testsuite/libgomp.fortran/reduction6.f90: New test.
6295         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
6297 2005-10-23  Richard Henderson  <rth@redhat.com>
6299         * testsuite/libgomp.c++/ctor-1.C: New.
6300         * testsuite/libgomp.c++/ctor-2.C: New.
6301         * testsuite/libgomp.c++/ctor-3.C: New.
6302         * testsuite/libgomp.c++/ctor-4.C: New.
6303         * testsuite/libgomp.c++/ctor-5.C: New.
6304         * testsuite/libgomp.c++/ctor-6.C: New.
6305         * testsuite/libgomp.c++/ctor-7.C: New.
6306         * testsuite/libgomp.c++/ctor-8.C: New.
6307         * testsuite/libgomp.c++/ctor-9.C: New.
6309 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
6311         PR 24455
6312         * testsuite/libgomp.c++/pr24455-1.C: New test.
6313         * testsuite/libgomp.c++/pr24455.C: New test.
6314         * testsuite/libgomp.dg/pr24455-1.c: New test.
6315         * testsuite/libgomp.dg/pr24455.c: New test.
6317 2005-10-20  Richard Henderson  <rth@redhat.com>
6319         * testsuite/libgomp.c++/loop-6.C: New.
6320         * testsuite/libgomp.dg/loop-3.c: New.
6322 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
6324         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
6325         explicitly private.
6326         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
6327         explicitly shared.
6329 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
6331         * testsuite/libgomp.fortran/jacobi.f: New test.
6333 2005-10-19  Richard Henderson  <rth@redhat.com>
6335         * configure.tgt (i?86-linux): Default to with_arch instead of
6336         CFLAGS.  Add -mtune to match target_cpu.
6337         (x86_64-linux): Tune to i686.
6339         * fortran.c (omp_test_nest_lock_): Fix typo.
6341 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
6343         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
6344         gomp_ordered_sync): Do nothing if team->nthreads == 1.
6345         * testsuite/libgomp.dg/ordered-3.c: New test.
6347         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
6348         Remove volatile keyword.
6350         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
6351         in COMMON block to avoid warnings on 64-bit targets.
6353 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
6355         * testsuite/libgomp.dg/shared-3.c: New test.
6357 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
6359         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
6360         * testsuite/libgomp.fortran/reduction5.f90: New test.
6362 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
6364         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
6365         dg-options.
6366         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
6367         flush loop now that __sync_synchronize has proper memory barrier.
6368         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
6369         Add -ffixed-form to dg-options.
6371 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
6373         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
6374         from subdirectories.
6375         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
6376         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
6377         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
6378         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
6379         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
6380         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
6381         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
6382         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
6383         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
6384         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
6385         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
6386         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
6387         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
6388         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
6389         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
6390         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
6391         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
6392         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
6393         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
6394         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
6395         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
6396         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
6397         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
6398         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
6399         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
6401 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
6403         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
6404         lang_library_path exists.  Use find instead of glob to gather tests.
6405         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
6407 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
6409         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
6410         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
6411         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
6412         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
6413         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
6414         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
6415         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
6416         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
6417         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
6418         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
6419         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
6420         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
6421         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
6423 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
6425         * testsuite/libgomp.dg/vla-1.c: New test.
6427         * testsuite/libgomp.fortran/reference2.f90: New test.
6429         * testsuite/libgomp.fortran/character2.f90: Remove explicit
6430         declaration of omp_get_thread_num.
6431         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
6432         use omp_lib.
6434         * testsuite/libgomp.fortran/reduction1.f90: New test.
6435         * testsuite/libgomp.fortran/reduction2.f90: New test.
6436         * testsuite/libgomp.fortran/reduction3.f90: New test.
6437         * testsuite/libgomp.fortran/reduction4.f90: New test.
6439 2005-10-13  Richard Henderson  <rth@redhat.com>
6441         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
6442         * Makefile.in: Regenerate.
6443         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
6444         * libgomp.h: Include bar.h.
6445         (struct gomp_barrier): Remove.
6446         (struct gomp_team): Add barrier.  Replace master_barrier with
6447         master_release.  Replace threads with ordered_release.
6448         (struct gomp_thread): Replace barrier with release.
6449         * ordered.c (gomp_ordered_first): Update for ordered_release change.
6450         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
6451         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
6452         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
6453         (GOMP_single_copy_end): Likewise.
6454         * team.c (gomp_threads_dock): New.
6455         (gomp_barrier_init, gomp_barrier_destroy): Remove.
6456         (gomp_thread_start): Use gomp_barrier_wait.
6457         (new_team, free_team): Update for gomp_team changes.
6458         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
6459         (gomp_team_end): Use gomp_barrier_wait.
6460         (initialize_team): Update for gomp_thread changes.
6461         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
6462         (gomp_work_share_end_nowait): Use atomic ops when available.
6463         * config/linux/bar.c, config/linux/bar.h: New files.
6464         * config/posix/bar.c, config/posix/bar.h: New files.
6466 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
6468         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
6469         * testsuite/libgomp.dg/single-2.c: New test.
6471         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
6472         lang_link_flags): Unset, so that they aren't inherited from previously
6473         sourced *.exp.
6475         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
6477 2005-10-12  Richard Henderson  <rth@redhat.com>
6479         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
6480         (libgomp_init): Use lang_test_file, lang_library_path, and
6481         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
6483         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
6484         (lang_test_file, lang_link_flags): New.
6485         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
6487         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
6488         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
6489         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
6490         testsuite/libgomp.c++/parallel-1.C,
6491         testsuite/libgomp.c++/reduction-1.C,
6492         testsuite/libgomp.c++/reduction-2.C,
6493         testsuite/libgomp.c++/reduction-3.C,
6494         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
6495         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
6496         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
6497         New files, largely cribbed from the C testsuite.
6499 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
6501         * testsuite/libgomp.fortran/character1.f90: New test.
6502         * testsuite/libgomp.fortran/character2.f90: New test.
6504         * testsuite/libgomp.dg/nested-1.c: New test.
6505         * testsuite/libgomp.dg/nested-2.c: New test.
6506         * testsuite/libgomp.fortran/do1.f90: New test.
6507         * testsuite/libgomp.fortran/do2.f90: New test.
6509         * testsuite/libgomp.fortran/reference1.f90: New test.
6511 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
6513         * testsuite/libgomp.dg/reduction-1.c: New test.
6514         * testsuite/libgomp.dg/reduction-2.c: New test.
6515         * testsuite/libgomp.dg/reduction-3.c: New test.
6517 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
6519         * testsuite/libgomp.dg/atomic-1.c: New test.
6520         * testsuite/libgomp.dg/atomic-2.c: New test.
6522 2005-10-09  Richard Henderson  <rth@redhat.com>
6524         * critical.c (atomic_lock): New.
6525         (initialize_critical): Initialize it.
6526         (GOMP_atomic_start, GOMP_atomic_end): New.
6527         * libgomp.map: Export them.
6528         * libgomp_g.h: Declare them.
6530         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
6532 2005-10-02  Richard Henderson  <rth@redhat.com>
6534         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
6535         to XCFLAGS instead of CFLAGS.
6537 2005-09-30  Richard Henderson  <rth@redhat.com>
6539         * configure.ac: Determine whether -pthread or -lpthread is needed.
6540         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
6541         * Makefine.in, configure: Rebuild.
6543 2005-09-28  Richard Henderson  <rth@redhat.com>
6545         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
6546         * testsuite/libgomp.dg/omp-single-3.c: New test.
6548 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
6550         * testsuite/libgomp.dg/omp-single-2.c: New test.
6551         * testsuite/libgomp.dg/shared-2.c: Fix return code.
6553 2005-09-27  Richard Henderson  <rth@redhat.com>
6555         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
6556         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
6558 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
6560         * testsuite/libgomp.dg/omp-loop03.c: New test.
6562 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
6564         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
6566 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
6568         * testsuite/libgomp.dg/omp-single-1.c: New test.
6569         * testsuite/libgomp.dg/shared-1.c: Return 0.
6570         Add prototype for abort.
6571         * testsuite/libgomp.dg/shared-2.c: Likewise.
6573 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
6575         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
6576         constructs.
6578 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
6580         * testsuite/libgomp.dg/shared-1.c: New test.
6581         * testsuite/libgomp.dg/shared-2.c: New test.
6583 2005-09-24  Richard Henderson  <rth@redhat.com>
6585         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
6587 2005-09-24  Richard Henderson  <rth@redhat.com>
6589         * iter.c (gomp_iter_static_next): Round up when computing number
6590         of iterations.  Don't bother distributing a remainder equally.
6592         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
6593         Don't call srand.  Zero b before testing.
6594         (main): New.
6596 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
6598         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
6599         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
6601 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
6603         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
6604         without !$omp end do, followed immediately by subroutine end.
6606 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
6608         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
6610 2005-09-22  Richard Henderson  <rth@redhat.com>
6612         * critical.c (GOMP_critical_name_start): Change argument to void**.
6613         Reuse the pointer space if the mutex fits.
6614         (GOMP_critical_name_end): Likewise.
6615         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
6616         * libgomp_g.h (GOMP_critical_name_start): Update decl.
6617         (GOMP_critical_name_end): Likewise.
6618         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
6619         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
6621 2005-09-20  Richard Henderson  <rth@redhat.com>
6623         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
6624         (create_lock_lock): New.
6625         (initialize_critical): Initialize it.
6626         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
6627         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
6629 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
6631         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
6633 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
6635         * testsuite/libgomp.dg/omp-loop01.c: New test.
6636         * testsuite/libgomp.dg/omp-loop02.c: New test.
6638 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
6640         * configure.ac (AC_PROG_FC): Add.
6641         (USE_FORTRAN): New automake conditional.
6642         * configure: Rebuilt.
6643         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
6644         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
6645         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
6646         Add rules to build them.
6647         * Makefile.in: Rebuilt.
6648         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
6649         OMP_NEST_LOCK_KIND.
6650         * libgomp.map: Add Fortran wrappers.
6651         * libgomp_f.h.in: New file.
6652         * omp_lib.h.in: New file.
6653         * omp_lib.f90.in: New file.
6654         * fortran.c: New file.
6655         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
6656         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
6657         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
6658         libgfortran has been built.
6659         * testsuite/libgomp.fortran/fortran.exp: New file.
6660         * testsuite/libgomp.fortran/omp_cond1.f: New test.
6661         * testsuite/libgomp.fortran/omp_cond2.f: New test.
6662         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
6663         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
6664         * testsuite/libgomp.fortran/omp_hello.f: New test.
6665         * testsuite/libgomp.fortran/omp_orphan.f: New test.
6666         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
6667         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
6668         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
6669         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
6670         * testsuite/libgomp.fortran/omp_reduction.f: New test.
6671         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
6672         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
6674 2005-08-30  Richard Henderson  <rth@redhat.com>
6676         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
6677         function for when aliases are not usable.
6678         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
6679         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
6680         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
6681         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
6682         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
6683         GOMP_loop_ordered_guided_next): Likewise.
6684         * ordered.c (GOMP_ordered_start): Likewise.
6686 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
6688         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
6689         * testsuite/libgomp.dg/omp_hello.c: Fix return code
6690         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
6691         * testsuite/libgomp.dg/omp_orphan.c: Likewise
6692         * testsuite/libgomp.dg/omp_reduction.c: Likewise
6693         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
6694         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
6695         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
6696         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
6698 2005-07-07  Eric Christopher  <echristo@redhat.com>
6699             Diego Novillo  <dnovillo@redhat.com>
6701         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
6702         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
6703         up code.
6704         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
6705         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
6706         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
6707         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
6708         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
6709         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
6710         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
6712 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
6714         * TOPLEVEL.patch: Remove.
6716 2005-05-16  Richard Henderson  <rth@redhat.com>
6718         * configure.ac: Test for clock_gettime.
6719         * config.h.in, configure: Rebuild.
6720         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
6721         (omp_get_wtime): Use clock_gettime if available.
6722         (omp_get_wtick): Use clock_getres if available.
6724 2005-05-11  Richard Henderson  <rth@redhat.com>
6726         * config/linux/ia64/futex.h: New file.
6727         * configure.tgt: Use it.
6729         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
6731 2005-05-07  Richard Henderson  <rth@redhat.com>
6733         * config/linux/powerpc/futex.h: New file.
6734         * configure.tgt: Use it.
6736         * config/linux/i486/futex.h: Merge ...
6737         * config/linux/x86_64/futex.h: ... into ...
6738         * config/linux/x86/futex.h: ... here.
6739         * configure.tgt: Update to match.
6741 2005-05-06  Richard Henderson  <rth@redhat.com>
6743         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
6744         * config/linux/i486/futex.h: Likewise.
6745         * config/linux/x86_64/futex.h: Likewise.
6747         * config/linux/lock.c: New file.
6748         * config/linux/omp-lock.h: New file.
6750         * critical.c, env.h: Don't include omp.h
6751         * config/posix/lock.c: Include libgomp.h instead of omp.h.
6752         * config/posix/time.c: Likewise.
6753         * config/posix/omp-lock.h: New file.
6754         * libgomp.h: Include omp-lock.h and omp.h.
6755         * Makefile.am (nodist_include_HEADERS): New.
6756         (omp.h): New rule.
6757         * configure.ac (PERL): New.
6758         * mkomp_h.pl: New file.
6759         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
6760         with templates.
6761         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
6763         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
6764         build directory.  Re-add -march=i486 hack.
6766         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
6767         (libgomp_link_flags): Remove.
6768         (libgomp_initialized): Remove.
6769         (libgomp_init): Don't protect from reinitialization.  Copy code
6770         from libstdc++ for getting the multilib set correctly.
6772 2005-05-05  Richard Henderson  <rth@redhat.com>
6774         * config/linux/alpha/futex.h: New file.
6775         * configure.tgt (alpha*-*-linux*): Use it.
6777         * config/posix/mutex.c: New file.
6778         * config/posix/sem.c: Use libgomp.h.
6780         * configure.tgt (x86_64-linux): Also test CC for -m32.
6781         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
6783         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
6784         after $gccpath.
6786         * Makefile.am (SUBDIRS): New.
6787         (libgomp_la_LDFLAGS): Add -lpthread.
6788         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
6789         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
6791         * libgomp_g.h: New file.
6792         * libgomp.h: Split out all public declarations to libgomp_g.h.
6793         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
6794         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
6795         * config/linux/sem.h: Likewise.
6796         * config/posix/sem.h: Likewise.
6798         * Makefile.am (AM_LDFLAGS): New.
6799         (libgomp_version_script): Split out from ...
6800         (libgomp_la_LDFLAGS): ... here.
6801         (libgomp_version_info): New.
6802         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
6803         (LIBGOMP_ENABLE): New.
6804         (LIBGOMP_CHECK_LINKER_FEATURES): New.
6805         (LIBGOMP_ENABLE_SYMVERS): New.
6806         * configure.ac (AC_INIT): Version 1.0.
6807         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
6808         (enable-linux-futex): Likewise.  Rename from enable-futex.
6809         (libtool_VERSION): New.
6810         (LIBGOMP_ENABLE_SYMVERS): Use it.
6811         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
6812         * Makefile.in, aclocal.m4, configure: Rebuild.
6814         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
6815         (gomp_mutex_unlock_slow): Fix typo.
6816         * config/linux/sem.c: Similarly.
6817         (gomp_sem_post_slow): Fix typo.
6818         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
6819         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
6820         [__PIC__] (sys_futex0): Don't use tmp output in asm.
6822         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
6823         (libgomp_la_LDFLAGS): Add top_srcdir to path.
6824         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
6825         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
6826         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
6827         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
6828         LDFLAGS.  Pull enable_futex check to top-level.
6829         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
6830         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
6832         First attempt at real configury.
6833         * Makefile, config.h: Remove file.
6834         * Makefile.am, Makefile.in: New file.
6835         * acinclude.m4 aclocal.m4: New file.
6836         * configure.ac, configure.tgt, configure: New file.
6838         * config/posix/lock.c: Rename from sys-lock.c.
6839         * config/posix/mutex.h: Rename from sys-mutex.h.
6840         * config/posix/sem.c: Rename from sys-sem.c.
6841         * config/posix/sem.h: Rename from sys-sem.h.
6842         * config/posix/proc.c: Rename from sys-proc.c.
6843         * config/posix/time.c: Rename from sys-proc.c.
6845         * config/linux/mutex.c: New file.
6846         * config/linux/mutex.h: New file.
6847         * config/linux/sem.c: New file.
6848         * config/linux/sem.h: New file.
6849         * config/linux/i486/futex.h: New file.
6850         * config/linux/x86_64/futex.h: New file.
6852 2005-05-04  Richard Henderson  <rth@redhat.com>
6854         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
6855         * libgomp.h: Declare them.
6856         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
6857         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
6859 2005-05-04  Richard Henderson  <rth@redhat.com>
6861         * libgomp-1 code drop
6863 2005-05-04  Richard Henderson  <rth@redhat.com>
6865         * iter.c (gomp_iter_static_next): Return tri-state on 0.
6866         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
6867         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
6868         (gomp_iter_static_next): Update.
6869         (gomp_ordered_static_next): Update.
6870         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
6871         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
6872         totally empty range.
6873         (gomp_loop_ordered_static_next): Refine test for calling
6874         gomp_ordered_static_next.
6875         * testsuite/ordered-1.c: Add case for more threads than iterations.
6877         * iter.c (gomp_iter_runtime_next_locked): Remove.
6878         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
6879         gomp_loop_guided_start, gomp_loop_ordered_static_start,
6880         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
6881         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
6882         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
6883         gomp_loop_ordered_guided_next): Downcase name, make static, add
6884         an external alias with the old name.
6885         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
6886         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
6887         switch and call one of the above static functions.
6888         * libgomp.h: Update.
6890         * work.c (gomp_work_share_start): Lock the mutex for !first too.
6891         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
6892         GOMP_loop_guided_start, GOMP_loop_runtime_start,
6893         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
6894         GOMP_loop_ordered_guided_start): Update to match.
6895         * sections.c (GOMP_sections_start): Likewise.
6896         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
6898         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
6899         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
6900         Use bounds check instead of modulus.
6901         (gomp_ordered_sync): Split out of GOMP_ordered_start.
6902         (gomp_ordered_last): Don't sync with ordered_owner here.
6903         (gomp_ordered_next): Likewise.
6904         (gomp_ordered_static_loop_next): Likewise.
6905         * loop.c, libgomp.h: Update to match.
6907         * libgomp.h (GOMP_barrier): Declare.
6909         * testsuite/barrier-1.c: New file.
6910         * testsuite/critical-1.c: New file.
6911         * testsuite/ordered-2.c: New file.
6912         * testsuite/ordered-1.c: New file.
6913         * testsuite/sections-1.c: New file.
6914         * testsuite/single-1.c: New file.
6915         * testsuite/Makefile (TESTS): Add them.
6917 2005-05-04  Richard Henderson  <rth@redhat.com>
6919         * libgomp.h (struct gomp_work_share): Add ordered_owner.
6920         * loop.c (GOMP_loop_static_start): If not the startup thread,
6921         acquire the mutex to wait for initialization complete.
6922         (GOMP_loop_ordered_static_start): Likewise.
6923         (GOMP_loop_ordered_runtime_start): Likewise.
6924         (GOMP_loop_ordered_static_first): Remove.
6925         (GOMP_loop_ordered_dynamic_first): Remove.
6926         (GOMP_loop_ordered_guided_first): Remove.
6927         (GOMP_loop_ordered_runtime_first): Remove.
6928         * ordered.c (gomp_ordered_loop_first): Post to own release when
6929         we're the first thread.
6930         (gomp_ordered_loop_last): Wait on release if not owner.
6931         (gomp_ordered_loop_next): Likewise.
6932         (gomp_ordered_static_loop_init): New.
6933         (gomp_ordered_static_loop_next): Use ordered_owner.
6934         (GOMP_ordered_start): Likewise.
6935         * work.c (gomp_new_work_share): Initialize ordered_owner.
6937 2005-05-03  Richard Henderson  <rth@redhat.com>
6939         * Makefile (OPT): New.
6940         (CFLAGS): Use it.
6942         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
6943         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
6944         * libgomp.h, libgomp.map, NOTES: Update to match.
6946         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
6947         Add initialized and thr members.
6948         (gomp_thread_start): Pause when initially spawned to wait for
6949         the whole team to be created.
6950         (gomp_team_start): Release team members at the end.
6952         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
6953         (f_foo_1): Use GOMP_loop_end.
6954         (f_foo_2): Use GOMP_loop_end_nowait.
6956         * testsuite/loop-2.c: New file.
6957         * testsuite/Makefile (TESTS): Add it.
6959 2005-05-03  Richard Henderson  <rth@redhat.com>
6961         * iter.c (gomp_iter_static_next): Fix overflow check typo.
6962         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
6963         * team.c (new_team): Initialize oldest_live_gen to 1 if no
6964         initial work_share.
6966         * testsuite/Makefile: New file.
6967         * testsuite/loop-1.c: New file.
6969 2005-05-03  Richard Henderson  <rth@redhat.com>
6971         Initial implementation and checkin.