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