1 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
3 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
5 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
8 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
10 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
11 to 0 when mapnum is 0.
13 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
15 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
16 Cast to int from int32_t.
18 2015-10-13 Jakub Jelinek <jakub@redhat.com>
19 Aldy Hernandez <aldyh@redhat.com>
20 Ilya Verbin <ilya.verbin@intel.com>
22 * config/linux/affinity.c (omp_get_place_num_procs,
23 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
24 * config/linux/doacross.h: New file.
25 * config/posix/affinity.c (omp_get_place_num_procs,
26 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
27 * config/posix/doacross.h: New file.
28 * env.c: Include gomp-constants.h.
29 (struct gomp_task_icv): Rename run_sched_modifier to
31 (gomp_max_task_priority_var): New variable.
32 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
33 (handle_omp_display_env): Change _OPENMP value from 201307 to
34 201511. Print OMP_MAX_TASK_PRIORITY.
35 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
36 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
37 chunk_size and run_sched_modifier to run_sched_chunk_size.
38 (omp_get_max_task_priority, omp_get_initial_device,
39 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
40 omp_get_partition_place_nums): New functions.
41 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
42 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
44 (omp_get_num_places_, omp_get_place_num_procs_,
45 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
46 omp_get_place_proc_ids_8_, omp_get_place_num_,
47 omp_get_partition_num_places_, omp_get_partition_place_nums_,
48 omp_get_partition_place_nums_8_, omp_get_initial_device_,
49 omp_get_max_task_priority_): New functions.
50 * libgomp_g.h (GOMP_loop_doacross_static_start,
51 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
52 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
53 GOMP_loop_ull_doacross_dynamic_start,
54 GOMP_loop_ull_doacross_guided_start,
55 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
56 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
57 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
58 GOMP_target_data_41, GOMP_target_update_41,
59 GOMP_target_enter_exit_data): New prototypes.
60 (GOMP_task): Add prototype argument.
61 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
62 (struct gomp_doacross_work_share): New type.
63 (struct gomp_work_share): Add doacross field.
64 (struct gomp_task_icv): Rename run_sched_modifier to
66 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
67 GOMP_TASK_UNDEFERRED. Add comments.
68 (struct gomp_task_depend_entry): Add comments.
69 (struct gomp_task): Likewise.
70 (struct gomp_taskgroup): Likewise.
71 (struct gomp_target_task): New type.
72 (struct gomp_team): Add comment.
73 (gomp_get_place_proc_ids_8, gomp_doacross_init,
74 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
75 gomp_create_target_task, gomp_target_task_fn): New prototypes.
76 (struct target_var_desc): New type.
77 (struct target_mem_desc): Adjust comment. Use struct
78 target_var_desc instead of splay_tree_key for list.
79 (REFCOUNT_INFINITY): Define.
80 (struct splay_tree_key_s): Remove copy_from field.
81 (struct gomp_device_descr): Add dev2dev_func field.
82 (enum gomp_map_vars_kind): New enum.
83 (gomp_map_vars): Add one argument.
84 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
85 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
86 omp_get_place_num_procs, omp_get_place_num_procs_,
87 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
88 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
89 omp_get_place_num_, omp_get_partition_num_places,
90 omp_get_partition_num_places_, omp_get_partition_place_nums,
91 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
92 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
93 omp_target_free, omp_target_is_present, omp_target_memcpy,
94 omp_target_memcpy_rect, omp_target_associate_ptr and
95 omp_target_disassociate_ptr.
96 (GOMP_4.0.2): Renamed to ...
97 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
98 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
99 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
100 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
101 GOMP_loop_doacross_static_start, GOMP_doacross_post,
102 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
103 GOMP_loop_ull_doacross_guided_start,
104 GOMP_loop_ull_doacross_runtime_start,
105 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
106 GOMP_doacross_ull_wait.
107 * libgomp.texi: Document omp_get_max_task_priority.
108 Rename modifier argument to chunk_size for omp_set_schedule and
109 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
110 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
111 to run_sched_chunk_size renaming.
112 (GOMP_loop_ordered_runtime_start): Likewise.
113 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
114 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
115 GOMP_parallel_loop_runtime_start): New functions.
116 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
117 to run_sched_chunk_size renaming.
118 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
119 GOMP_loop_doacross_guided_start): New functions or aliases.
120 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
121 run_sched_modifier to run_sched_chunk_size renaming.
122 (GOMP_loop_ull_ordered_runtime_start): Likewise.
123 (gomp_loop_ull_doacross_static_start,
124 gomp_loop_ull_doacross_dynamic_start,
125 gomp_loop_ull_doacross_guided_start,
126 GOMP_loop_ull_doacross_runtime_start): New functions.
127 (GOMP_loop_ull_doacross_static_start,
128 GOMP_loop_ull_doacross_dynamic_start,
129 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
130 * oacc-mem.c (acc_map_data, present_create_copy,
131 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
133 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
134 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
135 instead of false to gomp_map_vars.
136 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
137 * omp.h.in (omp_lock_hint_t): New type.
138 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
139 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
140 omp_get_place_num, omp_get_partition_num_places,
141 omp_get_partition_place_nums, omp_get_initial_device,
142 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
143 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
144 omp_target_associate_ptr, omp_target_disassociate_ptr): New
146 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
147 (omp_lock_hint_none, omp_lock_hint_uncontended,
148 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
149 omp_lock_hint_speculative): New parameters.
150 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
151 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
152 omp_get_place_num, omp_get_partition_num_places,
153 omp_get_partition_place_nums, omp_get_initial_device,
154 omp_get_max_task_priority): New interfaces.
155 (omp_set_schedule, omp_get_schedule): Rename modifier argument
157 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
158 (omp_lock_hint_none, omp_lock_hint_uncontended,
159 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
160 omp_lock_hint_speculative): New parameters.
161 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
162 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
163 omp_get_place_num, omp_get_partition_num_places,
164 omp_get_partition_place_nums, omp_get_initial_device,
165 omp_get_max_task_priority): New functions and subroutines.
166 * ordered.c: Include stdarg.h and string.h.
167 (MAX_COLLAPSED_BITS): Define.
168 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
169 gomp_doacross_ull_init, GOMP_doacross_ull_post,
170 GOMP_doacross_ull_wait): New functions.
171 * target.c: Include errno.h.
172 (resolve_device): If device is not initialized, call
173 gomp_init_device on it.
174 (gomp_map_lookup): New function.
175 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
176 Don't bump refcount if REFCOUNT_INFINITY. Handle
177 GOMP_MAP_ALWAYS_TO_P.
178 (get_kind): Rename is_openacc argument to short_mapkind.
179 (gomp_map_pointer): Use gomp_map_lookup.
180 (gomp_map_fields_existing): New function.
181 (gomp_map_vars): Rename is_openacc argument to short_mapkind
182 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
183 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
184 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
185 Adjust for tgt->list changed type and copy_from living in there.
186 (gomp_copy_from_async): Adjust for tgt->list changed type and
187 copy_from living in there.
188 (gomp_unmap_vars): Likewise.
189 (gomp_update): Likewise. Rename is_openacc argument to
190 short_mapkind. Don't fail if object is not mapped.
191 (gomp_load_image_to_device): Initialize refcount to
193 (gomp_target_fallback): New function.
194 (gomp_get_target_fn_addr): Likewise.
195 (GOMP_target): Adjust gomp_map_vars caller, use
196 gomp_get_target_fn_addr and gomp_target_fallback.
197 (GOMP_target_41): New function.
198 (gomp_target_data_fallback): New function.
199 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
200 (GOMP_target_data_41): New function.
201 (GOMP_target_update): Adjust gomp_update caller.
202 (GOMP_target_update_41): New function.
203 (gomp_exit_data, GOMP_target_enter_exit_data,
204 gomp_target_task_fn, omp_target_alloc, omp_target_free,
205 omp_target_is_present, omp_target_memcpy,
206 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
207 omp_target_associate_ptr, omp_target_disassociate_ptr,
208 gomp_load_plugin_for_device): New functions.
209 * task.c: Include gomp-constants.h. Include taskloop.c
210 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
211 (gomp_task_handle_depend): New function.
212 (GOMP_task): Use it. Add priority argument. Use
213 gomp-constant.h constants instead of hardcoded numbers.
214 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
215 (gomp_create_target_task): New function.
216 (verify_children_queue, verify_taskgroup_queue,
217 verify_task_queue): New functions.
218 (gomp_task_run_pre): Call verify_*_queue functions.
219 If an upcoming tied task is about to leave the sibling or
220 taskgroup queues in an invalid state, adjust appropriately.
221 Remove taskgroup argument. Add comments.
222 (gomp_task_run_post_handle_dependers): Add comments.
223 (gomp_task_run_post_remove_parent): Likewise.
224 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
225 (GOMP_taskwait): Likewise. Add comments.
226 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
227 problem such that the first non parent_depends_on task does not
228 end up at the end of the children queue.
229 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
230 GOMP_TASK_UNDEFERRED.
231 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
232 * taskloop.c: New file.
233 * testsuite/lib/libgomp.exp
234 (check_effective_target_offload_device_nonshared_as): New proc.
235 * testsuite/libgomp.c/affinity-2.c: New test.
236 * testsuite/libgomp.c/doacross-1.c: New test.
237 * testsuite/libgomp.c/doacross-2.c: New test.
238 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
239 Add map clause to target.
240 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
241 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
242 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
243 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
244 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
246 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
247 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
248 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
249 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
250 not defined. Use those where needed.
251 * testsuite/libgomp.c/for-4.c: New test.
252 * testsuite/libgomp.c/for-5.c: New test.
253 * testsuite/libgomp.c/for-6.c: New test.
254 * testsuite/libgomp.c/linear-1.c: New test.
255 * testsuite/libgomp.c/ordered-4.c: New test.
256 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
257 only allowed on the loop iterator.
258 * testsuite/libgomp.c/pr66199-3.c: New test.
259 * testsuite/libgomp.c/pr66199-4.c: New test.
260 * testsuite/libgomp.c/reduction-7.c: New test.
261 * testsuite/libgomp.c/reduction-8.c: New test.
262 * testsuite/libgomp.c/reduction-9.c: New test.
263 * testsuite/libgomp.c/reduction-10.c: New test.
264 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
266 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
267 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
268 * testsuite/libgomp.c/target-11.c: New test.
269 * testsuite/libgomp.c/target-12.c: New test.
270 * testsuite/libgomp.c/target-13.c: New test.
271 * testsuite/libgomp.c/target-14.c: New test.
272 * testsuite/libgomp.c/target-15.c: New test.
273 * testsuite/libgomp.c/target-16.c: New test.
274 * testsuite/libgomp.c/target-17.c: New test.
275 * testsuite/libgomp.c/target-18.c: New test.
276 * testsuite/libgomp.c/target-19.c: New test.
277 * testsuite/libgomp.c/target-20.c: New test.
278 * testsuite/libgomp.c/target-21.c: New test.
279 * testsuite/libgomp.c/target-22.c: New test.
280 * testsuite/libgomp.c/target-23.c: New test.
281 * testsuite/libgomp.c/target-24.c: New test.
282 * testsuite/libgomp.c/target-25.c: New test.
283 * testsuite/libgomp.c/target-26.c: New test.
284 * testsuite/libgomp.c/target-27.c: New test.
285 * testsuite/libgomp.c/taskloop-1.c: New test.
286 * testsuite/libgomp.c/taskloop-2.c: New test.
287 * testsuite/libgomp.c/taskloop-3.c: New test.
288 * testsuite/libgomp.c/taskloop-4.c: New test.
289 * testsuite/libgomp.c++/ctor-13.C: New test.
290 * testsuite/libgomp.c++/doacross-1.C: New test.
291 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
292 Replace offload_device with offload_device_nonshared_as.
293 * testsuite/libgomp.c++/for-12.C: New test.
294 * testsuite/libgomp.c++/for-13.C: New test.
295 * testsuite/libgomp.c++/for-14.C: New test.
296 * testsuite/libgomp.c++/linear-1.C: New test.
297 * testsuite/libgomp.c++/member-1.C: New test.
298 * testsuite/libgomp.c++/member-2.C: New test.
299 * testsuite/libgomp.c++/member-3.C: New test.
300 * testsuite/libgomp.c++/member-4.C: New test.
301 * testsuite/libgomp.c++/member-5.C: New test.
302 * testsuite/libgomp.c++/ordered-1.C: New test.
303 * testsuite/libgomp.c++/reduction-5.C: New test.
304 * testsuite/libgomp.c++/reduction-6.C: New test.
305 * testsuite/libgomp.c++/reduction-7.C: New test.
306 * testsuite/libgomp.c++/reduction-8.C: New test.
307 * testsuite/libgomp.c++/reduction-9.C: New test.
308 * testsuite/libgomp.c++/reduction-10.C: New test.
309 * testsuite/libgomp.c++/reference-1.C: New test.
310 * testsuite/libgomp.c++/simd14.C: New test.
311 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
312 * testsuite/libgomp.c++/target-5.C: New test.
313 * testsuite/libgomp.c++/target-6.C: New test.
314 * testsuite/libgomp.c++/target-7.C: New test.
315 * testsuite/libgomp.c++/target-8.C: New test.
316 * testsuite/libgomp.c++/target-9.C: New test.
317 * testsuite/libgomp.c++/target-10.C: New test.
318 * testsuite/libgomp.c++/target-11.C: New test.
319 * testsuite/libgomp.c++/target-12.C: New test.
320 * testsuite/libgomp.c++/taskloop-1.C: New test.
321 * testsuite/libgomp.c++/taskloop-2.C: New test.
322 * testsuite/libgomp.c++/taskloop-3.C: New test.
323 * testsuite/libgomp.c++/taskloop-4.C: New test.
324 * testsuite/libgomp.c++/taskloop-5.C: New test.
325 * testsuite/libgomp.c++/taskloop-6.C: New test.
326 * testsuite/libgomp.c++/taskloop-7.C: New test.
327 * testsuite/libgomp.c++/taskloop-8.C: New test.
328 * testsuite/libgomp.c++/taskloop-9.C: New test.
329 * testsuite/libgomp.fortran/affinity1.f90: New test.
330 * testsuite/libgomp.fortran/affinity2.f90: New test.
332 2015-10-13 Tom de Vries <tom@codesourcery.com>
334 PR tree-optimization/67476
335 * testsuite/libgomp.c/autopar-3.c: New test.
336 * testsuite/libgomp.c/autopar-4.c: New test.
337 * testsuite/libgomp.c/autopar-5.c: New test.
338 * testsuite/libgomp.c/autopar-6.c: New test.
339 * testsuite/libgomp.c/autopar-7.c: New test.
340 * testsuite/libgomp.c/autopar-8.c: New test.
342 2015-10-12 James Norris <jnorris@codesourcery.com>
344 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
347 2015-10-09 David Malcolm <dmalcolm@redhat.com>
349 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
352 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
354 * oacc-ptx.h: Remove file, moving its content into...
355 * config/nvptx/fortran.c: ... here...
356 * config/nvptx/oacc-init.c: ..., here...
357 * config/nvptx/oacc-parallel.c: ..., and here.
358 * config/nvptx/openacc.f90: New file.
359 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
360 (link_ptx): Don't link in predefined bits of PTX code.
362 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
363 Bernd Schmidt <bernds@codesourcery.com>
365 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
366 (struct targ_ptx_obj): New.
367 (nvptx_tdata): Move earlier, change data format.
368 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
370 (GOMP_OFFLOAD_load_image): Adjust.
372 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
374 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
375 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
376 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
377 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
378 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
379 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
380 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
381 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
382 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
384 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
385 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
386 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
387 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
388 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
389 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
390 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
391 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
392 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
393 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
394 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
395 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
396 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
397 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
398 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
399 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
400 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
401 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
402 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
403 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
404 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
405 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
406 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
407 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
408 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
409 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
410 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
411 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
412 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
413 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
414 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
415 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
416 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
417 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
418 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
419 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
420 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
421 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
422 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
423 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
424 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
425 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
426 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
427 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
428 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
429 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
430 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
431 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
432 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
433 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
434 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
435 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
436 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
438 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
440 * oacc-init.c (acc_on_device): Force optimization level.
442 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
444 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
445 (cuda_errlist): Delete.
446 (cuda_error): Reimplement.
448 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
450 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
452 * libgomp.map (GOACC_parallel_keyed): New.
453 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
455 (GOACC_parallel_keyed): New interface. Lose geometry arguments
456 and take keyed varargs list. Adjust call to exec_func.
457 (GOACC_parallel): Force host fallback.
458 * libgomp_g.h (GOACC_parallel): Remove.
459 (GOACC_parallel_keyed): Declare.
460 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
461 (stuct targ_gn_descriptor): Replace name field with launch field.
462 (nvptx_exec): Lose separate geometry args, take array. Process
463 dynamic dimensions and adjust.
464 (struct nvptx_tdata): Replace fn_names field with fn_descs.
465 (GOMP_OFFLOAD_load_image): Adjust for change in function table
467 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
469 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
472 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
475 * oacc-int.h (goacc_host_init): Add declaration.
476 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
477 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
479 2015-09-08 Aditya Kumar <hiraditya@msn.com>
480 Sebastian Pop <s.pop@samsung.com>
482 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
484 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
485 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
486 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
487 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
488 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
490 2015-09-03 Jakub Jelinek <jakub@redhat.com>
492 * configure.tgt: Add missing ;; in between nvptx and rtems
495 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
497 * config/posix/pool.h (gomp_adjust_thread_attr): New.
498 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
499 (gomp_thread_pool_reservoir): Add priority member.
500 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
502 (parse_thread_pools): Likewise.
503 * team.c (gomp_team_start): Call configuration provided
504 gomp_adjust_thread_attr(). Destroy thread attributes if
506 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
508 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
510 * config/posix/pool.h: New.
511 * config/rtems/pool.h: Likewise.
512 * config/rtems/proc.c: Likewise.
513 * libgomp.h (gomp_thread_destructor): Declare.
514 * team.c: Include configuration provided "pool.h".
515 (gomp_get_thread_pool): Define in configuration.
516 (gomp_team_end): Call configuration defined
517 gomp_release_thread_pool().
519 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
521 * config/rtems/bar.c: New.
522 * config/rtems/bar.h: Likewise.
523 * config/rtems/mutex.c: Likewise.
524 * config/rtems/mutex.h: Likewise.
525 * config/rtems/sem.c: Likewise.
526 * config/rtems/sem.h: Likewise.
527 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
528 <sys/lock.h> header file.
529 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
531 * configure: Regenerate.
533 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
535 * team.c (gomp_new_thread_pool): Delete and move content to ...
536 (gomp_get_thread_pool): ... new function. Allocate and
537 initialize thread pool on demand.
538 (get_last_team): Use gomp_get_thread_pool().
539 (gomp_team_start): Delete thread pool initialization.
541 2015-09-03 Tom de Vries <tom@codesourcery.com>
543 PR tree-optimization/65637
544 * testsuite/libgomp.c/autopar-2.c: New test.
546 2015-08-29 Tom de Vries <tom@codesourcery.com>
548 PR tree-optimization/46193
549 * testsuite/libgomp.c/pr46193.c: New test.
551 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
554 * libgomp.map: Add 4.0.2 version.
555 * target.c (offload_image_descr): Add version field.
556 (gomp_load_image_to_device): Add version argument. Adjust plugin
557 call. Improve load mismatch diagnostic.
558 (gomp_unload_image_from_device): Add version argument. Adjust plugin
560 (GOMP_offload_regster): Make stub function, move bulk to ...
561 (GOMP_offload_register_ver): ... here. Process version argument.
562 (GOMP_offload_unregister): Make stub function, move bulk to ...
563 (GOMP_offload_unregister_ver): ... here. Process version argument.
564 (gomp_init_device): Process version field.
565 (gomp_unload_device): Process version field.
566 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
567 macros. Check plugin version.
568 * libgomp.h (gomp_device_descr): Add version function field. Adjust
569 loader and unloader types.
570 * oacc-host.c: Include gomp-constants.h.
572 (host_load_image, host_unload_image): Adjust.
573 (host_dispatch): Add host_version.
574 * plugin/plugin-nvptx.c: Include gomp-constants.h.
575 (GOMP_OFFLOAD_version): New.
576 (GOMP_OFFLOAD_load_image): Add version arg and check it.
577 (GOMP_OFFLOAD_unload_image): Likewise.
578 * plugin/plugin-host.c: Include gomp-constants.h.
579 (GOMP_OFFLOAD_version): New.
580 (GOMP_OFFLOAD_load_image): Add version arg.
581 (GOMP_OFFLOAD_unload_image): Likewise.
583 2015-08-24 Tom de Vries <tom@codesourcery.com>
585 PR tree-optimization/65468
586 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
588 2015-08-24 Tom de Vries <tom@codesourcery.com>
590 PR tree-optimization/65468
591 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
593 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
597 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
598 (gomp_iter_guided_next): Idem.
599 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
600 (gomp_iter_ull_guided_next): Idem.
601 * config/linux/wait.h (do_spin): Idem.
603 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
605 * libgomp-plugin.h (enum offload_target_type): Remove
606 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
607 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
608 * openacc.h (enum acc_device_t): Likewise.
609 * openacc_lib.h: Likewise.
610 * oacc-init.c (name_of_acc_device_t): Don't handle it.
611 (acc_on_device): Just use __builtin_acc_on_device.
612 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
613 of acc_on_device builtin.
614 * plugin/plugin-host.h: Remove file.
615 * plugin/plugin-host.c: Likewise, but salvage some content into...
616 * oacc-host.c: ... this file.
617 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
618 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
619 * Makefile.in: Regenerate.
620 * configure: Likewise.
621 * testsuite/lib/libgomp.exp
622 (check_effective_target_openacc_host_nonshm_selected): Remove.
623 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
624 ACC_DEVICE_TYPE=host_nonshm.
625 * testsuite/libgomp.oacc-c/c.exp: Likewise.
626 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
627 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
628 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
629 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
630 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
632 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
633 Jakub Jelinek <jakub@redhat.com>
635 * config/nvptx/affinity.c: New file.
636 * config/nvptx/alloc.c: Likewise.
637 * config/nvptx/bar.c: Likewise.
638 * config/nvptx/barrier.c: Likewise.
639 * config/nvptx/critical.c: Likewise.
640 * config/nvptx/env.c: Likewise.
641 * config/nvptx/error.c: Likewise.
642 * config/nvptx/fortran.c: Likewise.
643 * config/nvptx/iter.c: Likewise.
644 * config/nvptx/iter_ull.c: Likewise.
645 * config/nvptx/libgomp-plugin.c: Likewise.
646 * config/nvptx/lock.c: Likewise.
647 * config/nvptx/loop.c: Likewise.
648 * config/nvptx/loop_ull.c: Likewise.
649 * config/nvptx/mutex.c: Likewise.
650 * config/nvptx/oacc-async.c: Likewise.
651 * config/nvptx/oacc-cuda.c: Likewise.
652 * config/nvptx/oacc-host.c: Likewise.
653 * config/nvptx/oacc-init.c: Likewise.
654 * config/nvptx/oacc-mem.c: Likewise.
655 * config/nvptx/oacc-parallel.c: Likewise.
656 * config/nvptx/oacc-plugin.c: Likewise.
657 * config/nvptx/omp-lock.h: Likewise.
658 * config/nvptx/ordered.c: Likewise.
659 * config/nvptx/parallel.c: Likewise.
660 * config/nvptx/proc.c: Likewise.
661 * config/nvptx/ptrlock.c: Likewise.
662 * config/nvptx/sections.c: Likewise.
663 * config/nvptx/sem.c: Likewise.
664 * config/nvptx/single.c: Likewise.
665 * config/nvptx/splay-tree.c: Likewise.
666 * config/nvptx/target.c: Likewise.
667 * config/nvptx/task.c: Likewise.
668 * config/nvptx/team.c: Likewise.
669 * config/nvptx/time.c: Likewise.
670 * config/nvptx/work.c: Likewise.
671 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
672 * configure: Regenerate.
673 * configure.tgt (config_path): Set to "nvptx" for target
676 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
678 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
680 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
682 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
683 (cuda_errlist): Constify.
684 (errmsg): Move into ...
685 (cuda_error): ... here. Make smaller.
686 (_XSTR, _STR): Delete.
687 (cuda_synames): Delete.
688 (verify_device_library): Delete.
689 (nvptx_init): Don't call it.
691 2015-07-28 Tom de Vries <tom@codesourcery.com>
693 * testsuite/libgomp.c/uns-outer-4.c: New test.
695 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
697 * testsuite/libgomp.c/pr66714.c: New test.
699 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
702 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
703 (fib_ref): New function.
704 (fib): Correct corner cases in the recursion.
705 (main): Replace the non-simd loop with fib_ref call.
706 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
708 (fibonacci): Lower the parameter N to 30. Correct accordingly check
709 for the last array element value. Replace the non-simd loop with
710 fib_ref call. Remove redundant b_ref array. Remove the comparison
711 of the last array element with according Fibonacci sequence element.
712 (fib): Correct corner cases in the recursion.
714 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
716 * target.c (gomp_offload_image_to_device): Rename to ...
717 (gomp_load_image_to_device): ... here.
718 (GOMP_offload_register): Adjust call.
719 (gomp_init_device): Likewise.
720 (gomp_unload_image_from_device): New. Broken out of ...
721 (GOMP_offload_unregister): ... here. Call it.
722 (gomp_unload_device): New.
723 * libgomp.h (gomp_unload_device): Declare.
724 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
727 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
729 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
731 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
733 (goacc_waits): Move !num_waits handling to ...
734 (GOACC_wait): ... here, the only caller that might have zero waits.
736 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
737 (struct ptx_image_data): Move earlier, add fns field.
738 (struct ptx_device): Add images and image_lock fields.
739 (ptx_images, ptx_image_lock): Delete.
740 (nvptx_open_device): Initialize images and image_lock fields.
741 (nvptx_close_device): Destroy image_lock.
742 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
743 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
746 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
748 * target.c (GOMP_offload_register): Use int for device type arg.
749 (GOMP_offload_unregister): Likewise.
751 * target.c (struct_offload_image_descr): Constify host_table.
752 (gomp_offload_image_to_device): Likewise.
753 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
755 * libgomp.h (gomp_device_descr): Constify target data arguments.
756 * target.c (struct offload_image_descr): Constify target_data.
757 (gomp_offload_image_to_device): Likewise.
758 (GOMP_offload_register): Likewise.
759 (GOMP_offload_unrefister): Likewise.
760 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
761 GOMP_OFFLOAD_unload_image): Constify target data.
762 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
763 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
765 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
767 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
768 Workaround driver library const error.
769 (struct nvptx_tdata, nvptx_tdata_t): New.
770 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
773 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
775 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
776 of EPS parameter from integer to real.
777 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
778 type of EPS parameter from integer to real.
780 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
782 * team.c (get_last_team): New.
783 (gomp_new_team): Recycle last non-nested team if possible.
784 (gomp_team_end): Move team work share list free lock destruction
786 (free_team): ... here.
788 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
790 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
791 and ref from int to double. Replaced their comparison with
792 an inequality of their difference and EPS.
793 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
794 comparison of pri and a reference number with an inequality of their
796 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
797 the comparison of sum and sum_ref with an inequality of their
799 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
800 the comparison of pri and a reference number with an inequality of
801 their difference and EPS.
803 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
805 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
806 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
807 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
808 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
809 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
810 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
811 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
812 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
813 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
814 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
815 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
816 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
817 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
819 (vec_mult): Likewise. Add #pragma omp taskwait.
820 (main): Adjust caller.
821 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
822 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
823 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
824 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
825 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
826 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
827 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
828 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
829 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
830 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
831 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
832 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
833 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
834 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
835 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
836 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
837 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
838 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
839 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
840 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
841 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
842 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
843 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
844 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
845 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
846 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
847 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
848 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
849 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
850 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
851 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
852 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
853 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
854 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
855 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
856 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
857 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
858 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
859 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
860 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
861 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
862 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
863 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
864 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
865 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
866 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
867 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
868 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
869 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
870 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
871 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
872 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
873 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
874 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
875 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
876 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
877 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
878 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
879 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
880 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
881 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
882 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
883 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
884 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
885 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
886 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
887 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
888 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
889 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
890 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
891 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
892 (vec_mult): Add !$omp taskwait.
893 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
894 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
895 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
896 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
897 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
898 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
899 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
900 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
901 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
902 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
903 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
904 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
905 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
906 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
907 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
908 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
909 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
910 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
911 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
912 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
913 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
914 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
915 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
916 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
917 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
918 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
919 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
920 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
921 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
922 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
923 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
924 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
925 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
926 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
927 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
928 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
929 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
930 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
931 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
932 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
933 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
934 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
935 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
936 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
937 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
938 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
939 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
940 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
941 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
942 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
943 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
944 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
945 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
946 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
947 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
948 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
949 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
950 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
951 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
952 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
953 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
954 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
955 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
956 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
957 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
958 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
959 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
961 2015-07-10 Tom de Vries <tom@codesourcery.com>
963 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
964 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
966 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
969 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
970 in a 64-bit configuration.
971 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
972 offloading testing if no such device is available.
973 * testsuite/libgomp.oacc-c/c.exp: Likewise.
974 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
976 2015-07-08 Tom de Vries <tom@codesourcery.com>
978 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
980 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
982 2015-07-07 Tom de Vries <tom@codesourcery.com>
984 PR tree-optimization/66642
985 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
986 iteration count case.
987 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
988 function, factor out of ...
989 (main): ... here. Test low iteration count case.
991 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
993 * libgomp.h (gomp_thread_pool): Comment last_team field.
995 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
997 * testsuite/libgomp.c++/pr66702-1.C: Require
998 vect_simd_clones effective target.
999 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
1001 2015-06-30 Tom de Vries <tom@codesourcery.com>
1003 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1004 already set. Use DEFAULT_CFLAGS in dg-runtest.
1005 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
1008 2015-06-30 Tom de Vries <tom@codesourcery.com>
1010 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1011 already set. Use DEFAULT_CFLAGS in dg-runtest.
1012 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
1013 * testsuite/libgomp.c++/pr64824.C: Same.
1014 * testsuite/libgomp.c++/pr64868.C: Same.
1015 * testsuite/libgomp.c++/pr66199-1.C: Same.
1016 * testsuite/libgomp.c++/pr66199-2.C: Same.
1017 * testsuite/libgomp.c++/target-2.C: Same.
1018 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
1019 -std=<standard> option.
1020 * testsuite/libgomp.c++/udr-11.C: Same.
1021 * testsuite/libgomp.c++/udr-12.C: Same.
1022 * testsuite/libgomp.c++/udr-13.C: Same.
1023 * testsuite/libgomp.c++/udr-14.C: Same.
1024 * testsuite/libgomp.c++/udr-15.C: Same.
1025 * testsuite/libgomp.c++/udr-16.C: Same.
1026 * testsuite/libgomp.c++/udr-17.C: Same.
1027 * testsuite/libgomp.c++/udr-18.C: Same.
1028 * testsuite/libgomp.c++/udr-19.C: Same.
1029 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
1030 * testsuite/libgomp.c++/simd-1.C: Same.
1031 * testsuite/libgomp.c++/simd-2.C: Same.
1032 * testsuite/libgomp.c++/simd-3.C: Same.
1033 * testsuite/libgomp.c++/simd-4.C: Same.
1034 * testsuite/libgomp.c++/simd-5.C: Same.
1035 * testsuite/libgomp.c++/simd-6.C: Same.
1036 * testsuite/libgomp.c++/simd-7.C: Same.
1037 * testsuite/libgomp.c++/simd-8.C: Same.
1038 * testsuite/libgomp.c++/simd-9.C: Same.
1039 * testsuite/libgomp.c++/simd10.C: Same.
1040 * testsuite/libgomp.c++/simd11.C: Same.
1041 * testsuite/libgomp.c++/simd12.C: Same.
1042 * testsuite/libgomp.c++/simd13.C: Same.
1044 2015-06-30 Jakub Jelinek <jakub@redhat.com>
1047 * testsuite/libgomp.c++/pr66702-1.C: New test.
1048 * testsuite/libgomp.c++/pr66702-2.C: New test.
1050 2015-06-30 Tom de Vries <tom@codesourcery.com>
1052 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
1053 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
1054 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
1055 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
1057 2015-06-30 Tom de Vries <tom@codesourcery.com>
1059 PR tree-optimization/66652
1060 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
1061 using restrict pointers.
1062 (main): Add arguments to calls to f.
1063 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1065 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
1067 * configure.ac: Fix check for header <sys/sysctl.h>.
1068 * configure: Regenerate.
1069 * config.h.in: Likewise.
1071 2015-06-23 Tom de Vries <tom@codesourcery.com>
1073 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
1075 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
1077 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
1079 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
1083 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
1084 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1086 2015-06-15 Tom de Vries <tom@codesourcery.com>
1088 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
1089 dg-additional-options for any remaining options.
1090 * testsuite/libgomp.c/atomic-2.c: Same.
1091 * testsuite/libgomp.c/atomic-4.c: Same.
1092 * testsuite/libgomp.c/atomic-5.c: Same.
1093 * testsuite/libgomp.c/atomic-6.c: Same.
1094 * testsuite/libgomp.c/autopar-1.c: Same.
1095 * testsuite/libgomp.c/copyin-1.c: Same.
1096 * testsuite/libgomp.c/copyin-2.c: Same.
1097 * testsuite/libgomp.c/copyin-3.c: Same.
1098 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
1099 * testsuite/libgomp.c/nestedfn-5.c: Same.
1100 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
1101 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
1102 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
1103 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1104 * testsuite/libgomp.c/pr32362-1.c: Same.
1105 * testsuite/libgomp.c/pr32362-2.c: Same.
1106 * testsuite/libgomp.c/pr32362-3.c: Same.
1107 * testsuite/libgomp.c/pr39591-1.c: Same.
1108 * testsuite/libgomp.c/pr39591-2.c: Same.
1109 * testsuite/libgomp.c/pr39591-3.c: Same.
1110 * testsuite/libgomp.c/pr58392.c: Same.
1111 * testsuite/libgomp.c/pr58756.c: Same.
1112 * testsuite/libgomp.c/simd-1.c: Same.
1113 * testsuite/libgomp.c/simd-10.c: Same.
1114 * testsuite/libgomp.c/simd-11.c: Same.
1115 * testsuite/libgomp.c/simd-12.c: Same.
1116 * testsuite/libgomp.c/simd-13.c: Same.
1117 * testsuite/libgomp.c/simd-14.c: Same.
1118 * testsuite/libgomp.c/simd-15.c: Same.
1119 * testsuite/libgomp.c/simd-2.c: Same.
1120 * testsuite/libgomp.c/simd-3.c: Same.
1121 * testsuite/libgomp.c/simd-4.c: Same.
1122 * testsuite/libgomp.c/simd-5.c: Same.
1123 * testsuite/libgomp.c/simd-6.c: Same.
1124 * testsuite/libgomp.c/simd-7.c: Same.
1125 * testsuite/libgomp.c/simd-8.c: Same.
1126 * testsuite/libgomp.c/simd-9.c: Same.
1128 2015-06-15 Tom de Vries <tom@codesourcery.com>
1130 * testsuite/libgomp.c/pr35625.c: Fix typo.
1132 2015-06-15 Tom de Vries <tom@codesourcery.com>
1134 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
1136 * testsuite/libgomp.c/atomic-3.c: Same.
1137 * testsuite/libgomp.c/debug-1.c: Same.
1138 * testsuite/libgomp.c/nqueens-1.c: Same.
1139 * testsuite/libgomp.c/pr26171.c: Same.
1140 * testsuite/libgomp.c/pr48591.c: Same.
1141 * testsuite/libgomp.c/pr64824.c: Same.
1142 * testsuite/libgomp.c/pr64868.c: Same.
1143 * testsuite/libgomp.c/pr66133.c: Same.
1144 * testsuite/libgomp.c/pr66199-1.c: Same.
1145 * testsuite/libgomp.c/pr66199-2.c: Same.
1146 * testsuite/libgomp.c/target-8.c: Same.
1148 2015-06-15 Tom de Vries <tom@codesourcery.com>
1150 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
1152 * testsuite/libgomp.c/for-1.c: Same.
1153 * testsuite/libgomp.c/for-2.c: Same.
1154 * testsuite/libgomp.c/for-3.c: Same.
1155 * testsuite/libgomp.c/pr35625.c: Same.
1156 * testsuite/libgomp.c/pr39154.c: Same.
1157 * testsuite/libgomp.c/simd-16.c: Same.
1158 * testsuite/libgomp.c/simd-17.c: Same.
1160 2015-06-13 Tom de Vries <tom@codesourcery.com>
1162 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
1164 2015-06-13 Tom de Vries <tom@codesourcery.com>
1166 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
1167 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1168 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
1170 (main): Use N instead of hardcoded constants.
1172 2015-06-05 Tom de Vries <tom@codesourcery.com>
1174 merge from gomp4 branch:
1175 2015-05-28 Tom de Vries <tom@codesourcery.com>
1177 PR tree-optimization/65443
1178 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
1179 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
1180 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
1182 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1184 * testsuite/libgomp.graphite/bounds.c: Adjust for
1185 cleanup-tree-dump removal.
1186 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
1187 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1188 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1189 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1190 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1191 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1192 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1193 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1194 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1195 * testsuite/libgomp.graphite/pr41118.c: Likewise.
1197 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
1199 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
1200 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
1201 (futex_wake) [!__x86_64__]: Ditto.
1203 2015-05-28 Julian Brown <julian@codesourcery.com>
1205 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
1206 function comment. Only call gomp_fatal if new argument is true.
1207 (acc_dev_num_out_of_range): New function.
1208 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
1209 acc_dev_num_out_of_range as appropriate.
1210 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
1211 (acc_get_device_num, acc_set_device_num): Update calls to
1213 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
1216 2015-05-28 Julian Brown <julian@codesourcery.com>
1219 * oacc-init.c (plugin/plugin-host.h): Include.
1220 (acc_on_device): Check whether we're in an offloaded region for
1222 plugin. Don't use __builtin_acc_on_device.
1223 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
1224 nonshm_exec flag in thread-local data.
1225 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
1226 data for host_nonshm plugin.
1227 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
1228 for host_nonshm plugin.
1229 * plugin/plugin-host.h: New.
1231 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
1233 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
1235 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
1237 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
1239 (FUTEX_PRIVATE_FLAG): Remove L suffix.
1240 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
1243 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
1245 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
1247 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
1249 * target.c (gomp_map_pointer): New function abstracting out
1250 GOMP_MAP_POINTER handling.
1251 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
1254 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1257 * testsuite/libgomp.c/pr66199-1.c: New test.
1258 * testsuite/libgomp.c/pr66199-2.c: New test.
1259 * testsuite/libgomp.c++/pr66199-1.C: New test.
1260 * testsuite/libgomp.c++/pr66199-2.C: New test.
1261 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
1262 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
1264 2015-05-19 Julian Brown <julian@codesourcery.com>
1266 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
1269 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1272 * testsuite/libgomp.c/pr66133.c: New test.
1274 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1276 * Makefile.in: Regenerated with automake-1.11.6.
1277 * aclocal.m4: Likewise.
1278 * config.h.in: Likewise.
1279 * configure: Likewise.
1280 * testsuite/Makefile.in: Likewise.
1282 2015-05-08 Jason Merrill <jason@redhat.com>
1284 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
1287 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
1289 2015-05-06 Julian Brown <julian@codesourcery.com>
1291 * oacc-init.c (acc_device_lock): Add explanatory comment.
1292 (resolve_device): Add comment about locking requirement.
1293 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
1294 gomp_init_device and gomp_fini_device calls.
1295 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
1296 (acc_get_device_num, acc_set_device_num): Add locking around
1297 resolve_device and gomp_init_device calls.
1299 2015-05-06 Julian Brown <julian@codesourcery.com>
1301 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
1302 goacc_thread_lock on error paths.
1303 * oacc-mem.c (lookup_host): Remove locking from function. Note
1304 locking requirement for caller in function comment.
1305 (lookup_dev): Likewise.
1306 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
1307 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
1308 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1311 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
1315 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
1316 don't expect "0x" prefix for "%p" format specifier, don't expect
1317 "(nil)" for NULL pointer.
1318 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1319 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1320 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1321 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1322 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1324 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1325 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1326 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1327 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1328 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1329 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1330 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1331 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1332 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1333 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1334 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1335 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1336 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1337 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1338 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1339 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1340 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1341 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1342 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1343 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1344 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1345 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1346 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
1347 accurately specify what we're looking for.
1348 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1349 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1350 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1351 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1352 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1354 2015-04-30 James Norris <jnorris@codesourcery.com>
1357 * testsuite/lib/libgomp.exp
1358 (check_effective_target_openacc_host_selected)
1359 (check_effective_target_openacc_host_nonshm_selected): New
1361 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
1363 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1364 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1365 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1366 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1367 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1368 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1369 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1370 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1371 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1372 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1373 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1374 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1375 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1376 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1377 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1378 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1379 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1380 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1381 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1382 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1383 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1384 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1385 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1386 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1387 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1388 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1389 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1390 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1391 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1392 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1393 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1394 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1395 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1396 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1397 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1398 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1399 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1400 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1401 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1402 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1403 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1404 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1405 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1407 2015-04-08 Julian Brown <julian@codesourcery.com>
1409 * libgomp.h (target_mem_desc: Remove mem_map field.
1410 (acc_dispatch_t): Remove open_device_func, close_device_func,
1411 get_device_num_func, set_device_num_func, target_data members.
1412 Change create_thread_data_func argument to device number instead of
1414 * oacc-async.c (assert.h): Include.
1415 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
1416 (acc_wait_all, acc_wait_all_async): Use current host thread's
1417 active device, not base_dev.
1418 * oacc-cuda.c (acc_get_current_cuda_device)
1419 (acc_get_current_cuda_context, acc_get_cuda_stream)
1420 (acc_set_cuda_stream): Likewise.
1421 * oacc-host.c (host_dispatch): Don't set open_device_func,
1422 close_device_func, get_device_num_func or set_device_num_func.
1423 * oacc-init.c (base_dev, init_key): Remove.
1424 (cached_base_dev): New.
1425 (name_of_acc_device_t): New.
1426 (acc_init_1): Initialise default-numbered device, not zeroth.
1427 (acc_shutdown_1): Close all devices of a given type.
1428 (goacc_destroy_thread): Don't use base_dev.
1429 (lazy_open, lazy_init, lazy_init_and_open): Remove.
1430 (goacc_attach_host_thread_to_device): New.
1431 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
1432 (acc_get_num_devices): Don't use base_dev.
1433 (acc_set_device_type): Reimplement.
1434 (acc_get_device_type): Don't use base_dev.
1435 (acc_get_device_num): Tweak logic.
1436 (acc_set_device_num): Likewise.
1437 (acc_on_device): Use acc_get_device_type.
1438 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
1439 (goacc_lazy_initialize): Reimplement with acc_init and
1440 goacc_attach_host_thread_to_device.
1441 * oacc-int.h (goacc_thread): Add base_dev field.
1442 (base_dev): Remove extern declaration.
1443 (goacc_attach_host_thread_to_device): Add prototype.
1444 * oacc-mem.c (acc_malloc): Use current thread's device instead of
1446 (acc_free): Likewise.
1447 (acc_memcpy_to_device): Likewise.
1448 (acc_memcpy_from_device): Likewise.
1449 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
1450 goacc_lazy_initialize (throughout).
1451 (GOACC_parallel): Use tgt_offset to locate target functions.
1452 * target.c (gomp_map_vars): Don't set tgt->mem_map.
1453 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
1454 (gomp_load_plugin_for_device): Remove open_device, close_device,
1455 get_device_num, set_device_num openacc hook initialisation. Don't set
1456 openacc.target_data.
1457 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
1458 (GOMP_OFFLOAD_openacc_close_device)
1459 (GOMP_OFFLOAD_openacc_get_device_num)
1460 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
1461 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
1463 * plugin/plugin-nvptx.c (ptx_inited): Remove.
1464 (instantiated_devices, ptx_dev_lock): New.
1465 (struct ptx_image_data): New.
1466 (ptx_devices, ptx_images, ptx_image_lock): New.
1467 (fini_streams_for_device): Reorder cuStreamDestroy call.
1468 (nvptx_get_num_devices): Remove forward declaration.
1469 (nvptx_init): Change return type to bool.
1470 (nvptx_fini): Remove.
1471 (nvptx_attach_host_thread_to_device): New.
1472 (nvptx_open_device): Return struct ptx_device* instead of void*.
1473 (nvptx_close_device): Change argument type to struct ptx_device*,
1474 return type to void.
1475 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
1476 (kernel_target_data, kernel_host_table): Remove static globals.
1477 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
1478 (GOMP_OFFLOAD_init_device): Reimplement.
1479 (GOMP_OFFLOAD_fini_device): Likewise.
1480 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
1481 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
1482 (GOMP_OFFLOAD_host2dev): Use ORD argument.
1483 (GOMP_OFFLOAD_openacc_open_device)
1484 (GOMP_OFFLOAD_openacc_close_device)
1485 (GOMP_OFFLOAD_openacc_set_device_num)
1486 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
1487 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
1491 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
1493 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
1495 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
1496 * libgomp.h (struct gomp_memory_mapping): Remove.
1497 (struct target_mem_desc): Change type of mem_map from
1498 gomp_memory_mapping * to splay_tree_s *.
1499 (struct gomp_device_descr): Remove register_image_func, get_table_func.
1500 Add load_image_func, unload_image_func.
1501 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
1502 Remove offload_regions_registered.
1503 (gomp_init_tables): Remove.
1504 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1506 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
1507 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
1508 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
1509 offload_regions_registered.
1510 Initialize load_image_func, unload_image_func, mem_map.root.
1511 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
1512 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
1513 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
1514 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
1515 gomp_memory_mapping *. Use dev's lock and splay_tree.
1516 (lookup_dev): Use dev's lock.
1517 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
1518 (acc_is_present): Likewise.
1519 (acc_map_data): Likewise.
1520 (acc_unmap_data): Likewise. Use dev's lock.
1521 (present_create_copy): Likewise.
1522 (delete_copyout): Pass dev to lookup_host instead of mem_map.
1523 (update_dev_host): Likewise.
1524 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
1525 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
1526 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
1527 (GOMP_OFFLOAD_get_table): Remove
1528 (GOMP_OFFLOAD_load_image): New function.
1529 (GOMP_OFFLOAD_unload_image): New function.
1530 * target.c (register_lock): New mutex for offload image registration.
1531 (num_devices): Do not guard with PLUGIN_SUPPORT.
1532 (gomp_realloc_unlock): New static function.
1533 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
1535 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
1536 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
1537 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
1539 (gomp_unmap_vars): Likewise.
1540 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
1541 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
1542 (gomp_offload_image_to_device): New static function.
1543 (GOMP_offload_register): Add mutex lock.
1544 Call gomp_offload_image_to_device for all initialized devices.
1545 Replace gomp_realloc with gomp_realloc_unlock.
1546 (GOMP_offload_unregister): New function.
1547 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
1548 get_table_func from the plugin with calls to init_device_func and
1549 gomp_offload_image_to_device.
1550 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1552 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
1553 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
1554 (GOMP_target_data): Do not call gomp_init_tables.
1555 (GOMP_target_update): Likewise. Remove argument from gomp_update.
1556 (gomp_load_plugin_for_device): Replace register_image and get_table
1557 with load_image and unload_image in DLSYM ().
1558 (gomp_register_images_for_device): Remove function.
1559 (gomp_target_init): Do not initialize current_device.mem_map.*,
1560 current_device.offload_regions_registered.
1561 Remove call to gomp_register_images_for_device.
1562 Do not free offload_images and num_offload_images.
1564 2015-03-30 Jakub Jelinek <jakub@redhat.com>
1567 * testsuite/libgomp.fortran/pr65597.f90: New test.
1569 2015-03-27 Tom de Vries <tom@codesourcery.com>
1572 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
1573 (init, check): New function.
1574 (foo): Change return type to void.
1575 (main): Call init and check.
1577 2015-03-27 Tom de Vries <tom@codesourcery.com>
1580 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
1581 (foo): Use M for non-inner loops to scale down test-case.
1583 2015-03-25 Kai Tietz <ktietz@redhat.com>
1586 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
1587 (GOACC_data_start): Likewise.
1588 * target.c (gomp_map_vars): Likewise.
1590 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
1592 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
1595 2015-03-19 Jakub Jelinek <jakub@redhat.com>
1597 * testsuite/libgomp.c/target-10.c: New test.
1598 * testsuite/libgomp.c++/target-4.C: New test.
1600 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
1602 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
1603 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
1605 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
1607 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
1608 * configure.ac (*-*-rtems*): Assume Pthread is supported.
1609 (pthread.h): Check for this header file.
1610 * configure: Regenerate.
1612 2015-02-25 Tom de Vries <tom@codesourcery.com>
1614 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
1615 (check_reduction_op, check_reduction_macro, max, min):
1617 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
1619 (main): Use new functions.
1621 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
1623 * target.c (gomp_load_plugin_for_device): Use const char * instead of
1624 char * for variables holding dlerror return values.
1627 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1629 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
1631 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1632 Cesar Philippidis <cesar@codesourcery.com>
1634 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
1635 GOACC_ctaid, and GOACC_nctaid routines.
1637 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1640 * testsuite/libgomp.c/atomic-18.c: New test.
1641 * testsuite/libgomp.c++/atomic-16.C: New test.
1643 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1647 * testsuite/libgomp.c/pr64824.c: New test.
1648 * testsuite/libgomp.c/pr64868.c: New test.
1649 * testsuite/libgomp.c++/pr64824.C: New test.
1650 * testsuite/libgomp.c++/pr64868.C: New test.
1652 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1655 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
1656 Link with -lpthread.
1657 * config/aix/plugin-suffix.h: Delete.
1659 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
1662 * configure.tgt (*-*-aix*): Use config_path "aix posix".
1663 (*-*-darwin*): Use config_path "bsd darwin posix".
1664 (*-*-hpux*): Use config_path "hpux posix".
1665 * target.c: Add include of plugin-suffix.h and use
1666 SONAME_SUFFIX macro.
1667 * config/aix/plugin-suffix.h: New file.
1668 * config/darwin/plugin-suffix.h: New file.
1669 * config/hpux/plugin-suffix.h: New file.
1670 * config/posix/plugin-suffix.h: New file.
1672 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1675 * libgomp.c/pr64734.c: New test.
1677 2015-01-23 Tom de Vries <tom@codesourcery.com>
1680 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
1682 2015-01-23 Tom de Vries <tom@codesourcery.com>
1685 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
1688 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1691 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
1692 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
1693 formal parameter. Update all users.
1694 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
1695 Document unused formal parameter.
1697 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
1699 * oacc-parallel.c: Don't include <alloca.h>.
1700 (GOACC_parallel): Use gomp_alloca instead of alloca.
1702 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
1704 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
1706 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1707 James Norris <jnorris@codesourcery.com>
1708 Tom de Vries <tom@codesourcery.com>
1709 Julian Brown <julian@codesourcery.com>
1710 Cesar Philippidis <cesar@codesourcery.com>
1711 Nathan Sidwell <nathan@codesourcery.com>
1712 Tobias Burnus <burnus@net-b.de>
1714 * Makefile.am (search_path): Add $(top_srcdir)/../include.
1715 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
1716 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
1717 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
1718 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
1719 Include $(top_srcdir)/plugin/Makefrag.am.
1720 (nodist_libsubinclude_HEADERS): Add openacc.h.
1721 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
1722 openacc.f90, openacc.mod, openacc_kinds.mod.
1723 (omp_lib.mod): Generalize into...
1724 (%.mod): ... this new rule.
1725 (openacc_kinds.mod, openacc.mod): New rules.
1726 * plugin/configfrag.ac: New file.
1727 * configure.ac: Move plugin/offloading support into it. Include
1728 it. Instantiate testsuite/libgomp-test-support.pt.exp.
1729 * plugin/Makefrag.am: New file.
1730 * testsuite/Makefile.am (OFFLOAD_TARGETS)
1731 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
1733 (libgomp-test-support.exp): New rule.
1734 (all-local): Depend on it.
1735 * Makefile.in: Regenerate.
1736 * testsuite/Makefile.in: Regenerate.
1737 * config.h.in: Likewise.
1738 * configure: Likewise.
1739 * configure.tgt: Harden shell syntax.
1740 * env.c: Include "oacc-int.h".
1741 (parse_acc_device_type): New function.
1742 (gomp_debug_var, goacc_device_type, goacc_device_num): New
1744 (initialize_env): Initialize those. Call
1745 goacc_runtime_initialize.
1746 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
1747 (gomp_fatal): Call gomp_vfatal.
1748 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
1749 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
1750 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
1751 (splay_tree_node, splay_tree, splay_tree_key)
1752 (struct target_mem_desc, struct splay_tree_key_s)
1753 (struct gomp_memory_mapping, struct acc_dispatch_t)
1754 (struct gomp_device_descr, gomp_acc_insert_pointer)
1755 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
1756 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
1757 (gomp_free_memmap, gomp_fini_device): New declarations.
1758 (gomp_vdebug, gomp_debug): New macros.
1759 Include "splay-tree.h".
1760 * libgomp.map (OACC_2.0): New symbol version. Use for
1761 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
1762 acc_set_device_type_h_, acc_get_device_type,
1763 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
1764 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
1765 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
1766 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
1767 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
1768 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
1769 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
1770 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
1771 acc_copyin_array_h_, acc_present_or_copyin,
1772 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
1773 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
1774 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
1775 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
1776 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
1777 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
1778 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
1779 acc_update_device, acc_update_device_32_h_,
1780 acc_update_device_64_h_, acc_update_device_array_h_,
1781 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
1782 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
1783 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
1784 acc_is_present_64_h_, acc_is_present_array_h_,
1785 acc_memcpy_to_device, acc_memcpy_from_device,
1786 acc_get_current_cuda_device, acc_get_current_cuda_context,
1787 acc_get_cuda_stream, acc_set_cuda_stream.
1788 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
1789 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
1790 GOACC_update, GOACC_wait, GOACC_get_thread_num,
1791 GOACC_get_num_threads.
1792 (GOMP_PLUGIN_1.0): New symbol version. Use for
1793 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
1794 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
1795 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
1796 GOMP_PLUGIN_acc_thread.
1797 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
1798 environment variable.
1799 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
1800 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
1801 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
1802 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
1803 (splay_tree_remove): New declarations.
1804 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
1805 (splay_tree_remove, splay_tree_lookup): Move into...
1806 * splay-tree.c: ... this new file.
1807 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
1808 (splay_tree_node, splay_tree, splay_tree_key)
1809 (struct target_mem_desc, struct splay_tree_key_s)
1810 (struct gomp_device_descr): Don't declare.
1811 (num_devices_openmp): New variable.
1812 (gomp_get_num_devices ): Use it.
1813 (gomp_init_targets_once): New function.
1814 (gomp_get_num_devices ): Use it.
1815 (get_kind, gomp_copy_from_async, gomp_free_memmap)
1816 (gomp_fini_device, gomp_register_image_for_device): New functions.
1817 (gomp_map_vars): Add devaddrs parameter.
1818 (gomp_update): Add mm parameter.
1819 (gomp_init_device): Move most of it into...
1820 (gomp_init_tables): ... this new function.
1821 (gomp_register_images_for_device): Remove function.
1822 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
1823 Make them hidden instead of static.
1824 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
1825 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
1826 (GOMP_target_end_data, GOMP_target_update)
1827 (gomp_load_plugin_for_device, gomp_target_init): Update for
1829 * oacc-async.c: New file.
1830 * oacc-cuda.c: Likewise.
1831 * oacc-host.c: Likewise.
1832 * oacc-init.c: Likewise.
1833 * oacc-int.h: Likewise.
1834 * oacc-mem.c: Likewise.
1835 * oacc-parallel.c: Likewise.
1836 * oacc-plugin.c: Likewise.
1837 * oacc-plugin.h: Likewise.
1838 * oacc-ptx.h: Likewise.
1839 * openacc.f90: Likewise.
1840 * openacc.h: Likewise.
1841 * openacc_lib.h: Likewise.
1842 * plugin/plugin-host.c: Likewise.
1843 * plugin/plugin-nvptx.c: Likewise.
1844 * libgomp-plugin.c: Likewise.
1845 * libgomp-plugin.h: Likewise.
1846 * libgomp_target.h: Remove file after merging content into the
1847 former file. Update all users.
1848 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
1849 (offload_targets_s, offload_targets_s_openacc): New variables.
1850 (check_effective_target_openacc_nvidia_accel_present)
1851 (check_effective_target_openacc_nvidia_accel_selected): New
1853 (libgomp_init): Update for OpenACC changes.
1854 * testsuite/libgomp-test-support.exp.in: New file.
1855 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1856 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1857 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1858 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
1859 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
1860 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1861 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
1862 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1863 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1864 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
1865 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
1866 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1867 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
1868 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1869 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1870 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
1871 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1872 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1873 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1874 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1875 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
1876 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1877 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1878 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1879 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1880 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1881 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1882 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1883 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1884 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1885 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1886 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1887 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1888 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
1889 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
1890 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1891 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1892 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1893 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
1894 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1895 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1896 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1897 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1898 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1899 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1900 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
1901 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1902 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1903 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1904 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1905 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1906 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1907 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1908 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1909 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1910 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1911 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1912 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1913 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1914 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
1915 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1916 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
1917 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1918 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1919 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1920 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
1921 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
1922 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1923 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1924 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1925 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
1926 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1927 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1928 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1929 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
1930 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
1931 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1932 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1933 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
1934 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
1935 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
1936 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
1937 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1938 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1939 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1940 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
1941 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
1942 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1943 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1944 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
1945 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1946 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
1947 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
1948 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1949 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1950 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1951 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1952 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
1953 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1954 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1955 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1956 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
1957 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1958 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1959 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1960 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1961 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1962 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1963 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1964 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1965 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1966 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1967 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1968 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1969 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1970 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1971 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1972 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1973 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1974 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1975 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1976 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1977 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1978 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1979 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1980 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1981 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1982 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
1983 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
1984 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
1985 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
1986 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
1987 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1988 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
1989 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1990 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1991 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1992 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1993 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1994 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
1996 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
1997 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
1998 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
1999 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
2000 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
2001 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2002 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2003 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2004 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2005 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2006 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2007 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2008 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2009 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2010 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2011 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2012 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2013 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2014 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2015 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2016 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2017 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2018 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2019 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2020 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2021 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2022 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2023 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2024 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2025 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2026 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2027 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2028 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2029 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2030 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2031 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2032 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2033 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2034 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2035 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2036 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2037 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2038 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2039 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2040 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2041 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2042 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2043 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2044 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2045 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2046 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2047 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2048 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2049 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2050 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2051 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2052 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2053 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2054 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2055 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2057 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2058 Julian Brown <julian@codesourcery.com>
2059 David Malcolm <dmalcolm@redhat.com>
2061 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
2062 to "GNU Offloading and Multi Processing Runtime Library". Change
2064 * configure: Regenerate.
2065 * libgomp.texi: Update.
2067 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2069 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
2071 * configure: Regenerate.
2073 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
2074 "intelmic" in $offload_targets.
2076 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2078 Update copyright years.
2080 * libgomp.texi: Bump @copying's copyright year.
2082 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2084 * testsuite/lib/libgomp.exp: Load target-utils.exp.
2085 Move load of target-supportes.exp earlier.
2087 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
2089 * testsuite/libgomp.c/target-9.c: New test.
2091 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
2093 * config.h.in: Regenerate.
2094 * configure: Regenerate.
2095 * configure.ac: Add GCC_CHECK_EMUTLS.
2096 * libgomp.h: Add check for USE_EMUTLS: this case
2097 is equal to HAVE_TLS.
2100 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
2102 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
2104 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2105 Ilya Verbin <ilya.verbin@intel.com>
2107 * testsuite/libgomp.c/target-critical-1.c: New test.
2109 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2111 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
2112 to dg-options unless expensive testing is on.
2113 (TESTITERS): Define to N if not defined.
2114 (main): Use TESTITERS instead of N.
2115 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
2116 dg-additional-options depending on whether expensive testing is on.
2117 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
2118 Decrease N to 100000 and CHUNKSZ to 10000.
2120 2014-11-24 Jakub Jelinek <jakub@redhat.com>
2123 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
2124 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
2126 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
2128 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
2130 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
2133 * configure: Regenerated.
2135 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
2137 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
2138 vect_simd_clones effective target.
2139 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
2141 2014-11-14 Jakub Jelinek <jakub@redhat.com>
2143 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
2144 of 32 as block_size.
2145 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
2146 instead of 32 as block_size.
2148 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
2149 Ilya Verbin <ilya.verbin@intel.com>
2151 * Makefile.in: Regenerate.
2152 * configure: Regenerate.
2153 * configure.ac: Set up offload_additional_options,
2154 offload_additional_lib_paths and offload_targets.
2155 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
2156 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
2157 * testsuite/Makefile.in: Regenerate.
2158 * testsuite/lib/libgomp.exp (libgomp_init): Append
2159 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
2160 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
2161 build directory to LD_LIBRARY_PATH for intelmic offload targets.
2163 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
2164 Ilya Verbin <ilya.verbin@intel.com>
2165 Kirill Yukhin <kirill.yukhin@intel.com>
2166 Ilya Tocar <ilya.tocar@intel.com>
2168 * testsuite/lib/libgomp.exp
2169 (check_effective_target_offload_device): New.
2170 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
2171 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
2172 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
2173 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
2174 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
2175 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
2176 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
2177 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
2178 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
2179 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
2180 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
2181 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
2182 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
2183 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
2184 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
2185 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
2186 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
2187 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
2188 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
2189 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
2190 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
2191 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
2192 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
2193 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
2194 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
2195 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
2196 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
2197 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
2198 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
2199 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
2200 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
2201 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
2202 * testsuite/libgomp.c/target-7.c: Fix test.
2203 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
2204 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
2205 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
2206 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
2207 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
2208 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
2209 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
2210 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
2211 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
2212 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
2213 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
2214 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
2215 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
2216 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
2217 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
2218 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
2219 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
2220 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
2221 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
2222 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
2223 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
2224 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
2225 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
2226 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
2227 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
2228 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
2229 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
2230 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
2231 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
2232 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
2233 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
2235 2014-11-13 Jakub Jelinek <jakub@redhat.com>
2236 Ilya Verbin <ilya.verbin@intel.com>
2237 Thomas Schwinge <thomas@codesourcery.com>
2238 Andrey Turetskiy <andrey.turetskiy@intel.com>
2240 * libgomp.map (GOMP_4.0.1): New symbol version.
2241 Add GOMP_offload_register.
2242 * libgomp_target.h: New file.
2243 * splay-tree.h: New file.
2244 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
2245 (gomp_target_init): New forward declaration.
2246 (gomp_is_initialized): New static variable.
2247 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
2248 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
2250 (offload_images, num_offload_images, devices, num_devices): New static
2252 (splay_compare): New static function.
2253 (struct gomp_device_descr): New structure.
2254 (gomp_get_num_devices): Call gomp_target_init.
2255 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
2256 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
2257 (GOMP_offload_register): New function.
2258 (GOMP_target): Arrange for host callback to be performed in a separate
2259 initial thread and contention group, inheriting ICVs from
2260 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
2261 Add device initialization and lookup for target function in splay tree.
2262 (GOMP_target_data): Add device initialization and call gomp_map_vars.
2263 (GOMP_target_end_data): Call gomp_unmap_vars.
2264 (GOMP_target_update): Add device initialization and call gomp_update.
2265 (gomp_load_plugin_for_device, gomp_register_images_for_device)
2266 (gomp_target_init): New static functions.
2268 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
2269 Thomas Schwinge <thomas@codesourcery.com>
2270 Ilya Verbin <ilya.verbin@intel.com>
2271 Andrey Turetskiy <andrey.turetskiy@intel.com>
2273 * config.h.in: Regenerate.
2274 * configure: Regenerate.
2275 * configure.ac: Check for libdl, required for plugin support.
2276 (PLUGIN_SUPPORT): Define if plugins are supported.
2277 (enable_offload_targets): Support Intel MIC targets.
2278 (OFFLOAD_TARGETS): List of target names suitable for offloading.
2280 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2283 * configure: Regenerate.
2285 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
2289 2014-10-06 Marek Polacek <polacek@redhat.com>
2291 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
2292 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
2293 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
2294 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2296 2014-10-06 Marek Polacek <polacek@redhat.com>
2298 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
2299 * testsuite/libgomp.c/nqueens-1.c: Likewise.
2300 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2301 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2302 * testsuite/libgomp.c/pr36802-2.c: Likewise.
2303 * testsuite/libgomp.c/pr36802-3.c: Likewise.
2304 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2305 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2306 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
2307 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
2308 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
2309 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
2310 * testsuite/libgomp.c/omp-single-1.c: Likewise.
2311 * testsuite/libgomp.c/omp-single-2.c: Likewise.
2312 * testsuite/libgomp.c/omp_matvec.c: Likewise.
2313 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
2314 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
2315 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
2318 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2321 * testsuite/libgomp.c/pr61200.c: New test.
2323 2014-09-18 Jakub Jelinek <jakub@redhat.com>
2326 * testsuite/libgomp.c++/pr63248.C: New test.
2328 2014-08-04 Jakub Jelinek <jakub@redhat.com>
2330 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
2331 is not zero, but taskgroup->children is NULL and there are
2332 any task->children, schedule those instead of waiting.
2333 * testsuite/libgomp.c/depend-6.c: New test.
2334 * testsuite/libgomp.c/depend-7.c: New test.
2335 * testsuite/libgomp.c/depend-8.c: New test.
2336 * testsuite/libgomp.c/depend-9.c: New test.
2337 * testsuite/libgomp.c/depend-10.c: New test.
2339 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2341 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
2342 (struct gomp_taskwait): New type.
2343 (struct gomp_task): Add taskwait and parent_depends_on, remove
2344 in_taskwait and taskwait_sem fields.
2345 (gomp_finish_task): Don't destroy taskwait_sem.
2346 * task.c (gomp_init_task): Don't init in_taskwait, instead init
2347 taskwait and parent_depends_on.
2348 (GOMP_task): For if (0) tasks with depend clause that depend on
2349 earlier tasks don't defer them, instead call
2350 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
2351 Initialize redundant_out field, for redundant out entries just
2352 move them at the end of linked list instead of removing them
2353 completely, and set redundant_out flag instead of redundant.
2354 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
2356 (gomp_task_run_post_handle_dependers): If parent is in
2357 gomp_task_maybe_wait_for_dependencies and newly runnable task
2358 is not parent_depends_on, queue it in parent->children linked
2359 list after all runnable tasks with parent_depends_on set.
2360 Adjust for addition of taskwait indirection.
2361 (gomp_task_run_post_remove_parent): If parent is in
2362 gomp_task_maybe_wait_for_dependencies and task to be removed
2363 is parent_depends_on, decrement n_depend and if needed awake
2364 parent. Adjust for addition of taskwait indirection.
2365 (GOMP_taskwait): Adjust for addition of taskwait indirection.
2366 (gomp_task_maybe_wait_for_dependencies): New function.
2367 * testsuite/libgomp.c/depend-5.c: New test.
2369 2014-07-13 Tobias Burnus <burnus@net-b.de>
2371 * testsuite/libgomp.fortran/pr34020.f90: Make compile
2372 with TS 18508/Fortran 2015.
2374 2014-07-06 Marek Polacek <polacek@redhat.com>
2377 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
2379 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2381 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
2382 matches regex $lang_source_re, add $lang_include_flags to options.
2383 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
2384 * testsuite/libgomp.c++/c++.exp: Likewise.
2385 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
2386 and lang_include_flags instead of adding -fintrinsic-modules-path= to
2388 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
2390 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
2392 * testsuite/libgomp.fortran/fortran.exp: Explain
2393 gfortran-dg-runtest usage.
2395 2014-06-25 Jakub Jelinek <jakub@redhat.com>
2397 * testsuite/libgomp.fortran/simd5.f90: New test.
2398 * testsuite/libgomp.fortran/simd6.f90: New test.
2399 * testsuite/libgomp.fortran/simd7.f90: New test.
2401 2014-06-24 Jakub Jelinek <jakub@redhat.com>
2403 * testsuite/libgomp.c/for-2.c: Define SC to static for
2404 #pragma omp for simd testing.
2405 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
2406 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
2408 * testsuite/libgomp.c/simd-14.c: New test.
2409 * testsuite/libgomp.c/simd-15.c: New test.
2410 * testsuite/libgomp.c/simd-16.c: New test.
2411 * testsuite/libgomp.c/simd-17.c: New test.
2412 * testsuite/libgomp.c++/for-10.C: Define SC to static for
2413 #pragma omp for simd testing.
2414 * testsuite/libgomp.c++/simd10.C: New test.
2415 * testsuite/libgomp.c++/simd11.C: New test.
2416 * testsuite/libgomp.c++/simd12.C: New test.
2417 * testsuite/libgomp.c++/simd13.C: New test.
2419 * testsuite/libgomp.fortran/aligned1.f03: New test.
2420 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
2421 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
2422 tasks with !$omp parallel !$omp single.
2423 * testsuite/libgomp.fortran/target8.f90: New test.
2424 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
2425 not to use trim in the combiner, instead call elemental function.
2426 (fn): New elemental function.
2427 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
2429 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
2431 * testsuite/libgomp.fortran/udr12.f90: New test.
2432 * testsuite/libgomp.fortran/udr13.f90: New test.
2433 * testsuite/libgomp.fortran/udr14.f90: New test.
2434 * testsuite/libgomp.fortran/udr15.f90: New test.
2436 2014-06-18 Jakub Jelinek <jakub@redhat.com>
2438 * omp_lib.f90.in (openmp_version): Set to 201307.
2439 * omp_lib.h.in (openmp_version): Likewise.
2440 * testsuite/libgomp.c/target-8.c: New test.
2441 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
2442 and inbranch clauses.
2443 * testsuite/libgomp.fortran/depend-3.f90: New test.
2444 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
2446 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2447 * testsuite/libgomp.fortran/target1.f90: New test.
2448 * testsuite/libgomp.fortran/target2.f90: New test.
2449 * testsuite/libgomp.fortran/target3.f90: New test.
2450 * testsuite/libgomp.fortran/target4.f90: New test.
2451 * testsuite/libgomp.fortran/target5.f90: New test.
2452 * testsuite/libgomp.fortran/target6.f90: New test.
2453 * testsuite/libgomp.fortran/target7.f90: New test.
2455 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2458 * testsuite/libgomp.fortran/allocatable9.f90: New test.
2459 * testsuite/libgomp.fortran/allocatable10.f90: New test.
2460 * testsuite/libgomp.fortran/allocatable11.f90: New test.
2461 * testsuite/libgomp.fortran/allocatable12.f90: New test.
2462 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
2463 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
2464 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
2465 * testsuite/libgomp.fortran/associate1.f90: New test.
2466 * testsuite/libgomp.fortran/associate2.f90: New test.
2467 * testsuite/libgomp.fortran/procptr1.f90: New test.
2469 2014-06-06 Jakub Jelinek <jakub@redhat.com>
2471 * testsuite/libgomp.fortran/simd1.f90: New test.
2472 * testsuite/libgomp.fortran/udr1.f90: New test.
2473 * testsuite/libgomp.fortran/udr2.f90: New test.
2474 * testsuite/libgomp.fortran/udr3.f90: New test.
2475 * testsuite/libgomp.fortran/udr4.f90: New test.
2476 * testsuite/libgomp.fortran/udr5.f90: New test.
2477 * testsuite/libgomp.fortran/udr6.f90: New test.
2478 * testsuite/libgomp.fortran/udr7.f90: New test.
2479 * testsuite/libgomp.fortran/udr8.f90: New test.
2480 * testsuite/libgomp.fortran/udr9.f90: New test.
2481 * testsuite/libgomp.fortran/udr10.f90: New test.
2482 * testsuite/libgomp.fortran/udr11.f90: New test.
2484 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
2486 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
2487 vect_simd_clones effective target.
2488 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
2490 2014-05-21 Jakub Jelinek <jakub@redhat.com>
2493 * testsuite/libgomp.c++/simd-9.C: New test.
2495 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
2497 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
2498 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
2499 texts according to their @menu entry positions.
2501 2014-05-11 Jakub Jelinek <jakub@redhat.com>
2503 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
2504 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
2505 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
2506 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
2507 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
2508 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
2509 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
2510 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
2511 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
2512 * testsuite/libgomp.fortran/depend-1.f90: New test.
2513 * testsuite/libgomp.fortran/depend-2.f90: New test.
2514 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
2515 * testsuite/libgomp.fortran/simd1.f90: New test.
2516 * testsuite/libgomp.fortran/simd2.f90: New test.
2517 * testsuite/libgomp.fortran/simd3.f90: New test.
2518 * testsuite/libgomp.fortran/simd4.f90: New test.
2519 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
2521 2014-05-02 Jakub Jelinek <jakub@redhat.com>
2523 * testsuite/libgomp.c/simd-10.c: New test.
2524 * testsuite/libgomp.c/simd-11.c: New test.
2525 * testsuite/libgomp.c/simd-12.c: New test.
2526 * testsuite/libgomp.c/simd-13.c: New test.
2528 2014-04-24 Jakub Jelinek <jakub@redhat.com>
2530 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
2531 atomic type clauses in any order and optional comma in between.
2532 * testsuite/libgomp.c++/atomic-15.C: Likewise.
2533 * testsuite/libgomp.c/atomic-17.c: Likewise.
2535 * testsuite/libgomp.c/simd-7.c: New test.
2536 * testsuite/libgomp.c/simd-8.c: New test.
2537 * testsuite/libgomp.c/simd-9.c: New test.
2538 * testsuite/libgomp.c/loop-16.c: New test.
2540 2014-04-02 Richard Henderson <rth@redhat.com>
2542 * config/linux/futex.h (futex_wait): Get error value from errno.
2543 (futex_wake): Likewise.
2545 2014-03-25 Jakub Jelinek <jakub@redhat.com>
2548 * testsuite/libgomp.c++/udr-11.C: New test.
2549 * testsuite/libgomp.c++/udr-12.C: New test.
2550 * testsuite/libgomp.c++/udr-13.C: New test.
2551 * testsuite/libgomp.c++/udr-14.C: New test.
2552 * testsuite/libgomp.c++/udr-15.C: New test.
2553 * testsuite/libgomp.c++/udr-16.C: New test.
2554 * testsuite/libgomp.c++/udr-17.C: New test.
2555 * testsuite/libgomp.c++/udr-18.C: New test.
2556 * testsuite/libgomp.c++/udr-19.C: New test.
2558 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2560 Update copyright years
2562 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2564 * hashtab.h: Use the standard form for the copyright notice.
2566 2014-01-02 Tobias Burnus <burnus@net-b.de>
2568 * libgomp.texi: Bump @copying's copyright year.
2570 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
2572 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
2573 alloca () with __builtin_alloca ().
2574 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
2575 * testsuite/libgomp.c/lock-3.c: Likewise.
2576 * testsuite/libgomp.c/pr48591.c: Likewise.
2578 2013-12-17 Jakub Jelinek <jakub@redhat.com>
2581 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
2584 2013-12-16 Jakub Jelinek <jakub@redhat.com>
2587 * testsuite/libgomp.c/pr58756.c: New test.
2589 2013-12-12 Jakub Jelinek <jakub@redhat.com>
2592 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
2595 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
2597 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
2599 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
2600 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
2601 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2602 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
2605 * libgomp_g.h: Include <stddef.h> for size_t.
2607 * libgomp.spec.in: Update comment about libgomp's dependencies.
2608 * configure.ac: Likewise.
2609 * configure: Regenerate.
2611 2013-10-16 Tobias Burnus <burnus@net-b.de>
2613 * libgomp.texi: (Runtime Library Routines): Update references for
2614 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
2615 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
2616 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
2617 (Environment Variables): Update references for OpenMP 4.0. Add
2618 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
2619 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
2622 2013-10-14 Jakub Jelinek <jakub@redhat.com>
2624 * env.c (parse_bind_var): Initialize value to avoid
2625 (false positive) warning.
2627 2013-10-12 Jakub Jelinek <jakub@redhat.com>
2630 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
2632 (gomp_init_num_threads): Move i variable declaration into
2633 #ifdef CPU_ALLOC_SIZE block.
2634 * config/linux/affinity.c (gomp_affinity_init_level): Test
2635 gomp_places_list_len == 0 rather than gomp_places_list == 0
2636 when checking for topology reading error.
2637 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
2638 * env.c (parse_affinity): Add ignore argument, if true, don't populate
2639 gomp_places_list, only parse env var and always return false.
2640 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
2641 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
2642 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
2643 and either of these variables were parsed correctly into a places
2646 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2647 Jakub Jelinek <jakub@redhat.com>
2649 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
2650 of 5 loopfn matches.
2651 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2652 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2653 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2654 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2655 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2656 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2657 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2658 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2660 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2662 * Makefile.am (omp_lib.mod): Streamline rule.
2663 * Makefile.in: Regenerate.
2665 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
2668 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
2669 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2670 * testsuite/libgomp.fortran/lib2.f: Likewise.
2671 * testsuite/libgomp.fortran/lib3.f: Likewise.
2673 * configure.ac: Typo fix.
2674 * configure: Regenerate.
2676 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
2677 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2679 * omp.h.in: Don't touch the user's namespace.
2681 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2682 Tobias Burnus <burnus@net-b.de>
2683 Richard Henderson <rth@redhat.com>
2685 * target.c: New file.
2686 * Makefile.am (libgomp_la_SOURCES): Add target.c.
2687 * Makefile.in: Regenerated.
2688 * libgomp_g.h (GOMP_task): Add depend argument.
2689 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2690 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2691 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
2692 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2693 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2694 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
2695 GOMP_taskgroup_start, GOMP_taskgroup_end,
2696 GOMP_parallel_sections): New prototypes.
2697 * fortran.c (omp_is_initial_device): Add ialias_redirect.
2698 (omp_is_initial_device_): New function.
2699 (ULP, STR1, STR2, ialias_redirect): Removed.
2700 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
2701 omp_set_default_device_8_, omp_get_default_device_,
2702 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
2704 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2705 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2706 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
2708 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
2709 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
2710 omp_set_default_device, omp_set_default_device_,
2711 omp_set_default_device_8_, omp_get_default_device,
2712 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
2713 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
2714 omp_get_team_num_): Export @@OMP_4.0.
2715 * team.c (struct gomp_thread_start_data): Add place field.
2716 (gomp_thread_start): Clear thr->thread_pool and
2717 thr->task before returning. Use gomp_team_barrier_wait_final
2718 instead of gomp_team_barrier_wait. Initialize thr->place.
2719 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
2720 team_cancelled and task_queued_count fields.
2721 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
2722 before calling pthread_exit.
2723 (gomp_free_thread): No longer static. Use
2724 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
2725 (gomp_team_start): Add flags argument. Set
2726 thr->thread_pool->threads_busy to nthreads immediately after creating
2727 new pool. Use gomp_managed_threads_lock instead of
2728 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
2729 (gomp_team_end): Use gomp_managed_threads_lock instead of
2730 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
2731 of gomp_team_barrier_wait. If team->team_cancelled, call
2732 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
2733 rather than thr->ts.work_share.
2734 (initialize_team): Don't call gomp_sem_init here.
2735 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
2737 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
2738 * env.c (gomp_global_icv): Add default_device_var, target_data and
2739 bind_var initializers.
2740 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2741 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2742 gomp_places_list_len): New variables.
2743 (parse_bind_var, parse_one_place, parse_places_var): New functions.
2744 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
2746 (gomp_cancel_var): New global variable.
2747 (parse_int): New function.
2748 (handle_omp_display_env): New function.
2749 (initialize_env): Use it. Initialize default_device_var.
2750 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
2751 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
2752 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
2753 been successfully parsed (and call gomp_init_affinity in that case).
2754 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2755 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2756 omp_get_team_num, omp_is_initial_device): New functions.
2757 * libgomp.h: Include stdlib.h.
2758 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
2760 (struct target_mem_desc): Forward declare.
2761 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
2762 and thread_limit_var fields.
2763 (gomp_get_num_devices): New prototype.
2764 (gomp_cancel_var): New extern decl.
2765 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
2766 team_cancelled and task_queued_count fields. Add comments about
2767 task_{,queued_,running_}count.
2768 (gomp_cancel_kind): New enum.
2769 (gomp_work_share_end_cancel): New prototype.
2770 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
2771 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
2773 (struct gomp_taskgroup): New type.
2774 (struct gomp_task_depend_entry,
2775 struct gomp_dependers_vec): New types.
2776 (gomp_finish_task): Free depend_hash if non-NULL.
2777 (struct gomp_team_state): Add place_partition_off
2778 and place_partition_len fields.
2779 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2780 gomp_places_list_len): New extern decls.
2781 (struct gomp_thread): Add place field.
2782 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2783 (gomp_init_thread_affinity): Add place argument.
2784 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2785 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2786 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2787 gomp_affinity_init_level, gomp_affinity_print_place): New
2789 (gomp_team_start): Add flags argument.
2790 (gomp_thread_limit_var, gomp_remaining_threads_count,
2791 gomp_remaining_threads_lock): Remove.
2792 (gomp_managed_threads_lock): New variable.
2793 (struct gomp_thread_pool): Add threads_busy field.
2794 (gomp_free_thread): New prototype.
2795 * task.c: Include hashtab.h.
2796 (hash_entry_type): New typedef.
2797 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
2798 (gomp_init_task): Clear dependers, depend_hash, depend_count,
2799 copy_ctors_done and taskgroup fields.
2800 (GOMP_task): Add depend argument, handle depend clauses. If
2801 gomp_team_barrier_cancelled or if it's taskgroup has been
2802 cancelled, don't queue or start new tasks. Set copy_ctors_done
2803 field if needed. Initialize taskgroup field. If copy_ctors_done
2804 and already cancelled, don't discard the task. If taskgroup is
2805 non-NULL, enqueue the task into taskgroup queue. Increment
2806 num_children field in taskgroup. Increment task_queued_count.
2807 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
2808 gomp_task_run_post_remove_taskgroup): New inline functions.
2809 (gomp_task_run_post_handle_depend_hash,
2810 gomp_task_run_post_handle_dependers,
2811 gomp_task_run_post_handle_depend): New functions.
2812 (GOMP_taskwait): Use them. If more than one new tasks
2813 have been queued, wake other threads if needed.
2814 (gomp_barrier_handle_tasks): Likewise. If
2815 gomp_team_barrier_cancelled, don't start any new tasks, just free
2817 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
2819 (omp_proc_bind_kind, omp_proc_bind_false,
2820 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2821 omp_proc_bind_spread): New params.
2822 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2823 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2824 omp_get_team_num, omp_is_initial_device): New interfaces.
2825 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
2826 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
2827 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
2828 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
2829 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
2830 useless use omp_lib_kinds.
2831 * omp.h.in (omp_proc_bind_t): New typedef.
2832 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2833 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2834 omp_get_team_num, omp_is_initial_device): New prototypes.
2835 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
2836 through to gomp_team_start.
2837 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
2838 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
2839 Adjust gomp_parallel_loop_start callers.
2840 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2841 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2842 GOMP_loop_end_cancel): New functions.
2843 (GOMP_parallel_end): Add ialias_redirect.
2844 * hashtab.h: New file.
2845 * libgomp.texi (Environment Variables): Minor cleanup,
2846 update section refs to OpenMP 4.0rc2.
2847 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
2848 environment variables.
2849 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
2850 team->work_shares_to_free to thr->ts.work_share before calling
2852 (gomp_work_share_end_cancel): New function.
2853 * config/linux/proc.c: Include errno.h.
2854 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
2855 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
2856 sizeof (cpu_set_t) to determine number of iterations. Fix up check
2857 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
2858 gomp_cpuset_size is sizeof (cpu_set_t).
2859 (gomp_init_num_threads): Initialize gomp_cpuset_size,
2860 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
2861 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
2862 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
2863 contain any logical CPUs.
2864 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
2865 is NULL. Use gomp_cpusetp instead of &cpuset and pass
2866 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
2867 pthread_getaffinity_np. Check gomp_places_list instead of
2868 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
2869 * config/linux/bar.c (gomp_barrier_wait_end,
2870 gomp_barrier_wait_last): Use BAR_* defines.
2871 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
2872 from state where needed. Set work_share_cancelled to 0 on last
2874 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
2875 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
2877 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
2878 Add cpusetsize argument.
2879 (gomp_cpuset_size, gomp_cpusetp): Declare.
2880 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
2881 (affinity_counter): Remove.
2882 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
2883 if CPU_ALLOC_SIZE isn't defined.
2884 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
2885 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
2886 bind current thread to the first place.
2887 (gomp_init_thread_affinity): Rewritten. Add place argument, just
2888 pthread_setaffinity_np to gomp_places_list[place].
2889 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2890 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2891 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2892 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
2893 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2894 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2895 (gomp_barrier_t): Add awaited_final field.
2896 (gomp_barrier_init): Initialize awaited_final field.
2897 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
2898 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
2900 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
2902 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
2903 gomp_team_barrier_cancelled): New inline functions.
2904 (gomp_barrier_last_thread,
2905 gomp_team_barrier_set_task_pending,
2906 gomp_team_barrier_clear_task_pending,
2907 gomp_team_barrier_set_waiting_for_tasks,
2908 gomp_team_barrier_waiting_for_tasks,
2909 gomp_team_barrier_done): Use BAR_* defines.
2910 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
2911 (gomp_barrier_wait_end): Use BAR_* defines.
2912 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
2913 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
2915 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
2916 gomp_team_barrier_cancel): New functions.
2917 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
2919 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2920 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2921 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2922 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
2923 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2924 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2925 (gomp_barrier_t): Add cancellable field.
2926 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
2927 gomp_team_barrier_cancel): New prototypes.
2928 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
2929 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
2930 gomp_team_barrier_cancelled): New inline functions.
2931 (gomp_barrier_wait_start, gomp_barrier_last_thread,
2932 gomp_team_barrier_set_task_pending,
2933 gomp_team_barrier_clear_task_pending,
2934 gomp_team_barrier_set_waiting_for_tasks,
2935 gomp_team_barrier_waiting_for_tasks,
2936 gomp_team_barrier_done): Use BAR_* defines.
2937 * barrier.c (GOMP_barrier_cancel): New function.
2938 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
2939 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2940 omp_proc_bind_spread): New params.
2941 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2942 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2943 omp_get_team_num, omp_is_initial_device): New externals.
2944 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
2946 (gomp_resolve_num_threads): Adjust for thread_limit now being in
2947 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2948 infinity. If not nested, just return minimum of max_num_threads
2949 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
2950 to the returned value. Otherwise, don't update atomically
2951 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
2952 (GOMP_parallel_end): Adjust for thread_limit now being in
2953 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2954 infinity. Adjust threads_busy in the pool rather than
2955 gomp_remaining_threads_count. Remember team->nthreads and call
2956 gomp_team_end before adjusting threads_busy, if not nested
2957 afterwards, just set it to 1 non-atomically. Add ialias.
2958 (GOMP_parallel_start): Adjust gomp_team_start caller.
2959 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
2960 * testsuite/libgomp.c/affinity-1.c: New test.
2961 * testsuite/libgomp.c/atomic-15.c: New test.
2962 * testsuite/libgomp.c/atomic-16.c: New test.
2963 * testsuite/libgomp.c/atomic-17.c: New test.
2964 * testsuite/libgomp.c/cancel-for-1.c: New test.
2965 * testsuite/libgomp.c/cancel-for-2.c: New test.
2966 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
2967 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
2968 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
2969 * testsuite/libgomp.c/cancel-sections-1.c: New test.
2970 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
2971 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
2972 * testsuite/libgomp.c/depend-1.c: New test.
2973 * testsuite/libgomp.c/depend-2.c: New test.
2974 * testsuite/libgomp.c/depend-3.c: New test.
2975 * testsuite/libgomp.c/depend-4.c: New test.
2976 * testsuite/libgomp.c/for-1.c: New test.
2977 * testsuite/libgomp.c/for-1.h: New file.
2978 * testsuite/libgomp.c/for-2.c: New test.
2979 * testsuite/libgomp.c/for-2.h: New file.
2980 * testsuite/libgomp.c/for-3.c: New test.
2981 * testsuite/libgomp.c/pr58392.c: New test.
2982 * testsuite/libgomp.c/simd-1.c: New test.
2983 * testsuite/libgomp.c/simd-2.c: New test.
2984 * testsuite/libgomp.c/simd-3.c: New test.
2985 * testsuite/libgomp.c/simd-4.c: New test.
2986 * testsuite/libgomp.c/simd-5.c: New test.
2987 * testsuite/libgomp.c/simd-6.c: New test.
2988 * testsuite/libgomp.c/target-1.c: New test.
2989 * testsuite/libgomp.c/target-2.c: New test.
2990 * testsuite/libgomp.c/target-3.c: New test.
2991 * testsuite/libgomp.c/target-4.c: New test.
2992 * testsuite/libgomp.c/target-5.c: New test.
2993 * testsuite/libgomp.c/target-6.c: New test.
2994 * testsuite/libgomp.c/target-7.c: New test.
2995 * testsuite/libgomp.c/taskgroup-1.c: New test.
2996 * testsuite/libgomp.c/thread-limit-1.c: New test.
2997 * testsuite/libgomp.c/thread-limit-2.c: New test.
2998 * testsuite/libgomp.c/thread-limit-3.c: New test.
2999 * testsuite/libgomp.c/udr-1.c: New test.
3000 * testsuite/libgomp.c/udr-2.c: New test.
3001 * testsuite/libgomp.c/udr-3.c: New test.
3002 * testsuite/libgomp.c++/affinity-1.C: New test.
3003 * testsuite/libgomp.c++/atomic-10.C: New test.
3004 * testsuite/libgomp.c++/atomic-11.C: New test.
3005 * testsuite/libgomp.c++/atomic-12.C: New test.
3006 * testsuite/libgomp.c++/atomic-13.C: New test.
3007 * testsuite/libgomp.c++/atomic-14.C: New test.
3008 * testsuite/libgomp.c++/atomic-15.C: New test.
3009 * testsuite/libgomp.c++/cancel-for-1.C: New test.
3010 * testsuite/libgomp.c++/cancel-for-2.C: New test.
3011 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
3012 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
3013 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
3014 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
3015 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
3016 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
3017 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
3018 * testsuite/libgomp.c++/cancel-test.h: New file.
3019 * testsuite/libgomp.c++/for-9.C: New test.
3020 * testsuite/libgomp.c++/for-10.C: New test.
3021 * testsuite/libgomp.c++/for-11.C: New test.
3022 * testsuite/libgomp.c++/simd-1.C: New test.
3023 * testsuite/libgomp.c++/simd-2.C: New test.
3024 * testsuite/libgomp.c++/simd-3.C: New test.
3025 * testsuite/libgomp.c++/simd-4.C: New test.
3026 * testsuite/libgomp.c++/simd-5.C: New test.
3027 * testsuite/libgomp.c++/simd-6.C: New test.
3028 * testsuite/libgomp.c++/simd-7.C: New test.
3029 * testsuite/libgomp.c++/simd-8.C: New test.
3030 * testsuite/libgomp.c++/target-1.C: New test.
3031 * testsuite/libgomp.c++/target-2.C: New test.
3032 * testsuite/libgomp.c++/target-2-aux.cc: New file.
3033 * testsuite/libgomp.c++/target-3.C: New test.
3034 * testsuite/libgomp.c++/taskgroup-1.C: New test.
3035 * testsuite/libgomp.c++/udr-1.C: New test.
3036 * testsuite/libgomp.c++/udr-2.C: New test.
3037 * testsuite/libgomp.c++/udr-3.C: New test.
3038 * testsuite/libgomp.c++/udr-4.C: New test.
3039 * testsuite/libgomp.c++/udr-5.C: New test.
3040 * testsuite/libgomp.c++/udr-6.C: New test.
3041 * testsuite/libgomp.c++/udr-7.C: New test.
3042 * testsuite/libgomp.c++/udr-8.C: New test.
3043 * testsuite/libgomp.c++/udr-9.C: New test.
3045 2013-09-20 Jakub Jelinek <jakub@redhat.com>
3048 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
3051 2013-09-20 Alan Modra <amodra@gmail.com>
3053 * configure: Regenerate.
3055 2013-09-19 Jakub Jelinek <jakub@redhat.com>
3057 * testsuite/libgomp.c/sections-2.c: New test.
3059 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
3061 * testsuite/libgomp.fortran/strassen.f90:
3062 Add dg-skip-if aarch64_tiny.
3064 2013-06-20 Iain Sandoe <iain@codesourcery.com>
3065 Cesar Philippidis <cesar@codesourcery.com>
3067 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
3068 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
3069 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
3070 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3071 * testsuite/libgomp.graphite/graphite.exp: Likewise.
3072 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
3073 Use dg-runtest rather than gfortran-dg-runtest.
3075 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
3077 * testsuite/libgomp.c/icv-2.c: Extend current handling of
3078 Linux-based x86 systems to cover all GNU systems.
3079 * testsuite/libgomp.c/lock-3.c: Likewise.
3080 * testsuite/libgomp.c/pr48591.c: Likewise.
3082 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
3084 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
3085 GNU/Hurd, as done for Linux-based systems.
3087 * config/posix/ptrlock.h: Fix comment.
3089 2013-05-27 Tobias Burnus <burnus@net-b.de>
3092 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
3093 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
3094 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
3095 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
3096 omp_destroy_nest_lock): Correct arguments to match the one in
3098 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
3099 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
3100 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
3101 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
3103 2013-05-16 Jakub Jelinek <jakub@redhat.com>
3105 * testsuite/libgomp.c/loop-13.c: New test.
3106 * testsuite/libgomp.c/loop-14.c: New test.
3107 * testsuite/libgomp.c/loop-15.c: New test.
3108 * testsuite/libgomp.c++/loop-13.C: New test.
3109 * testsuite/libgomp.c++/loop-14.C: New test.
3110 * testsuite/libgomp.c++/loop-15.C: New test.
3112 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3115 * testsuite/libgomp.c++/pr56217.C: New test.
3117 2013-02-01 Alan Modra <amodra@gmail.com>
3119 * task.c (GOMP_task, GOMP_taskwait): Comment.
3121 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
3122 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
3125 * config/linux/wait.h (do_spin): Use atomic load for addr.
3126 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
3127 for intptr and ptrlock.
3128 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
3131 2013-01-22 Alan Modra <amodra@gmail.com>
3135 * task.c (GOMP_task): Revert 2011-12-09 change.
3136 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
3137 barrier to read task->children..
3138 (gomp_barrier_handle_tasks): ..and matching atomic store with
3139 release barrier here when setting parent->children to NULL.
3141 2013-01-16 Jakub Jelinek <jakub@redhat.com>
3142 Tobias Burnus <burnus@net-b.de>
3145 * testsuite/libgomp.fortran/fortran.exp: Use
3146 -fintrinsic-modules-path= instead of
3147 -fintrinsic-modules-path.
3149 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
3151 Update copyright years.
3153 2012-12-19 Tobias Burnus <burnus@net-b.de>
3155 * testsuite/libgomp.fortran/fortran.exp: Set
3156 -fintrinsic-modules-path.
3158 2012-12-19 Tobias Burnus <burnus@net-b.de>
3160 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
3161 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
3163 2012-11-21 Jakub Jelinek <jakub@redhat.com>
3166 * team.c (gomp_free_thread): Decrease gomp_managed_threads
3167 if pool had any threads_used.
3169 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
3171 * testsuite/libgomp.c++/pr24455.C: Use
3172 -Wl,-undefined,dynamic_lookup on darwin.
3174 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
3176 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
3178 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
3180 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
3182 2012-10-23 Ian Bolton <ian.bolton@arm.com>
3183 Jim MacArthur <jim.macarthur@arm.com>
3184 Marcus Shawcroft <marcus.shawcroft@arm.com>
3185 Nigel Stephens <nigel.stephens@arm.com>
3186 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3187 Richard Earnshaw <rearnsha@arm.com>
3188 Sofiane Naci <sofiane.naci@arm.com>
3189 Stephen Thomas <stephen.thomas@arm.com>
3190 Tejas Belagod <tejas.belagod@arm.com>
3191 Yufeng Zhang <yufeng.zhang@arm.com>
3193 * configure.tgt: Add AArch64.
3195 2012-10-04 Jason Merrill <jason@redhat.com>
3197 * testsuite/libgomp.c++/tls-init1.C: New.
3199 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
3201 * configure: Regenerated.
3203 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
3205 * config/linux/mips/futex.h (sys_futex0): Change to static
3206 function with noinline, nomips16 attributes under MIPS16. Adjust
3207 asm statement to place 'li v0,SYS_futex' immediately before
3210 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
3212 * libgomp.texi (Library Index): Renamed from "Index" to prevent
3213 conflict with index.html on case-insensitive file systems.
3215 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
3217 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
3218 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
3220 2012-07-02 Richard Guenther <rguenther@suse.de>
3221 Michael Matz <matz@suse.de>
3222 Tobias Grosser <tobias@grosser.es>
3223 Sebastian Pop <sebpop@gmail.com>
3225 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3226 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3227 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3228 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3230 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
3232 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
3234 2012-06-22 Richard Guenther <rguenther@suse.de>
3236 Merge from graphite branch
3237 2012-01-13 Tobias Grosser <tobias@grosser.es>
3239 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3240 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3242 2012-06-07 Jakub Jelinek <jakub@redhat.com>
3245 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
3246 use GOMP_barrier () call instead.
3247 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3248 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3249 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
3250 call GOMP_barrier instead.
3251 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3253 2012-06-06 Jakub Jelinek <jakub@redhat.com>
3256 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
3257 argument to memset call.
3259 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3261 * configure: Regenerated.
3263 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3265 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
3267 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
3270 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
3272 2012-03-22 Jakub Jelinek <jakub@redhat.com>
3275 * testsuite/libgomp.c/pr52547.c: New test.
3277 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3279 * testsuite/lib/libgomp.exp: load fortran-modules.exp
3281 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3283 * configure.tgt (mips-sgi-irix6*): Remove.
3285 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3287 * configure.tgt (alpha*-dec-osf*): Remove.
3289 * config/osf/sem.h: Remove.
3290 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
3292 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
3294 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
3296 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3299 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
3300 Remove ENABLE_SYMVERS_SOL2.
3301 * configure: Regenerate.
3302 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
3303 (PREPROCESS): New variable.
3304 (libgomp.ver): New target.
3305 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
3306 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
3307 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
3309 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
3310 * Makefile.in: Regenerate.
3312 2012-02-14 Walter Lee <walt@tilera.com>
3314 * configure.tgt: Handle tilegx and tilepro.
3315 * config/linux/tile/futex.h: New file.
3317 2012-02-08 Richard Guenther <rguenther@suse.de>
3319 PR tree-optimization/46886
3320 * testsuite/libgomp.c/pr46886.c: New testcase.
3322 2012-01-25 Matthias Klose <doko@ubuntu.com>
3324 * config/linux/arm: Remove empty directory.
3325 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
3327 2011-12-09 Alan Modra <amodra@gmail.com>
3330 * task.c (GOMP_taskwait): Don't access task->children outside of
3331 task_lock mutex region.
3332 (GOMP_task): Likewise.
3334 2011-12-06 Jakub Jelinek <jakub@redhat.com>
3337 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
3339 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3340 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3341 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3342 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3343 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3345 2011-12-02 Alan Modra <amodra@gmail.com>
3347 * config/linux/affinity.c: Use atomic rather than sync builtin.
3348 * config/linux/lock.c: Likewise.
3349 * config/linux/ptrlock.h: Likewise.
3350 * config/linux/ptrlock.c: Likewise.
3351 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
3352 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
3353 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
3354 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
3355 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
3356 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
3357 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
3358 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
3359 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
3360 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
3362 2011-11-30 Alan Modra <amodra@gmail.com>
3365 * config/linux/bar.h: Use atomic rather than sync builtins.
3366 * config/linux/bar.c: Likewise. Add missing acquire
3367 synchronisation on generation field.
3368 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
3371 2011-11-30 Alan Modra <amodra@gmail.com>
3373 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
3374 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
3375 * config/linux/mutex.h: Use atomic rather than sync builtins.
3376 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
3377 * config/linux/omp-lock.h: Comment fix.
3378 * config/linux/arm/mutex.h: Delete.
3379 * config/linux/powerpc/mutex.h: Delete.
3380 * config/linux/ia64/mutex.h: Delete.
3381 * config/linux/mips/mutex.h: Delete.
3383 2011-11-30 Alan Modra <amodra@gmail.com>
3386 * config/linux/sem.h: Rewrite.
3387 * config/linux/sem.c: Rewrite.
3389 2011-11-28 Richard Henderson <rth@redhat.com>
3391 * libgomp.h (enum memmodel): New.
3393 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
3395 * configure: Regenerate.
3397 2011-10-10 Matthias Klose <doko@ubuntu.com>
3399 * config/posix95: Remove empty directory.
3401 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3403 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
3405 2011-08-19 Jakub Jelinek <jakub@redhat.com>
3408 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
3409 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
3411 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3413 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
3415 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3418 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
3420 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
3422 * config/linux/proc.h: New.
3423 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
3424 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
3425 (gomp_init_num_threads): Update call to cpuset_popcount.
3426 (get_num_procs): Ditto.
3427 * config/linux/affinity.c (gomp_init_affinity): Call
3428 gomp_cpuset_popcount.
3430 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3434 * omp.h.in (omp_in_final): New prototype.
3435 * omp_lib.f90.in (omp_in_final): New interface.
3436 (omp_integer_kind, omp_logical_kind): Remove
3437 and replace all its uses in the module with 4.
3438 (openmp_version): Change to 201107.
3439 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
3440 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
3441 kind for the parameters.
3442 (omp_in_final): New external.
3443 (openmp_version): Change to 201107.
3444 * task.c (omp_in_final): New function.
3445 (gomp_init_task): Initialize final_task.
3446 (GOMP_task): Remove unused attribute from flags. Handle final
3448 (GOMP_taskyield): New function.
3449 (omp_in_final): Return true if if (false) or final (true) task
3450 or descendant of final (true).
3451 * fortran.c (omp_in_final_): New function.
3452 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
3453 (GOMP_3.0): Export GOMP_taskyield.
3454 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
3456 (parse_unsigned_long_list): New function.
3457 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
3458 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
3459 even if parse_affinity returned false.
3460 * config/linux/affinity.c (gomp_init_affinity): Handle
3461 gomp_cpu_affinity_len == 0.
3462 * libgomp_g.h (GOMP_taskyield): New prototype.
3463 * libgomp.h (struct gomp_task): Add final_task field.
3464 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
3465 * team.c (gomp_team_start): Override new task's nthreads_var icv
3466 if list form OMP_NUM_THREADS has been used and it has value for
3467 the new nesting level.
3469 * testsuite/libgomp.c/atomic-11.c: New test.
3470 * testsuite/libgomp.c/atomic-12.c: New test.
3471 * testsuite/libgomp.c/atomic-13.c: New test.
3472 * testsuite/libgomp.c/atomic-14.c: New test.
3473 * testsuite/libgomp.c/reduction-6.c: New test.
3474 * testsuite/libgomp.c/task-5.c: New test.
3475 * testsuite/libgomp.c++/atomic-2.C: New test.
3476 * testsuite/libgomp.c++/atomic-3.C: New test.
3477 * testsuite/libgomp.c++/atomic-4.C: New test.
3478 * testsuite/libgomp.c++/atomic-5.C: New test.
3479 * testsuite/libgomp.c++/atomic-6.C: New test.
3480 * testsuite/libgomp.c++/atomic-7.C: New test.
3481 * testsuite/libgomp.c++/atomic-8.C: New test.
3482 * testsuite/libgomp.c++/atomic-9.C: New test.
3483 * testsuite/libgomp.c++/task-8.C: New test.
3484 * testsuite/libgomp.c++/reduction-4.C: New test.
3485 * testsuite/libgomp.fortran/allocatable7.f90: New test.
3486 * testsuite/libgomp.fortran/allocatable8.f90: New test.
3487 * testsuite/libgomp.fortran/crayptr3.f90: New test.
3488 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
3489 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
3490 * testsuite/libgomp.fortran/pointer1.f90: New test.
3491 * testsuite/libgomp.fortran/pointer2.f90: New test.
3492 * testsuite/libgomp.fortran/task4.f90: New test.
3494 2011-08-02 Tobias Burnus <burnus@net-b.de>
3496 * libgomp.texi: Update OpenMP spec references to 3.1.
3497 (omp_in_final,OMP_PROC_BIND): New sections.
3498 (OMP_NUM_THREADS): Document that the value can be now a list.
3499 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
3501 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
3503 * config/linux/x86/futex.h: Check __x86_64__ instead of
3506 2011-07-29 Jakub Jelinek <jakub@redhat.com>
3510 * testsuite/libgomp.c/pr49897-1.c: New test.
3511 * testsuite/libgomp.c/pr49897-2.c: New test.
3512 * testsuite/libgomp.c/pr49898-1.c: New test.
3513 * testsuite/libgomp.c/pr49898-2.c: New test.
3515 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3517 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
3518 for ia32 instead of ilp32.
3520 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
3521 * testsuite/libgomp.c/atomic-6.c: Likewise.
3523 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
3525 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
3526 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
3528 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3531 * config/osf/sem.h: New file.
3532 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
3534 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3537 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
3540 2011-07-15 Jakub Jelinek <jakub@redhat.com>
3542 * config/linux/wait.h (do_spin): New inline, largely copied
3543 from do_wait, just don't do futex_wait here, instead return true if
3545 (do_wait): Implement using do_spin.
3546 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
3548 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3549 __sync_bool_compare_and_swap, pass the oldval to
3550 gomp_mutex_lock_slow.
3551 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
3552 If all mutex contenders are just spinning and not sleeping, don't
3553 change state to 2 unnecessarily. Optimize the loop when state has
3554 already become 2 to use just one atomic operation per loop instead
3556 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
3558 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3559 __sync_bool_compare_and_swap, pass the oldval to
3560 gomp_mutex_lock_slow.
3562 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3565 * iter.c (gomp_iter_static_next): For chunk size 0
3566 only use n ceil/ nthreads size for the first
3567 n % nthreads threads in the team instead of
3568 all threads except for the last few ones which
3569 get less work or none at all.
3570 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
3571 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
3572 chunk argument, set run_sched_modifier to 0 for static
3573 resp. 1 for other kinds. If chunk argument is 0
3574 and not static, set value to 1.
3576 2011-05-19 Jakub Jelinek <jakub@redhat.com>
3579 * testsuite/libgomp.c++/pr49043.C: New test.
3582 * testsuite/libgomp.c++/pr48869.C: New test.
3584 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3587 * fortran.c: Include limits.h.
3589 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
3591 (omp_set_num_threads_8_, omp_set_schedule_8_,
3592 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
3593 omp_get_team_size_8_): Use TO_INT macro.
3594 * testsuite/libgomp.fortran/pr48894.f90: New test.
3596 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3599 * testsuite/libgomp.c/pr48591.c: New test.
3601 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3604 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
3605 * configure: Regenerate.
3607 2011-02-27 Jakub Jelinek <jakub@redhat.com>
3610 * testsuite/libgomp.fortran/task3.f90: New test.
3612 2011-02-24 Tobias Burnus <burnus@net-b.de>
3614 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
3616 2011-02-23 Jakub Jelinek <jakub@redhat.com>
3619 * libgomp.texi (omp_get_wtime): Don't say time in the past
3622 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3625 * testsuite/libgomp.fortran/fortran.exp: Check for both
3626 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
3627 but $blddir != "", still append ${blddir}/${lang_library_path}
3630 2011-02-16 Tobias Burnus <burnus@net-b.de>
3633 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
3634 of libquadmath.a before adding its libpath to ldflags.
3636 2011-02-14 Jakub Jelinek <jakub@redhat.com>
3639 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
3640 to FUTEX_WAIT futex syscall.
3641 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
3643 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3645 * configure: Regenerate.
3647 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
3650 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
3652 2011-01-16 Gerald Pfeifer
3654 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
3656 2010-12-14 Jakub Jelinek <jakub@redhat.com>
3659 * libgomp.fortran/allocatable6.f90: New test.
3661 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3663 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
3664 * configure: Regenerate.
3666 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
3670 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
3671 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
3672 * aclocal.m4: Regenerate.
3673 * configure: Regenerate.
3674 * Makefile.in: Regenerate.
3675 * testsuite/Makefile.in: Regenerate.
3677 2010-12-02 Jakub Jelinek <jakub@redhat.com>
3680 * libgomp.fortran/pr46753.f90: New test.
3683 * env.c (initialize_env): Default to spin count 300000
3684 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
3688 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
3689 at the end if sync builtins aren't supported.
3691 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3693 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
3695 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3697 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
3699 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
3701 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
3703 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3704 Tobias Burnus <burnus@net-b.de>
3708 * configure: Regenerate.
3710 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
3712 * config/linux/futex.h: New.
3713 * config/linux/arm/mutex.h: New.
3714 * configure.tgt (arm*-*-linux*): Add config path.
3716 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3718 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3720 2010-09-23 Tobias Burnus <burnus@net-b.de>
3722 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
3723 Change Fortran datatype to LOGICAL.
3724 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
3725 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
3727 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3729 * configure: Regenerate.
3731 2010-07-26 Jakub Jelinek <jakub@redhat.com>
3733 * libgomp.texi: Add function keyword to a couple of Fortran
3734 interfaces, use integer instead of int for Fortran.
3736 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
3738 * libgomp.texi: Fix spelling and pasto problems throughout.
3739 Adjust prototypes to match code.
3741 2010-07-24 Tobias Burnus <burnus@net-b.de>
3743 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
3744 silence -fwhole-file warning.
3746 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3748 * configure.tgt (*-*-solaris2.[56]*): Removed.
3750 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3752 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
3753 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
3754 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
3755 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
3756 targetting solaris2*.
3757 * configure: Regenerate.
3758 * config.h.in: Regenerate.
3760 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
3761 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
3762 Add libgomp_version_dep.
3763 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
3765 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
3766 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
3767 * Makefile.in: Regenerate.
3769 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
3770 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3771 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
3772 to common block, protected by
3773 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3775 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
3777 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
3779 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
3782 * configure: Regenerate.
3784 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3787 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
3788 * configure: Regenerate.
3789 * Makefile.in: Regenerate.
3790 * testsuite/Makefile.in: Regenerate.
3792 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3795 * testsuite/libgomp.c/pr43893.c: New test.
3796 * testsuite/libgomp.c++/pr43893.C: New test.
3798 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3801 * testsuite/libgomp.fortran/vla8.f90: New test.
3803 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3806 * config/linux/affinity.c (gomp_init_affinity): Decrease
3807 gomp_available_cpus if affinity mask confines the process to fewer
3809 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
3810 non-NULL, just return gomp_available_cpus.
3813 * sections.c (gomp_sections_init): Initialize ws->mode.
3815 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3817 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
3818 not unused bar variable.
3819 * configure: Regenerate.
3821 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3823 * Makefile.in: Regenerate.
3824 * aclocal.m4: Regenerate.
3825 * testsuite/Makefile.in: Regenerate.
3827 2010-03-22 Jakub Jelinek <jakub@redhat.com>
3830 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
3831 (initialize_env): Adjust callers.
3832 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
3833 when the argument is 0.
3835 * testsuite/libgomp.c/pr42942.c: New test.
3837 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
3841 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3842 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
3844 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3846 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
3847 * testsuite/libgomp.c++/task-6.C: Likewise.
3849 2010-01-28 Steve Ellcey <sje@cup.hp.com>
3851 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
3853 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
3855 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
3856 * configure: Regenerate.
3858 2010-01-26 Jakub Jelinek <jakub@redhat.com>
3861 * testsuite/libgomp.fortran/allocatable5.f90: New test.
3863 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
3865 * configure.ac: Test for executability of GFORTRAN.
3866 * configure: Regenerate.
3868 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3870 * configure: Regenerate.
3872 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
3875 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
3877 2010-01-03 Richard Guenther <rguenther@suse.de>
3879 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
3881 2009-12-23 Sebastian Pop <sebpop@gmail.com>
3883 * testsuite/libgomp.graphite/pr4118.c: New.
3885 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3887 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
3888 for darwin, protect the test with require-effective-target tls_runtime.
3889 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3891 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3894 * testsuite/lib/libgomp.exp: Provide -B options to allow for
3895 link spec %s substitutions for static libraries.
3897 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
3900 * libgomp.graphite/force-parallel-2.c: Reduce array size.
3902 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3904 * Makefile.in: Regenerate.
3905 * configure: Regenerate.
3906 * testsuite/Makefile.in: Regenerate.
3908 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
3910 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
3911 settings for LC_ALL and LANG.
3913 2009-11-25 Jakub Jelinek <jakub@redhat.com>
3916 * testsuite/libgomp.fortran/pr42162.f90: New test.
3918 2009-11-13 Jakub Jelinek <jakub@redhat.com>
3921 * testsuite/libgomp.c/pr42029.c: New test.
3923 2009-10-26 Jakub Jelinek <jakub@redhat.com>
3925 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
3926 *s. Accept ld version without text in ()s.
3927 * configure: Regenerated.
3929 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
3931 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
3933 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3936 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
3937 or a hyphen (happens with fortran language disabled).
3938 * configure: Regenerate.
3940 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3942 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
3943 use sed script portable to Solaris /bin/sed for extracting ld
3945 * configure: Regenerate.
3947 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3949 * testsuite/libgomp.graphite/bounds.c: New test.
3951 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3953 * Makefile.am (libgomp_la_LINK): New.
3954 * Makefile.in: Regenerate.
3956 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3958 * configure.ac (AC_PREREQ): Bump to 2.64.
3960 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3962 * Makefile.am (install-html, install-pdf): Remove.
3963 * Makefile.in: Regenerate.
3965 * Makefile.in: Regenerate.
3966 * aclocal.m4: Regenerate.
3967 * config.h.in: Regenerate.
3968 * configure: Regenerate.
3969 * testsuite/Makefile.in: Regenerate.
3971 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3973 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
3974 * Makefile.in: Regenerate.
3976 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
3978 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
3979 * Makefile.in: Regenerate.
3981 2009-08-19 Tobias Burnus <burnus@net-b.de>
3984 omp_lib.h.in: Fix -std=f95 errors.
3987 2009-08-14 David Edelsohn <edelsohn@gnu.org>
3989 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
3990 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
3991 * testsuite/libgomp.graphite/graphite.exp: New.
3993 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
3995 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
3998 2009-08-04 David Daney <ddaney@caviumnetworks.com>
4000 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
4001 needed memory barrier semantics.
4002 * config/linux/mips/mutex.h: New file.
4004 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4006 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
4008 2009-07-16 Joseph Myers <joseph@codesourcery.com>
4010 * configure: Regenerate.
4012 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
4017 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
4018 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
4019 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
4021 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
4023 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
4024 options when choosing a multilib.
4026 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
4028 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
4029 ld_library_path. Use add_path. Add just find_libgcc_s to
4030 ld_library_path, not every libgcc multilib directory.
4031 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
4032 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
4033 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
4035 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
4037 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
4039 * Makefile.am (LTLDFLAGS): Define.
4041 * Makefile.in: Regenerate.
4043 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
4046 * testsuite/libgomp.fortran/fortran.exp: Don't link with
4047 libgfortranbegin, check existence of libgfortran.a instead of
4050 2009-05-20 Jakub Jelinek <jakub@redhat.com>
4053 * team.c (gomp_thread_start): Destroy thr->release semaphore.
4054 (gomp_free_pool_helper): Likewise.
4056 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
4057 Jakub Jelinek <jakub@redhat.com>
4060 * testsuite/libgomp.fortran/workshare2.f90: New test.
4062 2009-04-09 Nick Clifton <nickc@redhat.com>
4064 * iter.c: Change copyright header to refer to version 3 of the
4065 GNU General Public License with version 3.1 of the GCC Runtime
4066 Library Exception and to point readers at the COPYING3 and
4067 COPYING3.RUNTIME files and the FSF's license web page.
4068 * alloc.c: Likewise.
4069 * barrier.c: Likewise.
4070 * config/bsd/proc.c: Likewise.
4071 * config/linux/affinity.c: Likewise.
4072 * config/linux/alpha/futex.h: Likewise.
4073 * config/linux/bar.c: Likewise.
4074 * config/linux/bar.h: Likewise.
4075 * config/linux/ia64/futex.h: Likewise.
4076 * config/linux/ia64/mutex.h: Likewise.
4077 * config/linux/lock.c: Likewise.
4078 * config/linux/mips/futex.h: Likewise.
4079 * config/linux/mutex.c: Likewise.
4080 * config/linux/mutex.h: Likewise.
4081 * config/linux/powerpc/futex.h: Likewise.
4082 * config/linux/proc.c: Likewise.
4083 * config/linux/ptrlock.c: Likewise.
4084 * config/linux/ptrlock.h: Likewise.
4085 * config/linux/s390/futex.h: Likewise.
4086 * config/linux/sem.c: Likewise.
4087 * config/linux/sem.h: Likewise.
4088 * config/linux/sparc/futex.h: Likewise.
4089 * config/linux/wait.h: Likewise.
4090 * config/linux/x86/futex.h: Likewise.
4091 * config/mingw32/proc.c: Likewise.
4092 * config/mingw32/time.c: Likewise.
4093 * config/posix/affinity.c: Likewise.
4094 * config/posix/bar.c: Likewise.
4095 * config/posix/bar.h: Likewise.
4096 * config/posix/lock.c: Likewise.
4097 * config/posix/mutex.h: Likewise.
4098 * config/posix/proc.c: Likewise.
4099 * config/posix/ptrlock.h: Likewise.
4100 * config/posix/sem.c: Likewise.
4101 * config/posix/sem.h: Likewise.
4102 * config/posix/time.c: Likewise.
4103 * config/posix95/lock.c: Likewise.
4104 * critical.c: Likewise.
4106 * error.c: Likewise.
4107 * fortran.c: Likewise.
4108 * iter_ull.c: Likewise.
4109 * libgomp.h: Likewise.
4110 * libgomp_f.h.in: Likewise.
4111 * libgomp_g.h: Likewise.
4113 * loop_ull.c: Likewise.
4114 * omp.h.in: Likewise.
4115 * omp_lib.f90.in: Likewise.
4116 * omp_lib.h.in: Likewise.
4117 * ordered.c: Likewise.
4118 * parallel.c: Likewise.
4119 * sections.c: Likewise.
4120 * single.c: Likewise.
4125 2009-04-09 Jakub Jelinek <jakub@redhat.com>
4127 * testsuite/config/default.exp: Change copyright header to refer to
4128 version 3 of the GNU General Public License and to point readers
4129 at the COPYING3 file and the FSF's license web page.
4131 2009-04-08 Jakub Jelinek <jakub@redhat.com>
4134 * libgomp.c++/pr39573.C: New test.
4136 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4139 * testsuite/libgomp.c/pr39591-1.c: New test.
4140 * testsuite/libgomp.c/pr39591-2.c: New test.
4141 * testsuite/libgomp.c/pr39591-3.c: New test.
4143 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
4145 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
4146 * testsuite/libgomp.c/atomic-6.c: Ditto.
4148 2009-03-23 Jakub Jelinek <jakub@redhat.com>
4151 * testsuite/libgomp.c/loop-12.c: New test.
4152 * testsuite/libgomp.c/loop-11.c: New test.
4153 * testsuite/libgomp.c++/loop-11.C: New test.
4154 * testsuite/libgomp.c++/loop-12.C: New test.
4155 * testsuite/libgomp.c++/for-8.C: New test.
4157 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4159 * configure: Regenerate.
4161 2009-02-11 Jakub Jelinek <jakub@redhat.com>
4164 * testsuite/libgomp.c/pr39154.c: New test.
4166 2009-01-30 Ian Lance Taylor <iant@google.com>
4168 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
4169 libgomp_ld_is_gold. Get gold version number.
4170 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
4171 * configure: Rebuild.
4173 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4175 * testsuite/lib/libgomp.exp: Add -B option for targets that
4176 use libgfortran.a%s in their specs.
4178 2009-01-07 Jakub Jelinek <jakub@redhat.com>
4181 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
4182 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
4183 HAVE_AS_SYMVER_DIRECTIVE is not defined.
4184 * configure: Regenerated.
4185 * config.h.in: Likewise.
4187 2008-12-28 Jakub Jelinek <jakub@redhat.com>
4190 * testsuite/libgomp.c/pr38650.c: New test.
4191 * testsuite/libgomp.c++/pr38650.C: New test.
4193 2008-12-27 Jakub Jelinek <jakub@redhat.com>
4195 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
4197 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
4199 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
4201 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4203 * configure: Regenerate.
4205 2008-12-08 Jakub Jelinek <jakub@redhat.com>
4208 * testsuite/libgomp.c/pr36802-1.c: New test.
4209 * testsuite/libgomp.c/pr36802-2.c: New test.
4210 * testsuite/libgomp.c/pr36802-3.c: New test.
4212 2008-12-01 Janis Johnson <janis187@us.ibm.com>
4215 * config/linux/powerpc/mutex.h: New.
4217 2008-12-01 Jakub Jelinek <jakub@redhat.com>
4220 * testsuite/libgomp.c++/for-7.C: New test.
4223 * testsuite/libgomp.c++/for-6.C: New test.
4225 2008-11-26 Janis Johnson <janis187@us.ibm.com>
4228 * testsuite/lib/libgomp.exp: Include new timeout library files.
4229 (libgomp_target_compile): Set timeout value from new proc.
4231 2008-11-13 Steve Ellcey <sje@cup.hp.com>
4234 * config/linux/ia64/mutex.h: New.
4236 2008-11-04 Tobias Burnus <burnus@net-b.de>
4239 * libgomp.texi (Runtime library routines, environment variables):
4240 Update for OpenMP version 3.0.
4242 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
4243 Steve Ellcey <sje@cup.hp.com>
4245 * configure: Regenerate for new libtool.
4246 * Makefile.in: Ditto.
4247 * testsuite/Makefile.in: Ditto.
4249 2008-09-19 Jakub Jelinek <jakub@redhat.com>
4250 Andreas Tobler <a.tobler@schweiz.org>
4252 * config/bsd/proc.c: New file.
4253 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
4254 * configure.ac: Check for header <sys/sysctl.h>
4255 * configure: Regenerate.
4256 * config.h.in: Likewise.
4258 2008-09-05 Janis Johnson <janis187@us.ibm.com>
4260 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
4262 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4264 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
4265 * Makefile.in: Regenerated.
4266 * testsuite/Makefile.in: Regenerated.
4268 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
4270 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
4271 depend on blddir if blddir exists.
4272 (libgomp_target_compile): Likewise.
4273 * testsuite/libgomp.c++/c++.exp: Likewise.
4274 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4276 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4278 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
4279 Do not list GPL as Invariant Section.
4281 2008-07-28 Ilie Garbacea <ilie@mips.com>
4282 Chao-ying Fu <fu@mips.com>
4284 * configure.tgt: Enable futex for MIPS.
4285 * config/linux/mips/futex.h: New file.
4287 2008-07-16 Jakub Jelinek <jakub@redhat.com>
4289 * team.c (gomp_team_end): Free team immediately if it has
4292 2008-07-08 David Edelsohn <edelsohn@gnu.org>
4294 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
4295 * testsuite/libgomp.fortran/fortran.exp: Same.
4296 * testsuite/libgomp.c/c.exp: Same.
4297 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
4298 directory to library path first.
4300 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
4302 * env.c (parse_stacksize): Add cast to avoid warning.
4303 (parse_spincount): Likewise.
4305 2008-06-27 Jakub Jelinek <jakub@redhat.com>
4307 * testsuite/libgomp.c/loop-10.c: New test.
4308 * libgomp.c/loop-3.c (main): Add lastprivate clause.
4309 * libgomp.c++/loop-6.C (main): Likewise.
4312 * testsuite/libgomp.c/debug-1.c: New test.
4314 2008-06-19 Jakub Jelinek <jakub@redhat.com>
4316 * testsuite/libgomp.c/nqueens-1.c: New test.
4319 * testsuite/libgomp.c++/task-7.C: New function.
4321 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4323 * configure: Regenerate.
4325 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4327 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
4328 mutex when HAVE_SYNC_BUILTINS isn't defined.
4330 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4332 * libgomp.texi (omp_test_lock): Fix typo.
4334 2008-06-12 Tobias Burnus <burnus@net-b.de>
4336 * omp_lib.f90.in: Add "implicit none".
4338 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4341 * testsuite/libgomp.c/reduction-5.c: New test.
4343 2008-06-11 Jakub Jelinek <jakub@redhat.com>
4345 * libgomp.h (struct gomp_task): Add in_tied_task field.
4346 * task.c (gomp_init_task): Initialize it.
4347 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
4348 unconditionally. Don't call gomp_team_barrier_wake if
4349 current task is implicit or if(0) from implicit and number of
4350 running tasks is equal to nthreads - 1.
4353 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
4354 omp_get_team_size_8): Fix pastos.
4357 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
4358 * configure: Regenerated.
4359 * config.h.in: Regenerated.
4360 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
4363 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
4366 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
4367 (GOMP_loop_ull_dynamic_start): Likewise.
4368 (GOMP_loop_ull_guided_start): Likewise.
4369 (GOMP_loop_ull_ordered_static_start): Likewise.
4370 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
4371 (GOMP_loop_ull_ordered_guided_start): Likewise.
4373 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4374 Richard Henderson <rth@redhat.com>
4375 Ulrich Drepper <drepper@redhat.com>
4376 Jakob Blomer <jakob.blomer@ira.uka.de>
4378 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
4379 Substitute also OMP_*LOCK_25*.
4380 * configure: Regenerated.
4381 * config.h.in: Regenerated.
4382 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
4383 ptrlock.c and task.c.
4384 * Makefile.in: Regenerated.
4385 * testsuite/Makefile.in: Regenerated.
4387 * loop_ull.c: New file.
4388 * iter_ull.c: New file.
4389 * libgomp.h: Include ptrlock.h.
4390 (enum gomp_task_kind): New type.
4391 (struct gomp_team): Add task_lock, task_queue, task_count,
4392 task_running_count, single_count fields. Add
4393 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
4394 Remove work_share_lock, generation_mask,
4395 oldest_live_gen, num_live_gen and init_work_shares fields, add
4396 work work_share_list_alloc, work_share_list_free and work_share_chunk
4397 fields. Change work_shares from pointer to pointers into an array.
4398 Change ordered_release field into gomp_sem_t ** from flexible array
4399 member. Add implicit_task and initial_work_shares fields.
4400 Move close to the end of the struct.
4401 (struct gomp_team_state): Add single_count, last_work_share,
4402 active_level and level fields, remove work_share_generation.
4403 (gomp_barrier_handle_tasks): New prototype.
4404 (gomp_finish_task): New inline function.
4405 (struct gomp_work_share): Move chunk_size, end, incr into
4406 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
4407 next_ll fields. Reshuffle fields. Add next_alloc,
4408 next_ws, next_free and inline_ordered_team_ids fields, change
4409 ordered_team_ids into pointer from flexible array member.
4410 Add mode field. Put lock and next into a different cache line
4411 from most of the write-once fields.
4412 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
4413 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
4414 gomp_iter_ull_guided_next): New prototypes.
4415 (gomp_new_icv): New prototype.
4416 (struct gomp_thread): Add thread_pool and task fields.
4417 (struct gomp_thread_pool): New type.
4418 (gomp_new_team): New prototype.
4419 (gomp_team_start): Change type of last argument.
4420 (gomp_new_work_share): Removed.
4421 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
4422 (gomp_work_share_init_done): New static inline.
4423 (gomp_throttled_spin_count_var, gomp_available_cpus,
4424 gomp_managed_threads): New extern decls.
4425 (gomp_init_task): New prototype.
4426 (gomp_spin_count_var): New extern var decl.
4427 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
4428 or no alias support, or if not PIC.
4429 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
4430 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
4431 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
4432 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
4433 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
4434 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
4435 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
4436 gomp_test_nest_lock_25): New prototypes.
4437 (omp_lock_symver, strong_alias): Define.
4438 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
4440 (gomp_end_task): New.
4441 (struct gomp_task_icv, gomp_global_icv): New.
4442 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
4443 (struct gomp_task): New.
4444 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4445 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4447 (gomp_schedule_type): Reorder enum to match
4449 * team.c (struct gomp_thread_start_data): Add thread_pool and task
4451 (gomp_thread_start): Add gomp_team_barrier_wait call.
4452 For non-nested case remove clearing of docked thread thr fields.
4453 Use pool fields instead of global gomp_* variables. Use
4454 gomp_barrier_wait_last when needed. Initialize ts.active_level.
4455 Create tasks for each member thread.
4456 (free_team): Only destroy team barrier, task_lock here and free it.
4457 (gomp_free_thread): Free last_team if non-NULL.
4458 (gomp_team_end): Call gomp_team_barrier_wait instead of
4459 gomp_barrier_wait. For nested case call one extra
4460 gomp_barrier_wait. Move here some destruction from free_team.
4461 Call free_team on pool->last_team if any, rather than freeing
4462 current team. Destroy work_share_list_free_lock ifndef
4464 (gomp_new_icv): New function.
4465 (gomp_threads, gomp_threads_size, gomp_threads_used,
4466 gomp_threads_dock): Removed.
4467 (gomp_thread_destructor): New variable.
4468 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
4470 (gomp_team_start): Create new pool if current thread doesn't have
4471 one. Use pool fields instead of global gomp_* variables.
4472 Initialize thread_pool field for new threads. Clear single_count.
4473 Change last argument from ws to team, don't create
4474 new team, set ts.work_share to &team->work_shares[0] and clear
4475 ts.last_work_share. Don't clear ts.work_share_generation.
4476 If number of threads changed, adjust atomically gomp_managed_threads.
4477 Use gomp_init_task instead of gomp_new_task,
4478 set thr->task to the corresponding implicit_task array entry.
4479 Create tasks for each member thread. Initialize ts.level.
4480 (initialize_team): Call pthread_key_create on
4481 gomp_thread_destructor.
4482 (team_destructor): New function.
4483 (new_team): Removed.
4484 (gomp_new_team): New function.
4485 (free_team): Free gomp_work_share blocks chained through next_alloc,
4486 instead of freeing work_shares and destroying work_share_lock.
4487 (gomp_team_end): Call gomp_fini_work_share. If number of threads
4488 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
4489 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
4490 of gomp_barrier_wait.
4491 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
4492 instead of gomp_barrier_wait. Call gomp_work_share_init_done
4493 if gomp_work_share_start returned true. Don't unlock ws->lock.
4494 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
4495 of gomp_barrier_wait.
4496 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
4497 gomp_work_share_init_done if gomp_work_share_start returned true.
4498 Don't unlock ws->lock.
4499 * work.c: Include stddef.h.
4500 (free_work_share): Use work_share_list_free_lock instead
4501 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
4502 Call gomp_fini_work_share and then either free ws if orphaned, or
4503 put it into work_share_list_free list of the current team.
4504 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
4506 (gomp_work_share_start, gomp_work_share_end,
4507 gomp_work_share_end_nowait): Rewritten.
4508 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
4509 (openmp_version): Set to 200805.
4510 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4511 omp_sched_guided, omp_sched_auto): New parameters.
4512 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4513 omp_set_max_active_levels, omp_get_max_active_levels,
4514 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4515 omp_get_active_level): New interfaces.
4516 * omp_lib.h.in (openmp_version): Set to 200805.
4517 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4518 omp_sched_guided, omp_sched_auto): New parameters.
4519 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4520 omp_set_max_active_levels, omp_get_max_active_levels,
4521 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4522 omp_get_active_level): New externals.
4523 * loop.c: Include limits.h.
4524 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
4526 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
4527 Likewise. Use gomp_icv.
4528 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
4529 ts.static_trip here.
4530 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
4531 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
4532 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
4533 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
4534 don't unlock ws->lock, otherwise lock it.
4535 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
4536 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
4537 (gomp_parallel_loop_start): Call gomp_new_team instead of
4538 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
4539 Adjust gomp_team_start caller. Pass 0 as second argument to
4540 gomp_resolve_num_threads.
4541 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
4542 If adding ws->chunk_size nthreads + 1 times after end won't
4543 overflow, set ws->mode to 1.
4544 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
4545 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
4546 GOMP_loop_ull_ordered_static_start,
4547 GOMP_loop_ull_ordered_dynamic_start,
4548 GOMP_loop_ull_ordered_guided_start,
4549 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
4550 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
4551 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
4552 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
4553 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
4555 * libgomp.map: Export lock routines also @@OMP_2.0.
4556 (GOMP_loop_ordered_dynamic_first,
4557 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
4558 GOMP_loop_ordered_static_first): Remove.
4559 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
4560 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
4561 GOMP_loop_ull_ordered_dynamic_next,
4562 GOMP_loop_ull_ordered_dynamic_start,
4563 GOMP_loop_ull_ordered_guided_next,
4564 GOMP_loop_ull_ordered_guided_start,
4565 GOMP_loop_ull_ordered_runtime_next,
4566 GOMP_loop_ull_ordered_runtime_start,
4567 GOMP_loop_ull_ordered_static_next,
4568 GOMP_loop_ull_ordered_static_start,
4569 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
4570 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
4571 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
4572 (omp_set_schedule, omp_get_schedule,
4573 omp_get_thread_limit, omp_set_max_active_levels,
4574 omp_get_max_active_levels, omp_get_level,
4575 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
4576 omp_set_schedule_, omp_set_schedule_8_,
4577 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4578 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4579 omp_get_max_active_levels_, omp_get_level_,
4580 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4581 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4582 New exports @@OMP_3.0.
4583 * omp.h.in (omp_sched_t): New type.
4584 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4585 omp_set_max_active_levels, omp_get_max_active_levels,
4586 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4587 omp_get_active_level): New prototypes.
4588 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
4589 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
4590 gomp_thread_limit_var, gomp_remaining_threads_count,
4591 gomp_remaining_threads_lock): New variables.
4592 (parse_spincount): New function.
4593 (initialize_env): Call gomp_init_num_threads unconditionally.
4594 Initialize gomp_available_cpus. Call parse_spincount,
4595 initialize gomp_{,throttled_}spin_count_var
4596 depending on presence and value of OMP_WAIT_POLICY and
4597 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
4598 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
4599 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
4600 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
4601 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
4602 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4603 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4604 (gomp_global_icv): New.
4605 (parse_schedule): Use it. Parse "auto".
4606 (omp_set_num_threads): Use gomp_icv.
4607 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
4609 (omp_get_max_threads): Move from parallel.c.
4610 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4611 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
4613 (parse_stacksize, parse_wait_policy): New functions.
4614 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
4615 both wrappers for compatibility and new locks.
4616 (omp_set_schedule, omp_get_schedule,
4617 omp_get_thread_limit, omp_set_max_active_levels,
4618 omp_get_max_active_levels, omp_get_level,
4619 omp_get_ancestor_thread_num, omp_get_team_size,
4620 omp_get_active_level): New ialias_redirect.
4621 (omp_set_schedule_, omp_set_schedule_8_,
4622 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4623 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4624 omp_get_max_active_levels_, omp_get_level_,
4625 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4626 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4628 * parallel.c: Include limits.h.
4629 (gomp_resolve_num_threads): Add count argument. Rewritten.
4630 (GOMP_parallel_start): Call gomp_new_team and pass that as last
4631 argument to gomp_team_start. Pass 0 as second argument to
4632 gomp_resolve_num_threads.
4633 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
4634 if gomp_thread_limit_var != ULONG_MAX.
4635 (omp_in_parallel): Implement using ts.active_level.
4636 (omp_get_max_threads): Move to env.c.
4637 (omp_get_level, omp_get_ancestor_thread_num,
4638 omp_get_team_size, omp_get_active_level): New functions,
4640 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
4641 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
4642 gomp_iter_dynamic_next instead of the _locked variant and don't take
4643 lock around it, otherwise acquire it before calling
4644 gomp_iter_dynamic_next_locked.
4645 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
4646 gomp_iter_dynamic_next instead of the _locked variant and don't take
4648 (GOMP_parallel_sections_start): Call gomp_new_team instead of
4649 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
4650 Adjust gomp_team_start caller. Pass count as second argument to
4651 gomp_resolve_num_threads, don't adjust num_threads after the call.
4653 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
4654 ws->chunk_size by incr.
4655 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
4657 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
4659 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
4660 (omp_check_defines): Check even the compat defines.
4661 * config/linux/ptrlock.c: New file.
4662 * config/linux/ptrlock.h: New file.
4663 * config/linux/wait.h: New file.
4664 * config/posix/ptrlock.c: New file.
4665 * config/posix/ptrlock.h: New file.
4666 * config/linux/bar.h (gomp_team_barrier_wait,
4667 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4668 (gomp_team_barrier_set_task_pending,
4669 gomp_team_barrier_clear_task_pending,
4670 gomp_team_barrier_set_waiting_for_tasks,
4671 gomp_team_barrier_waiting_for_tasks,
4672 gomp_team_barrier_done): New inlines.
4673 (gomp_barrier_t): Rewritten.
4674 (gomp_barrier_state_t): New typedef.
4675 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
4676 gomp_barrier_wait_start): Rewritten.
4677 (gomp_barrier_wait_end): Change second argument to
4678 gomp_barrier_state_t.
4679 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4681 * config/linux/bar.c: Include wait.h instead of libgomp.h and
4683 (gomp_barrier_wait_end): Rewritten.
4684 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4685 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
4686 * config/posix/bar.h (gomp_barrier_t): Add generation field.
4687 (gomp_barrier_state_t): New typedef.
4688 (gomp_team_barrier_wait,
4689 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4690 (gomp_barrier_wait_start): Or all but low 2 bits from generation
4691 into the return value. Return gomp_barrier_state_t.
4692 (gomp_team_barrier_set_task_pending,
4693 gomp_team_barrier_clear_task_pending,
4694 gomp_team_barrier_set_waiting_for_tasks,
4695 gomp_team_barrier_waiting_for_tasks,
4696 gomp_team_barrier_done): New inlines.
4697 (gomp_barrier_wait_end): Change second argument to
4698 gomp_barrier_state_t.
4699 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4701 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
4702 (gomp_barrier_wait_end): Change second argument to
4703 gomp_barrier_state_t.
4704 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4705 gomp_team_barrier_wake): New functions.
4706 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
4708 (gomp_futex_wake, gomp_futex_wait): New variables.
4709 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
4710 * config/linux/lock.c: Rewrite to make locks task owned,
4711 for backwards compatibility provide the old entrypoints
4712 if symbol versioning. Include wait.h instead of libgomp.h and
4714 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
4715 * config/posix95/lock.c: Rewrite to make locks task owned,
4716 for backwards compatibility provide the old entrypoints
4717 if symbol versioning.
4718 * config/posix/lock.c: Rewrite to make locks task owned,
4719 for backwards compatibility provide the old entrypoints
4720 if symbol versioning.
4721 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
4722 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
4723 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
4724 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4725 (sys_futex0): Return error code.
4726 (futex_wake, futex_wait): If ENOSYS was returned, clear
4727 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4728 (cpu_relax, atomic_write_barrier): New static inlines.
4729 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4730 (futex_wake, futex_wait): If ENOSYS was returned, clear
4731 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4732 (cpu_relax, atomic_write_barrier): New static inlines.
4733 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4734 (sys_futex0): Return error code.
4735 (futex_wake, futex_wait): If ENOSYS was returned, clear
4736 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4737 (cpu_relax, atomic_write_barrier): New static inlines.
4738 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4739 (sys_futex0): Return error code.
4740 (futex_wake, futex_wait): If ENOSYS was returned, clear
4741 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4742 (cpu_relax, atomic_write_barrier): New static inlines.
4743 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4744 (sys_futex0): Return error code.
4745 (futex_wake, futex_wait): If ENOSYS was returned, clear
4746 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4747 (cpu_relax, atomic_write_barrier): New static inlines.
4748 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4749 (sys_futex0): Return error code.
4750 (futex_wake, futex_wait): If ENOSYS was returned, clear
4751 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4752 (cpu_relax, atomic_write_barrier): New static inlines.
4753 * config/linux/sem.c: Include wait.h instead of libgomp.h and
4755 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
4756 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
4757 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
4759 (omp_nest_lock_t): Change owner into void *, add lock field.
4760 * config/posix95/omp-lock.h: Include semaphore.h.
4761 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4762 (omp_lock_t): Use sem_t instead of mutex if semaphores
4764 (omp_nest_lock_t): Likewise. Change owner to void *.
4765 * config/posix/omp-lock.h: Include semaphore.h.
4766 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4767 (omp_lock_t): Use sem_t instead of mutex if semaphores
4769 (omp_nest_lock_t): Likewise. Add owner field.
4771 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4773 * testsuite/libgomp.c/collapse-1.c: New test.
4774 * testsuite/libgomp.c/collapse-2.c: New test.
4775 * testsuite/libgomp.c/collapse-3.c: New test.
4776 * testsuite/libgomp.c/icv-1.c: New test.
4777 * testsuite/libgomp.c/icv-2.c: New test.
4778 * testsuite/libgomp.c/lib-2.c: New test.
4779 * testsuite/libgomp.c/lock-1.c: New test.
4780 * testsuite/libgomp.c/lock-2.c: New test.
4781 * testsuite/libgomp.c/lock-3.c: New test.
4782 * testsuite/libgomp.c/loop-4.c: New test.
4783 * testsuite/libgomp.c/loop-5.c: New test.
4784 * testsuite/libgomp.c/loop-6.c: New test.
4785 * testsuite/libgomp.c/loop-7.c: New test.
4786 * testsuite/libgomp.c/loop-8.c: New test.
4787 * testsuite/libgomp.c/loop-9.c: New test.
4788 * testsuite/libgomp.c/nested-3.c: New test.
4789 * testsuite/libgomp.c/nestedfn-6.c: New test.
4790 * testsuite/libgomp.c/sort-1.c: New test.
4791 * testsuite/libgomp.c/task-1.c: New test.
4792 * testsuite/libgomp.c/task-2.c: New test.
4793 * testsuite/libgomp.c/task-3.c: New test.
4794 * testsuite/libgomp.c/task-4.c: New test.
4795 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
4796 to C++ testsuite default compiler options.
4797 * testsuite/libgomp.c++/collapse-1.C: New test.
4798 * testsuite/libgomp.c++/collapse-2.C: New test.
4799 * testsuite/libgomp.c++/ctor-10.C: New test.
4800 * testsuite/libgomp.c++/for-1.C: New test.
4801 * testsuite/libgomp.c++/for-2.C: New test.
4802 * testsuite/libgomp.c++/for-3.C: New test.
4803 * testsuite/libgomp.c++/for-4.C: New test.
4804 * testsuite/libgomp.c++/for-5.C: New test.
4805 * testsuite/libgomp.c++/loop-8.C: New test.
4806 * testsuite/libgomp.c++/loop-9.C: New test.
4807 * testsuite/libgomp.c++/loop-10.C: New test.
4808 * testsuite/libgomp.c++/task-1.C: New test.
4809 * testsuite/libgomp.c++/task-2.C: New test.
4810 * testsuite/libgomp.c++/task-3.C: New test.
4811 * testsuite/libgomp.c++/task-4.C: New test.
4812 * testsuite/libgomp.c++/task-5.C: New test.
4813 * testsuite/libgomp.c++/task-6.C: New test.
4814 * testsuite/libgomp.fortran/allocatable1.f90: New test.
4815 * testsuite/libgomp.fortran/allocatable2.f90: New test.
4816 * testsuite/libgomp.fortran/allocatable3.f90: New test.
4817 * testsuite/libgomp.fortran/allocatable4.f90: New test.
4818 * testsuite/libgomp.fortran/collapse1.f90: New test.
4819 * testsuite/libgomp.fortran/collapse2.f90: New test.
4820 * testsuite/libgomp.fortran/collapse3.f90: New test.
4821 * testsuite/libgomp.fortran/collapse4.f90: New test.
4822 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
4823 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
4824 * testsuite/libgomp.fortran/lib4.f90: New test.
4825 * testsuite/libgomp.fortran/lock-1.f90: New test.
4826 * testsuite/libgomp.fortran/lock-2.f90: New test.
4827 * testsuite/libgomp.fortran/nested1.f90: New test.
4828 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
4829 * testsuite/libgomp.fortran/strassen.f90: New test.
4830 * testsuite/libgomp.fortran/tabs1.f90: New test.
4831 * testsuite/libgomp.fortran/tabs2.f: New test.
4832 * testsuite/libgomp.fortran/task1.f90: New test.
4833 * testsuite/libgomp.fortran/task2.f90: New test.
4834 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
4835 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4836 * testsuite/libgomp.c/pr26943-2.c: Likewise.
4837 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4838 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4840 2008-05-23 Jakub Jelinek <jakub@redhat.com>
4843 * testsuite/libgomp.c++/ctor-11.C: New test.
4844 * testsuite/libgomp.c++/ctor-12.C: New test.
4846 2008-05-15 Janis Johnson <janis187@us.ibm.com>
4848 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
4850 2008-05-07 Jakub Jelinek <jakub@redhat.com>
4853 * testsuite/libgomp.c/atomic-5.c: New test.
4854 * testsuite/libgomp.c/atomic-6.c: New test.
4855 * testsuite/libgomp.c/autopar-1.c: New test.
4857 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4859 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
4860 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
4861 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
4862 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
4863 * configure: Regenerate.
4864 * Makefile.in, testsuite/Makefile.in: Likewise.
4866 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
4869 * aclocal.m4: Regenerate.
4870 * configure: Regenerate.
4872 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4875 * testsuite/libgomp.c/atomic-4.c: New test.
4878 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
4879 (gomp_iter_guided_next): Likewise.
4880 * testsuite/libgomp.c/pr35625.c: New test.
4882 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4884 * aclocal.m4: Regenerate.
4885 * configure: Likewise.
4886 * Makefile.in: Likewise.
4887 * testsuite/Makefile.in: Likewise.
4889 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4892 * testsuite/libgomp.c++/pr35185.C: New test.
4894 2008-03-12 Jakub Jelinek <jakub@redhat.com>
4897 * testsuite/libgomp.c/pr35549.c: New test.
4899 2008-03-06 Jakub Jelinek <jakub@redhat.com>
4901 * testsuite/libgomp.c/atomic-3.c: New test.
4903 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4906 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
4909 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
4912 * configure.ac: Add ACX_HEADER_STRING.
4913 * env.c: Include strings.h.
4914 * aclocal.m4: Regenerate.
4915 * config.h.in: Regenerate.
4916 * configure: Regenerate.
4917 * Makefile.in: Regenerate.
4918 * testsuite/Makefile.in: Regenerate.
4920 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4923 * testsuite/libgomp.c/pr35196.c: New test.
4926 * testsuite/libgomp.fortran/pr35130.f90: New test.
4927 * testsuite/libgomp.c/pr35130.c: New test.
4929 2008-01-25 Jakub Jelinek <jakub@redhat.com>
4932 * testsuite/libgomp.c/pr33880.c: New test.
4933 * testsuite/libgomp.fortran/pr33880.f90: New test.
4935 2008-01-24 David Edelsohn <edelsohn@gnu.org>
4937 * configure: Regenerate.
4939 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4941 * configure.ac: Move futex checking into ../config/futex.m4.
4942 * configure: Rebuilt.
4943 * aclocal.m4: Rebuilt.
4944 * Makefile.in: Rebuilt.
4946 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
4947 2007-10-15 ../config/tls.m4 change.
4949 2007-12-19 Jakub Jelinek <jakub@redhat.com>
4952 * testsuite/libgomp.c/pr34513.c: New test.
4953 * testsuite/libgomp.c++/pr34513.C: New test.
4955 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
4958 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
4960 2007-12-04 Jakub Jelinek <jakub@redhat.com>
4962 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
4964 2007-12-03 Jakub Jelinek <jakub@redhat.com>
4966 * testsuite/libgomp.c/private-1.c: New test.
4968 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
4969 Paolo Bonzini <bonzini@gnu.org>
4971 * Makefile.am: Use space as vpath separator. Use 'vpath %'
4972 instead of 'VPATH ='.
4973 * Makefile.in: Regenerate.
4975 2007-11-23 Matthias Klose <doko@ubuntu.com>
4977 * configure.ac: Adjust makeinfo version check.
4978 * configure: Regenerate.
4980 2007-11-10 Jakub Jelinek <jakub@redhat.com>
4983 * testsuite/libgomp.fortran/pr34020.f90: New test.
4985 2007-11-06 Jakub Jelinek <jakub@redhat.com>
4988 * testsuite/libgomp.c++/atomic-1.C: New test.
4990 2007-10-25 Jakub Jelinek <jakub@redhat.com>
4993 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
4994 Make x and y integers rather than (implicit) reals. Add private (j)
4995 clause to the last omp parallel.
4997 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
4999 * configure: Regenerate following changes to ../config/tls.m4.
5001 2007-09-28 Jakub Jelinek <jakub@redhat.com>
5003 * testsuite/libgomp.fortran/stack.f90: New test.
5005 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5007 * config/mingw32/proc.c: New file.
5009 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
5011 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
5012 (main): Use __get_cpuid to get i386 target fetaures.
5013 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
5014 (main): Use __get_cpuid to get x86_64 target fetaures.
5016 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
5019 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
5020 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
5022 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5025 * testsuite/libgomp.fortran/pr32550.f90: New test.
5026 * testsuite/libgomp.fortran/crayptr2.f90: New test.
5028 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
5030 * aclocal.m4: Regenerated.
5032 2007-07-05 Tobias Burnus <burnus@net-b.de>
5035 * testsuite/libgomp.fortran/pr32359.f90: New.
5037 2007-07-02 Jakub Jelinek <jakub@redhat.com>
5040 * sections.c (GOMP_parallel_sections_start): Only decrease
5041 number of threads to COUNT if dyn_var is true.
5042 * testsuite/libgomp.c/pr32468.c: New test.
5044 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5047 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
5049 2007-06-21 Jakub Jelinek <jakub@redhat.com>
5052 * testsuite/libgomp.c/pr32362-1.c: New test.
5053 * testsuite/libgomp.c/pr32362-2.c: New test.
5054 * testsuite/libgomp.c/pr32362-3.c: New test.
5056 2007-06-07 Jakub Jelinek <jakub@redhat.com>
5058 * team.c (gomp_team_start): Fix setting up thread_attr
5061 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
5063 * configure: Regenerate.
5065 2007-05-23 Steve Ellcey <sje@cup.hp.com>
5067 * Makefile.in: Regenerate.
5068 * configure: Regenerate.
5069 * aclocal.m4: Regenerate.
5070 * testsuite/Makefile.in: Regenerate.
5072 2007-05-04 Jakub Jelinek <jakub@redhat.com>
5074 * config/linux/proc.c: New file.
5077 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
5079 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
5081 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
5083 2007-04-16 Matthias Klose <doko@debian.org>
5085 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
5086 flags if not building with -m64.
5087 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
5088 flag for i?86-*-* targets, if current target matches -m64.
5090 2007-04-14 Steve Ellcey <sje@cup.hp.com>
5092 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
5093 * Makefile.in: Regenerate.
5095 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5098 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
5100 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5102 2007-04-04 Jakub Jelinek <jakub@redhat.com>
5104 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
5106 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
5107 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
5108 (parse_affinity): New function.
5109 (initialize_env): Call it and gomp_init_affinity.
5110 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
5111 create new pthread_attr_t and call gomp_init_thread_affinity
5112 on it for each thread before passing the attribute to pthread_create.
5113 * config/linux/affinity.c: New file.
5114 * config/posix/affinity.c: New file.
5115 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
5116 * configure: Rebuilt.
5117 * config.h.in: Rebuilt.
5118 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
5119 * Makefile.in: Rebuilt.
5121 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
5123 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
5125 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
5126 and use it if found.
5128 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
5130 * testsuite/config/default.exp: New file.
5131 * testsuite/lib/libgomp.exp: New file.
5132 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
5133 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
5134 load_lib *, load_gcc_lib *): Move to libgomp.exp.
5135 (libgomp_load): Remove.
5136 * testsuite/lib/libgomp.exp (libgomp_init): Compute
5137 always_ld_library_path, not ld_library_path. Set additional_flags
5138 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
5139 (target_compile): Do not call libgomp_init. Append lang_library_path
5140 and lang_link_flags to options.
5141 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
5142 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
5144 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
5145 always_ld_library_path. Set LD_LIBRARY_PATH here.
5146 * testsuite/libgomp.fortran/fortran.exp: Ditto.
5147 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
5148 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
5150 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
5151 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
5152 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
5153 * testsuite/libgomp.c/pr29947-1.c: Ditto.
5154 * testsuite/libgomp.c/atomic-10.c: Ditto.
5156 2007-03-21 Jakub Jelinek <jakub@redhat.com>
5158 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
5159 dg-final cleanup-modules line.
5160 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
5161 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
5162 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
5163 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
5164 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
5165 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
5166 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
5168 2007-03-18 Andreas Schwab <schwab@suse.de>
5170 * acinclude.m4: Adjust regular expression for ld version
5172 * configure: Regenerate.
5174 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
5176 * Makefile.am: Add install-pdf target as copied from
5177 automake v1.10 rules.
5178 * Makefile.in: Regenerate
5180 2007-02-07 Jakub Jelinek <jakub@redhat.com>
5183 * configure: Regenerate.
5186 * testsuite/libgomp.c++/pr30703.C: New test.
5188 2007-02-02 Jakub Jelinek <jakub@redhat.com>
5191 2006-07-05 Eric Christopher <echristo@apple.com>
5192 * configure.ac: Depend addition of -pthread on host OS.
5193 * configure: Regenerate.
5195 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5197 * libgomp.texi: Fix spacing after abbreviations.
5199 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
5202 * configure.ac: Add check for makeinfo
5203 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
5204 if an appropiate version of makeinfo is found.
5205 * aclocal.m4: Regenerated.
5206 * configure: Regenerated.
5207 * Makefile.in: Regenerated.
5208 * testsuite/Makefile.in: Regenerated.
5210 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
5213 * libgomp.texi: More about implementation-dependent settings.
5215 2007-01-26 Tobias Burnus <burnus@net-b.de>
5217 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
5219 2007-01-24 Jakub Jelinek <jakub@redhat.com>
5222 * testsuite/libgomp.c/pr30494.c: New test.
5224 2007-01-15 Tom Tromey <tromey@redhat.com>
5226 * configure: Rebuilt.
5227 * configure.ac: Fixed comment.
5229 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
5231 * libgomp.texi: Document implementation specific default values of
5232 environment variables.
5234 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
5237 * libgomp.texi: New file.
5238 * configure.ac: Add --enable-generated-files-in-srcdir option.
5239 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
5241 * Makefile.in: Regenerated.
5242 * config.h.in: Regenerated.
5243 * testsuite/Makefile.in: Regenerated.
5246 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
5249 * env.c (omp_set_num_threads): Set illegal thread count to 1.
5251 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5253 * configure: Regenerate.
5255 2006-12-04 Jakub Jelinek <jakub@redhat.com>
5258 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
5259 start if there shouldn't be any loop iterations.
5260 (gomp_loop_ordered_static_start): Remove start == end test.
5261 * testsuite/libgomp.c/pr29947-1.c: New test.
5262 * testsuite/libgomp.c/pr29947-2.c: New test.
5264 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5266 * configure.tgt: Force initial-exec TLS model on Linux only.
5268 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
5270 * configure: Regenerated.
5272 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
5274 * env.c (parse_schedule): Reject out of range values.
5275 (parse_unsigned_long): Reject out of range, negative or zero values.
5277 2006-10-29 Jakub Jelinek <jakub@redhat.com>
5280 * testsuite/libgomp.fortran/pr29629.f90: New test.
5282 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
5285 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
5286 * config/posix95: New directory.
5287 * config/posix95/omp-lock.h: New file.
5288 * config/posix95/lock.c: Likewise.
5290 2006-10-14 Geoffrey Keating <geoffk@apple.com>
5292 * aclocal.m4: Regenerate.
5293 * configure: Regenerate.
5295 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
5297 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
5300 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
5302 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
5304 * configure: Regenerate.
5305 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
5307 2006-09-26 Jakub Jelinek <jakub@redhat.com>
5311 * testsuite/libgomp.c/nestedfn-4.c: New test.
5312 * testsuite/libgomp.c/nestedfn-5.c: New test.
5313 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
5316 * testsuite/libgomp.fortran/condinc1.f: New test.
5317 * testsuite/libgomp.fortran/condinc2.f: New test.
5318 * testsuite/libgomp.fortran/condinc3.f90: New test.
5319 * testsuite/libgomp.fortran/condinc4.f90: New test.
5320 * testsuite/libgomp.fortran/condinc1.inc: New file.
5322 2006-09-18 Tom Tromey <tromey@redhat.com>
5324 * configure: Rebuilt.
5326 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
5329 PR preprocessor/14634
5330 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
5332 * configure: Regenerate.
5334 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
5336 * testsuite/libgomp.fortran/reduction3.f90: Change
5337 -2147483648 to -huge(i)-1 to avoid overflow.
5338 * testsuite/libgomp.fortran/reduction4.f90: Change
5339 Z'ffffffff' to not(0) to avoid overflow.
5341 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
5344 * Makefile.am (libsubincludedir): New.
5345 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
5346 * Makefile.in: Regenerate.
5348 2006-08-17 Jakub Jelinek <jakub@redhat.com>
5351 * env.c: Include ctype.h.
5352 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
5353 leading and/or trailing whitespace and compare strings case
5356 2006-07-16 Jakub Jelinek <jakub@redhat.com>
5359 * testsuite/libgomp.fortran/pr28390.f: New test.
5361 2006-07-05 Eric Christopher <echristo@apple.com>
5363 * configure.ac: Depend addition of -pthread on host OS.
5364 * configure: Regenerate.
5366 2006-06-21 Jakub Jelinek <jakub@redhat.com>
5368 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
5369 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
5372 2006-06-20 Jakub Jelinek <jakub@redhat.com>
5376 * configure.ac: If neither --enable-linux-futex nor
5377 --disable-linux-futex is passed, determine the default by checking
5378 for compiling and/or running against NPTL. With --enable-linux-futex,
5379 check if SYS_gettid and SYS_futex are defined.
5380 * configure: Rebuilt.
5382 2006-06-14 Richard Henderson <rth@redhat.com>
5385 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
5386 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
5388 2006-06-09 Richard Henderson <rth@redhat.com>
5390 * env.c (gomp_nthreads_var): Change to unsigned long.
5391 (gomp_run_sched_chunk): Likewise.
5392 (parse_unsigned_long): Rename from parse_num_threads and generalize.
5393 (initialize_env): Initialize gomp_thread_attr.
5394 * libgomp.h (gomp_nthreads_var): Update decl.
5395 (gomp_run_sched_chunk): Likewise.
5396 (gomp_thread_attr): Declare.
5397 * team.c (gomp_thread_attr): Export.
5398 (initialize_team): Don't initialize it.
5400 2006-06-09 Jakub Jelinek <jakub@redhat.com>
5403 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
5404 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
5406 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5408 * config/mingw32/time.c: New file.
5409 * configure.tgt: Use it.
5411 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
5413 * Makefile.am: Add install-html target. Add install-html to .PHONY
5414 * Makefile.in: Regenerate.
5416 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5419 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
5420 * testsuite/libgomp.c/critical-1.c: Likewise.
5421 * testsuite/libgomp.c/loop-1.c: Likewise.
5422 * testsuite/libgomp.c/loop-2.c: Likewise.
5423 * testsuite/libgomp.c/single-1.c: Likewise.
5424 * testsuite/libgomp.c/ordered-1.c: Likewise.
5425 * testsuite/libgomp.c/ordered-2.c: Likewise.
5427 2006-05-15 Jakub Jelinek <jakub@redhat.com>
5430 * libgomp.fortran/pr27416-1.f90: New test.
5432 2006-05-03 Jakub Jelinek <jakub@redhat.com>
5435 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
5436 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
5438 2006-05-02 Jakub Jelinek <jakub@redhat.com>
5441 * testsuite/libgomp.c/pr26943-1.c: New test.
5442 * testsuite/libgomp.c/pr26943-2.c: New test.
5443 * testsuite/libgomp.c/pr26943-3.c: New test.
5444 * testsuite/libgomp.c/pr26943-4.c: New test.
5445 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
5446 * testsuite/libgomp.c++/pr26943.C: New test.
5448 2006-05-02 Jakub Jelinek <jakub@redhat.com>
5451 * testsuite/libgomp.c++/pr27337.C: New test.
5453 2006-04-26 Jakub Jelinek <jakub@redhat.com>
5456 * testsuite/libgomp.c/pr26171.c: New test.
5458 2006-04-25 Richard Henderson <rth@redhat.com>
5461 * configure.ac: Use GCC_CHECK_TLS.
5462 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
5463 * Makefile.in, aclocal.m4, configure: Regenerate.
5465 2006-04-10 Matthias Klose <doko@debian.org>
5467 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
5468 directory names containing underscores.
5470 2006-03-21 Jakub Jelinek <jakub@redhat.com>
5473 * testsuite/libgomp.c++/pr26691.C: New test.
5475 2006-03-13 Jakub Jelinek <jakub@redhat.com>
5477 * testsuite/libgomp.fortran/retval2.f90: New test.
5479 2006-03-09 Diego Novillo <dnovillo@redhat.com>
5481 * testsuite/libgomp.c++: New directory.
5483 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
5485 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
5486 * config/posix/sem.c: Implement the above.
5488 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
5490 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
5491 define HAVE_BROKEN_POSIX_SEMAPHORES.
5492 * configure: Rebuilt.
5493 * config.h.in: Rebuilt.
5495 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5498 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
5499 for the other pthread check.
5500 * configure: Regenerate.
5501 * config.h.in: Regenerate.
5503 2006-02-15 Jakub Jelinek <jakub@redhat.com>
5507 * Makefile.am (fincludedir): New variable.
5508 (nodist_include_HEADERS): Remove Fortran files.
5509 (nodist_finclude_HEADERS): New variable.
5510 * Makefile.in: Regenerated.
5512 2006-02-13 Jakub Jelinek <jakub@redhat.com>
5514 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
5515 Remove tests for returning assumed character length arrays.
5517 2006-02-12 Roger Sayle <roger@eyesopen.com>
5518 John David Anglin <dave@hiauly1.hia.nrc.ca>
5521 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
5523 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5525 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
5527 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5529 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
5530 part of LD_LIBRARY_PATH manually.
5532 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
5535 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
5538 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
5541 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
5542 * configure.ac (PERL): Don't set.
5543 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
5544 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
5545 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
5546 * omp.h.in: Wrap the new configure substitutions with @ characters.
5547 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
5548 * aclocal.m4, configure, Makefile.in: Regenerate.
5549 * mkomp_h.pl: Delete.
5551 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
5554 * configure.ac: Use GCC_HEADER_STDINT.
5555 * libgomp.h: Include gstdint.h.
5556 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
5557 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
5559 2006-01-24 Richard Henderson <rth@redhat.com>
5562 * configure.ac: Add AM_MAINTAINER_MODE.
5563 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
5565 2006-01-24 Diego Novillo <dnovillo@redhat.com>
5567 * Makefile.in: Regenerate.
5568 * testsuite/Makefile.in: Regenerate.
5569 * aclocal.m4: Regenerate.
5571 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
5573 * config/posix/proc.c: Conditional include of sys/loadavg.h for
5575 * configure.ac: Add check for loadavg.h.
5576 (link_gomp): Adjust comment.
5577 * configure: Regenerate.
5578 * config.h.in: Regenerate.
5580 2006-01-21 Steve Ellcey <sje@cup.hp.com>
5583 * configure.ac: Remove check for alloca.h.
5584 * configure: Regenerate.
5585 * config.h.in: Regenerate.
5586 * libgomp.h: define gomp_alloca to be __builtin_alloca.
5587 * team.c: Remove use of alloca.h.
5588 Call gomp_alloca instead of alloca.
5590 2006-01-20 Steve Ellcey <sje@cup.hp.com>
5593 * team.c: Add include of alloca.h.
5594 * configure.ac: Add check for alloca.h.
5595 * configure: Regenerate.
5596 * config.h.in: Regenerate.
5598 2006-01-17 Jakub Jelinek <jakub@redhat.com>
5601 * testsuite/libgomp.fortran/pr25219.f90: New test.
5603 2005-12-05 Uros Bizjak <uros@kss-loka.si>
5605 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
5606 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
5607 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5608 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5609 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
5610 testsuite/libgomp.fortran/threadprivate1.f90,
5611 testsuite/libgomp.fortran/threadprivate2.f90,
5612 testsuite/libgomp.fortran/threadprivate3.f90,
5613 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5614 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5615 testsuite/libgomp.fortran/omp_parse3.f90: Change required
5616 effective-target to TLS runtime.
5618 * testsuite/libgomp.fortran/pr25162.f: Require
5619 effective-target TLS runtime.
5621 2005-12-01 Jakub Jelinek <jakub@redhat.com>
5623 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
5624 * testsuite/libgomp.c/nestedfn-3.c: New test.
5626 2005-11-30 Jakub Jelinek <jakub@redhat.com>
5629 * testsuite/libgomp.fortran/pr25162.f: New test.
5631 2005-11-28 Jakub Jelinek <jakub@redhat.com>
5633 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
5634 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
5636 2005-11-25 Jakub Jelinek <jakub@redhat.com>
5638 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
5639 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
5640 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
5641 single.c, team.c, work.c, config/linux/alpha/futex.h,
5642 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
5643 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
5644 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
5645 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
5646 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
5647 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
5648 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
5651 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5653 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
5654 to nodist_noinst_HEADERS.
5655 * Makefile.in: Rebuilt.
5657 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
5658 add integer count field.
5659 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
5660 omp_nest_lock_t type change.
5661 (omp_init_nest_lock): Likewise. Initialize count to 0.
5662 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
5664 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
5666 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
5667 Increment count if successful and return the new nesting level.
5668 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
5669 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
5670 * testsuite/libgomp.c/lib-1.c: New test.
5671 * testsuite/libgomp.fortran/lib1.f90: New test.
5672 * testsuite/libgomp.fortran/lib2.f: New test.
5673 * testsuite/libgomp.fortran/lib3.f: New test.
5675 2005-11-17 Richard Henderson <rth@redhat.com>
5678 * Makefile.am (nodist_toolexeclib_HEADERS): New.
5679 * configure.ac (link_gomp): New. Substitute it.
5680 (AC_CONFIG_FILES): Add libgomp.spec.
5681 * libgomp.spec.in: New file.
5682 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
5683 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
5685 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5687 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
5688 reduction(-:var) behaving the same as reduction(+:var).
5689 * testsuite/libgomp.c/reduction-4.c: New test.
5691 2005-11-15 Uros Bizjak <uros@kss-loka.si>
5693 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
5694 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
5695 testsuite/libgomp.c/copyin-3.c,
5696 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5697 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5698 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
5699 testsuite/libgomp.c++/pr24455.C,
5700 testsuite/libgomp.fortran/threadprivate1.f90,
5701 testsuite/libgomp.fortran/threadprivate2.f90,
5702 testsuite/libgomp.fortran/threadprivate3.f90,
5703 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5704 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5705 testsuite/libgomp.fortran/omp_parse3.f90: Require
5706 effective-target TLS.
5708 2005-11-14 Diego Novillo <dnovillo@redhat.com>
5712 2005-11-13 Jakub Jelinek <jakub@redhat.com>
5715 * team.c (initialize_team): Pass NULL rather than free as
5716 pthread_key_create destructor. Initialize thread specific data
5717 pointer in initial thread to a static local variable rather than
5720 2005-11-11 Uros Bizjak <uros@kss-loka.si>
5722 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
5723 its location to ld_library_path.
5725 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5727 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
5729 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5731 * testsuite/libgomp.c: Rename from libgomp.dg.
5733 2005-11-09 Diego Novillo <dnovillo@redhat.com>
5735 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
5736 threadprivate variable 'i'.
5738 2005-11-09 Jakub Jelinek <jakub@redhat.com>
5740 * config/linux/s390/futex.h: New file.
5741 * configure.tgt: Use it.
5743 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
5744 before the parallel.
5746 2005-11-08 Jakub Jelinek <jakub@redhat.com>
5749 * testsuite/libgomp.c++/master-1.C: New test.
5751 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5753 * testsuite/libgomp.dg/copyin-3.c: New test.
5755 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5757 * testsuite/libgomp.fortran/retval1.f90: New test.
5758 * testsuite/libgomp.fortran/vla7.f90: New test.
5760 2005-11-06 Jakub Jelinek <jakub@redhat.com>
5762 * testsuite/libgomp.fortran/vla2.f90: New test.
5763 * testsuite/libgomp.fortran/vla3.f90: New test.
5764 * testsuite/libgomp.fortran/vla4.f90: New test.
5765 * testsuite/libgomp.fortran/vla5.f90: New test.
5766 * testsuite/libgomp.fortran/vla6.f90: New test.
5768 2005-11-01 Jakub Jelinek <jakub@redhat.com>
5770 * config/linux/sparc/futex.h: New file.
5771 * configure.tgt: Use it.
5772 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
5774 * critical.c: Include stdlib.h.
5775 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
5776 ignoring return value.
5777 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
5778 LIBGOMP_CHECK_SYNC_BUILTINS check.
5779 * configure: Rebuilt.
5781 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5783 * testsuite/libgomp.fortran/vla1.f90: New test.
5785 2005-10-31 Richard Henderson <rth@redhat.com>
5787 * testsuite/libgomp.fortran/character2.f90: Fix race condition
5788 setting 's' in different threads.
5790 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5792 * libgomp.h (attribute_hidden, ialias): Define.
5793 * config/posix/proc.c (omp_get_num_procs): Add ialias.
5794 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
5795 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
5796 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5797 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5798 omp_test_lock, omp_test_nest_lock): Likewise.
5799 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
5800 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5801 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5802 omp_test_lock, omp_test_nest_lock): Likewise.
5803 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
5804 omp_get_dynamic, omp_get_nested): Likewise.
5805 * parallel.c (omp_get_num_threads, omp_get_max_threads,
5806 omp_get_thread_num, omp_in_parallel): Likewise.
5807 * fortran.c (ialias_redirect): Define.
5808 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
5809 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
5810 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
5811 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
5812 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
5813 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
5814 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
5815 omp_get_wtime): Add ialias_redirect.
5817 2005-10-30 Jakub Jelinek <jakub@redhat.com>
5819 * fortran.c: Include stdlib.h.
5821 2005-10-29 Jakub Jelinek <jakub@redhat.com>
5823 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
5824 * Makefile.in: Regenerated.
5826 2005-10-28 Jakub Jelinek <jakub@redhat.com>
5828 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
5829 * libgomp_f.h.in (omp_check_defines): New function.
5830 * env.c: Include libgomp_f.h.
5831 (initialize_env): Call omp_check_defines.
5833 * testsuite/libgomp.dg/copyin-2.c: New test.
5834 * testsuite/libgomp.c++/copyin-2.C: New test.
5835 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
5837 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
5838 * testsuite/libgomp.fortran/sharing2.f90: New test.
5840 * testsuite/libgomp.dg/copyin-1.c: New test.
5841 * testsuite/libgomp.c++/copyin-1.C: New test.
5843 2005-10-26 Jakub Jelinek <jakub@redhat.com>
5845 * testsuite/libgomp.fortran/crayptr1.f90: New test.
5847 * testsuite/libgomp.fortran/workshare1.f90: New test.
5849 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
5851 * libgomp.fortran/sharing1.f90: New test.
5853 2005-10-24 Jakub Jelinek <jakub@redhat.com>
5856 * testsuite/libgomp.c++/loop-7.C: New test.
5858 * testsuite/libgomp.dg/nestedfn-2.c: New test.
5860 * testsuite/libgomp.dg/nestedfn-1.c: New test.
5861 * testsuite/libgomp.fortran/reduction6.f90: New test.
5862 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
5864 2005-10-23 Richard Henderson <rth@redhat.com>
5866 * testsuite/libgomp.c++/ctor-1.C: New.
5867 * testsuite/libgomp.c++/ctor-2.C: New.
5868 * testsuite/libgomp.c++/ctor-3.C: New.
5869 * testsuite/libgomp.c++/ctor-4.C: New.
5870 * testsuite/libgomp.c++/ctor-5.C: New.
5871 * testsuite/libgomp.c++/ctor-6.C: New.
5872 * testsuite/libgomp.c++/ctor-7.C: New.
5873 * testsuite/libgomp.c++/ctor-8.C: New.
5874 * testsuite/libgomp.c++/ctor-9.C: New.
5876 2005-10-21 Diego Novillo <dnovillo@redhat.com>
5879 * testsuite/libgomp.c++/pr24455-1.C: New test.
5880 * testsuite/libgomp.c++/pr24455.C: New test.
5881 * testsuite/libgomp.dg/pr24455-1.c: New test.
5882 * testsuite/libgomp.dg/pr24455.c: New test.
5884 2005-10-20 Richard Henderson <rth@redhat.com>
5886 * testsuite/libgomp.c++/loop-6.C: New.
5887 * testsuite/libgomp.dg/loop-3.c: New.
5889 2005-10-20 Jakub Jelinek <jakub@redhat.com>
5891 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
5893 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
5896 2005-10-19 Diego Novillo <dnovillo@redhat.com>
5898 * testsuite/libgomp.fortran/jacobi.f: New test.
5900 2005-10-19 Richard Henderson <rth@redhat.com>
5902 * configure.tgt (i?86-linux): Default to with_arch instead of
5903 CFLAGS. Add -mtune to match target_cpu.
5904 (x86_64-linux): Tune to i686.
5906 * fortran.c (omp_test_nest_lock_): Fix typo.
5908 2005-10-19 Jakub Jelinek <jakub@redhat.com>
5910 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5911 gomp_ordered_sync): Do nothing if team->nthreads == 1.
5912 * testsuite/libgomp.dg/ordered-3.c: New test.
5914 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
5915 Remove volatile keyword.
5917 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
5918 in COMMON block to avoid warnings on 64-bit targets.
5920 2005-10-18 Diego Novillo <dnovillo@redhat.com>
5922 * testsuite/libgomp.dg/shared-3.c: New test.
5924 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5926 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
5927 * testsuite/libgomp.fortran/reduction5.f90: New test.
5929 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5931 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
5933 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
5934 flush loop now that __sync_synchronize has proper memory barrier.
5935 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
5936 Add -ffixed-form to dg-options.
5938 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5940 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
5941 from subdirectories.
5942 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
5943 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
5944 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
5945 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
5946 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
5947 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
5948 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
5949 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
5950 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
5951 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
5952 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
5953 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
5954 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
5955 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
5956 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
5957 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
5958 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
5959 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
5960 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
5961 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
5962 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
5963 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
5964 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
5965 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
5966 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
5968 2005-10-17 Jakub Jelinek <jakub@redhat.com>
5970 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
5971 lang_library_path exists. Use find instead of glob to gather tests.
5972 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
5974 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5976 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
5977 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
5978 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
5979 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
5980 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
5981 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
5982 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
5983 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
5984 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
5985 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
5986 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
5987 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
5988 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
5990 2005-10-15 Jakub Jelinek <jakub@redhat.com>
5992 * testsuite/libgomp.dg/vla-1.c: New test.
5994 * testsuite/libgomp.fortran/reference2.f90: New test.
5996 * testsuite/libgomp.fortran/character2.f90: Remove explicit
5997 declaration of omp_get_thread_num.
5998 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
6001 * testsuite/libgomp.fortran/reduction1.f90: New test.
6002 * testsuite/libgomp.fortran/reduction2.f90: New test.
6003 * testsuite/libgomp.fortran/reduction3.f90: New test.
6004 * testsuite/libgomp.fortran/reduction4.f90: New test.
6006 2005-10-13 Richard Henderson <rth@redhat.com>
6008 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
6009 * Makefile.in: Regenerate.
6010 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
6011 * libgomp.h: Include bar.h.
6012 (struct gomp_barrier): Remove.
6013 (struct gomp_team): Add barrier. Replace master_barrier with
6014 master_release. Replace threads with ordered_release.
6015 (struct gomp_thread): Replace barrier with release.
6016 * ordered.c (gomp_ordered_first): Update for ordered_release change.
6017 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
6018 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
6019 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
6020 (GOMP_single_copy_end): Likewise.
6021 * team.c (gomp_threads_dock): New.
6022 (gomp_barrier_init, gomp_barrier_destroy): Remove.
6023 (gomp_thread_start): Use gomp_barrier_wait.
6024 (new_team, free_team): Update for gomp_team changes.
6025 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
6026 (gomp_team_end): Use gomp_barrier_wait.
6027 (initialize_team): Update for gomp_thread changes.
6028 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
6029 (gomp_work_share_end_nowait): Use atomic ops when available.
6030 * config/linux/bar.c, config/linux/bar.h: New files.
6031 * config/posix/bar.c, config/posix/bar.h: New files.
6033 2005-10-13 Jakub Jelinek <jakub@redhat.com>
6035 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
6036 * testsuite/libgomp.dg/single-2.c: New test.
6038 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
6039 lang_link_flags): Unset, so that they aren't inherited from previously
6042 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
6044 2005-10-12 Richard Henderson <rth@redhat.com>
6046 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
6047 (libgomp_init): Use lang_test_file, lang_library_path, and
6048 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
6050 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
6051 (lang_test_file, lang_link_flags): New.
6052 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
6054 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
6055 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
6056 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
6057 testsuite/libgomp.c++/parallel-1.C,
6058 testsuite/libgomp.c++/reduction-1.C,
6059 testsuite/libgomp.c++/reduction-2.C,
6060 testsuite/libgomp.c++/reduction-3.C,
6061 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
6062 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
6063 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
6064 New files, largely cribbed from the C testsuite.
6066 2005-10-12 Jakub Jelinek <jakub@redhat.com>
6068 * testsuite/libgomp.fortran/character1.f90: New test.
6069 * testsuite/libgomp.fortran/character2.f90: New test.
6071 * testsuite/libgomp.dg/nested-1.c: New test.
6072 * testsuite/libgomp.dg/nested-2.c: New test.
6073 * testsuite/libgomp.fortran/do1.f90: New test.
6074 * testsuite/libgomp.fortran/do2.f90: New test.
6076 * testsuite/libgomp.fortran/reference1.f90: New test.
6078 2005-10-11 Jakub Jelinek <jakub@redhat.com>
6080 * testsuite/libgomp.dg/reduction-1.c: New test.
6081 * testsuite/libgomp.dg/reduction-2.c: New test.
6082 * testsuite/libgomp.dg/reduction-3.c: New test.
6084 2005-10-10 Jakub Jelinek <jakub@redhat.com>
6086 * testsuite/libgomp.dg/atomic-1.c: New test.
6087 * testsuite/libgomp.dg/atomic-2.c: New test.
6089 2005-10-09 Richard Henderson <rth@redhat.com>
6091 * critical.c (atomic_lock): New.
6092 (initialize_critical): Initialize it.
6093 (GOMP_atomic_start, GOMP_atomic_end): New.
6094 * libgomp.map: Export them.
6095 * libgomp_g.h: Declare them.
6097 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
6099 2005-10-02 Richard Henderson <rth@redhat.com>
6101 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
6102 to XCFLAGS instead of CFLAGS.
6104 2005-09-30 Richard Henderson <rth@redhat.com>
6106 * configure.ac: Determine whether -pthread or -lpthread is needed.
6107 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
6108 * Makefine.in, configure: Rebuild.
6110 2005-09-28 Richard Henderson <rth@redhat.com>
6112 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
6113 * testsuite/libgomp.dg/omp-single-3.c: New test.
6115 2005-09-28 Diego Novillo <dnovillo@redhat.com>
6117 * testsuite/libgomp.dg/omp-single-2.c: New test.
6118 * testsuite/libgomp.dg/shared-2.c: Fix return code.
6120 2005-09-27 Richard Henderson <rth@redhat.com>
6122 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
6123 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
6125 2005-09-27 Jakub Jelinek <jakub@redhat.com>
6127 * testsuite/libgomp.dg/omp-loop03.c: New test.
6129 2005-09-27 Diego Novillo <dnovillo@redhat.com>
6131 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
6133 2005-09-27 Diego Novillo <dnovillo@redhat.com>
6135 * testsuite/libgomp.dg/omp-single-1.c: New test.
6136 * testsuite/libgomp.dg/shared-1.c: Return 0.
6137 Add prototype for abort.
6138 * testsuite/libgomp.dg/shared-2.c: Likewise.
6140 2005-09-26 Jakub Jelinek <jakub@redhat.com>
6142 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
6145 2005-09-26 Diego Novillo <dnovillo@redhat.com>
6147 * testsuite/libgomp.dg/shared-1.c: New test.
6148 * testsuite/libgomp.dg/shared-2.c: New test.
6150 2005-09-24 Richard Henderson <rth@redhat.com>
6152 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
6154 2005-09-24 Richard Henderson <rth@redhat.com>
6156 * iter.c (gomp_iter_static_next): Round up when computing number
6157 of iterations. Don't bother distributing a remainder equally.
6159 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
6160 Don't call srand. Zero b before testing.
6163 2005-09-24 Jakub Jelinek <jakub@redhat.com>
6165 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
6166 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
6168 2005-09-23 Jakub Jelinek <jakub@redhat.com>
6170 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
6171 without !$omp end do, followed immediately by subroutine end.
6173 2005-09-23 Diego Novillo <dnovillo@redhat.com>
6175 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
6177 2005-09-22 Richard Henderson <rth@redhat.com>
6179 * critical.c (GOMP_critical_name_start): Change argument to void**.
6180 Reuse the pointer space if the mutex fits.
6181 (GOMP_critical_name_end): Likewise.
6182 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
6183 * libgomp_g.h (GOMP_critical_name_start): Update decl.
6184 (GOMP_critical_name_end): Likewise.
6185 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
6186 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
6188 2005-09-20 Richard Henderson <rth@redhat.com>
6190 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
6191 (create_lock_lock): New.
6192 (initialize_critical): Initialize it.
6193 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
6194 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
6196 2005-09-20 Diego Novillo <dnovillo@redhat.com>
6198 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
6200 2005-09-20 Diego Novillo <dnovillo@redhat.com>
6202 * testsuite/libgomp.dg/omp-loop01.c: New test.
6203 * testsuite/libgomp.dg/omp-loop02.c: New test.
6205 2005-09-20 Jakub Jelinek <jakub@redhat.com>
6207 * configure.ac (AC_PROG_FC): Add.
6208 (USE_FORTRAN): New automake conditional.
6209 * configure: Rebuilt.
6210 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
6211 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
6212 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
6213 Add rules to build them.
6214 * Makefile.in: Rebuilt.
6215 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
6217 * libgomp.map: Add Fortran wrappers.
6218 * libgomp_f.h.in: New file.
6219 * omp_lib.h.in: New file.
6220 * omp_lib.f90.in: New file.
6221 * fortran.c: New file.
6222 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
6223 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
6224 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
6225 libgfortran has been built.
6226 * testsuite/libgomp.fortran/fortran.exp: New file.
6227 * testsuite/libgomp.fortran/omp_cond1.f: New test.
6228 * testsuite/libgomp.fortran/omp_cond2.f: New test.
6229 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
6230 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
6231 * testsuite/libgomp.fortran/omp_hello.f: New test.
6232 * testsuite/libgomp.fortran/omp_orphan.f: New test.
6233 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
6234 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
6235 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
6236 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
6237 * testsuite/libgomp.fortran/omp_reduction.f: New test.
6238 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
6239 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
6241 2005-08-30 Richard Henderson <rth@redhat.com>
6243 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
6244 function for when aliases are not usable.
6245 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
6246 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
6247 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
6248 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
6249 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
6250 GOMP_loop_ordered_guided_next): Likewise.
6251 * ordered.c (GOMP_ordered_start): Likewise.
6253 2005-08-01 Diego Novillo <dnovillo@redhat.com>
6255 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
6256 * testsuite/libgomp.dg/omp_hello.c: Fix return code
6257 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
6258 * testsuite/libgomp.dg/omp_orphan.c: Likewise
6259 * testsuite/libgomp.dg/omp_reduction.c: Likewise
6260 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
6261 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
6262 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
6263 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
6265 2005-07-07 Eric Christopher <echristo@redhat.com>
6266 Diego Novillo <dnovillo@redhat.com>
6268 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
6269 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
6271 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
6272 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
6273 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
6274 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
6275 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
6276 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
6277 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
6279 2005-06-13 Diego Novillo <dnovillo@redhat.com>
6281 * TOPLEVEL.patch: Remove.
6283 2005-05-16 Richard Henderson <rth@redhat.com>
6285 * configure.ac: Test for clock_gettime.
6286 * config.h.in, configure: Rebuild.
6287 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
6288 (omp_get_wtime): Use clock_gettime if available.
6289 (omp_get_wtick): Use clock_getres if available.
6291 2005-05-11 Richard Henderson <rth@redhat.com>
6293 * config/linux/ia64/futex.h: New file.
6294 * configure.tgt: Use it.
6296 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
6298 2005-05-07 Richard Henderson <rth@redhat.com>
6300 * config/linux/powerpc/futex.h: New file.
6301 * configure.tgt: Use it.
6303 * config/linux/i486/futex.h: Merge ...
6304 * config/linux/x86_64/futex.h: ... into ...
6305 * config/linux/x86/futex.h: ... here.
6306 * configure.tgt: Update to match.
6308 2005-05-06 Richard Henderson <rth@redhat.com>
6310 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
6311 * config/linux/i486/futex.h: Likewise.
6312 * config/linux/x86_64/futex.h: Likewise.
6314 * config/linux/lock.c: New file.
6315 * config/linux/omp-lock.h: New file.
6317 * critical.c, env.h: Don't include omp.h
6318 * config/posix/lock.c: Include libgomp.h instead of omp.h.
6319 * config/posix/time.c: Likewise.
6320 * config/posix/omp-lock.h: New file.
6321 * libgomp.h: Include omp-lock.h and omp.h.
6322 * Makefile.am (nodist_include_HEADERS): New.
6324 * configure.ac (PERL): New.
6325 * mkomp_h.pl: New file.
6326 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
6328 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
6330 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
6331 build directory. Re-add -march=i486 hack.
6333 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
6334 (libgomp_link_flags): Remove.
6335 (libgomp_initialized): Remove.
6336 (libgomp_init): Don't protect from reinitialization. Copy code
6337 from libstdc++ for getting the multilib set correctly.
6339 2005-05-05 Richard Henderson <rth@redhat.com>
6341 * config/linux/alpha/futex.h: New file.
6342 * configure.tgt (alpha*-*-linux*): Use it.
6344 * config/posix/mutex.c: New file.
6345 * config/posix/sem.c: Use libgomp.h.
6347 * configure.tgt (x86_64-linux): Also test CC for -m32.
6348 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
6350 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
6353 * Makefile.am (SUBDIRS): New.
6354 (libgomp_la_LDFLAGS): Add -lpthread.
6355 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
6356 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
6358 * libgomp_g.h: New file.
6359 * libgomp.h: Split out all public declarations to libgomp_g.h.
6360 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
6361 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
6362 * config/linux/sem.h: Likewise.
6363 * config/posix/sem.h: Likewise.
6365 * Makefile.am (AM_LDFLAGS): New.
6366 (libgomp_version_script): Split out from ...
6367 (libgomp_la_LDFLAGS): ... here.
6368 (libgomp_version_info): New.
6369 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
6370 (LIBGOMP_ENABLE): New.
6371 (LIBGOMP_CHECK_LINKER_FEATURES): New.
6372 (LIBGOMP_ENABLE_SYMVERS): New.
6373 * configure.ac (AC_INIT): Version 1.0.
6374 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
6375 (enable-linux-futex): Likewise. Rename from enable-futex.
6376 (libtool_VERSION): New.
6377 (LIBGOMP_ENABLE_SYMVERS): Use it.
6378 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
6379 * Makefile.in, aclocal.m4, configure: Rebuild.
6381 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
6382 (gomp_mutex_unlock_slow): Fix typo.
6383 * config/linux/sem.c: Similarly.
6384 (gomp_sem_post_slow): Fix typo.
6385 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
6386 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
6387 [__PIC__] (sys_futex0): Don't use tmp output in asm.
6389 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
6390 (libgomp_la_LDFLAGS): Add top_srcdir to path.
6391 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
6392 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
6393 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
6394 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
6395 LDFLAGS. Pull enable_futex check to top-level.
6396 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
6397 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
6399 First attempt at real configury.
6400 * Makefile, config.h: Remove file.
6401 * Makefile.am, Makefile.in: New file.
6402 * acinclude.m4 aclocal.m4: New file.
6403 * configure.ac, configure.tgt, configure: New file.
6405 * config/posix/lock.c: Rename from sys-lock.c.
6406 * config/posix/mutex.h: Rename from sys-mutex.h.
6407 * config/posix/sem.c: Rename from sys-sem.c.
6408 * config/posix/sem.h: Rename from sys-sem.h.
6409 * config/posix/proc.c: Rename from sys-proc.c.
6410 * config/posix/time.c: Rename from sys-proc.c.
6412 * config/linux/mutex.c: New file.
6413 * config/linux/mutex.h: New file.
6414 * config/linux/sem.c: New file.
6415 * config/linux/sem.h: New file.
6416 * config/linux/i486/futex.h: New file.
6417 * config/linux/x86_64/futex.h: New file.
6419 2005-05-04 Richard Henderson <rth@redhat.com>
6421 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
6422 * libgomp.h: Declare them.
6423 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
6424 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
6426 2005-05-04 Richard Henderson <rth@redhat.com>
6428 * libgomp-1 code drop
6430 2005-05-04 Richard Henderson <rth@redhat.com>
6432 * iter.c (gomp_iter_static_next): Return tri-state on 0.
6433 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
6434 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
6435 (gomp_iter_static_next): Update.
6436 (gomp_ordered_static_next): Update.
6437 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
6438 (gomp_loop_ordered_static_start): Likewise. Exit early for a
6439 totally empty range.
6440 (gomp_loop_ordered_static_next): Refine test for calling
6441 gomp_ordered_static_next.
6442 * testsuite/ordered-1.c: Add case for more threads than iterations.
6444 * iter.c (gomp_iter_runtime_next_locked): Remove.
6445 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
6446 gomp_loop_guided_start, gomp_loop_ordered_static_start,
6447 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
6448 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
6449 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
6450 gomp_loop_ordered_guided_next): Downcase name, make static, add
6451 an external alias with the old name.
6452 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
6453 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
6454 switch and call one of the above static functions.
6455 * libgomp.h: Update.
6457 * work.c (gomp_work_share_start): Lock the mutex for !first too.
6458 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
6459 GOMP_loop_guided_start, GOMP_loop_runtime_start,
6460 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
6461 GOMP_loop_ordered_guided_start): Update to match.
6462 * sections.c (GOMP_sections_start): Likewise.
6463 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
6465 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
6466 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
6467 Use bounds check instead of modulus.
6468 (gomp_ordered_sync): Split out of GOMP_ordered_start.
6469 (gomp_ordered_last): Don't sync with ordered_owner here.
6470 (gomp_ordered_next): Likewise.
6471 (gomp_ordered_static_loop_next): Likewise.
6472 * loop.c, libgomp.h: Update to match.
6474 * libgomp.h (GOMP_barrier): Declare.
6476 * testsuite/barrier-1.c: New file.
6477 * testsuite/critical-1.c: New file.
6478 * testsuite/ordered-2.c: New file.
6479 * testsuite/ordered-1.c: New file.
6480 * testsuite/sections-1.c: New file.
6481 * testsuite/single-1.c: New file.
6482 * testsuite/Makefile (TESTS): Add them.
6484 2005-05-04 Richard Henderson <rth@redhat.com>
6486 * libgomp.h (struct gomp_work_share): Add ordered_owner.
6487 * loop.c (GOMP_loop_static_start): If not the startup thread,
6488 acquire the mutex to wait for initialization complete.
6489 (GOMP_loop_ordered_static_start): Likewise.
6490 (GOMP_loop_ordered_runtime_start): Likewise.
6491 (GOMP_loop_ordered_static_first): Remove.
6492 (GOMP_loop_ordered_dynamic_first): Remove.
6493 (GOMP_loop_ordered_guided_first): Remove.
6494 (GOMP_loop_ordered_runtime_first): Remove.
6495 * ordered.c (gomp_ordered_loop_first): Post to own release when
6496 we're the first thread.
6497 (gomp_ordered_loop_last): Wait on release if not owner.
6498 (gomp_ordered_loop_next): Likewise.
6499 (gomp_ordered_static_loop_init): New.
6500 (gomp_ordered_static_loop_next): Use ordered_owner.
6501 (GOMP_ordered_start): Likewise.
6502 * work.c (gomp_new_work_share): Initialize ordered_owner.
6504 2005-05-03 Richard Henderson <rth@redhat.com>
6506 * Makefile (OPT): New.
6509 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
6510 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
6511 * libgomp.h, libgomp.map, NOTES: Update to match.
6513 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
6514 Add initialized and thr members.
6515 (gomp_thread_start): Pause when initially spawned to wait for
6516 the whole team to be created.
6517 (gomp_team_start): Release team members at the end.
6519 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
6520 (f_foo_1): Use GOMP_loop_end.
6521 (f_foo_2): Use GOMP_loop_end_nowait.
6523 * testsuite/loop-2.c: New file.
6524 * testsuite/Makefile (TESTS): Add it.
6526 2005-05-03 Richard Henderson <rth@redhat.com>
6528 * iter.c (gomp_iter_static_next): Fix overflow check typo.
6529 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
6530 * team.c (new_team): Initialize oldest_live_gen to 1 if no
6533 * testsuite/Makefile: New file.
6534 * testsuite/loop-1.c: New file.
6536 2005-05-03 Richard Henderson <rth@redhat.com>
6538 Initial implementation and checkin.