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