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