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