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