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