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