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