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